dlzn-ui 1.1.0 → 1.4.0
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/LICENSE +21 -0
- package/README.md +0 -4
- package/_virtual/__vite-browser-external.mjs +8 -0
- package/_virtual/_rolldown/runtime.mjs +16 -0
- package/components/button/src/button.vue_vue_type_style_index_0_scoped_e7952805_lang.css +1 -0
- package/components/button/src/button2.mjs +2 -2
- package/const/index.d.ts +1 -0
- package/const/index.mjs +2 -0
- package/const/others.d.ts +3 -0
- package/const/others.mjs +4 -0
- package/package.json +11 -2
- package/utils/index.d.ts +2 -0
- package/utils/index.mjs +3 -1
- package/utils/number.d.ts +7 -0
- package/utils/number.mjs +11 -0
- package/utils/tool.d.ts +5 -0
- package/utils/tool.mjs +22 -0
- package/components/button/src/button.vue_vue_type_style_index_0_scoped_8194f55b_lang.css +0 -1
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 huchaomin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var e = Object.create, t = Object.defineProperty, n = Object.getOwnPropertyDescriptor, r = Object.getOwnPropertyNames, i = Object.getPrototypeOf, a = Object.prototype.hasOwnProperty, o = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), s = (e, i, o, s) => {
|
|
3
|
+
if (i && typeof i == "object" || typeof i == "function") for (var c = r(i), l = 0, u = c.length, d; l < u; l++) d = c[l], !a.call(e, d) && d !== o && t(e, d, {
|
|
4
|
+
get: ((e) => i[e]).bind(null, d),
|
|
5
|
+
enumerable: !(s = n(i, d)) || s.enumerable
|
|
6
|
+
});
|
|
7
|
+
return e;
|
|
8
|
+
}, c = (n, r, o) => (o = n == null ? {} : e(i(n)), s(r || !n || !n.__esModule || !a.call(n, "default") ? t(o, "default", {
|
|
9
|
+
value: n,
|
|
10
|
+
enumerable: !0
|
|
11
|
+
}) : o, n)), l = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
12
|
+
if (typeof require < "u") return require.apply(this, arguments);
|
|
13
|
+
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { o as __commonJSMin, l as __require, c as __toESM };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.duyi-button[data-v-e7952805]{color:#606266;cursor:pointer;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;justify-content:center;align-items:center;padding:8px 16px;font-size:14px;line-height:1;display:inline-flex}.duyi-button[data-v-e7952805]:hover{color:#409eff;border-color:#c6e2ff}.duyi-button.is-disabled[data-v-e7952805],.duyi-button[data-v-e7952805]:disabled{cursor:not-allowed;opacity:.6}.duyi-button.is-round[data-v-e7952805]{border-radius:20px}.duyi-button.is-circle[data-v-e7952805]{border-radius:50%;padding:8px}.duyi-button-primary[data-v-e7952805]{color:#fff;background-color:#409eff;border-color:#409eff}.duyi-button-primary[data-v-e7952805]:hover{color:#fff;background-color:#66b1ff;border-color:#66b1ff}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import e from "./button.vue_vue_type_script_lang.mjs";
|
|
2
|
-
import './button.
|
|
2
|
+
import './button.vue_vue_type_style_index_0_scoped_e7952805_lang.css';/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
import { createCommentVNode as n, createElementBlock as r, normalizeClass as i, openBlock as a, renderSlot as o } from "vue";
|
|
5
5
|
//#region src/components/button/src/button.vue
|
|
@@ -19,6 +19,6 @@ function l(e, t, l, u, d, f) {
|
|
|
19
19
|
class: i(`duyi-icon-${e.icon}`)
|
|
20
20
|
}, null, 2)) : n("", !0), e.$slots.default ? (a(), r("span", c, [o(e.$slots, "default", {}, void 0, !0)])) : n("", !0)], 10, s);
|
|
21
21
|
}
|
|
22
|
-
var u = /*#__PURE__*/ t(e, [["render", l], ["__scopeId", "data-v-
|
|
22
|
+
var u = /*#__PURE__*/ t(e, [["render", l], ["__scopeId", "data-v-e7952805"]]);
|
|
23
23
|
//#endregion
|
|
24
24
|
export { u as default };
|
package/const/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './others';
|
package/const/index.mjs
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const passwordReg: RegExp;
|
|
2
|
+
export declare const passwordRegMessage = "\u5BC6\u78018\u4F4D\u53CA\u4EE5\u4E0A\uFF0C\u542B\u5927\u5199\u5B57\u6BCD\u3001\u5C0F\u5199\u5B57\u6BCD\u3001\u6570\u5B57\u3001\u7279\u6B8A\u5B57\u7B26\u4E2D\u81F3\u5C11\u4E09\u7C7B";
|
|
3
|
+
export declare const validNumberStringReg: RegExp;
|
package/const/others.mjs
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
//#region src/const/others.ts
|
|
2
|
+
var e = /^(?=[!-~]{8,}$)(?:(?=.*[A-Z])(?=.*[a-z])(?=.*\d)|(?=.*[A-Z])(?=.*[a-z])(?=.*[^A-Za-z0-9])|(?=.*[A-Z])(?=.*\d)(?=.*[^A-Za-z0-9])|(?=.*[a-z])(?=.*\d)(?=.*[^A-Za-z0-9])).+$/, t = "密码8位及以上,含大写字母、小写字母、数字、特殊字符中至少三类", n = /^-?(?:0|[1-9]\d*)(?:\.\d+)?$/;
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as passwordReg, t as passwordRegMessage, n as validNumberStringReg };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dlzn-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,7 +16,16 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"
|
|
19
|
+
"@tsconfig/node-lts": "^24.0.0",
|
|
20
|
+
"@types/crypto-js": "^4.2.2",
|
|
21
|
+
"@types/file-saver": "^2.0.7",
|
|
22
|
+
"@types/node": "^26.1.2",
|
|
23
|
+
"@vitejs/plugin-vue": "^6.0.8",
|
|
24
|
+
"@vue/tsconfig": "^0.9.1",
|
|
25
|
+
"typescript": "^6.0.3",
|
|
26
|
+
"vite": "^8.2.0",
|
|
27
|
+
"vue": "^3.5.41",
|
|
28
|
+
"vue-tsc": "^3.3.9"
|
|
20
29
|
},
|
|
21
30
|
"sideEffects": [
|
|
22
31
|
"**/*.css"
|
package/utils/index.d.ts
CHANGED
package/utils/index.mjs
CHANGED
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
import { getFilenameFromUrl as e, queryStringToObject as t } from "./string.mjs";
|
|
2
|
-
|
|
2
|
+
import { aesDecrypt as n, aesEncrypt as r, saveAs as i } from "./tool.mjs";
|
|
3
|
+
import { formatSecondsToChinese as a } from "./number.mjs";
|
|
4
|
+
export { n as aesDecrypt, r as aesEncrypt, a as formatSecondsToChinese, e as getFilenameFromUrl, t as queryStringToObject, i as saveAs };
|
package/utils/number.mjs
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/utils/number.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
let t = "", n = Math.floor(e / 3600);
|
|
4
|
+
n > 0 && (t += `${n}时`);
|
|
5
|
+
let r = Math.floor(e % 3600 / 60);
|
|
6
|
+
r > 0 && (t += `${r}分`);
|
|
7
|
+
let i = e % 60;
|
|
8
|
+
return i > 0 && (t += `${i}秒`), t;
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { e as formatSecondsToChinese };
|
package/utils/tool.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { default as FileSaver } from 'file-saver';
|
|
2
|
+
declare function aesDecrypt(word: string, keyWord: string): Promise<string>;
|
|
3
|
+
declare function aesEncrypt(word: string, keyWord: string): Promise<string>;
|
|
4
|
+
declare function saveAs(arg1: Parameters<typeof FileSaver.saveAs>[0], arg2?: Parameters<typeof FileSaver.saveAs>[1], arg3?: FileSaver.FileSaverOptions): Promise<void>;
|
|
5
|
+
export { aesDecrypt, aesEncrypt, saveAs };
|
package/utils/tool.mjs
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { __toESM as e } from "../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
//#region src/utils/tool.ts
|
|
3
|
+
async function t(t, n) {
|
|
4
|
+
let { default: r } = await import("../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs").then((t) => /* @__PURE__ */ e(t.default, 1)), i = r.enc.Utf8.parse(n);
|
|
5
|
+
return r.AES.decrypt(t, i, {
|
|
6
|
+
mode: r.mode.ECB,
|
|
7
|
+
padding: r.pad.Pkcs7
|
|
8
|
+
}).toString(r.enc.Utf8);
|
|
9
|
+
}
|
|
10
|
+
async function n(t, n) {
|
|
11
|
+
let { default: r } = await import("../node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs").then((t) => /* @__PURE__ */ e(t.default, 1)), i = r.enc.Utf8.parse(n), a = r.enc.Utf8.parse(t);
|
|
12
|
+
return r.AES.encrypt(a, i, {
|
|
13
|
+
mode: r.mode.ECB,
|
|
14
|
+
padding: r.pad.Pkcs7
|
|
15
|
+
}).toString();
|
|
16
|
+
}
|
|
17
|
+
async function r(t, n, r) {
|
|
18
|
+
let { default: i } = await import("../node_modules/.pnpm/file-saver@2.0.5/node_modules/file-saver/dist/FileSaver.min.mjs").then((t) => /* @__PURE__ */ e(t.default, 1));
|
|
19
|
+
i(t, n, r);
|
|
20
|
+
}
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as aesDecrypt, n as aesEncrypt, r as saveAs };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.duyi-button[data-v-8194f55b]{color:#606266;cursor:pointer;background-color:#fff;border:1px solid #dcdfe6;border-radius:4px;justify-content:center;align-items:center;padding:8px 16px;font-size:14px;line-height:1;display:inline-flex}.duyi-button[data-v-8194f55b]:hover{color:#409eff;background-color:#ecf5ff;border-color:#c6e2ff}.duyi-button.is-disabled[data-v-8194f55b],.duyi-button[data-v-8194f55b]:disabled{cursor:not-allowed;opacity:.6}.duyi-button.is-round[data-v-8194f55b]{border-radius:20px}.duyi-button.is-circle[data-v-8194f55b]{border-radius:50%;padding:8px}.duyi-button-primary[data-v-8194f55b]{color:#fff;background-color:#409eff;border-color:#409eff}.duyi-button-primary[data-v-8194f55b]:hover{color:#fff;background-color:#66b1ff;border-color:#66b1ff}
|