zova-module-a-model 5.0.24 → 5.0.26

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-model",
3
- "version": "5.0.24",
3
+ "version": "5.0.26",
4
4
  "title": "a-model",
5
5
  "zovaModule": {
6
6
  "capabilities": {
@@ -48,12 +48,12 @@
48
48
  "scripts": {
49
49
  "clean": "tsc -b --clean",
50
50
  "tsc:publish": "npm run clean && tsc -b",
51
- "prepublishOnly": "npm run tsc:publish"
51
+ "_prepublishOnly": "npm run tsc:publish"
52
52
  },
53
53
  "dependencies": {
54
54
  "@tanstack/query-persist-client-core": "^5.45.0",
55
55
  "@tanstack/vue-query": "^5.45.0",
56
56
  "localforage": "^1.10.0"
57
57
  },
58
- "gitHead": "73cbbe8383e40d9efc1541de1f539e4c478c369c"
58
+ "gitHead": "b87bdd8540395b181993a617d33cad57b3c4d446"
59
59
  }
@@ -0,0 +1,33 @@
1
+ /** beans: begin */
2
+ export * from '../bean/bean.modelBase.js';
3
+ import { BeanModelBase } from '../bean/bean.modelBase.js';
4
+ import 'zova';
5
+ declare module 'zova' {
6
+ export interface IBeanRecord {
7
+ 'a-model.bean.modelBase': BeanModelBase;
8
+ }
9
+ }
10
+ /** beans: end */
11
+ /** config: begin */
12
+ export * from '../config/config.js';
13
+ import { config } from '../config/config.js';
14
+ /** config: end */
15
+ /** scope: begin */
16
+ import { BeanScopeBase, Scope, TypeModuleResource } from 'zova';
17
+
18
+ @Scope()
19
+ export class ScopeModuleAModel extends BeanScopeBase {}
20
+
21
+ export interface ScopeModuleAModel extends TypeModuleResource<any, typeof config, any, any, any, any> {}
22
+
23
+ import 'zova';
24
+ declare module 'zova' {
25
+ export interface IBeanScopeRecord {
26
+ 'a-model': ScopeModuleAModel;
27
+ }
28
+
29
+ export interface IBeanScopeConfig {
30
+ 'a-model': ReturnType<typeof config>;
31
+ }
32
+ }
33
+ /** scope: end */
@@ -0,0 +1,2 @@
1
+ export const __ThisModule__ = 'a-model';
2
+ export { ScopeModuleAModel as ScopeModule } from './index.js';
@@ -1,6 +1,6 @@
1
1
  import { BeanBase, Cast } from 'zova';
2
- import { BeanModelBase } from '../virtual.model.js';
3
- import { ScopeModule, __ThisModule__ } from '../../resource/this.js';
2
+ import { BeanModelBase } from '../bean.modelBase.js';
3
+ import { ScopeModule, __ThisModule__ } from '../../.metadata/this.js';
4
4
 
5
5
  export class BeanModelLast<TScopeModule = unknown> extends BeanBase<TScopeModule> {
6
6
  get self() {
@@ -1,5 +1,5 @@
1
1
  import { BeanBase, Local } from 'zova';
2
- import { ScopeModule } from '../resource/this.js';
2
+ import { ScopeModule } from '../.metadata/this.js';
3
3
  import { dehydrate, hydrate, QueryClient, VueQueryPlugin, VueQueryPluginOptions } from '@tanstack/vue-query';
4
4
 
5
5
  @Local()
@@ -35,6 +35,4 @@ export class LocalStorage extends BeanBase<ScopeModule> {
35
35
  hydrate(queryClient, this.ctx.meta.ssr.state.query);
36
36
  }
37
37
  }
38
-
39
- protected __dispose__() {}
40
38
  }
@@ -1,7 +1,7 @@
1
1
  import { Query } from '@tanstack/vue-query';
2
2
  import { BeanSimple, CookieOptions } from 'zova';
3
3
  import { QueryMetaPersister, resolveMaxAgeTime } from '../types.js';
4
- import { __ThisModule__ } from '../resource/this.js';
4
+ import { __ThisModule__ } from '../.metadata/this.js';
5
5
 
6
6
  export class CookieWrapper extends BeanSimple {
7
7
  options: QueryMetaPersister;
package/src/index.ts CHANGED
@@ -1,9 +1,3 @@
1
- import './assets/css/module.scss';
2
- export * from './config/index.js';
3
- export * from './resource/index.js';
4
- export * from './api/index.js';
5
- export * from './routes.js';
1
+ export * from './.metadata/index.js';
6
2
  export * from './types.js';
7
3
  export * from './monkey.js';
8
-
9
- import './typings.js';
package/src/api/index.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './interface/index.js';
2
- export * from './service/index.js';
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export const services = {};
@@ -1 +0,0 @@
1
-
File without changes
@@ -1 +0,0 @@
1
- export const constants = null;
@@ -1 +0,0 @@
1
- export enum Errors {}
@@ -1,4 +0,0 @@
1
- export * from './locales.js';
2
- export * from './errors.js';
3
- export * from './config.js';
4
- export * from './constants.js';
@@ -1 +0,0 @@
1
- export default {};
@@ -1 +0,0 @@
1
- export default {};
@@ -1,7 +0,0 @@
1
- import en_us from './locale/en-us.js';
2
- import zh_cn from './locale/zh-cn.js';
3
-
4
- export const locales = {
5
- 'en-us': en_us,
6
- 'zh-cn': zh_cn,
7
- };
package/src/page/.gitkeep DELETED
File without changes
@@ -1,5 +0,0 @@
1
- export * from '../bean/virtual.model.js';
2
- import 'zova';
3
- declare module 'zova' {
4
- export interface IBeanRecord {}
5
- }
@@ -1 +0,0 @@
1
- export const components = {};
@@ -1,3 +0,0 @@
1
- export * from './scope.js';
2
- export * from './beans.js';
3
- export * from './components.js';
@@ -1,32 +0,0 @@
1
- import { BeanScopeBase, Scope, TypeLocaleBase, TypeModuleResource } from 'zova';
2
- import { config, Errors, locales, constants } from '../config/index.js';
3
- import { components } from './components.js';
4
- import { services } from '../api/service/index.js';
5
-
6
- @Scope()
7
- export class ScopeModuleAModel extends BeanScopeBase {}
8
-
9
- export interface ScopeModuleAModel
10
- extends TypeModuleResource<
11
- typeof components,
12
- typeof config,
13
- typeof Errors,
14
- (typeof locales)[TypeLocaleBase],
15
- typeof constants,
16
- typeof services
17
- > {}
18
-
19
- import 'zova';
20
- declare module 'zova' {
21
- export interface IBeanScopeRecord {
22
- 'a-model': ScopeModuleAModel;
23
- }
24
-
25
- export interface IBeanScopeConfig {
26
- 'a-model': ReturnType<typeof config>;
27
- }
28
-
29
- export interface IBeanScopeLocale {
30
- 'a-model': (typeof locales)[TypeLocaleBase];
31
- }
32
- }
@@ -1,4 +0,0 @@
1
- export const __ThisModule__ = 'a-model';
2
- export type __ThisModuleType__ = typeof __ThisModule__;
3
-
4
- export { ScopeModuleAModel as ScopeModule } from './scope.js';
package/src/routes.ts DELETED
@@ -1,3 +0,0 @@
1
- import { IModuleRoute } from 'zova-module-a-router';
2
-
3
- export const routes: IModuleRoute[] = [];
package/src/typings.ts DELETED
@@ -1 +0,0 @@
1
- export {};