x-runtime-lib 0.3.2 → 0.3.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.
@@ -2,13 +2,6 @@
2
2
  import { Ref } from 'vue';
3
3
  import { Env, Mode, Type, Data, Depends } from '../types';
4
4
  import Interpreter from 'js-interpreter';
5
- interface I18n {
6
- global: {
7
- t(key: string): string;
8
- };
9
- }
10
- export declare function provideI18n(i18n: I18n): void;
11
- export declare function injectI18n(): I18n;
12
5
  export declare function provideEnv(env: Env): void;
13
6
  export declare function injectEnv(): Env;
14
7
  export declare function provideMode(mode: Mode): void;
@@ -0,0 +1,18 @@
1
+ const t = {
2
+ "x-runtime-lib": {
3
+ basic: "基本",
4
+ button: "按钮",
5
+ circularRef: "循环引用",
6
+ click: "单击",
7
+ comfortable: "舒适",
8
+ compNotAvail: "组件不可用",
9
+ compact: "紧凑",
10
+ default: "缺省",
11
+ density: "密度",
12
+ ref: "引用",
13
+ settings: "设置"
14
+ }
15
+ };
16
+ export {
17
+ t as default
18
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.3.2",
4
+ "version": "0.3.6",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
@@ -24,12 +24,12 @@
24
24
  "dependencies": {
25
25
  "js-interpreter": "^5.1.2",
26
26
  "lodash-es": "^4.17.21",
27
- "x-essential-lib": "^0.4.2"
27
+ "x-essential-lib": "^0.5.66"
28
28
  },
29
29
  "peerDependencies": {
30
- "vue": "^3.4.27",
30
+ "vue": "^3.4.30",
31
31
  "vue-i18n": "^9.13.1",
32
- "vuetify": "^3.6.8"
32
+ "vuetify": "^3.6.10"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@rushstack/eslint-patch": "^1.8.0",
@@ -43,12 +43,12 @@
43
43
  "husky": "^9.0.11",
44
44
  "lint-staged": "^15.2.2",
45
45
  "prettier": "3.2.5",
46
- "rollup-plugin-copy": "^3.5.0",
47
46
  "sass": "^1.74.1",
48
47
  "typescript": "^5.2.2",
49
48
  "vite": "^5.2.0",
50
49
  "vite-plugin-css-injected-by-js": "^3.5.0",
51
50
  "vite-plugin-vuetify": "^2.0.3",
51
+ "vue-router": "^4.4.0",
52
52
  "vue-tsc": "^2.0.6"
53
53
  }
54
54
  }
@@ -1 +0,0 @@
1
- export declare const install: (app: any) => void;
@@ -1,2 +0,0 @@
1
- import { ZItem } from '../../../types';
2
- export declare const densityItemsV1: ZItem[];
@@ -1,2 +0,0 @@
1
- import { ZPkgs } from '../types';
2
- export declare const pkgs: ZPkgs;
@@ -1,3 +0,0 @@
1
- import { ZPkg } from '../../types';
2
- declare const pkg: ZPkg;
3
- export default pkg;
@@ -1,2 +0,0 @@
1
- import { ZElements } from './types';
2
- export declare const elements: ZElements;
@@ -1,68 +0,0 @@
1
- export type ZEvent = {
2
- key: string;
3
- name: string;
4
- params?: {
5
- key: string;
6
- name: string;
7
- }[];
8
- };
9
- export type ZMethod = {
10
- key: string;
11
- name: string;
12
- inputs?: {
13
- key: string;
14
- name: string;
15
- }[];
16
- outputs?: {
17
- key: string;
18
- name: string;
19
- }[];
20
- };
21
- export type ZItem = {
22
- title: string;
23
- value: string;
24
- };
25
- export type ZProp = {
26
- key: string;
27
- keyFlag?: boolean;
28
- name: string;
29
- children?: ZProp[];
30
- ui?: 'void' | 'strInput' | 'numInput' | 'select';
31
- items?: ZItem[];
32
- array?: boolean;
33
- default?: unknown;
34
- readonly?: boolean;
35
- static?: boolean;
36
- value?: unknown;
37
- };
38
- export type ZProps = {
39
- [key: string]: ZProp[];
40
- };
41
- export type ZElement = {
42
- key: string;
43
- name: string;
44
- comp: string;
45
- leaf: boolean;
46
- events: ZEvent[];
47
- methods: ZMethod[];
48
- props: ZProps;
49
- internal?: boolean;
50
- };
51
- export type ZElements = {
52
- [key: string]: ZElement;
53
- };
54
- export type ZGroup = {
55
- key: string;
56
- name: string;
57
- items: string[];
58
- };
59
- export type ZPkg = {
60
- version: string;
61
- elements: Set<string>;
62
- globalityKey: string;
63
- refKey: string;
64
- groups: ZGroup[];
65
- };
66
- export type ZPkgs = {
67
- [key: string]: ZPkg;
68
- };
@@ -1,2 +0,0 @@
1
- export declare function getPropTag(type: string, subtype: string): string | undefined;
2
- export declare function spawnNode(type: string, subtype: string, version: string, ref: boolean, key: string): object | undefined;
@@ -1,16 +0,0 @@
1
- const e = {
2
- basic: "Basic",
3
- button: "Button",
4
- circularRef: "Circular Reference",
5
- click: "Click",
6
- comfortable: "Comfortable",
7
- compNotAvail: "Comp Not Available",
8
- compact: "Compact",
9
- default: "Default",
10
- density: "Density",
11
- ref: "Reference",
12
- settings: "Settings"
13
- };
14
- export {
15
- e as default
16
- };
@@ -1,18 +0,0 @@
1
- export interface Context {
2
- env: string;
3
- type: string;
4
- data: Data;
5
- }
6
- interface Data {
7
- type: string;
8
- version: string;
9
- view: View;
10
- }
11
- interface View {
12
- nodes: Node[];
13
- }
14
- export interface Node {
15
- id: string;
16
- children?: Node[];
17
- }
18
- export {};
@@ -1,16 +0,0 @@
1
- const t = {
2
- basic: "基本",
3
- button: "按钮",
4
- circularRef: "循环引用",
5
- click: "单击",
6
- comfortable: "舒适",
7
- compNotAvail: "组件不可用",
8
- compact: "紧凑",
9
- default: "缺省",
10
- density: "密度",
11
- ref: "引用",
12
- settings: "设置"
13
- };
14
- export {
15
- t as default
16
- };