gzhr-ui 1.1.0 → 1.1.1

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,5 +1,5 @@
1
1
  import { openBlock as t, createElementBlock as e, defineComponent as r, createVNode as _ } from "vue";
2
- import { _ as n, w as s } from "./utils-T1zvC3Cf.mjs";
2
+ import { _ as n, w as s } from "./utils-DZxjjV-b.mjs";
3
3
  const a = {};
4
4
  function m(o, c) {
5
5
  return t(), e("div", null, "demo");
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as g, computed as s, unref as l, openBlock as t, createBlock as p, normalizeClass as i, withCtx as h, createElementBlock as c, normalizeStyle as k, createElementVNode as I, mergeProps as z } from "vue";
2
- import { E as C, I as _ } from "./vendor-WGaPw_tu.mjs";
3
- import { w as $ } from "./utils-T1zvC3Cf.mjs";
2
+ import { E as C, I as _ } from "./vendor-PkgYxc4K.mjs";
3
+ import { w as $ } from "./utils-DZxjjV-b.mjs";
4
4
  const H = { key: 0 }, E = ["xlink:href"], S = /* @__PURE__ */ g({
5
5
  name: "HrIcon",
6
6
  __name: "icon",
package/dist/es/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
- import { m as o } from "./utils-T1zvC3Cf.mjs";
1
+ import { m as o } from "./utils-DZxjjV-b.mjs";
2
2
  import "vue";
3
- import { H as r } from "./button-CJ1kU7r2.mjs";
4
- import { H as t } from "./table-EDthzqxr.mjs";
5
- import { H as m } from "./icon-DOZyC-Pg.mjs";
6
- import { A as a } from "./vendor-WGaPw_tu.mjs";
3
+ import { H as r } from "./button-AUbGcyD2.mjs";
4
+ import { H as t } from "./table-Bar49oDO.mjs";
5
+ import { H as m } from "./icon-CEVo1fgl.mjs";
6
+ import { A as a } from "./vendor-PkgYxc4K.mjs";
7
7
  const s = [r, t, m, a], H = o(s);
8
8
  export {
9
9
  r as HrButton,
@@ -1,6 +1,6 @@
1
- import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-WGaPw_tu.mjs";
2
- import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, resolveComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, normalizeProps, mergeProps, inject, resolveDirective, onBeforeUnmount, reactive } from "vue";
3
- import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-T1zvC3Cf.mjs";
1
+ import { a as ElInput, C as ClickOutside, b as ElPopover, V as VxeInput, c as ElButton, d as ElCheckboxGroup, e as ElCheckbox, f as ElTreeSelect, g as ElInputNumber, E as ElIcon, h as ElDropdown, i as ElDropdownMenu, j as ElDropdownItem, k as ElTag, l as isEmpty, m as ElColorPicker, n as dayjs, o as isoWeek, q as quarterOfYear, p as customParseFormat, r as ElImage, s as ElProgress, t as ElRadioGroup, u as ElRadio, v as ElSelect, w as ElOption, x as VxePager, y as VxeGrid, z as VxeUI } from "./vendor-PkgYxc4K.mjs";
2
+ import { ref, computed, openBlock, createElementBlock, withDirectives, createVNode, unref, withCtx, createElementVNode, createTextVNode, withKeys, createBlock, Fragment, renderList, createCommentVNode, onMounted, defineComponent, resolveComponent, normalizeStyle, toDisplayString, watch, vShow, watchEffect, inject, normalizeProps, mergeProps, resolveDirective, onBeforeUnmount, reactive } from "vue";
3
+ import { b as buildTree, d as deepClone, u as useElementClientSize, _ as _export_sfc, i as isColor, g as getFileIconUrl, p as preVideo, a as preCAD, w as withInstall } from "./utils-DZxjjV-b.mjs";
4
4
  const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" }, _hoisted_3$3 = { class: "flex flex-col gap3" }, _hoisted_4$1 = { class: "flex justify-between" }, _sfc_main$x = {
5
5
  __name: "filter-date",
6
6
  props: {
@@ -469,12 +469,12 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
469
469
  }, toDisplayString(r.column.title), 5),
470
470
  (i = r.column.params) != null && i.sortable && ((d = r.column.params) != null && d.sortStatus) ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
471
471
  default: withCtx(() => {
472
- var p, g;
472
+ var p, v;
473
473
  return [
474
474
  ((p = r.column.params) == null ? void 0 : p.sortStatus) === "asc" ? (openBlock(), createBlock(u, {
475
475
  key: 0,
476
476
  icon: "ep:caret-top"
477
- })) : ((g = r.column.params) == null ? void 0 : g.sortStatus) === "desc" ? (openBlock(), createBlock(u, {
477
+ })) : ((v = r.column.params) == null ? void 0 : v.sortStatus) === "desc" ? (openBlock(), createBlock(u, {
478
478
  key: 1,
479
479
  icon: "ep:caret-bottom"
480
480
  })) : createCommentVNode("", !0)
@@ -508,11 +508,11 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
508
508
  key: 5,
509
509
  column: r.column,
510
510
  onFilterSearch: m[5] || (m[5] = (p) => l("search"))
511
- }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(r.column.filters, (p, g) => (openBlock(), createBlock(unref(ElInput), {
512
- key: g,
511
+ }, null, 8, ["column"])) : (openBlock(!0), createElementBlock(Fragment, { key: 6 }, renderList(r.column.filters, (p, v) => (openBlock(), createBlock(unref(ElInput), {
512
+ key: v,
513
513
  modelValue: p.data,
514
- "onUpdate:modelValue": (v) => p.data = v,
515
- onKeyup: m[6] || (m[6] = withKeys((v) => l("search"), ["enter"])),
514
+ "onUpdate:modelValue": (g) => p.data = g,
515
+ onKeyup: m[6] || (m[6] = withKeys((g) => l("search"), ["enter"])),
516
516
  disabled: ["colorPicker", "iconPicker", "progress"].includes(r.column.params.FieldType)
517
517
  }, null, 8, ["modelValue", "onUpdate:modelValue", "disabled"]))), 128)),
518
518
  createVNode(unref(ElDropdown), {
@@ -696,17 +696,17 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
696
696
  });
697
697
  function c(u) {
698
698
  if (!u) return;
699
- let i, d, p, g = 1;
699
+ let i, d, p, v = 1;
700
700
  if (u.startsWith("#"))
701
701
  u = u.slice(1), u.length === 3 ? (i = parseInt(u[0] + u[0], 16), d = parseInt(u[1] + u[1], 16), p = parseInt(u[2] + u[2], 16)) : u.length === 6 && (i = parseInt(u.slice(0, 2), 16), d = parseInt(u.slice(2, 4), 16), p = parseInt(u.slice(4, 6), 16));
702
702
  else if (u.startsWith("rgb")) {
703
- const v = u.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
704
- v && (i = parseInt(v[1]), d = parseInt(v[2]), p = parseInt(v[3]), v[4] && (g = parseFloat(v[4])));
703
+ const g = u.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d+))?\)/);
704
+ g && (i = parseInt(g[1]), d = parseInt(g[2]), p = parseInt(g[3]), g[4] && (v = parseFloat(g[4])));
705
705
  } else if (u.startsWith("hsl")) {
706
- const v = u.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
707
- if (v) {
708
- const w = parseInt(v[1]) / 360, y = parseInt(v[2]) / 100, k = parseInt(v[3]) / 100;
709
- if (v[4] && (g = parseFloat(v[4])), y === 0)
706
+ const g = u.match(/hsla?\((\d+),\s*(\d+)%,\s*(\d+)%(?:,\s*(\d*\.?\d+))?\)/);
707
+ if (g) {
708
+ const w = parseInt(g[1]) / 360, y = parseInt(g[2]) / 100, k = parseInt(g[3]) / 100;
709
+ if (g[4] && (v = parseFloat(g[4])), y === 0)
710
710
  i = d = p = k * 255;
711
711
  else {
712
712
  const x = (E, R, O) => (O < 0 && (O += 1), O > 1 && (O -= 1), O < 0.16666666666666666 ? E + (R - E) * 6 * O : O < 0.5 ? R : O < 0.6666666666666666 ? E + (R - E) * (0.6666666666666666 - O) * 6 : E), j = k < 0.5 ? k * (1 + y) : k + y - k * y, C = 2 * k - j;
@@ -714,51 +714,51 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
714
714
  }
715
715
  }
716
716
  }
717
- return { r: i, g: d, b: p, a: g };
717
+ return { r: i, g: d, b: p, a: v };
718
718
  }
719
719
  function l(u, i, d) {
720
720
  u /= 255, i /= 255, d /= 255;
721
- const p = Math.max(u, i, d), g = Math.min(u, i, d);
722
- let v, w, y = (p + g) / 2;
723
- if (p === g)
724
- v = w = 0;
721
+ const p = Math.max(u, i, d), v = Math.min(u, i, d);
722
+ let g, w, y = (p + v) / 2;
723
+ if (p === v)
724
+ g = w = 0;
725
725
  else {
726
- const k = p - g;
727
- switch (w = y > 0.5 ? k / (2 - p - g) : k / (p + g), p) {
726
+ const k = p - v;
727
+ switch (w = y > 0.5 ? k / (2 - p - v) : k / (p + v), p) {
728
728
  case u:
729
- v = (i - d) / k + (i < d ? 6 : 0);
729
+ g = (i - d) / k + (i < d ? 6 : 0);
730
730
  break;
731
731
  case i:
732
- v = (d - u) / k + 2;
732
+ g = (d - u) / k + 2;
733
733
  break;
734
734
  case d:
735
- v = (u - i) / k + 4;
735
+ g = (u - i) / k + 4;
736
736
  break;
737
737
  }
738
- v /= 6;
738
+ g /= 6;
739
739
  }
740
- return { h: v, s: w, l: y };
740
+ return { h: g, s: w, l: y };
741
741
  }
742
742
  function a(u, i, d) {
743
- let p, g, v;
743
+ let p, v, g;
744
744
  if (i === 0)
745
- p = g = v = d;
745
+ p = v = g = d;
746
746
  else {
747
747
  const w = (x, j, C) => (C < 0 && (C += 1), C > 1 && (C -= 1), C < 0.16666666666666666 ? x + (j - x) * 6 * C : C < 0.5 ? j : C < 0.6666666666666666 ? x + (j - x) * (0.6666666666666666 - C) * 6 : x), y = d < 0.5 ? d * (1 + i) : d + i - d * i, k = 2 * d - y;
748
- p = w(k, y, u + 1 / 3), g = w(k, y, u), v = w(k, y, u - 1 / 3);
748
+ p = w(k, y, u + 1 / 3), v = w(k, y, u), g = w(k, y, u - 1 / 3);
749
749
  }
750
- return { r: Math.round(p * 255), g: Math.round(g * 255), b: Math.round(v * 255) };
750
+ return { r: Math.round(p * 255), g: Math.round(v * 255), b: Math.round(g * 255) };
751
751
  }
752
752
  function s(u, i) {
753
753
  if (!u) return;
754
- let { r: d, g: p, b: g } = c(u), { h: v, s: w, l: y } = l(d, p, g);
754
+ let { r: d, g: p, b: v } = c(u), { h: g, s: w, l: y } = l(d, p, v);
755
755
  y = Math.max(0, y - i);
756
- const { r: k, g: x, b: j } = a(v, w, y);
756
+ const { r: k, g: x, b: j } = a(g, w, y);
757
757
  return `rgb(${k}, ${x}, ${j})`;
758
758
  }
759
759
  function m() {
760
- function u(v, w) {
761
- return Math.floor(Math.random() * (w - v + 1)) + v;
760
+ function u(g, w) {
761
+ return Math.floor(Math.random() * (w - g + 1)) + g;
762
762
  }
763
763
  const i = u(200, 255), d = u(200, 255), p = u(200, 255);
764
764
  return `#${i.toString(16).padStart(2, "0")}${d.toString(16).padStart(2, "0")}${p.toString(16).padStart(2, "0")}`;
@@ -827,10 +827,10 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
827
827
  function handleChange(r, e, t) {
828
828
  emit("change", r, e, t);
829
829
  }
830
+ const onBefore = inject("onBefore");
830
831
  function handleChoose(row, column, gridRef) {
831
832
  var r;
832
- const onBefore = inject("onBefore");
833
- if (onBefore && onBefore() || (r = column.params) != null && r.disabled) return;
833
+ if (onBefore && onBefore(column) || (r = column.params) != null && r.disabled) return;
834
834
  let { ChoosePageType, ChoosePageOID, StoredValueField, ReturnValueField, URLParamsObject, URLParamsHook } = props.column.params, urlParams = {}, selectedData = [], layerOptions = {};
835
835
  URLParamsObject && Object.assign(urlParams, URLParamsObject), URLParamsHook && Object.assign(urlParams, eval(`(${URLParamsHook})({ urlParams, selectedData, layerOptions, row, column, gridRef })`)), ChoosePageType === "autoPage" ? openAutoPage(ChoosePageOID, (e, t) => {
836
836
  isEmpty(StoredValueField) || isEmpty(ReturnValueField) || (Array.isArray(StoredValueField) || (StoredValueField = [StoredValueField]), Array.isArray(ReturnValueField) || (ReturnValueField = [ReturnValueField]), StoredValueField.forEach((o, n) => {
@@ -858,7 +858,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
858
858
  }))
859
859
  ]));
860
860
  }
861
- }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-5e0adfe1"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
861
+ }), chooseFrameRender = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-c44e48d9"]]), __vite_glob_0_2$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
862
862
  __proto__: null,
863
863
  default: chooseFrameRender
864
864
  }, Symbol.toStringTag, { value: "Module" })), _hoisted_1$9 = { class: "size-full color-picker" }, _sfc_main$m = /* @__PURE__ */ Object.assign({
@@ -1242,8 +1242,8 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1242
1242
  setup(r, { emit: e }) {
1243
1243
  const t = r, o = e;
1244
1244
  function n(c, l) {
1245
- var g;
1246
- if ((g = l.params) != null && g.disabled) return;
1245
+ var v;
1246
+ if ((v = l.params) != null && v.disabled) return;
1247
1247
  let {
1248
1248
  PickPeopleType: a,
1249
1249
  PickPeopleCheckType: s,
@@ -1258,8 +1258,8 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1258
1258
  Choose: s,
1259
1259
  IsAll: m,
1260
1260
  Status: u
1261
- }, (v) => {
1262
- isEmpty(i) ? c[l.field] = v.Name || null : (Array.isArray(i) || (i = [i]), Array.isArray(d) || (d = [d]), i.forEach((w, y) => c[w] = v[d[y]] || null)), o("change", v, c, l);
1261
+ }, (g) => {
1262
+ isEmpty(i) ? c[l.field] = g.Name || null : (Array.isArray(i) || (i = [i]), Array.isArray(d) || (d = [d]), i.forEach((w, y) => c[w] = g[d[y]] || null)), o("change", g, c, l);
1263
1263
  }, p ? c[p] : null);
1264
1264
  }
1265
1265
  return (c, l) => (openBlock(), createElementBlock("div", _hoisted_1$5, [
@@ -1395,7 +1395,7 @@ const _hoisted_1$h = ["title"], _hoisted_2$4 = { class: "flex flex-col gap3" },
1395
1395
  let m = [];
1396
1396
  return l.split(",").map((u) => {
1397
1397
  var d, p;
1398
- const i = (p = (d = t.value) == null ? void 0 : d.find((g) => g.value == u)) == null ? void 0 : p.label;
1398
+ const i = (p = (d = t.value) == null ? void 0 : d.find((v) => v.value == u)) == null ? void 0 : p.label;
1399
1399
  i !== void 0 && m.push(i);
1400
1400
  }), m.join(",");
1401
1401
  } else
@@ -1576,20 +1576,20 @@ const _sfc_main$a = /* @__PURE__ */ Object.assign({
1576
1576
  if (!i.isValid() && s === "week") {
1577
1577
  const d = a.match(/^(\d{4})年第(\d{2})周$/);
1578
1578
  if (d) {
1579
- const [, p, g] = d;
1580
- i = dayjs(`${p}-01-01`).isoWeek(Number(g));
1579
+ const [, p, v] = d;
1580
+ i = dayjs(`${p}-01-01`).isoWeek(Number(v));
1581
1581
  }
1582
1582
  } else if (!i.isValid() && s === "quarter") {
1583
1583
  const d = a.match(/^(\d{4})年第(\d)季度$/);
1584
1584
  if (d) {
1585
- const [, p, g] = d;
1586
- i = dayjs(`${p}-01-01`).quarter(Number(g));
1585
+ const [, p, v] = d;
1586
+ i = dayjs(`${p}-01-01`).quarter(Number(v));
1587
1587
  }
1588
1588
  } else if (!i.isValid() && s === "month") {
1589
1589
  const d = a.match(/^(\d{4})年(\d{2})月$/);
1590
1590
  if (d) {
1591
- const [, p, g] = d;
1592
- i = dayjs(`${p}-${g}-01`);
1591
+ const [, p, v] = d;
1592
+ i = dayjs(`${p}-${v}-01`);
1593
1593
  }
1594
1594
  } else if (!i.isValid() && s === "year") {
1595
1595
  const d = a.match(/^(\d{4})年$/);
@@ -2123,8 +2123,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2123
2123
  SelectRender: i,
2124
2124
  TreeSelectRender: d,
2125
2125
  SelectMultipleRender: p,
2126
- TreeMultipleSelectRender: g,
2127
- ChooseFrameRender: v,
2126
+ TreeMultipleSelectRender: v,
2127
+ ChooseFrameRender: g,
2128
2128
  PickPeopleRender: w,
2129
2129
  FileRender: y,
2130
2130
  CustomRender: k,
@@ -2325,14 +2325,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
2325
2325
  }, null, 8, ["row", "column", "grid-ref"])
2326
2326
  ]),
2327
2327
  TreeMultipleSelectRender: withCtx(({ row: f, column: _ }) => [
2328
- createVNode(unref(g), {
2328
+ createVNode(unref(v), {
2329
2329
  row: f,
2330
2330
  column: _,
2331
2331
  "grid-ref": b.value
2332
2332
  }, null, 8, ["row", "column", "grid-ref"])
2333
2333
  ]),
2334
2334
  ChooseFrameRender: withCtx(({ row: f, column: _ }) => [
2335
- createVNode(unref(v), {
2335
+ createVNode(unref(g), {
2336
2336
  row: f,
2337
2337
  column: _,
2338
2338
  "grid-ref": b.value
@@ -1,4 +1,4 @@
1
- import { l as c } from "./vendor-WGaPw_tu.mjs";
1
+ import { l as c } from "./vendor-PkgYxc4K.mjs";
2
2
  import { ref as i, onUnmounted as g } from "vue";
3
3
  function f(e) {
4
4
  return (t) => e.forEach((r) => {