zova-module-a-table 5.1.2 → 5.1.6

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.
@@ -0,0 +1,44 @@
1
+ import type { TypeControllerInnerProps } from 'zova';
2
+ import type { ControllerTableProps } from '../../component/table/controller.jsx';
3
+ import { ControllerTable } from '../../component/table/controller.jsx';
4
+ export type TypeControllerTablePublicProps<TData extends {} = {}> = {
5
+ controllerRef?: (ref: ControllerTable<TData>) => void;
6
+ } & ControllerTableProps<TData>;
7
+ type ControllerInnerProps<TData extends {} = {}> = TypeControllerInnerProps<ControllerTableProps<TData>, keyof typeof ControllerTable.$propsDefault>;
8
+ declare module 'zova-module-a-table' {
9
+ interface ControllerTable<TData extends {} = {}> {
10
+ $props: ControllerInnerProps<TData>;
11
+ }
12
+ }
13
+ declare module 'zova-module-a-table' {
14
+ interface RenderTable<TData extends {} = {}> extends ControllerTable<TData> {
15
+ }
16
+ }
17
+ export declare const ZTable: new <TData extends {} = {}>(props: ({
18
+ controllerRef?: ((ref: ControllerTable<TData>) => void) | undefined;
19
+ } & ControllerTableProps<TData> & ({
20
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
21
+ } | {
22
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
23
+ })) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<{
24
+ controllerRef?: ((ref: ControllerTable<TData>) => void) | undefined;
25
+ } & ControllerTableProps<TData> & ({
26
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
27
+ } | {
28
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
29
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").PublicProps, {}, false, {}, import("vue").SlotsType<Record<string, any>>, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
30
+ P: {};
31
+ B: {};
32
+ D: {};
33
+ C: {};
34
+ M: {};
35
+ Defaults: {};
36
+ }, {} & ({
37
+ controllerRef?: ((ref: ControllerTable<TData>) => void) | undefined;
38
+ } & ControllerTableProps<TData> & ({
39
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
40
+ } | {
41
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
42
+ })), {}, {}, {}, {}, {}>;
43
+ export {};
44
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/.metadata/component/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,MAAM,CAAC;AAKrD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAEjF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,MAAM,MAAM,8BAA8B,CAAC,KAAK,SAAS,EAAE,GAAG,EAAE,IAAI;IAClE,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;CACvD,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAEhC,KAAK,oBAAoB,CAAC,KAAK,SAAS,EAAE,GAAG,EAAE,IAAI,wBAAwB,CAAC,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,OAAO,eAAe,CAAC,aAAa,CAAC,CAAC;AACrJ,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAiB,eAAe,CAAC,KAAK,SAAS,EAAE,GAAG,EAAE;QACpD,MAAM,EAAE,oBAAoB,CAAC,KAAK,CAAC,CAAC;KACrC;CACF;AACD,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAiB,WAAW,CAAC,KAAK,SAAS,EAAE,GAAG,EAAE,CAAE,SAAQ,eAAe,CAAC,KAAK,CAAC;KAAG;CACtF;AACD,eAAO,MAAM,MAAM,OAAoB,KAAK,SAAS,EAAE;sDAZJ,IAAI;;;;;;sDAAJ,IAAI;;;;;;;;;;;;;sDAAJ,IAAI;;;;;wBAe1B,CAAC"}
@@ -0,0 +1,102 @@
1
+ /** controller: begin */
2
+ export * from '../component/table/controller.jsx';
3
+ import 'zova';
4
+ declare module 'zova' {
5
+ }
6
+ declare module 'zova-module-a-table' {
7
+ interface ControllerTable {
8
+ }
9
+ }
10
+ /** controller: end */
11
+ /** controller: begin */
12
+ import { ControllerTable } from '../component/table/controller.jsx';
13
+ import 'zova';
14
+ declare module 'zova' {
15
+ interface IBeanRecordLocal {
16
+ 'a-table.controller.table': ControllerTable;
17
+ }
18
+ }
19
+ /** controller: end */
20
+ /** components: begin */
21
+ export * from './component/table.js';
22
+ import { ZTable } from './component/table.js';
23
+ export declare const components: {
24
+ table: new <TData extends {} = {}>(props: ({
25
+ controllerRef?: ((ref: ControllerTable<TData>) => void) | undefined;
26
+ } & import("zova-module-a-table").ControllerTableProps<TData> & ({
27
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
28
+ } | {
29
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
30
+ })) & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps) => import("vue").CreateComponentPublicInstanceWithMixins<{
31
+ controllerRef?: ((ref: ControllerTable<TData>) => void) | undefined;
32
+ } & import("zova-module-a-table").ControllerTableProps<TData> & ({
33
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
34
+ } | {
35
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
36
+ }), {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, import("vue").PublicProps, {}, false, {}, import("vue").SlotsType<Record<string, any>>, {}, {}, string, {}, any, import("vue").ComponentProvideOptions, {
37
+ P: {};
38
+ B: {};
39
+ D: {};
40
+ C: {};
41
+ M: {};
42
+ Defaults: {};
43
+ }, {} & ({
44
+ controllerRef?: ((ref: ControllerTable<TData>) => void) | undefined;
45
+ } & import("zova-module-a-table").ControllerTableProps<TData> & ({
46
+ [x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
47
+ } | {
48
+ [x: `on${Capitalize<string>}`]: ((...args: never) => any) | undefined;
49
+ })), {}, {}, {}, {}, {}>;
50
+ };
51
+ import 'zova';
52
+ declare module 'zova' {
53
+ interface IComponentRecord {
54
+ 'a-table:table': ControllerTable;
55
+ }
56
+ interface IZovaComponentRecord {
57
+ 'a-table:table': typeof ZTable;
58
+ }
59
+ }
60
+ /** components: end */
61
+ /** render: begin */
62
+ export * from '../component/table/render.jsx';
63
+ import 'zova';
64
+ declare module 'zova' {
65
+ }
66
+ declare module 'zova-module-a-table' {
67
+ interface RenderTable {
68
+ }
69
+ }
70
+ /** render: end */
71
+ /** render: begin */
72
+ import { RenderTable } from '../component/table/render.jsx';
73
+ import 'zova';
74
+ declare module 'zova' {
75
+ interface IBeanRecordLocal {
76
+ 'a-table.render.table': RenderTable;
77
+ }
78
+ }
79
+ /** render: end */
80
+ /** config: begin */
81
+ export * from '../config/config.js';
82
+ import { config } from '../config/config.js';
83
+ /** config: end */
84
+ /** scope: begin */
85
+ import { BeanScopeBase, type BeanScopeUtil, TypeModuleConfig } from 'zova';
86
+ export declare class ScopeModuleATable extends BeanScopeBase {
87
+ }
88
+ export interface ScopeModuleATable {
89
+ util: BeanScopeUtil;
90
+ config: TypeModuleConfig<typeof config>;
91
+ }
92
+ import 'zova';
93
+ declare module 'zova' {
94
+ interface IBeanScopeRecord {
95
+ 'a-table': ScopeModuleATable;
96
+ }
97
+ interface IBeanScopeConfig {
98
+ 'a-table': ReturnType<typeof config>;
99
+ }
100
+ }
101
+ /** scope: end */
102
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/.metadata/index.ts"],"names":[],"m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,mBAAmB;AACnB,OAAO,EAAE,aAAa,EAAE,KAAK,aAAa,EAAE,gBAAgB,EAAE,MAAM,MAAM,CAAC;AAG3E,qBACa,iBAAkB,SAAQ,aAAa;CAAG;AAEvD,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,aAAa,CAAC;IACtB,MAAM,EAAE,gBAAgB,CAAC,OAAO,MAAM,CAAC,CAAC;CACvC;AAED,OAAO,MAAM,CAAC;AACd,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,gBAAgB;QAC/B,SAAS,EAAE,iBAAiB,CAAC;KAC9B;IAED,UAAiB,gBAAgB;QAC/B,SAAS,EAAE,UAAU,CAAC,OAAO,MAAM,CAAC,CAAC;KACtC;CAKF;AAED,iBAAiB"}
@@ -0,0 +1,3 @@
1
+ export declare const __ThisModule__ = "a-table";
2
+ export { ScopeModuleATable as ScopeModule } from './index.js';
3
+ //# sourceMappingURL=this.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"this.d.ts","sourceRoot":"","sources":["../../src/.metadata/this.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,OAAO,EAAE,iBAAiB,IAAI,WAAW,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,51 @@
1
+ import { celEnvBase } from '@cabloy/utils';
2
+ import { CellContext } from '@tanstack/vue-table';
3
+ import { SchemaObject } from 'openapi3-ts/oas31';
4
+ import { VNode } from 'vue';
5
+ import { ZovaJsx } from 'zova-jsx';
6
+ import { ScopeModuleAOpenapi, TypeTableCellRenderComponent, TypeTableCellRenderComponentProvider } from 'zova-module-a-openapi';
7
+ import { BeanControllerTableBase } from '../../lib/beanControllerTableBase.js';
8
+ import { ITableProvider } from '../../types/providers.js';
9
+ import { ITableMeta, TypeColumn, TypeTable, TypeTableGetColumnsNext } from '../../types/table.js';
10
+ import { IJsxRenderContextTableCell } from '../../types/tableCell.js';
11
+ import { IJsxRenderContextTableColumn, ITableCellRenderColumnProps, ITableCellScope, ITableColumnScope, ITableScope, TypeTableCellRender } from '../../types/tableColumn.js';
12
+ export interface ControllerTableProps<TData extends {} = {}> {
13
+ data?: TData[];
14
+ schema?: SchemaObject;
15
+ tableProvider?: ITableProvider;
16
+ tableScope?: ITableScope;
17
+ getColumns?: (next: TypeTableGetColumnsNext<TData>, table: ControllerTable<TData>) => Promise<TypeColumn<TData>[]>;
18
+ slotDefault?: (table: ControllerTable<TData>) => VNode;
19
+ }
20
+ export declare class ControllerTable<TData extends {} = {}> extends BeanControllerTableBase {
21
+ static $propsDefault: {};
22
+ properties: SchemaObject[] | undefined;
23
+ columns: TypeColumn<TData>[];
24
+ table: TypeTable<TData>;
25
+ tableProvider: ITableProvider;
26
+ tableMeta: ITableMeta<TData>;
27
+ zovaJsx: ZovaJsx;
28
+ columnCelEnv: typeof celEnvBase;
29
+ $$scopeModuleAOpenapi: ScopeModuleAOpenapi;
30
+ protected __init__(): Promise<void>;
31
+ get schema(): SchemaObject | undefined;
32
+ get data(): TData[] | undefined;
33
+ private _createTable;
34
+ private _createColumns;
35
+ private _createColumnsMiddle;
36
+ private _createProperties;
37
+ private _createTableMeta;
38
+ getColumnJsxRenderContext(celScope: ITableColumnScope): IJsxRenderContextTableColumn;
39
+ getCellJsxRenderContext(celScope: ITableCellScope, cellContext: CellContext<TData, any>): IJsxRenderContextTableCell;
40
+ createColumnRender(key: string, render: TypeTableCellRenderComponent): Promise<TypeTableCellRender<TData, any>>;
41
+ private _createColumnRender;
42
+ private _cellRender;
43
+ private _cellRenderInner;
44
+ getColumnProperty(name: string): SchemaObject | undefined;
45
+ private _getColumnCelEnv;
46
+ getColumnScope(name: string, scopeExtra?: {}): ITableColumnScope;
47
+ getColumnComponentPropsTop(name: string, celScope: {}, renderContext: {}): ITableCellRenderColumnProps;
48
+ getRenderFlattern(render: TypeTableCellRenderComponent): TypeTableCellRenderComponent;
49
+ getRenderProvider(render: TypeTableCellRenderComponent): TypeTableCellRenderComponentProvider;
50
+ }
51
+ //# sourceMappingURL=controller.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../src/component/table/controller.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAqE,MAAM,qBAAqB,CAAC;AACrH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC;AAE5B,OAAO,EAAkB,OAAO,EAAE,MAAM,UAAU,CAAC;AAEnD,OAAO,EAEL,mBAAmB,EACnB,4BAA4B,EAC5B,oCAAoC,EACrC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAClG,OAAO,EAA8B,0BAA0B,EAAoB,MAAM,0BAA0B,CAAC;AACpH,OAAO,EAEL,4BAA4B,EAC5B,2BAA2B,EAC3B,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,WAAW,oBAAoB,CAAC,KAAK,SAAS,EAAE,GAAG,EAAE;IACzD,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;IACf,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,aAAa,CAAC,EAAE,cAAc,CAAC;IAC/B,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,uBAAuB,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACnH,WAAW,CAAC,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E,EAAE,GAAG,2BAA2B;IAyBtG,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,4BAA4B;IAIrF,iBAAiB,CAAC,MAAM,EAAE,4BAA4B,GAAG,oCAAoC;CAOrG"}
@@ -0,0 +1,8 @@
1
+ import { BeanRenderBase } from 'zova';
2
+ export declare class RenderTable extends BeanRenderBase {
3
+ private _renderTableDefault;
4
+ render(): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
5
+ [key: string]: any;
6
+ }>;
7
+ }
8
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../../src/component/table/render.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AAGtC,qBACa,WAAY,SAAQ,cAAc;IAC7C,OAAO,CAAC,mBAAmB;IAkCpB,MAAM;;;CAGd"}
@@ -0,0 +1,5 @@
1
+ import type { ZovaSys } from 'zova';
2
+ export declare const config: (_sys: ZovaSys) => {
3
+ renderFallbackValue: string;
4
+ };
5
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,eAAO,MAAM,MAAM,GAAI,MAAM,OAAO;;CAInC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './.metadata/index.js';
2
+ export * from './lib/index.js';
3
+ export * from './types/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { RowData, Table } from '@tanstack/table-core';
2
+ import type { TableOptionsWithReactiveData } from '@tanstack/vue-table';
3
+ import { BeanControllerPageBase } from 'zova';
4
+ export declare class BeanControllerPageTableBase extends BeanControllerPageBase {
5
+ $useTable<TData extends RowData>(initialOptions: TableOptionsWithReactiveData<TData>): Table<TData>;
6
+ }
7
+ //# sourceMappingURL=beanControllerPageTableBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beanControllerPageTableBase.d.ts","sourceRoot":"","sources":["../../src/lib/beanControllerPageTableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAIxE,OAAO,EAAE,sBAAsB,EAAE,MAAM,MAAM,CAAC;AAE9C,qBAAa,2BAA4B,SAAQ,sBAAsB;IAC9D,SAAS,CAAC,KAAK,SAAS,OAAO,EAAE,cAAc,EAAE,4BAA4B,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;CAK3G"}
@@ -0,0 +1,7 @@
1
+ import type { RowData, Table } from '@tanstack/table-core';
2
+ import type { TableOptionsWithReactiveData } from '@tanstack/vue-table';
3
+ import { BeanControllerBase } from 'zova';
4
+ export declare class BeanControllerTableBase extends BeanControllerBase {
5
+ $useTable<TData extends RowData>(initialOptions: TableOptionsWithReactiveData<TData>): Table<TData>;
6
+ }
7
+ //# sourceMappingURL=beanControllerTableBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"beanControllerTableBase.d.ts","sourceRoot":"","sources":["../../src/lib/beanControllerTableBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAIxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAE1C,qBAAa,uBAAwB,SAAQ,kBAAkB;IACtD,SAAS,CAAC,KAAK,SAAS,OAAO,EAAE,cAAc,EAAE,4BAA4B,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC;CAK3G"}
@@ -0,0 +1,4 @@
1
+ export * from './beanControllerPageTableBase.js';
2
+ export * from './beanControllerTableBase.js';
3
+ export * from './tableCell.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { IDecoratorTableCellOptions } from '../types/tableCell.js';
2
+ export declare function TableCell<T extends IDecoratorTableCellOptions>(options?: T): ClassDecorator;
3
+ //# sourceMappingURL=tableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableCell.d.ts","sourceRoot":"","sources":["../../src/lib/tableCell.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAExE,wBAAgB,SAAS,CAAC,CAAC,SAAS,0BAA0B,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,cAAc,CAE3F"}
@@ -0,0 +1,5 @@
1
+ export * from './providers.js';
2
+ export * from './table.js';
3
+ export * from './tableCell.js';
4
+ export * from './tableColumn.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import type { IActionsRecord } from 'zova-module-a-action';
2
+ import type { TypeTableCellRenderComponentProvider, TypeTableRenderComponentProvider } from 'zova-module-a-openapi';
3
+ export interface ITableProviderComponents {
4
+ actionOperationsTable?: TypeTableRenderComponentProvider;
5
+ actionOperationsRow?: TypeTableCellRenderComponentProvider;
6
+ actionView?: TypeTableCellRenderComponentProvider;
7
+ currency?: TypeTableCellRenderComponentProvider;
8
+ date?: TypeTableCellRenderComponentProvider;
9
+ dateRange?: TypeTableCellRenderComponentProvider;
10
+ toggle?: TypeTableCellRenderComponentProvider;
11
+ select?: TypeTableCellRenderComponentProvider;
12
+ textarea?: TypeTableCellRenderComponentProvider;
13
+ resourcePicker?: TypeTableCellRenderComponentProvider;
14
+ }
15
+ export interface ITableProvider {
16
+ components?: ITableProviderComponents;
17
+ actions?: IActionsRecord;
18
+ }
19
+ declare module 'zova-module-a-openapi' {
20
+ interface IOpenapiOptionsResourceMetaTable {
21
+ provider?: ITableProvider;
22
+ }
23
+ }
24
+ //# sourceMappingURL=providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../src/types/providers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,oCAAoC,EAAE,gCAAgC,EAAE,MAAM,uBAAuB,CAAC;AAEpH,MAAM,WAAW,wBAAwB;IACvC,qBAAqB,CAAC,EAAE,gCAAgC,CAAC;IACzD,mBAAmB,CAAC,EAAE,oCAAoC,CAAC;IAC3D,UAAU,CAAC,EAAE,oCAAoC,CAAC;IAClD,QAAQ,CAAC,EAAE,oCAAoC,CAAC;IAChD,IAAI,CAAC,EAAE,oCAAoC,CAAC;IAC5C,SAAS,CAAC,EAAE,oCAAoC,CAAC;IACjD,MAAM,CAAC,EAAE,oCAAoC,CAAC;IAC9C,MAAM,CAAC,EAAE,oCAAoC,CAAC;IAC9C,QAAQ,CAAC,EAAE,oCAAoC,CAAC;IAChD,cAAc,CAAC,EAAE,oCAAoC,CAAC;CACvD;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B;AAED,OAAO,QAAQ,uBAAuB,CAAC;IACrC,UAAiB,gCAAgC;QAC/C,QAAQ,CAAC,EAAE,cAAc,CAAC;KAC3B;CACF"}
@@ -0,0 +1,11 @@
1
+ import type { ColumnDef, RowData, useVueTable } from '@tanstack/vue-table';
2
+ import type { SchemaObject } from 'openapi3-ts/oas31';
3
+ import type { TypeTableCellRender } from './tableColumn.js';
4
+ export type TypeTable<TData extends RowData = RowData> = ReturnType<typeof useVueTable<TData>>;
5
+ export type TypeColumn<TData extends RowData = RowData> = ColumnDef<TData, any>;
6
+ export interface ITableMeta<TData extends RowData = RowData> {
7
+ properties: SchemaObject[];
8
+ renders: Record<string, TypeTableCellRender<TData>>;
9
+ }
10
+ export type TypeTableGetColumnsNext<TData extends RowData = RowData> = (properties?: SchemaObject[]) => Promise<TypeColumn<TData>[]>;
11
+ //# sourceMappingURL=table.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../src/types/table.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC3E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,MAAM,MAAM,SAAS,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,IAAI,UAAU,CAAC,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;AAE/F,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,IAAI,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;AAEhF,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO;IACzD,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC;CACrD;AAED,MAAM,MAAM,uBAAuB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,IAAI,CAAC,UAAU,CAAC,EAAE,YAAY,EAAE,KAAK,OAAO,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC"}
@@ -0,0 +1,33 @@
1
+ import type { CellContext } from '@tanstack/table-core';
2
+ import type { OmitNever } from 'zova';
3
+ import type { ServiceOnion } from 'zova-module-a-bean';
4
+ import type { IJsxRenderContextBase } from 'zova-module-a-openapi';
5
+ import type { ControllerTable } from '../component/table/controller.jsx';
6
+ import type { ITableCellScope } from './tableColumn.js';
7
+ export interface IJsxRenderContextTableCell<TData extends {} = any> extends IJsxRenderContextBase {
8
+ $celScope: ITableCellScope;
9
+ $$table: ControllerTable<TData>;
10
+ cellContext: CellContext<TData, any>;
11
+ }
12
+ export type NextTableCellRender = () => any;
13
+ export interface ITableCellRecord {
14
+ }
15
+ export interface ITableCellRender {
16
+ render(options: IDecoratorTableCellOptions, renderContext: IJsxRenderContextTableCell, next: NextTableCellRender): any;
17
+ }
18
+ export interface IDecoratorTableCellOptions {
19
+ }
20
+ declare module 'zova-module-a-bean' {
21
+ interface SysOnion {
22
+ tableCell: ServiceOnion<IDecoratorTableCellOptions, keyof ITableCellRecord>;
23
+ }
24
+ }
25
+ declare module 'zova' {
26
+ interface ConfigOnions {
27
+ tableCell: OmitNever<ITableCellRecord>;
28
+ }
29
+ interface IBeanSceneRecord {
30
+ tableCell: never;
31
+ }
32
+ }
33
+ //# sourceMappingURL=tableCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableCell.d.ts","sourceRoot":"","sources":["../../src/types/tableCell.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACxD,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,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExD,MAAM,WAAW,0BAA0B,CAAC,KAAK,SAAS,EAAE,GAAG,GAAG,CAAE,SAAQ,qBAAqB;IAC/F,SAAS,EAAE,eAAe,CAAC;IAC3B,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAChC,WAAW,EAAE,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;CACtC;AAED,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,CAAC;AAE5C,MAAM,WAAW,gBAAgB;CAAG;AAEpC,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,OAAO,EAAE,0BAA0B,EAAE,aAAa,EAAE,0BAA0B,EAAE,IAAI,EAAE,mBAAmB,GAAG,GAAG,CAAC;CACxH;AAED,MAAM,WAAW,0BAA0B;CAAG;AAE9C,OAAO,QAAQ,oBAAoB,CAAC;IAClC,UAAiB,QAAQ;QACvB,SAAS,EAAE,YAAY,CAAC,0BAA0B,EAAE,MAAM,gBAAgB,CAAC,CAAC;KAC7E;CACF;AAED,OAAO,QAAQ,MAAM,CAAC;IACpB,UAAiB,YAAY;QAC3B,SAAS,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;KACxC;IAED,UAAiB,gBAAgB;QAC/B,SAAS,EAAE,KAAK,CAAC;KAClB;CACF"}
@@ -0,0 +1,27 @@
1
+ import type { CellContext, RowData } from '@tanstack/table-core';
2
+ import type { SchemaObject } from 'openapi3-ts/oas31';
3
+ import type { IJsxRenderContextBase, TypeTableCellRenderComponent } from 'zova-module-a-openapi';
4
+ import type { ControllerTable } from '../component/table/controller.jsx';
5
+ export declare const constColumnProps = "$$ColumnProps";
6
+ export type TypeTableCellRender<TData extends RowData = RowData, TValue = any> = (props?: CellContext<TData, TValue>) => any;
7
+ export interface IJsxRenderContextTableColumn<TData extends {} = any> extends IJsxRenderContextBase {
8
+ $celScope: ITableColumnScope;
9
+ $$table: ControllerTable<TData>;
10
+ }
11
+ export interface ITableCellRenderColumnProps {
12
+ key: string;
13
+ name: string;
14
+ visible?: boolean;
15
+ render: TypeTableCellRenderComponent;
16
+ }
17
+ export interface ITableScope {
18
+ }
19
+ export interface ITableColumnScope extends ITableScope {
20
+ name: string;
21
+ property?: SchemaObject;
22
+ }
23
+ export interface ITableCellScope extends ITableColumnScope {
24
+ value: any;
25
+ displayValue?: any;
26
+ }
27
+ //# sourceMappingURL=tableColumn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tableColumn.d.ts","sourceRoot":"","sources":["../../src/types/tableColumn.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAEjG,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEzE,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAEhD,MAAM,MAAM,mBAAmB,CAAC,KAAK,SAAS,OAAO,GAAG,OAAO,EAAE,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,GAAG,CAAC;AAE7H,MAAM,WAAW,4BAA4B,CAAC,KAAK,SAAS,EAAE,GAAG,GAAG,CAAE,SAAQ,qBAAqB;IACjG,SAAS,EAAE,iBAAiB,CAAC;IAC7B,OAAO,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;CACjC;AAED,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,4BAA4B,CAAC;CACtC;AAED,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED,MAAM,WAAW,eAAgB,SAAQ,iBAAiB;IACxD,KAAK,EAAE,GAAG,CAAC;IACX,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "zova-module-a-table",
3
- "version": "5.1.2",
3
+ "version": "5.1.6",
4
+ "gitHead": "fa2b2ad94fb521534a1312c30256c1e155926bd3",
4
5
  "description": "",
5
6
  "keywords": [
6
7
  "Zova Module"
@@ -29,7 +30,7 @@
29
30
  },
30
31
  "scripts": {
31
32
  "clean": "rimraf dist dist-cli tsconfig.build.tsbuildinfo tsconfig.cli.tsbuildinfo",
32
- "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.cli.json",
33
+ "tsc:publish": "npm run clean && zova :bin:buildModule --sourcemap && tsc -p tsconfig.build.json && tsc -p tsconfig.cli.json",
33
34
  "prepublishOnly": "npm run tsc:publish",
34
35
  "prepack": "clean-package",
35
36
  "postpack": "clean-package restore && npm run clean"
@@ -64,6 +65,5 @@
64
65
  "metadataCustom": "tableCell/metadata/generate.ts"
65
66
  }
66
67
  }
67
- },
68
- "gitHead": "5517baba5865ac348af5be8e3a0f7506b0a67f9c"
68
+ }
69
69
  }