sunyard-szyy-ui 0.3.2 → 0.3.3
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/index.full.js +1 -1
- package/dist/index.full.mjs +1 -1
- package/es/hooks/dist/index.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/make-installer.mjs +1 -1
- package/es/utils/dist/index.mjs +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.mjs +2 -2
- package/lib/hooks/dist/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/make-installer.js +1 -1
- package/lib/utils/dist/index.js +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +2 -2
- package/package.json +4 -4
package/dist/index.full.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
(function(e,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("element-plus"),require("vue"),require("@sunyard-szyy-ui/hooks"),require("@sunyard-szyy-ui/utils")):typeof define=="function"&&define.amd?define(["exports","element-plus","vue","@sunyard-szyy-ui/hooks","@sunyard-szyy-ui/utils"],u):(e=typeof globalThis!="undefined"?globalThis:e||self,u(e.SunyardSzyyUI={},e.ElementPlus,e.Vue,e.hooks,e.utils))})(this,function(e,u,n,i,d){"use strict";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY Base Team
|
|
4
4
|
*/const y=n.defineComponent({name:"SySearchBar",props:{modelValue:{type:String,default:""},placeholder:{type:String,default:"请输入关键字"},buttonText:{type:String,default:"搜索"}},emits:["update:modelValue","search"],setup(r,{emit:s}){const l=i.useNamespace("search-bar"),a=n.ref(r.modelValue);n.watch(()=>r.modelValue,t=>{t!==a.value&&(a.value=t)});function o(){s("search",a.value)}return()=>n.h("div",{class:l.b()},[n.h(u.ElInput,{class:l.e("input"),modelValue:a.value,placeholder:r.placeholder,clearable:!0,"onUpdate:modelValue":t=>{a.value=t,s("update:modelValue",t)},onKeydown:t=>{t.key==="Enter"&&o()}}),n.h(u.ElButton,{class:l.e("button"),type:"primary",onClick:o},()=>r.buttonText)])}}),c=d.withInstall(y);e.SySearchBar=c,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})});
|
package/dist/index.full.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { defineComponent as d, ref as m, watch as i, h as o } from "vue";
|
|
|
3
3
|
import { useNamespace as p } from "@sunyard-szyy-ui/hooks";
|
|
4
4
|
import { withInstall as s } from "@sunyard-szyy-ui/utils";
|
|
5
5
|
/*!
|
|
6
|
-
* sunyard-szyy-ui v0.3.
|
|
6
|
+
* sunyard-szyy-ui v0.3.3
|
|
7
7
|
* (c) 2026 Sunyard SZYY Base Team
|
|
8
8
|
*/
|
|
9
9
|
const h = d({
|
package/es/hooks/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import{ref as c,watch as r}from"vue";import{debounce as s}from"../../utils/dist/index.mjs";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/function d(o){const n=`sy-${o}`;return{namespace:n,b:()=>n,e:e=>`${n}__${e}`,m:e=>`${n}--${e}`,is:(e,t=!0)=>t?`is-${e}`:""}}function i(o,n=300){const e=c(o.value),t=s(u=>{e.value=u},n);return r(o,u=>{t(u)}),e}export{i as useDebounce,d as useNamespace};
|
package/es/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import{SySearchBar as r}from"@sunyard-szyy-ui/components";import{SySearchBar as _}from"@sunyard-szyy-ui/components";import{version as e}from"./version.mjs";import{useDebounce as m,useNamespace as p}from"./hooks/dist/index.mjs";import{SunyardSzyyUIResolver as y,debounce as S,deepClone as w,formatDate as Y,throttle as h,withInstall as U}from"./utils/dist/index.mjs";import{makeInstaller as g}from"./make-installer.mjs";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/const t=[r],a=n=>{if(typeof window!="undefined"&&(console.log(`%c[Sunyard SZYY UI]%c v${e} %cinstalled`,"color: #409eff; font-weight: bold","color: #67c23a","color: #909399"),window.__SUNYARD_SZYY_UI_VERSION__=e,window.__SUNYARD_SZYY_UI__={version:e,components:t.map(o=>o.name||"Unknown")}),t.forEach(o=>n.use(o)),typeof window!="undefined"){const o=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;o&&o.emit("app:init",n,e,{label:"Sunyard SZYY UI",packageName:"sunyard-szyy-ui",homepage:"https://github.com/your-org/sunyard-szyy-ui"})}},c={version:e,install:a};export{y as SunyardSzyyUIResolver,_ as SySearchBar,S as debounce,w as deepClone,c as default,Y as formatDate,a as install,g as makeInstaller,h as throttle,m as useDebounce,p as useNamespace,e as version,U as withInstall};
|
package/es/make-installer.mjs
CHANGED
package/es/utils/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/function h(e,n="Sy"){return e.slice(n.length).replace(/([A-Z])/g,"-$1").toLowerCase().slice(1)}function S(e={}){const{prefix:n="Sy",importStyle:t=!0,libraryName:r="sunyard-szyy-ui",styleLibraryName:c="sunyard-szyy-ui/theme-chalk",componentsLibraryName:m="@sunyard-szyy-ui/components",devMode:l=!1,importMetaUrl:o,fileURLToPath:i,dirResolver:p}=e;if(l&&!p&&(!o||!i))throw new Error(`[SunyardSzyyUIResolver] devMode 启用时必须提供 importMetaUrl 和 fileURLToPath 参数
|
|
5
5
|
示例:
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.3.
|
|
1
|
+
export declare const version = "0.3.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/es/version.mjs
CHANGED
package/lib/hooks/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),o=require("../../utils/dist/index.js");function r(n){const u=`sy-${n}`;return{namespace:u,b:()=>u,e:e=>`${u}__${e}`,m:e=>`${u}--${e}`,is:(e,c=!0)=>c?`is-${e}`:""}}function a(n,u=300){const e=t.ref(n.value),c=o.debounce(s=>{e.value=s},u);return t.watch(n,s=>{c(s)}),e}exports.useDebounce=a;exports.useNamespace=r;
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@sunyard-szyy-ui/components"),o=require("./version.js"),a=require("./hooks/dist/index.js"),n=require("./utils/dist/index.js"),l=require("./make-installer.js"),t=[s.SySearchBar],i=r=>{if(typeof window!="undefined"&&(console.log(`%c[Sunyard SZYY UI]%c v${o.version} %cinstalled`,"color: #409eff; font-weight: bold","color: #67c23a","color: #909399"),window.__SUNYARD_SZYY_UI_VERSION__=o.version,window.__SUNYARD_SZYY_UI__={version:o.version,components:t.map(e=>e.name||"Unknown")}),t.forEach(e=>r.use(e)),typeof window!="undefined"){const e=window.__VUE_DEVTOOLS_GLOBAL_HOOK__;e&&e.emit("app:init",r,o.version,{label:"Sunyard SZYY UI",packageName:"sunyard-szyy-ui",homepage:"https://github.com/your-org/sunyard-szyy-ui"})}},c={version:o.version,install:i};Object.defineProperty(exports,"SySearchBar",{enumerable:!0,get:()=>s.SySearchBar});exports.version=o.version;exports.useDebounce=a.useDebounce;exports.useNamespace=a.useNamespace;exports.SunyardSzyyUIResolver=n.SunyardSzyyUIResolver;exports.debounce=n.debounce;exports.deepClone=n.deepClone;exports.formatDate=n.formatDate;exports.throttle=n.throttle;exports.withInstall=n.withInstall;exports.makeInstaller=l.makeInstaller;exports.default=c;exports.install=i;
|
package/lib/make-installer.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Symbol("SUNYARD_SZYY_UI_INSTALLED"),s=(l=[],r="0.0.0")=>({version:r,install:t=>{t[e]||(t[e]=!0,l.forEach(n=>t.use(n)))}});exports.makeInstaller=s;
|
package/lib/utils/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
4
|
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function h(e,n="Sy"){return e.slice(n.length).replace(/([A-Z])/g,"-$1").toLowerCase().slice(1)}function S(e={}){const{prefix:n="Sy",importStyle:t=!0,libraryName:r="sunyard-szyy-ui",styleLibraryName:c="sunyard-szyy-ui/theme-chalk",componentsLibraryName:d="@sunyard-szyy-ui/components",devMode:l=!1,importMetaUrl:o,fileURLToPath:a,dirResolver:y}=e;if(l&&!y&&(!o||!a))throw new Error(`[SunyardSzyyUIResolver] devMode 启用时必须提供 importMetaUrl 和 fileURLToPath 参数
|
|
5
5
|
示例:
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "0.3.
|
|
1
|
+
export declare const version = "0.3.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/lib/version.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* sunyard-szyy-ui v0.3.
|
|
2
|
+
* sunyard-szyy-ui v0.3.3
|
|
3
3
|
* (c) 2026 Sunyard SZYY UI Team
|
|
4
|
-
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.3.
|
|
4
|
+
*/Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="0.3.3";exports.version=e;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sunyard-szyy-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"vue": "^3.0.0"
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
|
-
"@sunyard-szyy-ui/components": "0.3.
|
|
87
|
-
"@sunyard-szyy-ui/hooks": "0.3.
|
|
88
|
-
"@sunyard-szyy-ui/utils": "0.3.
|
|
86
|
+
"@sunyard-szyy-ui/components": "0.3.3",
|
|
87
|
+
"@sunyard-szyy-ui/hooks": "0.3.3",
|
|
88
|
+
"@sunyard-szyy-ui/utils": "0.3.3"
|
|
89
89
|
},
|
|
90
90
|
"publishConfig": {
|
|
91
91
|
"access": "public"
|