augustine-jkmap 1.0.3 → 1.0.5

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/dist/demo.html ADDED
@@ -0,0 +1 @@
1
+ <!doctype html><meta charset="utf-8"><title>augustine-jkmap demo</title><script src="./augustine-jkmap.umd.js"></script><link rel="stylesheet" href="./augustine-jkmap.css"><script>console.log(augustine-jkmap)</script>
Binary file
package/package.json CHANGED
@@ -1,59 +1,36 @@
1
1
  {
2
2
  "name": "augustine-jkmap",
3
- "version": "1.0.3",
4
- "description": "兼容Vue2/Vue3的通用组件库,支持TS、按需加载、主题定制",
5
- "main": "dist/index.umd.js",
6
- "module": "dist/index.es.js",
7
- "types": "dist/types/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/types/index.d.ts",
11
- "import": "./dist/index.es.js",
12
- "require": "./dist/index.umd.js"
13
- },
14
- "./theme": {
15
- "import": "./dist/css/theme.css",
16
- "require": "./dist/css/theme.css"
17
- }
18
- },
3
+ "version": "1.0.5",
4
+ "description": "A Vue 2 component library",
5
+ "main": "dist/augustine-jkmap.common.js",
6
+ "unpkg": "dist/augustine-jkmap.umd.min.js",
19
7
  "files": [
20
- "dist"
8
+ "dist",
9
+ "README.md"
21
10
  ],
22
11
  "scripts": {
23
- "build": "vite build",
24
- "prepublishOnly": "npm run build"
12
+ "build": "vue-cli-service build --target lib --name augustine-jkmap src/index.js",
13
+ "prepare": "npm run build"
14
+ },
15
+ "peerDependencies": {
16
+ "vue": "^2.6.0 || ^2.7.0"
17
+ },
18
+ "devDependencies": {
19
+ "@vue/cli-service": "~5.0.0",
20
+ "vue": "^2.7.16",
21
+ "vue-template-compiler": "^2.7.16"
25
22
  },
26
23
  "keywords": [
24
+ "vue",
27
25
  "vue2",
28
- "vue3",
29
- "typescript",
30
- "components",
31
- "universal",
32
- "vue-demi",
33
- "按需加载",
34
- "主题定制"
26
+ "ui",
27
+ "component"
35
28
  ],
36
- "author": "",
37
29
  "license": "MIT",
38
- "peerDependencies": {
39
- "vue": "^2.6.0 || ^2.7.0 || ^3.2.0"
40
- },
41
30
  "dependencies": {
42
- "vue-demi": "^0.14.6"
43
- },
44
- "devDependencies": {
45
- "@vitejs/plugin-vue": "^4.4.0",
46
- "@vitejs/plugin-vue2": "^2.3.1",
47
- "@vue/tsconfig": "^0.5.1",
48
- "sass": "^1.69.5",
49
- "typescript": "^5.2.2",
50
- "vite": "^4.5.0",
51
- "vite-plugin-dts": "^3.6.0",
52
- "vue": "^2.7.14",
53
- "vue3": "npm:vue@^3.3.4",
54
- "vue-template-compiler": "^2.7.14"
55
- },
56
- "engines": {
57
- "node": ">=14.0.0"
31
+ "axios": "^1.13.2",
32
+ "esri-loader": "^3.7.0",
33
+ "terraformer-arcgis-parser": "^1.1.0",
34
+ "terraformer-wkt-parser": "^1.2.1"
58
35
  }
59
36
  }
package/dist/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { App } from 'vue-demi';
2
- import { default as MyButton } from './components/MyButton.vue';
3
-
4
- declare const VueUniversalComponents: {
5
- install: (app: App) => void;
6
- version: string;
7
- };
8
- export default VueUniversalComponents;
9
- export { MyButton };
package/dist/index.es.js DELETED
@@ -1,65 +0,0 @@
1
- import "vue";
2
- function h(t, e, r, l, s, i, a, p) {
3
- var n = typeof t == "function" ? t.options : t;
4
- e && (n.render = e, n.staticRenderFns = r, n._compiled = !0), l && (n.functional = !0), i && (n._scopeId = "data-v-" + i);
5
- var _;
6
- if (a ? (_ = function(o) {
7
- o = o || // cached call
8
- this.$vnode && this.$vnode.ssrContext || // stateful
9
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !o && typeof __VUE_SSR_CONTEXT__ != "undefined" && (o = __VUE_SSR_CONTEXT__), s && s.call(this, o), o && o._registeredComponents && o._registeredComponents.add(a);
10
- }, n._ssrRegister = _) : s && (_ = p ? function() {
11
- s.call(
12
- this,
13
- (n.functional ? this.parent : this).$root.$options.shadowRoot
14
- );
15
- } : s), _)
16
- if (n.functional) {
17
- n._injectStyles = _;
18
- var c = n.render;
19
- n.render = function(v, u) {
20
- return _.call(u), c(v, u);
21
- };
22
- } else {
23
- var f = n.beforeCreate;
24
- n.beforeCreate = f ? [].concat(f, _) : [_];
25
- }
26
- return {
27
- exports: t,
28
- options: n
29
- };
30
- }
31
- const m = {
32
- __name: "MyButton",
33
- setup(t) {
34
- return { __sfc: !0 };
35
- }
36
- };
37
- var C = function() {
38
- var e = this, r = e._self._c;
39
- return e._self._setupProxy, r("div", [e._v("手")]);
40
- }, w = [], y = /* @__PURE__ */ h(
41
- m,
42
- C,
43
- w,
44
- !1,
45
- null,
46
- "aa5675b7",
47
- null,
48
- null
49
- );
50
- const R = y.exports, $ = [R], d = (t) => {
51
- $.forEach((e) => {
52
- const r = e.name || e.__name;
53
- r && t.component(r, e);
54
- });
55
- };
56
- typeof window != "undefined" && window.Vue && d(window.Vue);
57
- const b = {
58
- install: d,
59
- version: "1.0.0"
60
- };
61
- export {
62
- R as MyButton,
63
- b as default
64
- };
65
- //# sourceMappingURL=index.es.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.es.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from \"vue-demi\";\r\nimport MyButton from \"./components/MyButton.vue\";\r\n\r\n// 组件列表\r\nconst components = [MyButton];\r\n\r\n/**\r\n * 插件安装函数\r\n * @param app Vue实例(Vue2:Vue构造函数,Vue3:createApp返回的实例)\r\n * @param options 插件配置项\r\n */\r\nconst install = (app: App) => {\r\n // 批量注册组件\r\n components.forEach((component) => {\r\n const componentName = component.name || component.__name;\r\n if (componentName) {\r\n app.component(componentName, component);\r\n }\r\n });\r\n};\r\n\r\n// UMD模式下自动注册\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 导出插件核心\r\nconst VueUniversalComponents = {\r\n install,\r\n version: \"1.0.0\",\r\n};\r\n\r\n// 导出插件和单个组件\r\nexport default VueUniversalComponents;\r\nexport { MyButton };\r\n"],"names":["components","MyButton","install","app","component","componentName","VueUniversalComponents"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAIMA,IAAa,CAACC,CAAQ,GAOtBC,IAAU,CAACC,MAAa;AAEjB,EAAAH,EAAA,QAAQ,CAACI,MAAc;AAC1B,UAAAC,IAAgBD,EAAU,QAAQA,EAAU;AAClD,IAAIC,KACEF,EAAA,UAAUE,GAAeD,CAAS;AAAA,EACxC,CACD;AACH;AAGI,OAAO,UAAW,eAAe,OAAO,OAC1CF,EAAQ,OAAO,GAAG;AAIpB,MAAMI,IAAyB;AAAA,EAC7B,SAAAJ;AAAA,EACA,SAAS;AACX;"}
package/dist/index.umd.js DELETED
@@ -1,2 +0,0 @@
1
- (function(s,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(s=typeof globalThis!="undefined"?globalThis:s||self,u(s.augustineJkMap={}))})(this,function(s){"use strict";const u="";function v(t,n,r,M,_,d,l,T){var e=typeof t=="function"?t.options:t;n&&(e.render=n,e.staticRenderFns=r,e._compiled=!0),M&&(e.functional=!0),d&&(e._scopeId="data-v-"+d);var i;if(l?(i=function(o){o=o||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!o&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(o=__VUE_SSR_CONTEXT__),_&&_.call(this,o),o&&o._registeredComponents&&o._registeredComponents.add(l)},e._ssrRegister=i):_&&(i=T?function(){_.call(this,(e.functional?this.parent:this).$root.$options.shadowRoot)}:_),i)if(e.functional){e._injectStyles=i;var g=e.render;e.render=function(R,c){return i.call(c),g(R,c)}}else{var p=e.beforeCreate;e.beforeCreate=p?[].concat(p,i):[i]}return{exports:t,options:e}}const h={__name:"MyButton",setup(t){return{__sfc:!0}}};var m=function(){var n=this,r=n._self._c;return n._self._setupProxy,r("div",[n._v("手")])},y=[],C=v(h,m,y,!1,null,"aa5675b7",null,null);const f=C.exports,b=[f],a=t=>{b.forEach(n=>{const r=n.name||n.__name;r&&t.component(r,n)})};typeof window!="undefined"&&window.Vue&&a(window.Vue);const w={install:a,version:"1.0.0"};s.MyButton=f,s.default=w,Object.defineProperties(s,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
2
- //# sourceMappingURL=index.umd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import type { App } from \"vue-demi\";\r\nimport MyButton from \"./components/MyButton.vue\";\r\n\r\n// 组件列表\r\nconst components = [MyButton];\r\n\r\n/**\r\n * 插件安装函数\r\n * @param app Vue实例(Vue2:Vue构造函数,Vue3:createApp返回的实例)\r\n * @param options 插件配置项\r\n */\r\nconst install = (app: App) => {\r\n // 批量注册组件\r\n components.forEach((component) => {\r\n const componentName = component.name || component.__name;\r\n if (componentName) {\r\n app.component(componentName, component);\r\n }\r\n });\r\n};\r\n\r\n// UMD模式下自动注册\r\nif (typeof window !== \"undefined\" && window.Vue) {\r\n install(window.Vue);\r\n}\r\n\r\n// 导出插件核心\r\nconst VueUniversalComponents = {\r\n install,\r\n version: \"1.0.0\",\r\n};\r\n\r\n// 导出插件和单个组件\r\nexport default VueUniversalComponents;\r\nexport { MyButton };\r\n"],"names":["components","MyButton","install","app","component","componentName","VueUniversalComponents"],"mappings":"mtCAIMA,EAAa,CAACC,CAAQ,EAOtBC,EAAWC,GAAa,CAEjBH,EAAA,QAASI,GAAc,CAC1B,MAAAC,EAAgBD,EAAU,MAAQA,EAAU,OAC9CC,GACEF,EAAA,UAAUE,EAAeD,CAAS,CACxC,CACD,CACH,EAGI,OAAO,QAAW,aAAe,OAAO,KAC1CF,EAAQ,OAAO,GAAG,EAIpB,MAAMI,EAAyB,CAC7B,QAAAJ,EACA,QAAS,OACX"}