sunyard-szyy-ui 0.2.5 → 0.2.7

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.
@@ -83,11 +83,11 @@ function SunyardSzyyUIResolver(options = {}) {
83
83
  };
84
84
  if (importStyle) {
85
85
  if (importStyle === "css") {
86
- result.sideEffects = `${styleLibraryName}/${componentName}.css`;
86
+ result.sideEffects = `${libraryName}/es/components/${componentName}/style/css`;
87
87
  } else if (importStyle === "scss") {
88
- result.sideEffects = `${styleLibraryName}/src/${componentName}.scss`;
88
+ result.sideEffects = `${libraryName}/es/components/${componentName}/style/index`;
89
89
  } else if (importStyle === true) {
90
- result.sideEffects = `${styleLibraryName}/${componentName}.css`;
90
+ result.sideEffects = `${libraryName}/es/components/${componentName}/style/css`;
91
91
  }
92
92
  }
93
93
  return result;
@@ -52,11 +52,11 @@ function SunyardSzyyUIResolver(options = {}) {
52
52
  };
53
53
  if (importStyle) {
54
54
  if (importStyle === "css") {
55
- result.sideEffects = `${styleLibraryName}/${componentName}.css`;
55
+ result.sideEffects = `${libraryName}/es/components/${componentName}/style/css`;
56
56
  } else if (importStyle === "scss") {
57
- result.sideEffects = `${styleLibraryName}/src/${componentName}.scss`;
57
+ result.sideEffects = `${libraryName}/es/components/${componentName}/style/index`;
58
58
  } else if (importStyle === true) {
59
- result.sideEffects = `${styleLibraryName}/${componentName}.css`;
59
+ result.sideEffects = `${libraryName}/es/components/${componentName}/style/css`;
60
60
  }
61
61
  }
62
62
  return result;
@@ -0,0 +1,8 @@
1
+ import type { Plugin } from 'vue';
2
+ /**
3
+ * 所有组件列表
4
+ * 用于全量注册
5
+ */
6
+ declare const _default: Plugin[];
7
+ export default _default;
8
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../src/components.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAElC;;;GAGG;wBAIE,MAAM,EAAE;AAHb,wBAGc"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 默认的组件库安装器
3
+ * 包含所有组件
4
+ */
5
+ declare const _default: {
6
+ version: string;
7
+ install: (app: import("vue").App) => void;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"defaults.d.ts","sourceRoot":"","sources":["../src/defaults.ts"],"names":[],"mappings":"AAGA;;;GAGG;;;;;AACH,wBAA8C"}
package/es/index.d.ts CHANGED
@@ -1,2 +1,13 @@
1
- export * from './search-bar';
1
+ import type { App } from 'vue';
2
+ export { SySearchBar } from '@sunyard-szyy-ui/components';
3
+ export * from '@sunyard-szyy-ui/hooks';
4
+ export * from '@sunyard-szyy-ui/utils';
5
+ export { makeInstaller } from './make-installer';
6
+ export declare const version = "0.2.5";
7
+ export declare const install: (app: App) => void;
8
+ declare const _default: {
9
+ version: string;
10
+ install: (app: App) => void;
11
+ };
12
+ export default _default;
2
13
  //# sourceMappingURL=index.d.ts.map
package/es/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAU,MAAM,KAAK,CAAC;AAIvC,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAG1D,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAGjD,eAAO,MAAM,OAAO,UAAU,CAAC;AAM/B,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,SAE/B,CAAC;;;mBAF2B,GAAG;;AAKhC,wBAGE"}
package/es/index.mjs CHANGED
@@ -1 +1 @@
1
- import{SySearchBar as e}from"./search-bar/src/search-bar.mjs";export{e as SySearchBar};
1
+ import{SySearchBar as e}from"@sunyard-szyy-ui/components";import{SySearchBar as p}from"@sunyard-szyy-ui/components";export*from"@sunyard-szyy-ui/hooks";export*from"@sunyard-szyy-ui/utils";import{makeInstaller as S}from"./make-installer.mjs";const t="0.2.5",a=[e],n=o=>{a.forEach(r=>o.use(r))},c={version:t,install:n};export{p as SySearchBar,c as default,n as install,S as makeInstaller,t as version};
@@ -0,0 +1,16 @@
1
+ import type { App, Plugin } from 'vue';
2
+ /**
3
+ * 创建组件库安装器
4
+ *
5
+ * @param components - 组件列表
6
+ * @returns 包含 install 方法的插件对象
7
+ *
8
+ * @example
9
+ * const installer = makeInstaller([SySearchBar, SyButton]);
10
+ * app.use(installer);
11
+ */
12
+ export declare const makeInstaller: (components?: Plugin[]) => {
13
+ version: string;
14
+ install: (app: App) => void;
15
+ };
16
+ //# sourceMappingURL=make-installer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-installer.d.ts","sourceRoot":"","sources":["../src/make-installer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAIvC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,aAAY,MAAM,EAAO;;mBAC/B,GAAG;CAc1B,CAAC"}
@@ -0,0 +1 @@
1
+ const n=Symbol("SUNYARD_SZYY_UI_INSTALLED"),l=(r=[])=>({version:"0.2.5",install:t=>{t[n]||(t[n]=!0,r.forEach(e=>t.use(e)))}});export{l as makeInstaller};
@@ -0,0 +1,8 @@
1
+ import type { Plugin } from 'vue';
2
+ /**
3
+ * 所有组件列表
4
+ * 用于全量注册
5
+ */
6
+ declare const _default: Plugin[];
7
+ export default _default;
8
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1,10 @@
1
+ /**
2
+ * 默认的组件库安装器
3
+ * 包含所有组件
4
+ */
5
+ declare const _default: {
6
+ version: string;
7
+ install: (app: import("vue").App) => void;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=defaults.d.ts.map
package/lib/index.d.ts CHANGED
@@ -1,2 +1,13 @@
1
- export * from './search-bar';
1
+ import type { App } from 'vue';
2
+ export { SySearchBar } from '@sunyard-szyy-ui/components';
3
+ export * from '@sunyard-szyy-ui/hooks';
4
+ export * from '@sunyard-szyy-ui/utils';
5
+ export { makeInstaller } from './make-installer';
6
+ export declare const version = "0.2.5";
7
+ export declare const install: (app: App) => void;
8
+ declare const _default: {
9
+ version: string;
10
+ install: (app: App) => void;
11
+ };
12
+ export default _default;
2
13
  //# sourceMappingURL=index.d.ts.map
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./search-bar/src/search-bar.js");exports.SySearchBar=e.SySearchBar;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("@sunyard-szyy-ui/components"),t=require("@sunyard-szyy-ui/hooks"),r=require("@sunyard-szyy-ui/utils"),c=require("./make-installer.js"),a="0.2.5",l=[o.SySearchBar],n=e=>{l.forEach(s=>e.use(s))},u={version:a,install:n};Object.defineProperty(exports,"SySearchBar",{enumerable:!0,get:()=>o.SySearchBar});exports.makeInstaller=c.makeInstaller;exports.default=u;exports.install=n;exports.version=a;Object.keys(t).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>t[e]})});Object.keys(r).forEach(e=>{e!=="default"&&!Object.prototype.hasOwnProperty.call(exports,e)&&Object.defineProperty(exports,e,{enumerable:!0,get:()=>r[e]})});
@@ -0,0 +1,16 @@
1
+ import type { App, Plugin } from 'vue';
2
+ /**
3
+ * 创建组件库安装器
4
+ *
5
+ * @param components - 组件列表
6
+ * @returns 包含 install 方法的插件对象
7
+ *
8
+ * @example
9
+ * const installer = makeInstaller([SySearchBar, SyButton]);
10
+ * app.use(installer);
11
+ */
12
+ export declare const makeInstaller: (components?: Plugin[]) => {
13
+ version: string;
14
+ install: (app: App) => void;
15
+ };
16
+ //# sourceMappingURL=make-installer.d.ts.map
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=Symbol("SUNYARD_SZYY_UI_INSTALLED"),n=(r=[])=>({version:"0.2.5",install:e=>{e[t]||(e[t]=!0,r.forEach(l=>e.use(l)))}});exports.makeInstaller=n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sunyard-szyy-ui",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "type": "module",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -29,6 +29,15 @@
29
29
  "import": "./dist/utils/index.js",
30
30
  "require": "./dist/utils/index.cjs"
31
31
  },
32
+ "./es/components/*/style/css": {
33
+ "import": "./es/components/*/style/css.mjs"
34
+ },
35
+ "./es/components/*/style/index": {
36
+ "import": "./es/components/*/style/index.mjs"
37
+ },
38
+ "./es/components/*/style/*": {
39
+ "import": "./es/components/*/style/*.mjs"
40
+ },
32
41
  "./es/*.mjs": {
33
42
  "types": "./es/*.d.ts",
34
43
  "import": "./es/*.mjs"
@@ -73,9 +82,9 @@
73
82
  "vue": "^3.0.0"
74
83
  },
75
84
  "dependencies": {
76
- "@sunyard-szyy-ui/components": "0.2.5",
77
- "@sunyard-szyy-ui/utils": "0.2.5",
78
- "@sunyard-szyy-ui/hooks": "0.2.5"
85
+ "@sunyard-szyy-ui/components": "0.2.7",
86
+ "@sunyard-szyy-ui/hooks": "0.2.7",
87
+ "@sunyard-szyy-ui/utils": "0.2.7"
79
88
  },
80
89
  "publishConfig": {
81
90
  "access": "public"
@@ -1 +0,0 @@
1
- import{SySearchBar as e}from"../../search-bar/src/search-bar.mjs";export{e as SySearchBar};
@@ -1 +0,0 @@
1
- import"element-plus/es/components/button/style/css";import"element-plus/es/components/input/style/css";import"sunyard-szyy-ui/theme-chalk/src/search-bar.scss";
@@ -1,2 +0,0 @@
1
- export * from './src/search-bar';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/search-bar/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,4 +0,0 @@
1
- import 'element-plus/es/components/button/style/css';
2
- import 'element-plus/es/components/input/style/css';
3
- import 'sunyard-szyy-ui/theme-chalk/src/search-bar.scss';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/search-bar/style/index.ts"],"names":[],"mappings":"AAEA,OAAO,6CAA6C,CAAC;AACrD,OAAO,4CAA4C,CAAC;AAGpD,OAAO,iDAAiD,CAAC"}
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../search-bar/src/search-bar.js");exports.SySearchBar=e.SySearchBar;
@@ -1 +0,0 @@
1
- "use strict";require("element-plus/es/components/button/style/css");require("element-plus/es/components/input/style/css");require("sunyard-szyy-ui/theme-chalk/src/search-bar.scss");
@@ -1,2 +0,0 @@
1
- export * from './src/search-bar';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +0,0 @@
1
- import 'element-plus/es/components/button/style/css';
2
- import 'element-plus/es/components/input/style/css';
3
- import 'sunyard-szyy-ui/theme-chalk/src/search-bar.scss';
4
- //# sourceMappingURL=index.d.ts.map