x-runtime-lib 0.1.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/README.md +1 -0
- package/dist/elements/_define/items/densityItems/v1/index.d.ts +2 -0
- package/dist/elements/_define/items/index.d.ts +1 -0
- package/dist/elements/_reg/index.d.ts +2 -0
- package/dist/elements/basic/btn/v1/event/index.d.ts +2 -0
- package/dist/elements/basic/btn/v1/method/index.d.ts +2 -0
- package/dist/elements/basic/btn/v1/prop/index.d.ts +5 -0
- package/dist/elements/basic/btn/v1/view/index.vue.d.ts +2 -0
- package/dist/elements/index.d.ts +14 -0
- package/dist/elements/pkg/v1/index.d.ts +10 -0
- package/dist/elements/types.d.ts +33 -0
- package/dist/i18n/element/index.d.ts +3 -0
- package/dist/index-DYxpcVy9.js +4 -0
- package/dist/index-lXrNuo59.js +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +42 -0
- package/package.json +47 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# x-runtime-lib
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './densityItems/v1';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export type EventMeta = {
|
|
2
|
+
key: string;
|
|
3
|
+
name: string;
|
|
4
|
+
params?: {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
}[];
|
|
8
|
+
};
|
|
9
|
+
export type MethodMeta = {
|
|
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 ItemMeta = {
|
|
22
|
+
title: string;
|
|
23
|
+
value: string;
|
|
24
|
+
};
|
|
25
|
+
export type PropMeta = {
|
|
26
|
+
key: string;
|
|
27
|
+
name: string;
|
|
28
|
+
ui?: 'void' | 'strInput' | 'numInput' | 'select';
|
|
29
|
+
default?: unknown;
|
|
30
|
+
items?: ItemMeta[];
|
|
31
|
+
parent?: boolean;
|
|
32
|
+
children?: PropMeta[];
|
|
33
|
+
};
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { createI18n as s } from "vue-i18n";
|
|
2
|
+
import { nextTick as a } from "vue";
|
|
3
|
+
const c = {}, i = [
|
|
4
|
+
// basic
|
|
5
|
+
"basic/btn/v1"
|
|
6
|
+
];
|
|
7
|
+
i.forEach((n) => {
|
|
8
|
+
var t;
|
|
9
|
+
const e = (t = require("@/elements/" + n)) == null ? void 0 : t.default;
|
|
10
|
+
console.assert(e), c[e.key] = e;
|
|
11
|
+
});
|
|
12
|
+
const l = ["globality_v1", "btn_v1"], r = [
|
|
13
|
+
{
|
|
14
|
+
id: "basic",
|
|
15
|
+
name: "basic",
|
|
16
|
+
items: l
|
|
17
|
+
}
|
|
18
|
+
], m = "globality_v1", u = "ref_v1", f = {
|
|
19
|
+
groups: r,
|
|
20
|
+
globalityKey: m,
|
|
21
|
+
refKey: u
|
|
22
|
+
}, d = { v1: f }, b = (n, e) => {
|
|
23
|
+
const t = n[e];
|
|
24
|
+
return t ? typeof t == "function" ? t() : Promise.resolve(t) : new Promise((g, o) => {
|
|
25
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + e)));
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
async function v(n, e) {
|
|
29
|
+
const t = await b(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./index-DYxpcVy9.js"), "./locales/zhHans/index.ts": () => import("./index-lXrNuo59.js") }), `./locales/${e}/index.ts`);
|
|
30
|
+
return n.global.setLocaleMessage(e, t.default), a();
|
|
31
|
+
}
|
|
32
|
+
const k = s({
|
|
33
|
+
legacy: !1,
|
|
34
|
+
locale: "en",
|
|
35
|
+
fallbackLocale: "en"
|
|
36
|
+
});
|
|
37
|
+
export {
|
|
38
|
+
c as cfgs,
|
|
39
|
+
k as i18nElement,
|
|
40
|
+
v as loadLocaleMessageElement,
|
|
41
|
+
d as pkgs
|
|
42
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "x-runtime-lib",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "0.1.1",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"files": [
|
|
9
|
+
"dist"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"dev": "vite",
|
|
13
|
+
"build": "vue-tsc && vite build",
|
|
14
|
+
"preview": "vite preview",
|
|
15
|
+
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
|
|
16
|
+
"format": "prettier --write .",
|
|
17
|
+
"lint-staged": "lint-staged",
|
|
18
|
+
"prepare": "husky"
|
|
19
|
+
},
|
|
20
|
+
"lint-staged": {
|
|
21
|
+
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix",
|
|
22
|
+
"*": "prettier --write ."
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"vue": "^3.4.26",
|
|
26
|
+
"vue-i18n": "^9.13.1",
|
|
27
|
+
"vuetify": "^3.6.3"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@rushstack/eslint-patch": "^1.8.0",
|
|
31
|
+
"@types/node": "^20.12.7",
|
|
32
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
33
|
+
"@vue/eslint-config-prettier": "^9.0.0",
|
|
34
|
+
"@vue/eslint-config-typescript": "^13.0.0",
|
|
35
|
+
"eslint": "^8.57.0",
|
|
36
|
+
"eslint-plugin-vue": "^9.24.1",
|
|
37
|
+
"husky": "^9.0.11",
|
|
38
|
+
"lint-staged": "^15.2.2",
|
|
39
|
+
"prettier": "3.2.5",
|
|
40
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
41
|
+
"sass": "^1.74.1",
|
|
42
|
+
"typescript": "^5.2.2",
|
|
43
|
+
"vite": "^5.2.0",
|
|
44
|
+
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
45
|
+
"vue-tsc": "^2.0.6"
|
|
46
|
+
}
|
|
47
|
+
}
|