mortise-tenon-design 0.4.0-beta.1 → 0.4.0-beta.2
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/es/index.mjs +10 -12
- package/es/index.mjs.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +38 -2
- package/types/index.d.ts +2 -0
- package/types/installer.d.ts +9 -0
- package/es/core/build-design/installer.mjs +0 -24
- package/es/core/build-design/installer.mjs.map +0 -1
- package/es/core/build-design/package.json.mjs +0 -5
- package/es/core/build-design/package.json.mjs.map +0 -1
- package/lib/core/build-design/installer.js +0 -2
- package/lib/core/build-design/installer.js.map +0 -1
- package/lib/core/build-design/package.json.js +0 -2
- package/lib/core/build-design/package.json.js.map +0 -1
package/es/index.mjs
CHANGED
@@ -1,15 +1,13 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import { useComponentNeo as s } from "./components/component-neo/src/hooks/use-component-neo.mjs";
|
1
|
+
import { MtComponentNeo as e } from "./components/component-neo/index.mjs";
|
2
|
+
import { MtExpand as p } from "./components/expand/index.mjs";
|
3
|
+
import { MtSort as x } from "./components/sort/index.mjs";
|
4
|
+
import { MtTable as n } from "./components/table/index.mjs";
|
5
|
+
import { useComponentNeo as a } from "./components/component-neo/src/hooks/use-component-neo.mjs";
|
7
6
|
export {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
s as useComponentNeo
|
7
|
+
e as MtComponentNeo,
|
8
|
+
p as MtExpand,
|
9
|
+
x as MtSort,
|
10
|
+
n as MtTable,
|
11
|
+
a as useComponentNeo
|
14
12
|
};
|
15
13
|
//# sourceMappingURL=index.mjs.map
|
package/es/index.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/lib/index.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./components/component-neo/index.js"),o=require("./components/expand/index.js"),t=require("./components/sort/index.js"),n=require("./components/table/index.js"),r=require("./components/component-neo/src/hooks/use-component-neo.js");exports.MtComponentNeo=e.MtComponentNeo;exports.MtExpand=o.MtExpand;exports.MtSort=t.MtSort;exports.MtTable=n.MtTable;exports.useComponentNeo=r.useComponentNeo;
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "mortise-tenon-design",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.4.0-beta.
|
4
|
+
"version": "0.4.0-beta.2",
|
5
5
|
"description": "榫卯组件库",
|
6
6
|
"author": "nixwai",
|
7
7
|
"license": "ISC",
|
@@ -10,9 +10,45 @@
|
|
10
10
|
"url": "https://github.com/nixwai/mortise-tenon"
|
11
11
|
},
|
12
12
|
"exports": {
|
13
|
+
".": {
|
14
|
+
"types": "./types/index.d.ts",
|
15
|
+
"import": "./es/index.mjs",
|
16
|
+
"require": "./lib/index.js"
|
17
|
+
},
|
13
18
|
"./global": {
|
14
19
|
"types": "./global.d.ts"
|
15
|
-
}
|
20
|
+
},
|
21
|
+
"./es": {
|
22
|
+
"types": "./types/index.d.ts",
|
23
|
+
"import": "./es/index.mjs"
|
24
|
+
},
|
25
|
+
"./lib": {
|
26
|
+
"types": "./types/index.d.ts",
|
27
|
+
"require": "./lib/index.js"
|
28
|
+
},
|
29
|
+
"./es/*.mjs": {
|
30
|
+
"types": "./types/*.d.ts",
|
31
|
+
"import": "./es/*.mjs"
|
32
|
+
},
|
33
|
+
"./es/*": {
|
34
|
+
"types": [
|
35
|
+
"./types/*.d.ts",
|
36
|
+
"./types/*/index.d.ts"
|
37
|
+
],
|
38
|
+
"import": "./es/*.mjs"
|
39
|
+
},
|
40
|
+
"./lib/*.js": {
|
41
|
+
"types": "./lib/*.d.ts",
|
42
|
+
"require": "./lib/*.js"
|
43
|
+
},
|
44
|
+
"./lib/*": {
|
45
|
+
"types": [
|
46
|
+
"./types/*.d.ts",
|
47
|
+
"./types/*/index.d.ts"
|
48
|
+
],
|
49
|
+
"require": "./lib/*.js"
|
50
|
+
},
|
51
|
+
"./*": "./*"
|
16
52
|
},
|
17
53
|
"main": "lib/index.js",
|
18
54
|
"module": "es/index.mjs",
|
package/types/index.d.ts
CHANGED
@@ -1,24 +0,0 @@
|
|
1
|
-
import { MtComponentNeo as e } from "../../components/component-neo/index.mjs";
|
2
|
-
import { MtExpand as m } from "../../components/expand/index.mjs";
|
3
|
-
import { MtSort as i } from "../../components/sort/index.mjs";
|
4
|
-
import { MtTable as l } from "../../components/table/index.mjs";
|
5
|
-
import { version as s } from "./package.json.mjs";
|
6
|
-
const o = Symbol("MT_INSTALLED_KEY");
|
7
|
-
function f(r = []) {
|
8
|
-
return {
|
9
|
-
version: s,
|
10
|
-
install: (t) => {
|
11
|
-
t[o] || (t[o] = !0, r.forEach((n) => t.use(n)));
|
12
|
-
}
|
13
|
-
};
|
14
|
-
}
|
15
|
-
const L = f([
|
16
|
-
e,
|
17
|
-
m,
|
18
|
-
i,
|
19
|
-
l
|
20
|
-
]);
|
21
|
-
export {
|
22
|
-
L as default
|
23
|
-
};
|
24
|
-
//# sourceMappingURL=installer.mjs.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"installer.mjs","sources":["../../../../../packages/core/build-design/installer.ts"],"sourcesContent":["import type { App, Component, Plugin } from 'vue';\r\nimport {\r\n MtComponentNeo,\r\n MtExpand,\r\n MtSort,\r\n MtTable,\r\n} from '@mortise-tenon/components';\r\nimport { version } from './package.json';\r\n\r\nconst INSTALLED_KEY = Symbol('MT_INSTALLED_KEY');\r\n\r\nfunction makeInstaller(components: Component[] = []) {\r\n const install = (app: App & { [INSTALLED_KEY]?: boolean }) => {\r\n if (app[INSTALLED_KEY])\r\n return;\r\n\r\n app[INSTALLED_KEY] = true;\r\n components.forEach(c => app.use(c as Plugin));\r\n };\r\n\r\n return {\r\n version,\r\n install,\r\n };\r\n}\r\n\r\nexport default makeInstaller([\r\n MtComponentNeo,\r\n MtExpand,\r\n MtSort,\r\n MtTable,\r\n]);\r\n"],"names":["INSTALLED_KEY","makeInstaller","components","version","app","c","installer","MtComponentNeo","MtExpand","MtSort","MtTable"],"mappings":";;;;;AASA,MAAMA,IAAgB,OAAO,kBAAkB;AAE/C,SAASC,EAAcC,IAA0B,IAAI;AAS5C,SAAA;AAAA,IACL,SAAAC;AAAA,IACA,SAVc,CAACC,MAA6C;AAC5D,MAAIA,EAAIJ,CAAa,MAGrBI,EAAIJ,CAAa,IAAI,IACrBE,EAAW,QAAQ,CAAAG,MAAKD,EAAI,IAAIC,CAAW,CAAC;AAAA,IAC9C;AAAA,EAKA;AACF;AAEA,MAAAC,IAAeL,EAAc;AAAA,EAC3BM;AAAA,EACAC;AAAA,EACAC;AAAA,EACAC;AACF,CAAC;"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"package.json.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1,2 +0,0 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("../../components/component-neo/index.js"),s=require("../../components/expand/index.js"),u=require("../../components/sort/index.js"),l=require("../../components/table/index.js"),c=require("./package.json.js"),t=Symbol("MT_INSTALLED_KEY");function a(n=[]){const r=e=>{e[t]||(e[t]=!0,n.forEach(o=>e.use(o)))};return{version:c.version,install:r}}const d=a([i.MtComponentNeo,s.MtExpand,u.MtSort,l.MtTable]);exports.default=d;
|
2
|
-
//# sourceMappingURL=installer.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"installer.js","sources":["../../../../../packages/core/build-design/installer.ts"],"sourcesContent":["import type { App, Component, Plugin } from 'vue';\r\nimport {\r\n MtComponentNeo,\r\n MtExpand,\r\n MtSort,\r\n MtTable,\r\n} from '@mortise-tenon/components';\r\nimport { version } from './package.json';\r\n\r\nconst INSTALLED_KEY = Symbol('MT_INSTALLED_KEY');\r\n\r\nfunction makeInstaller(components: Component[] = []) {\r\n const install = (app: App & { [INSTALLED_KEY]?: boolean }) => {\r\n if (app[INSTALLED_KEY])\r\n return;\r\n\r\n app[INSTALLED_KEY] = true;\r\n components.forEach(c => app.use(c as Plugin));\r\n };\r\n\r\n return {\r\n version,\r\n install,\r\n };\r\n}\r\n\r\nexport default makeInstaller([\r\n MtComponentNeo,\r\n MtExpand,\r\n MtSort,\r\n MtTable,\r\n]);\r\n"],"names":["INSTALLED_KEY","makeInstaller","components","install","app","c","version","installer","MtComponentNeo","MtExpand","MtSort","MtTable"],"mappings":"6UASMA,EAAgB,OAAO,kBAAkB,EAE/C,SAASC,EAAcC,EAA0B,GAAI,CAC7C,MAAAC,EAAWC,GAA6C,CACxDA,EAAIJ,CAAa,IAGrBI,EAAIJ,CAAa,EAAI,GACrBE,EAAW,QAAQG,GAAKD,EAAI,IAAIC,CAAW,CAAC,EAC9C,EAEO,MAAA,CAAA,QACLC,EAAA,QACA,QAAAH,CACF,CACF,CAEA,MAAAI,EAAeN,EAAc,CAC3BO,EAAA,eACAC,EAAA,SACAC,EAAA,OACAC,EAAAA,OACF,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"package.json.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|