vona-module-a-layoutprofile 5.0.1
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/LICENSE +21 -0
- package/dist/.metadata/index.d.ts +279 -0
- package/dist/.metadata/index.d.ts.map +1 -0
- package/dist/.metadata/this.d.ts +3 -0
- package/dist/.metadata/this.d.ts.map +1 -0
- package/dist/bean/meta.index.d.ts +4 -0
- package/dist/bean/meta.index.d.ts.map +1 -0
- package/dist/bean/meta.redlock.d.ts +6 -0
- package/dist/bean/meta.redlock.d.ts.map +1 -0
- package/dist/bean/meta.version.d.ts +6 -0
- package/dist/bean/meta.version.d.ts.map +1 -0
- package/dist/controller/layoutprofile.d.ts +14 -0
- package/dist/controller/layoutprofile.d.ts.map +1 -0
- package/dist/dto/layoutProfile.d.ts +13 -0
- package/dist/dto/layoutProfile.d.ts.map +1 -0
- package/dist/dto/layoutProfileLoad.d.ts +7 -0
- package/dist/dto/layoutProfileLoad.d.ts.map +1 -0
- package/dist/dto/layoutProfileSave.d.ts +16 -0
- package/dist/dto/layoutProfileSave.d.ts.map +1 -0
- package/dist/entity/layoutprofile.d.ts +11 -0
- package/dist/entity/layoutprofile.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +203 -0
- package/dist/index.js.map +1 -0
- package/dist/model/layoutprofile.d.ts +8 -0
- package/dist/model/layoutprofile.d.ts.map +1 -0
- package/dist/service/layoutprofile.d.ts +12 -0
- package/dist/service/layoutprofile.d.ts.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/layoutprofile.d.ts +18 -0
- package/dist/types/layoutprofile.d.ts.map +1 -0
- package/package.json +42 -0
- package/src/.metadata/index.ts +346 -0
- package/src/.metadata/this.ts +2 -0
- package/src/bean/meta.index.ts +12 -0
- package/src/bean/meta.redlock.ts +11 -0
- package/src/bean/meta.version.ts +20 -0
- package/src/controller/layoutprofile.ts +38 -0
- package/src/dto/layoutProfile.tsx +26 -0
- package/src/dto/layoutProfileLoad.tsx +13 -0
- package/src/dto/layoutProfileSave.tsx +31 -0
- package/src/entity/layoutprofile.ts +20 -0
- package/src/index.ts +2 -0
- package/src/model/layoutprofile.ts +10 -0
- package/src/service/layoutprofile.ts +64 -0
- package/src/types/index.ts +1 -0
- package/src/types/layoutprofile.ts +21 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { BeanInfo, BeanBase, BeanScopeBase } from 'vona';
|
|
2
|
+
import { __decorate, __metadata, __param } from 'tslib';
|
|
3
|
+
import { Api, v } from 'vona-module-a-openapiutils';
|
|
4
|
+
import { Entity, EntityBase, Model, BeanModelBase } from 'vona-module-a-orm';
|
|
5
|
+
import { z } from 'zod';
|
|
6
|
+
import { Dto, Web, Arg, Controller } from 'vona-module-a-web';
|
|
7
|
+
import { Service, Scope } from 'vona-module-a-bean';
|
|
8
|
+
import { Core } from 'vona-module-a-core';
|
|
9
|
+
import { Meta } from 'vona-module-a-meta';
|
|
10
|
+
import { $tableColumns } from 'vona-module-a-ormutils';
|
|
11
|
+
import { BeanRedlockBase } from 'vona-module-a-redlock';
|
|
12
|
+
|
|
13
|
+
let EntityLayoutprofile = class EntityLayoutprofile extends EntityBase {
|
|
14
|
+
constructor(...args) {
|
|
15
|
+
super(...args);
|
|
16
|
+
this.userId = void 0;
|
|
17
|
+
this.layoutKey = void 0;
|
|
18
|
+
this.profile = void 0;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
__decorate([Api.field(v.tableIdentity()), __metadata("design:type", Object)], EntityLayoutprofile.prototype, "userId", void 0);
|
|
22
|
+
__decorate([Api.field(z.string().trim().min(1).max(255)), __metadata("design:type", String)], EntityLayoutprofile.prototype, "layoutKey", void 0);
|
|
23
|
+
__decorate([Api.field(z.record(z.string(), z.unknown())), __metadata("design:type", Object)], EntityLayoutprofile.prototype, "profile", void 0);
|
|
24
|
+
EntityLayoutprofile = __decorate([Entity('aLayoutProfile'), BeanInfo({
|
|
25
|
+
module: "a-layoutprofile"
|
|
26
|
+
})], EntityLayoutprofile);
|
|
27
|
+
|
|
28
|
+
let ModelLayoutprofile = class ModelLayoutprofile extends BeanModelBase {};
|
|
29
|
+
ModelLayoutprofile = __decorate([Model({
|
|
30
|
+
entity: EntityLayoutprofile,
|
|
31
|
+
disableDeleted: true
|
|
32
|
+
}), BeanInfo({
|
|
33
|
+
module: "a-layoutprofile"
|
|
34
|
+
})], ModelLayoutprofile);
|
|
35
|
+
|
|
36
|
+
const width$1 = z.union([z.literal('auto'), z.number().int().min(1).max(2000)]);
|
|
37
|
+
const column$1 = z.object({
|
|
38
|
+
key: z.string().trim().min(1).max(100),
|
|
39
|
+
visible: z.union([z.literal(true), z.literal(false)]),
|
|
40
|
+
width: width$1
|
|
41
|
+
});
|
|
42
|
+
let DtoLayoutProfile = class DtoLayoutProfile {
|
|
43
|
+
constructor() {
|
|
44
|
+
this.version = void 0;
|
|
45
|
+
this.schemaFingerprint = void 0;
|
|
46
|
+
this.columns = void 0;
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
__decorate([Api.field(v.required(), z.literal(1)), __metadata("design:type", Number)], DtoLayoutProfile.prototype, "version", void 0);
|
|
50
|
+
__decorate([Api.field(z.string().trim().max(255).optional()), __metadata("design:type", String)], DtoLayoutProfile.prototype, "schemaFingerprint", void 0);
|
|
51
|
+
__decorate([Api.field(v.required(), z.array(column$1).max(200)), __metadata("design:type", Array)], DtoLayoutProfile.prototype, "columns", void 0);
|
|
52
|
+
DtoLayoutProfile = __decorate([Dto(), BeanInfo({
|
|
53
|
+
module: "a-layoutprofile"
|
|
54
|
+
})], DtoLayoutProfile);
|
|
55
|
+
|
|
56
|
+
let DtoLayoutProfileLoad = class DtoLayoutProfileLoad {
|
|
57
|
+
constructor() {
|
|
58
|
+
this.layoutKey = void 0;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
__decorate([Api.field(v.required(), z.string().trim().min(1).max(255)), __metadata("design:type", String)], DtoLayoutProfileLoad.prototype, "layoutKey", void 0);
|
|
62
|
+
DtoLayoutProfileLoad = __decorate([Dto(), BeanInfo({
|
|
63
|
+
module: "a-layoutprofile"
|
|
64
|
+
})], DtoLayoutProfileLoad);
|
|
65
|
+
|
|
66
|
+
const width = z.union([z.literal('auto'), z.number().int().min(1).max(2000)]);
|
|
67
|
+
const column = z.object({
|
|
68
|
+
key: z.string().trim().min(1).max(100),
|
|
69
|
+
visible: z.union([z.literal(true), z.literal(false)]),
|
|
70
|
+
width
|
|
71
|
+
});
|
|
72
|
+
const profile = z.object({
|
|
73
|
+
version: z.literal(1),
|
|
74
|
+
schemaFingerprint: z.string().trim().max(255).optional(),
|
|
75
|
+
columns: z.array(column).max(200)
|
|
76
|
+
});
|
|
77
|
+
let DtoLayoutProfileSave = class DtoLayoutProfileSave extends DtoLayoutProfileLoad {
|
|
78
|
+
constructor(...args) {
|
|
79
|
+
super(...args);
|
|
80
|
+
this.profile = void 0;
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
__decorate([Api.field(v.required(), profile), __metadata("design:type", Object)], DtoLayoutProfileSave.prototype, "profile", void 0);
|
|
84
|
+
DtoLayoutProfileSave = __decorate([Dto(), BeanInfo({
|
|
85
|
+
module: "a-layoutprofile"
|
|
86
|
+
})], DtoLayoutProfileSave);
|
|
87
|
+
|
|
88
|
+
let ControllerLayoutprofile = class ControllerLayoutprofile extends BeanBase {
|
|
89
|
+
async load(query, user) {
|
|
90
|
+
return await this.scope.service.layoutprofile.load(user, query.layoutKey);
|
|
91
|
+
}
|
|
92
|
+
async save(command, user) {
|
|
93
|
+
return await this.scope.service.layoutprofile.save(user, command.layoutKey, command.profile);
|
|
94
|
+
}
|
|
95
|
+
async reset(query, user) {
|
|
96
|
+
await this.scope.service.layoutprofile.reset(user, query.layoutKey);
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
__decorate([Web.get('load'), Api.body(v.optional(), v.object(DtoLayoutProfile)), __param(0, Arg.query()), __param(1, Arg.user()), __metadata("design:type", Function), __metadata("design:paramtypes", [DtoLayoutProfileLoad, Object]), __metadata("design:returntype", Promise)], ControllerLayoutprofile.prototype, "load", null);
|
|
100
|
+
__decorate([Web.post('save'), Api.body(v.object(DtoLayoutProfile)), __param(0, Arg.body(v.object(DtoLayoutProfileSave))), __param(1, Arg.user()), __metadata("design:type", Function), __metadata("design:paramtypes", [DtoLayoutProfileSave, Object]), __metadata("design:returntype", Promise)], ControllerLayoutprofile.prototype, "save", null);
|
|
101
|
+
__decorate([Web.delete('reset'), __param(0, Arg.query()), __param(1, Arg.user()), __metadata("design:type", Function), __metadata("design:paramtypes", [DtoLayoutProfileLoad, Object]), __metadata("design:returntype", Promise)], ControllerLayoutprofile.prototype, "reset", null);
|
|
102
|
+
ControllerLayoutprofile = __decorate([Controller('layoutprofile'), BeanInfo({
|
|
103
|
+
module: "a-layoutprofile"
|
|
104
|
+
})], ControllerLayoutprofile);
|
|
105
|
+
|
|
106
|
+
let ServiceLayoutprofile = class ServiceLayoutprofile extends BeanBase {
|
|
107
|
+
async load(user, layoutKey) {
|
|
108
|
+
const entity = await this.scope.model.layoutprofile.get({
|
|
109
|
+
userId: user.id,
|
|
110
|
+
layoutKey
|
|
111
|
+
});
|
|
112
|
+
return entity?.profile;
|
|
113
|
+
}
|
|
114
|
+
async save(user, layoutKey, profile) {
|
|
115
|
+
if (await this._saveExisting(user.id, layoutKey, profile)) return profile;
|
|
116
|
+
return await this.scope.redlock.lockIsolate(`layoutprofileSave.${user.id}.${layoutKey}`, async () => await this._saveAfterLock(user.id, layoutKey, profile));
|
|
117
|
+
}
|
|
118
|
+
async reset(user, layoutKey) {
|
|
119
|
+
await this.scope.redlock.lockIsolate(`layoutprofileSave.${user.id}.${layoutKey}`, async () => await this._reset(user.id, layoutKey));
|
|
120
|
+
}
|
|
121
|
+
async _saveExisting(userId, layoutKey, profile) {
|
|
122
|
+
const entity = await this.scope.model.layoutprofile.getForUpdate({
|
|
123
|
+
userId,
|
|
124
|
+
layoutKey
|
|
125
|
+
});
|
|
126
|
+
if (!entity) return false;
|
|
127
|
+
await this.scope.model.layoutprofile.updateById(entity.id, {
|
|
128
|
+
profile
|
|
129
|
+
});
|
|
130
|
+
return true;
|
|
131
|
+
}
|
|
132
|
+
async _saveAfterLock(userId, layoutKey, profile) {
|
|
133
|
+
const entity = await this.scope.model.layoutprofile.getForUpdate({
|
|
134
|
+
userId,
|
|
135
|
+
layoutKey
|
|
136
|
+
});
|
|
137
|
+
if (entity) {
|
|
138
|
+
await this.scope.model.layoutprofile.updateById(entity.id, {
|
|
139
|
+
profile
|
|
140
|
+
});
|
|
141
|
+
} else {
|
|
142
|
+
await this.scope.model.layoutprofile.insert({
|
|
143
|
+
userId,
|
|
144
|
+
layoutKey,
|
|
145
|
+
profile
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
return profile;
|
|
149
|
+
}
|
|
150
|
+
async _reset(userId, layoutKey) {
|
|
151
|
+
const entity = await this.scope.model.layoutprofile.getForUpdate({
|
|
152
|
+
userId,
|
|
153
|
+
layoutKey
|
|
154
|
+
});
|
|
155
|
+
if (entity) await this.scope.model.layoutprofile.deleteById(entity.id);
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
__decorate([Core.transaction(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, String, Object]), __metadata("design:returntype", Promise)], ServiceLayoutprofile.prototype, "_saveExisting", null);
|
|
159
|
+
__decorate([Core.transaction(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, String, Object]), __metadata("design:returntype", Promise)], ServiceLayoutprofile.prototype, "_saveAfterLock", null);
|
|
160
|
+
__decorate([Core.transaction(), __metadata("design:type", Function), __metadata("design:paramtypes", [Object, String]), __metadata("design:returntype", Promise)], ServiceLayoutprofile.prototype, "_reset", null);
|
|
161
|
+
ServiceLayoutprofile = __decorate([Service(), BeanInfo({
|
|
162
|
+
module: "a-layoutprofile"
|
|
163
|
+
})], ServiceLayoutprofile);
|
|
164
|
+
|
|
165
|
+
let MetaIndex = class MetaIndex extends BeanBase {};
|
|
166
|
+
MetaIndex = __decorate([Meta({
|
|
167
|
+
indexes: {
|
|
168
|
+
...$tableColumns('aLayoutProfile', ['userId', 'layoutKey'])
|
|
169
|
+
}
|
|
170
|
+
}), BeanInfo({
|
|
171
|
+
module: "a-layoutprofile"
|
|
172
|
+
})], MetaIndex);
|
|
173
|
+
|
|
174
|
+
let MetaRedlock = class MetaRedlock extends BeanRedlockBase {};
|
|
175
|
+
MetaRedlock = __decorate([Meta(), BeanInfo({
|
|
176
|
+
module: "a-layoutprofile"
|
|
177
|
+
})], MetaRedlock);
|
|
178
|
+
|
|
179
|
+
let MetaVersion = class MetaVersion extends BeanBase {
|
|
180
|
+
async update(options) {
|
|
181
|
+
if (options.version !== 1) return;
|
|
182
|
+
const entity = this.scope.entity.layoutprofile;
|
|
183
|
+
await this.bean.model.createTable(entity.$table, table => {
|
|
184
|
+
table.comment(entity.$comment.$table);
|
|
185
|
+
table.basicFields();
|
|
186
|
+
table.userId(entity.userId).comment(entity.$comment.userId);
|
|
187
|
+
table.string(entity.layoutKey, 255).comment(entity.$comment.layoutKey);
|
|
188
|
+
table.json(entity.profile).comment(entity.$comment.profile);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
MetaVersion = __decorate([Meta(), BeanInfo({
|
|
193
|
+
module: "a-layoutprofile"
|
|
194
|
+
})], MetaVersion);
|
|
195
|
+
|
|
196
|
+
let ScopeModuleALayoutprofile = class ScopeModuleALayoutprofile extends BeanScopeBase {};
|
|
197
|
+
ScopeModuleALayoutprofile = __decorate([Scope(), BeanInfo({
|
|
198
|
+
module: "a-layoutprofile"
|
|
199
|
+
})], ScopeModuleALayoutprofile);
|
|
200
|
+
/** scope: end */
|
|
201
|
+
|
|
202
|
+
export { ControllerLayoutprofile, DtoLayoutProfile, DtoLayoutProfileLoad, DtoLayoutProfileSave, EntityLayoutprofile, MetaIndex, MetaRedlock, MetaVersion, ModelLayoutprofile, ScopeModuleALayoutprofile, ServiceLayoutprofile };
|
|
203
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../src/entity/layoutprofile.ts","../src/model/layoutprofile.ts","../src/dto/layoutProfile.tsx","../src/dto/layoutProfileLoad.tsx","../src/dto/layoutProfileSave.tsx","../src/controller/layoutprofile.ts","../src/service/layoutprofile.ts","../src/bean/meta.index.ts","../src/bean/meta.redlock.ts","../src/bean/meta.version.ts","../src/.metadata/index.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null],"names":["EntityLayoutprofile","EntityBase","constructor","args","userId","layoutKey","profile","__decorate","Api","field","v","tableIdentity","prototype","z","string","trim","min","max","record","unknown","Entity","__z_BeanInfo","module","ModelLayoutprofile","BeanModelBase","Model","entity","disableDeleted","width","union","literal","number","int","column","object","key","visible","DtoLayoutProfile","version","schemaFingerprint","columns","required","optional","array","Array","Dto","DtoLayoutProfileLoad","DtoLayoutProfileSave","ControllerLayoutprofile","BeanBase","load","query","user","scope","service","layoutprofile","save","command","reset","Web","get","body","__param","Arg","Object","post","delete","Controller","ServiceLayoutprofile","model","id","_saveExisting","redlock","lockIsolate","_saveAfterLock","_reset","getForUpdate","updateById","insert","deleteById","Core","transaction","Service","MetaIndex","Meta","indexes","$tableColumns","MetaRedlock","BeanRedlockBase","MetaVersion","update","options","bean","createTable","$table","table","comment","$comment","basicFields","json","ScopeModuleALayoutprofile","BeanScopeBase","Scope"],"mappings":";;;;;;;;;;;;AAUO,IAAMA,mBAAmB,GAAzB,MAAMA,mBAAoB,SAAQC,UAAU,CAAA;AAAAC,EAAAA,WAAAA,CAAA,GAAAC,IAAA,EAAA;AAAA,IAAA,KAAA,CAAA,GAAAA,IAAA,CAAA;AAAA,IAAA,IAAA,CAEjDC,MAAM,GAAA,MAAA;AAAA,IAAA,I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AAM,CAACpB,OAAO,CAAC,CAAC0F,OAAO,CAACtE,MAAM,CAACuE,QAAQ,CAAC3F,OAAO,CAAC;AAC7D,IAAA,CAAC,CAAC;AACJ,EAAA;;AAZWmF,WAAW,GAAAlF,UAAA,CAAA,CADvB6E,IAAI,EAAE,EAAA/D,QAAA,CAAA;EAAAC,MAAA,EAAA;AAAA,CAAA,CAAA,CACM,EAAAmE,WAAW,CAavB;;AC4SM,IAAMW,yBAAyB,GAA/B,MAAMA,yBAA0B,SAAQC,aAAa,CAAA;AAA/CD,yBAAyB,GAAA7F,UAAA,CAAA,CADrC+F,KAAK,EAAE,EAAAjF,QAAA,CAAA;EAAAC,MAAA,EAAA;AAAA,CAAA,CAAA,CACK,EAAA8E,yBAAyB,CAAyB;AA0B/D;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IDecoratorModelOptions } from 'vona-module-a-orm';
|
|
2
|
+
import { BeanModelBase } from 'vona-module-a-orm';
|
|
3
|
+
import { EntityLayoutprofile } from '../entity/layoutprofile.ts';
|
|
4
|
+
export interface IModelOptionsLayoutprofile extends IDecoratorModelOptions<EntityLayoutprofile> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ModelLayoutprofile extends BeanModelBase<EntityLayoutprofile> {
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=layoutprofile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutprofile.d.ts","sourceRoot":"","sources":["../../src/model/layoutprofile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEhE,OAAO,EAAE,aAAa,EAAS,MAAM,mBAAmB,CAAC;AAEzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAEjE,MAAM,WAAW,0BAA2B,SAAQ,sBAAsB,CAAC,mBAAmB,CAAC;CAAG;AAElG,qBACa,kBAAmB,SAAQ,aAAa,CAAC,mBAAmB,CAAC;CAAG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { IUser } from 'vona-module-a-user';
|
|
2
|
+
import { BeanBase } from 'vona';
|
|
3
|
+
import type { ILayoutProfile } from '../types/layoutprofile.ts';
|
|
4
|
+
export declare class ServiceLayoutprofile extends BeanBase {
|
|
5
|
+
load(user: IUser, layoutKey: string): Promise<ILayoutProfile | undefined>;
|
|
6
|
+
save(user: IUser, layoutKey: string, profile: ILayoutProfile): Promise<ILayoutProfile>;
|
|
7
|
+
reset(user: IUser, layoutKey: string): Promise<void>;
|
|
8
|
+
private _saveExisting;
|
|
9
|
+
private _saveAfterLock;
|
|
10
|
+
private _reset;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=layoutprofile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutprofile.d.ts","sourceRoot":"","sources":["../../src/service/layoutprofile.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAIhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE,qBACa,oBAAqB,SAAQ,QAAQ;IAC1C,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC;IAKzE,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC;IAQtF,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;YAQ5C,aAAa;YAYb,cAAc;YAed,MAAM;CAIrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { TableIdentity } from 'table-identity';
|
|
2
|
+
export type TypeLayoutProfileWidth = number | 'auto';
|
|
3
|
+
export interface ILayoutProfileColumn {
|
|
4
|
+
key: string;
|
|
5
|
+
visible: boolean;
|
|
6
|
+
width: TypeLayoutProfileWidth;
|
|
7
|
+
}
|
|
8
|
+
export interface ILayoutProfile extends Record<string, unknown> {
|
|
9
|
+
version: 1;
|
|
10
|
+
schemaFingerprint?: string;
|
|
11
|
+
columns: ILayoutProfileColumn[];
|
|
12
|
+
}
|
|
13
|
+
export interface ILayoutProfileRecord {
|
|
14
|
+
id?: TableIdentity;
|
|
15
|
+
layoutKey: string;
|
|
16
|
+
profile: ILayoutProfile;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=layoutprofile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layoutprofile.d.ts","sourceRoot":"","sources":["../../src/types/layoutprofile.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,MAAM,MAAM,sBAAsB,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD,MAAM,WAAW,oBAAoB;IACnC,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,sBAAsB,CAAC;CAC/B;AAED,MAAM,WAAW,cAAe,SAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC7D,OAAO,EAAE,CAAC,CAAC;IACX,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,EAAE,oBAAoB,EAAE,CAAC;CACjC;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,cAAc,CAAC;CACzB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vona-module-a-layoutprofile",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"Vona Module"
|
|
7
|
+
],
|
|
8
|
+
"author": "",
|
|
9
|
+
"files": [
|
|
10
|
+
"assets",
|
|
11
|
+
"dist",
|
|
12
|
+
"src"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"types": [
|
|
18
|
+
"./src/index.ts",
|
|
19
|
+
"./dist/index.d.ts"
|
|
20
|
+
],
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./package.json": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"clean": "rimraf dist tsconfig.build.tsbuildinfo",
|
|
27
|
+
"tsc:publish": "npm run clean && node ../../../../../packages-cli/cli/src/bin/vona.ts :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
|
|
28
|
+
"prepublishOnly": "npm run tsc:publish",
|
|
29
|
+
"prepack": "clean-package",
|
|
30
|
+
"postpack": "clean-package restore"
|
|
31
|
+
},
|
|
32
|
+
"dependencies": {},
|
|
33
|
+
"title": "a-layoutprofile",
|
|
34
|
+
"vonaModule": {
|
|
35
|
+
"fileVersion": 1,
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"a-redlock": "5.0.0",
|
|
38
|
+
"a-vona": "5.0.0"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"gitHead": "b72aabf920914d5bdd2d380fb11ed933c5adfcc4"
|
|
42
|
+
}
|