x-runtime-lib 0.1.8 → 0.1.10

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.
@@ -1,6 +1,6 @@
1
- export * from './_pkg';
2
- export * from './types';
3
1
  import { ZElement } from './types';
4
2
  export declare const elements: {
5
3
  [key: string]: ZElement;
6
4
  };
5
+ export * from './types';
6
+ export * from './_pkg';
package/dist/index.d.ts CHANGED
@@ -2,4 +2,5 @@ declare const _default: {
2
2
  install: (app: import("vue").App<any>) => void;
3
3
  };
4
4
  export default _default;
5
+ export * from './element';
5
6
  export * from './i18n/element';
package/dist/index.js CHANGED
@@ -1,28 +1,74 @@
1
- import { resolveComponent as c, openBlock as r, createBlock as a, nextTick as i } from "vue";
2
- const l = (n, t) => {
3
- const e = n.__vccOpts || n;
4
- for (const [s, o] of t)
1
+ import { resolveComponent as a, openBlock as r, createBlock as l, nextTick as i } from "vue";
2
+ const m = (t, n) => {
3
+ const e = t.__vccOpts || t;
4
+ for (const [s, o] of n)
5
5
  e[s] = o;
6
6
  return e;
7
- }, m = {};
8
- function u(n, t) {
9
- const e = c("v-btn");
10
- return r(), a(e);
7
+ }, u = {};
8
+ function p(t, n) {
9
+ const e = a("v-btn");
10
+ return r(), l(e);
11
11
  }
12
- const _ = /* @__PURE__ */ l(m, [["render", u]]), f = (n) => {
13
- n.component("z-btn-v1", _);
14
- }, p = (n, t) => {
15
- const e = n[t];
12
+ const f = /* @__PURE__ */ m(u, [["render", p]]), v = (t) => {
13
+ t.component("z-btn-v1", f);
14
+ }, _ = [
15
+ {
16
+ title: "item.default",
17
+ value: "default"
18
+ },
19
+ {
20
+ title: "item.comfortable",
21
+ value: "comfortable"
22
+ },
23
+ {
24
+ title: "item.compact",
25
+ value: "compact"
26
+ }
27
+ ], c = {
28
+ key: "settings",
29
+ keyFlag: !0,
30
+ name: "prop.settings",
31
+ children: [
32
+ {
33
+ key: "density",
34
+ name: "prop.density",
35
+ ui: "select",
36
+ items: _,
37
+ default: "default"
38
+ }
39
+ ]
40
+ }, d = {
41
+ key: "btn_v1",
42
+ name: "comp.button",
43
+ comp: "z-btn-v1",
44
+ leaf: !0,
45
+ events: [
46
+ {
47
+ key: "click",
48
+ name: "evt.click"
49
+ }
50
+ ],
51
+ methods: [],
52
+ props: {
53
+ pageCommon: [c],
54
+ compCommon: [c]
55
+ }
56
+ }, y = {
57
+ // basic
58
+ btn_v1: d
59
+ }, b = (t, n) => {
60
+ const e = t[n];
16
61
  return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((s, o) => {
17
- (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + t)));
62
+ (typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(o.bind(null, new Error("Unknown variable dynamic import: " + n)));
18
63
  });
19
64
  };
20
- async function b(n, t) {
21
- const e = await p(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-BdBaKtic.js"), "./locales/zhHans.ts": () => import("./zhHans-CwlEZHgw.js") }), `./locales/${t}.ts`);
22
- return n.global.setLocaleMessage(t, e.default), i();
65
+ async function g(t, n) {
66
+ const e = await b(/* @__PURE__ */ Object.assign({ "./locales/en.ts": () => import("./en-BdBaKtic.js"), "./locales/zhHans.ts": () => import("./zhHans-CwlEZHgw.js") }), `./locales/${n}.ts`);
67
+ return t.global.setLocaleMessage(n, e.default), i();
23
68
  }
24
- const d = { install: f };
69
+ const x = { install: v };
25
70
  export {
26
- d as default,
27
- b as loadLocaleMessageElement
71
+ x as default,
72
+ y as elements,
73
+ g as loadLocaleMessageElement
28
74
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "x-runtime-lib",
3
3
  "private": false,
4
- "version": "0.1.8",
4
+ "version": "0.1.10",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",