hs-admin-ui 16.2.5 → 16.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index--u_RqMa4.cjs");const l=require("./index-BXVq3r4s.cjs"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Kw1ikpRm.cjs");require("vue");const a=require("./index-Bc-mTZe8.cjs");function c(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",u.ElLoading.directive),r.use(l.install)}exports.ElMessage=u.HsMessage;exports.ElMessageBox=u.HsMessageBox;exports.ElNotification=u.HsNotification;exports.mathTool=u.mathTool;exports.Utils=a.index;exports.useHsAdminUi=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./index--u_RqMa4.cjs");const l=require("./index-CBd9wh2f.cjs"),u=require("./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-Kw1ikpRm.cjs");require("vue");const a=require("./index-Bc-mTZe8.cjs");function c(r,e){u.NEXT_NAME.value=e==null?void 0:e.NEXT_NAME,u.IS_DEV.value=e==null?void 0:e.IS_DEV,u.CurrentRoute.value=e==null?void 0:e.currentRoute,u.CurrentRouter.value=e==null?void 0:e.currentRouter,r.directive("loading",u.ElLoading.directive),r.use(l.install)}exports.ElMessage=u.HsMessage;exports.ElMessageBox=u.HsMessageBox;exports.ElNotification=u.HsNotification;exports.mathTool=u.mathTool;exports.Utils=a.index;exports.useHsAdminUi=c;
@@ -1,5 +1,5 @@
1
1
  import "./index-D4Se2ucQ.js";
2
- import { q as a } from "./index-DIEBcSdj.js";
2
+ import { q as a } from "./index-BKX88HIi.js";
3
3
  import { aS as u, bp as l, bq as m, br as E, aQ as v } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BaDAE2N7.js";
4
4
  import { W as x, bt as M, bu as R, bv as _ } from "./bcVisual.vue_vue_type_style_index_0_scoped_cae31cec_lang-BaDAE2N7.js";
5
5
  import "vue";
@@ -28481,31 +28481,38 @@ const uO = Ge(iO), cO = /* @__PURE__ */ H({
28481
28481
  default: Number.MAX_SAFE_INTEGER
28482
28482
  }
28483
28483
  },
28484
- emits: ["focus"],
28484
+ emits: ["focus", "change"],
28485
28485
  setup(e, { emit: t }) {
28486
- const a = e, n = t, o = me(), s = Ie("setItemInstance", () => {
28486
+ const a = e, n = t, o = me(), s = {
28487
+ ref: i,
28488
+ onChange: c,
28489
+ onFocus: u
28490
+ }, r = Ie("setItemInstance", () => {
28487
28491
  });
28488
- function r(c) {
28489
- const f = () => a.type == "vxe" ? c == null ? void 0 : c.$el : c == null ? void 0 : c.ref, d = f();
28490
- Ee.set(o, "exposed", Ee.assign({}, c || {}, { activeElement: f, focus: i })), Ve(() => {
28491
- var m, h, S, g;
28492
- if (a.type == "vxe" && ((h = (m = d == null ? void 0 : d.querySelector("input")) == null ? void 0 : m.classList) == null || h.add("el-input__inner")), typeof (d == null ? void 0 : d.closest) != "function") return;
28493
- const p = d == null ? void 0 : d.closest(".el-form-item"), v = (g = (S = p == null ? void 0 : p.className) == null ? void 0 : S.match(/query_[a-zA-Z0-9_]+/)) == null ? void 0 : g[0];
28494
- v && s({ ...o == null ? void 0 : o.exposed, activeElement: f, focus: i }, v.replace("query_", ""));
28492
+ function i(d) {
28493
+ const p = () => a.type == "vxe" ? d == null ? void 0 : d.$el : d == null ? void 0 : d.ref, v = p();
28494
+ Ee.set(o, "exposed", Ee.assign({}, d || {}, { activeElement: p, focus: u })), Ve(() => {
28495
+ var S, g, C, k;
28496
+ if (a.type == "vxe" && ((g = (S = v == null ? void 0 : v.querySelector("input")) == null ? void 0 : S.classList) == null || g.add("el-input__inner")), typeof (v == null ? void 0 : v.closest) != "function") return;
28497
+ const m = v == null ? void 0 : v.closest(".el-form-item"), h = (k = (C = m == null ? void 0 : m.className) == null ? void 0 : C.match(/query_[a-zA-Z0-9_]+/)) == null ? void 0 : k[0];
28498
+ h && r({ ...o == null ? void 0 : o.exposed, activeElement: p, focus: u }, h.replace("query_", ""));
28495
28499
  });
28496
28500
  }
28497
- function i(c) {
28498
- var f;
28499
- a.type !== "vxe" ? (f = o == null ? void 0 : o.exposed) == null || f.select() : c.$input.select(), n("focus", c);
28501
+ function u(d) {
28502
+ var p;
28503
+ a.type !== "vxe" ? (p = o == null ? void 0 : o.exposed) == null || p.select() : d.$input.select(), n("focus", d);
28500
28504
  }
28501
- function u(c) {
28502
- let f = c.replace(/[^0-9.-]/g, "");
28503
- const d = f.split(".");
28504
- d.length > 2 && (f = d[0] + "." + d.slice(1).join(""));
28505
- const p = f.split("-");
28506
- return p.length > 2 && (f = p[0] + "-" + p.slice(1).join("")), f.startsWith("00") && f.length > 1 && (f = "0"), c === "" ? "" : Number(c) < a.min ? a.min : Number(c) > a.max ? a.max : f;
28505
+ function c(d) {
28506
+ n("change", d);
28507
+ }
28508
+ function f(d) {
28509
+ let p = d.replace(/[^0-9.-]/g, "");
28510
+ const v = p.split(".");
28511
+ v.length > 2 && (p = v[0] + "." + v.slice(1).join(""));
28512
+ const m = p.split("-");
28513
+ return m.length > 2 && (p = m[0] + "-" + m.slice(1).join("")), p.startsWith("00") && p.length > 1 && (p = "0"), d === "" ? "" : Number(d) < a.min ? a.min : Number(d) > a.max ? a.max : p;
28507
28514
  }
28508
- return (c, f) => e.type == "number" ? ($(), q(ge(se(l(nn), { ...c.$attrs, type: "text", formatter: u, parser: u, onFocus: i, ref: r }, c.$slots)), { key: 0 })) : e.type == "vxe" ? ($(), q(ge(se(l(jh), { ...c.$attrs, ref: r, onFocus: i }, c.$slots)), { key: 1 })) : ($(), q(ge(se(l(nn), { ...c.$attrs, type: e.type, ref: r, onFocus: i }, c.$slots)), { key: 2 }));
28515
+ return (d, p) => e.type === "number" ? ($(), q(ge(se(l(nn), { ...d.$attrs, ...s, type: "text", formatter: f, parser: f }, d.$slots)), { key: 0 })) : e.type == "vxe" ? ($(), q(ge(se(l(jh), { ...d.$attrs, ...s }, d.$slots)), { key: 1 })) : ($(), q(ge(se(l(nn), { ...d.$attrs, type: e.type, ...s }, d.$slots)), { key: 2 }));
28509
28516
  }
28510
28517
  }), nP = /* @__PURE__ */ H({
28511
28518
  __name: "InputNumber",