morghulis 3.0.0 → 3.0.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.
@@ -1,24 +1,32 @@
1
- import { defineComponent as s, createElementBlock as a, openBlock as r, Fragment as c, createElementVNode as n, toDisplayString as o } from "vue";
2
- const l = { class: "m-button" }, p = { class: "m-button" }, i = /* @__PURE__ */ s({
1
+ import { defineComponent as s, resolveComponent as o, createBlock as p, openBlock as a, withCtx as n, createVNode as _, createTextVNode as l, toDisplayString as i } from "vue";
2
+ const u = /* @__PURE__ */ s({
3
3
  __name: "MButton",
4
4
  props: {
5
5
  text: { default: "text" }
6
6
  },
7
- setup(e) {
8
- return (t, u) => (r(), a(c, null, [
9
- n("span", l, o(t.text), 1),
10
- n("button", null, [
11
- n("span", p, o(t.text), 1)
12
- ])
13
- ], 64));
7
+ setup(t) {
8
+ return (e, m) => {
9
+ const r = o("el-text"), c = o("el-button");
10
+ return a(), p(c, { type: "success" }, {
11
+ default: n(() => [
12
+ _(r, { type: "primary" }, {
13
+ default: n(() => [
14
+ l(i(e.text), 1)
15
+ ]),
16
+ _: 1
17
+ })
18
+ ]),
19
+ _: 1
20
+ });
21
+ };
14
22
  }
15
- }), _ = (e) => (e = Object.assign({ baseURL: "/api/", minioURL: "/dfs/" }, e || {}), {
16
- install(t) {
17
- t.provide("options", e), t.component("MButton", i);
23
+ }), x = (t) => (t = Object.assign({ baseURL: "/api/", minioURL: "/dfs/" }, t || {}), {
24
+ install(e) {
25
+ e.provide("options", t), e.component("MButton", u);
18
26
  }
19
27
  });
20
28
  export {
21
- i as MButton,
22
- _ as createMorghulis
29
+ u as MButton,
30
+ x as createMorghulis
23
31
  };
24
32
  //# sourceMappingURL=morghulis.es.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"morghulis.es.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\n// const Morghulis = {\n// install(app: App) {\n// console.log('[Morghulis] install called')\n// app.component('MButton', MButton)\n// }\n// }\n\nexport const createMorghulis = (options?: MorghulisOptions) => {\n options = Object.assign({baseURL: '/api/', minioURL: '/dfs/'}, options || {})\n return {\n install(Vue: App) {\n Vue.provide('options', options)\n Vue.component('MButton', MButton)\n }\n }\n}\n\nexport {MButton}\n// export default Morghulis"],"names":["createMorghulis","options","Vue","MButton"],"mappings":";;;;;;;;;;;;;;IAkBaA,IAAkB,CAACC,OAClBA,IAAA,OAAO,OAAO,EAAC,SAAS,SAAS,UAAU,QAAO,GAAGA,KAAW,EAAE,GACrE;AAAA,EACH,QAAQC,GAAU;AACV,IAAAA,EAAA,QAAQ,WAAWD,CAAO,GAC1BC,EAAA,UAAU,WAAWC,CAAO;AAAA,EAAA;AAExC;"}
1
+ {"version":3,"file":"morghulis.es.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./components/button/MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\nexport const createMorghulis = (options?: MorghulisOptions) => {\n options = Object.assign({baseURL: '/api/', minioURL: '/dfs/'}, options || {})\n return {\n install(Vue: App) {\n Vue.provide('options', options)\n Vue.component('MButton', MButton)\n }\n }\n}\n\nexport {MButton}"],"names":["createMorghulis","options","Vue","MButton"],"mappings":";;;;;;;;;;;;;;;;;;;;;;IAWaA,IAAkB,CAACC,OAClBA,IAAA,OAAO,OAAO,EAAC,SAAS,SAAS,UAAU,QAAO,GAAGA,KAAW,EAAE,GACrE;AAAA,EACH,QAAQC,GAAU;AACV,IAAAA,EAAA,QAAQ,WAAWD,CAAO,GAC1BC,EAAA,UAAU,WAAWC,CAAO;AAAA,EAAA;AAExC;"}
@@ -1,3 +1,3 @@
1
1
  (function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.Morghulis={},t.Vue))})(this,function(t,e){"use strict";var i=document.createElement("style");i.textContent=`.m-button{color:red}
2
- /*$vite$:1*/`,document.head.appendChild(i);const r={class:"m-button"},l={class:"m-button"},s=e.defineComponent({__name:"MButton",props:{text:{default:"text"}},setup(o){return(n,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("span",r,e.toDisplayString(n.text),1),e.createElementVNode("button",null,[e.createElementVNode("span",l,e.toDisplayString(n.text),1)])],64))}}),c=o=>(o=Object.assign({baseURL:"/api/",minioURL:"/dfs/"},o||{}),{install(n){n.provide("options",o),n.component("MButton",s)}});t.MButton=s,t.createMorghulis=c,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
2
+ /*$vite$:1*/`,document.head.appendChild(i);const r=e.defineComponent({__name:"MButton",props:{text:{default:"text"}},setup(n){return(o,l)=>{const c=e.resolveComponent("el-text"),d=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(d,{type:"success"},{default:e.withCtx(()=>[e.createVNode(c,{type:"primary"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.text),1)]),_:1})]),_:1})}}}),s=n=>(n=Object.assign({baseURL:"/api/",minioURL:"/dfs/"},n||{}),{install(o){o.provide("options",n),o.component("MButton",r)}});t.MButton=r,t.createMorghulis=s,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})});
3
3
  //# sourceMappingURL=morghulis.umd.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"morghulis.umd.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\n// const Morghulis = {\n// install(app: App) {\n// console.log('[Morghulis] install called')\n// app.component('MButton', MButton)\n// }\n// }\n\nexport const createMorghulis = (options?: MorghulisOptions) => {\n options = Object.assign({baseURL: '/api/', minioURL: '/dfs/'}, options || {})\n return {\n install(Vue: App) {\n Vue.provide('options', options)\n Vue.component('MButton', MButton)\n }\n }\n}\n\nexport {MButton}\n// export default Morghulis"],"names":["createMorghulis","options","Vue","MButton"],"mappings":";+YAkBaA,EAAmBC,IAClBA,EAAA,OAAO,OAAO,CAAC,QAAS,QAAS,SAAU,OAAO,EAAGA,GAAW,EAAE,EACrE,CACH,QAAQC,EAAU,CACVA,EAAA,QAAQ,UAAWD,CAAO,EAC1BC,EAAA,UAAU,UAAWC,CAAO,CAAA,CAExC"}
1
+ {"version":3,"file":"morghulis.umd.js","sources":["../packages/index.ts"],"sourcesContent":["import {App} from \"vue\";\nimport MButton from \"./components/button/MButton.vue\";\nimport './style.css'\nimport type {MorghulisOptions} from \"./types\";\n\ndeclare module \"vue\" {\n interface GlobalComponents {\n MButton: typeof MButton;\n }\n}\n\nexport const createMorghulis = (options?: MorghulisOptions) => {\n options = Object.assign({baseURL: '/api/', minioURL: '/dfs/'}, options || {})\n return {\n install(Vue: App) {\n Vue.provide('options', options)\n Vue.component('MButton', MButton)\n }\n }\n}\n\nexport {MButton}"],"names":["createMorghulis","options","Vue","MButton"],"mappings":";8ZAWaA,EAAmBC,IAClBA,EAAA,OAAO,OAAO,CAAC,QAAS,QAAS,SAAU,OAAO,EAAGA,GAAW,EAAE,EACrE,CACH,QAAQC,EAAU,CACVA,EAAA,QAAQ,UAAWD,CAAO,EAC1BC,EAAA,UAAU,UAAWC,CAAO,CAAA,CAExC"}
@@ -1,5 +1,5 @@
1
1
  import { App } from "vue";
2
- import MButton from "./MButton.vue";
2
+ import MButton from "./components/button/MButton.vue";
3
3
  import './style.css';
4
4
  import type { MorghulisOptions } from "./types";
5
5
  declare module "vue" {
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
7
7
  ],
8
8
  "main": "./dist/morghulis.umd.js",
9
9
  "module": "./dist/morghulis.es.js",
10
- "types": "./dist/index.d.ts",
10
+ "types": "./dist/types/index.d.ts",
11
11
  "exports": {
12
12
  ".": {
13
- "types": "./dist/index.d.ts",
13
+ "types": "./dist/types/index.d.ts",
14
14
  "import": "./dist/morghulis.es.js",
15
15
  "require": "./dist/morghulis.umd.js"
16
16
  },
@@ -22,6 +22,7 @@
22
22
  "preview": "vite preview"
23
23
  },
24
24
  "dependencies": {
25
+ "element-plus": "^2.9.8",
25
26
  "vue": "^3.5.13"
26
27
  },
27
28
  "devDependencies": {
@@ -29,6 +30,7 @@
29
30
  "@vitejs/plugin-vue": "^5.2.3",
30
31
  "typescript": "~5.8.0",
31
32
  "vite": "^6.2.4",
33
+ "vite-plugin-vue-devtools": "^7.7.2",
32
34
  "vue-tsc": "^2.2.8"
33
35
  }
34
36
  }
File without changes