@jari-ace/element-plus-component 0.2.2 → 0.2.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.
Files changed (124) hide show
  1. package/README.md +1 -1
  2. package/dist/components/rolePicker/baseRolePicker.vue.d.ts.map +1 -1
  3. package/dist/components/rolePicker/baseRolePicker.vue.js +4 -2
  4. package/dist/components/rolePicker/baseRolePicker.vue.js.map +1 -1
  5. package/lib/index.css +1 -1
  6. package/lib/index.js +297 -297
  7. package/lib/index.umd.cjs +2 -2
  8. package/package.json +61 -61
  9. package/packages/components/autoComplete/JaAutoComplete.vue +47 -47
  10. package/packages/components/autoComplete/index.ts +5 -5
  11. package/packages/components/avatar/JaAvatar.vue +126 -126
  12. package/packages/components/avatar/avatarToken.ts +11 -11
  13. package/packages/components/avatar/defaultImg.ts +14 -14
  14. package/packages/components/avatar/index.ts +7 -7
  15. package/packages/components/button/JaButton.vue +51 -51
  16. package/packages/components/button/index.ts +4 -4
  17. package/packages/components/channelPicker/index.ts +7 -7
  18. package/packages/components/channelPicker/src/ChannelPicker.vue +43 -43
  19. package/packages/components/channelPicker/src/JaChannelPicker.vue +42 -42
  20. package/packages/components/checkbox/JaCheckbox.vue +73 -73
  21. package/packages/components/checkbox/index.ts +4 -4
  22. package/packages/components/checkboxGroup/JaCheckboxGroup.vue +45 -45
  23. package/packages/components/checkboxGroup/index.ts +4 -4
  24. package/packages/components/customGroupTree/index.ts +10 -10
  25. package/packages/components/customGroupTree/src/customGroupTree.vue +91 -91
  26. package/packages/components/datePicker/JaDatePicker.vue +52 -52
  27. package/packages/components/datePicker/index.ts +4 -4
  28. package/packages/components/departmentPicker/index.ts +4 -4
  29. package/packages/components/departmentPicker/src/DepartmentPicker.vue +107 -107
  30. package/packages/components/departmentPicker/src/consts.ts +2 -2
  31. package/packages/components/departmentTree/index.ts +10 -10
  32. package/packages/components/departmentTree/src/departmentTree.vue +135 -135
  33. package/packages/components/dropdownButton/JaDropdownButton.vue +59 -59
  34. package/packages/components/dropdownButton/index.ts +4 -4
  35. package/packages/components/enumList/EnumListInput.vue +107 -107
  36. package/packages/components/enumList/JaEnumList.vue +39 -39
  37. package/packages/components/enumList/index.ts +7 -7
  38. package/packages/components/enumPicker/index.ts +5 -5
  39. package/packages/components/enumPicker/src/EnumPicker.vue +103 -103
  40. package/packages/components/form/JaForm.vue +146 -146
  41. package/packages/components/form/index.ts +5 -5
  42. package/packages/components/form/types.ts +4 -4
  43. package/packages/components/formItem/JaFormItem.vue +87 -87
  44. package/packages/components/formItem/index.ts +4 -4
  45. package/packages/components/index.ts +34 -34
  46. package/packages/components/input/JaInput.vue +143 -143
  47. package/packages/components/input/index.ts +4 -4
  48. package/packages/components/inputI18n/I18nBundleEditor.vue +76 -76
  49. package/packages/components/inputI18n/InputI18n.vue +146 -146
  50. package/packages/components/inputI18n/JaInputI18n.vue +50 -50
  51. package/packages/components/inputI18n/index.ts +8 -8
  52. package/packages/components/inputNumber/JaInputNumber.vue +98 -98
  53. package/packages/components/inputNumber/index.ts +4 -4
  54. package/packages/components/mapItemList/JaMapItemList.vue +35 -35
  55. package/packages/components/mapItemList/MapItemListInput.vue +191 -191
  56. package/packages/components/mapItemList/index.ts +7 -7
  57. package/packages/components/numberList/JaNumberList.vue +36 -36
  58. package/packages/components/numberList/NumberListInput.vue +111 -111
  59. package/packages/components/numberList/index.ts +7 -7
  60. package/packages/components/properyPicker/JaPropertyPicker.vue +38 -38
  61. package/packages/components/properyPicker/PropertyPicker.vue +314 -314
  62. package/packages/components/properyPicker/index.ts +7 -7
  63. package/packages/components/radioGroup/JaRadioGroup.vue +50 -50
  64. package/packages/components/radioGroup/index.ts +4 -4
  65. package/packages/components/rolePicker/RoleEditor.vue +129 -129
  66. package/packages/components/rolePicker/RolePicker.vue +44 -44
  67. package/packages/components/rolePicker/RolePickerRaw.vue +56 -56
  68. package/packages/components/rolePicker/baseRolePicker.vue +91 -87
  69. package/packages/components/rolePicker/index.ts +10 -10
  70. package/packages/components/scrollbar/Scrollbar.vue +89 -89
  71. package/packages/components/scrollbar/index.ts +5 -5
  72. package/packages/components/scrollbar/utils.ts +17 -17
  73. package/packages/components/select/JaSelect.vue +48 -48
  74. package/packages/components/select/index.ts +4 -4
  75. package/packages/components/stringList/JaStringList.vue +36 -36
  76. package/packages/components/stringList/StringListInput.vue +96 -96
  77. package/packages/components/stringList/index.ts +7 -7
  78. package/packages/components/switch/JaSwitch.vue +50 -50
  79. package/packages/components/switch/index.ts +4 -4
  80. package/packages/components/timePicker/JaTimePicker.vue +52 -52
  81. package/packages/components/timePicker/index.ts +5 -5
  82. package/packages/components/tip/index.ts +4 -4
  83. package/packages/components/tip/src/AceTip.vue +43 -43
  84. package/packages/components/upload/index.ts +6 -6
  85. package/packages/components/upload/src/Upload.vue +25 -25
  86. package/packages/components/upload/src/type.ts +3 -3
  87. package/packages/components/userGroupPicker/index.ts +4 -4
  88. package/packages/components/userGroupPicker/src/UserGroupPicker.vue +94 -94
  89. package/packages/components/userGroupTree/index.ts +10 -10
  90. package/packages/components/userGroupTree/src/userGroupTree.vue +149 -149
  91. package/packages/components/userPicker/index.ts +10 -10
  92. package/packages/components/userPicker/src/CustomGroupManager.vue +189 -189
  93. package/packages/components/userPicker/src/JaUserList.vue +317 -317
  94. package/packages/components/userPicker/src/JaUserPicker.vue +40 -40
  95. package/packages/components/userPicker/src/UserPicker.vue +472 -472
  96. package/packages/components/userSelectDialog/index.ts +6 -6
  97. package/packages/components/userSelectDialog/src/userSelectDialog.vue +462 -462
  98. package/packages/components/userTag/UserInfoTag.vue +397 -397
  99. package/packages/components/userTag/index.ts +6 -6
  100. package/packages/components/userTag/sharedAxios.ts +8 -8
  101. package/packages/directives/auth/index.ts +41 -41
  102. package/packages/directives/autofocus/index.ts +29 -29
  103. package/packages/directives/index.ts +10 -10
  104. package/packages/directives/shortcut/index.ts +192 -192
  105. package/packages/hooks/useAppInstances.ts +34 -34
  106. package/packages/hooks/useBackendValidations.ts +81 -81
  107. package/packages/hooks/useBridage.ts +157 -157
  108. package/packages/hooks/useClassificationLevels.ts +62 -62
  109. package/packages/hooks/useDateTimeShortCuts.ts +65 -65
  110. package/packages/hooks/useRealms.ts +28 -28
  111. package/packages/hooks/useTreeData.ts +45 -45
  112. package/packages/hooks/useUserRefQuery.ts +232 -232
  113. package/packages/index.ts +24 -24
  114. package/packages/list.json +7 -7
  115. package/packages/types/custom.d.ts +13 -13
  116. package/packages/types/window.d.ts +16 -16
  117. package/packages/utils/install.ts +43 -43
  118. package/packages/utils/objectUtils.ts +31 -31
  119. package/theme-style/fonts/iconfont.json +5196 -5196
  120. package/theme-style/index.scss +10 -10
  121. package/theme-style/styles/element-plus-var.scss +1419 -1419
  122. package/theme-style/styles/iconfont.css +2979 -2979
  123. package/theme-style/styles/theme-var.scss +72 -72
  124. package/theme-style/styles/transition.scss +122 -122
package/lib/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as z, reactive as Je, resolveComponent as ye, createElementBlock as L, openBlock as y, createVNode as w, withCtx as g, createTextVNode as W, createElementVNode as J, normalizeStyle as jt, renderSlot as ee, toDisplayString as le, ref as h, provide as Ie, computed as ge, watch as T, createBlock as C, unref as i, inject as F, createCommentVNode as ue, createSlots as ve, renderList as K, mergeProps as Y, onMounted as Xe, withDirectives as Q, onBeforeMount as xe, Fragment as re, vShow as he, resolveDynamicComponent as Na, mergeModels as X, useModel as de, nextTick as Ce, onUnmounted as De, normalizeClass as We, shallowReactive as vt, withAsyncContext as gt, h as ze, shallowRef as Oa, withKeys as Ae, withModifiers as Tt, vModelText as ja, resolveDirective as Jt } from "vue";
2
- import { ElForm as ht, ElFormItem as Ke, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Ja, ElInputNumber as Ye, ElSelect as Ee, ElDatePicker as it, ElButton as me, ElDropdown as xt, ElSwitch as qt, ElSpace as yt, ElTreeSelect as bt, ElAvatar as xa, ElImage as qa, ElPopover as Gt, vLoading as Te, ElTree as Ze, ElOption as et, ElDialog as dt, ElTabs as Ga, ElTabPane as ot, ElScrollbar as $e, ElTableV2 as Ha, ElMessageBox as Wa, ElMessage as Ka, ElEmpty as Ht, ElTimePicker as Ya, ElAutocomplete as Qa, ElRadioGroup as Xa, ElDrawer as Wt, ElTag as St, ElCheckboxGroup as Za } from "element-plus";
2
+ import { ElForm as ht, ElFormItem as Ke, ElText as Fe, ElTooltip as ke, ElIcon as ce, ElInput as we, ElCheckbox as Ja, ElInputNumber as Ye, ElSelect as Ee, ElDatePicker as it, ElButton as fe, ElDropdown as xt, ElSwitch as qt, ElSpace as yt, ElTreeSelect as bt, ElAvatar as xa, ElImage as qa, ElPopover as Gt, vLoading as Te, ElTree as Ze, ElOption as et, ElDialog as dt, ElTabs as Ga, ElTabPane as ot, ElScrollbar as $e, ElTableV2 as Ha, ElMessageBox as Wa, ElMessage as Ka, ElEmpty as Ht, ElTimePicker as Ya, ElAutocomplete as Qa, ElRadioGroup as Xa, ElDrawer as Wt, ElTag as St, ElCheckboxGroup as Za } from "element-plus";
3
3
  import { createAxiosWithoutCache as oe, useLoginUser as Kt, useDepartmentApi as Yt, FromDeptSelect as Qt, useLoading as _e, useUserApi as wt, useRealmApi as el, useUserQueryBuilder as Xt, useUserGroupApi as Zt, useAppApi as _t, useCustomGroupApi as ea, useRoleApi as ta, useChannelApi as tl, useEntityApi as al, useAppMessageApi as aa, useEnumApi as ll, useAppServiceApi as ol } from "@jari-ace/app-bolts";
4
- import { QuestionFilled as la, ArrowDown as oa, Minus as qe, Plus as Se, Star as nl, StarFilled as na, Close as rl, Hide as sl, View as ul, Check as ra, Notebook as il, Delete as dl, Finished as cl, Setting as pl, Search as Pt, ArrowUp as fl } from "@element-plus/icons-vue";
4
+ import { QuestionFilled as la, ArrowDown as oa, Minus as qe, Plus as Se, Star as nl, StarFilled as na, Close as rl, Hide as sl, View as ul, Check as ra, Notebook as il, Delete as dl, Finished as cl, Setting as pl, Search as Pt, ArrowUp as ml } from "@element-plus/icons-vue";
5
5
  const R = (e, a) => (e.install = (l) => {
6
6
  for (const t of [e, ...Object.values({})])
7
7
  l.component(t.name, t);
8
- }, e), ml = /* @__PURE__ */ z({
8
+ }, e), fl = /* @__PURE__ */ z({
9
9
  __name: "Upload",
10
10
  props: {
11
11
  action: {},
@@ -49,7 +49,7 @@ const R = (e, a) => (e.install = (l) => {
49
49
  ]);
50
50
  };
51
51
  }
52
- }), vl = R(ml), gl = { class: "text-box" }, hl = /* @__PURE__ */ z({
52
+ }), vl = R(fl), gl = { class: "text-box" }, hl = /* @__PURE__ */ z({
53
53
  __name: "AceTip",
54
54
  props: {
55
55
  type: { default: "primary" },
@@ -73,7 +73,7 @@ const R = (e, a) => (e.install = (l) => {
73
73
  for (const [t, o] of a)
74
74
  l[t] = o;
75
75
  return l;
76
- }, yl = /* @__PURE__ */ pe(hl, [["__scopeId", "data-v-2d61860f"]]), bl = R(yl);
76
+ }, yl = /* @__PURE__ */ pe(hl, [["__scopeId", "data-v-2cc0dc68"]]), bl = R(yl);
77
77
  function wl(e, a, l) {
78
78
  const t = Je({});
79
79
  let o = [];
@@ -87,12 +87,12 @@ function wl(e, a, l) {
87
87
  trigger: "blur",
88
88
  validator: (p, r, c) => {
89
89
  if (!o) return;
90
- let f = !1;
91
- for (const m of o) {
92
- let _ = m.fieldName;
93
- _ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (f = !0, c(new Error(m.message)));
90
+ let m = !1;
91
+ for (const f of o) {
92
+ let _ = f.fieldName;
93
+ _ != null && _.endsWith("[]") && (_ = _.substring(0, _.length - 2)), _ === n && (m = !0, c(new Error(f.message)));
94
94
  }
95
- f || c();
95
+ m || c();
96
96
  }
97
97
  };
98
98
  l && l[n] ? Array.isArray(l[n]) ? t[n] = [u, ...l[n]] : t[n] = [u, l[n]] : t[n] = u;
@@ -357,7 +357,7 @@ const $l = /* @__PURE__ */ z({
357
357
  ref: s,
358
358
  type: r.type,
359
359
  modelValue: p.value,
360
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
360
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
361
361
  maxlength: r.maxLength,
362
362
  minLength: r.minLength,
363
363
  "show-word-limit": r.showWordLimit,
@@ -384,16 +384,16 @@ const $l = /* @__PURE__ */ z({
384
384
  label: r.label,
385
385
  tabindex: r.tabindex,
386
386
  "validate-event": r.validateEvent,
387
- onBlur: c[1] || (c[1] = (f) => r.$emit("blur", f)),
388
- onFocus: c[2] || (c[2] = (f) => r.$emit("focus", f)),
387
+ onBlur: c[1] || (c[1] = (m) => r.$emit("blur", m)),
388
+ onFocus: c[2] || (c[2] = (m) => r.$emit("focus", m)),
389
389
  onChange: u,
390
- onInput: c[3] || (c[3] = (f) => r.$emit("input", f)),
390
+ onInput: c[3] || (c[3] = (m) => r.$emit("input", m)),
391
391
  onClear: c[4] || (c[4] = () => r.$emit("clear"))
392
392
  }, ve({ _: 2 }, [
393
- K(r.$slots, (f, m) => ({
394
- name: m,
393
+ K(r.$slots, (m, f) => ({
394
+ name: f,
395
395
  fn: g(() => [
396
- ee(r.$slots, m)
396
+ ee(r.$slots, f)
397
397
  ])
398
398
  }))
399
399
  ]), 1032, ["type", "modelValue", "maxlength", "minLength", "show-word-limit", "placeholder", "clearable", "formatter", "parser", "show-password", "disabled", "size", "prefix-icon", "suffix-icon", "rows", "autosize", "autocomplete", "name", "readonly", "max", "min", "step", "resize", "autofocus", "form", "label", "tabindex", "validate-event"]));
@@ -427,7 +427,7 @@ const $l = /* @__PURE__ */ z({
427
427
  ref_key: "checkbox",
428
428
  ref: s,
429
429
  modelValue: p.value,
430
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
430
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
431
431
  disabled: r.disabled,
432
432
  "true-label": r.trueLabel,
433
433
  "false-label": r.falseLabel,
@@ -470,8 +470,8 @@ const $l = /* @__PURE__ */ z({
470
470
  emits: ["blur", "focus", "change"],
471
471
  setup(e, { expose: a, emit: l }) {
472
472
  const t = e, o = F("aceFormModel"), d = F("aceFormItemProp"), s = F("aceFormValidator"), n = ge(() => t.size ? t.size : F("aceFormSize")), u = h(), p = l;
473
- function r(f) {
474
- s.removeFieldError(d), se(o.formData, d, c.value), p("change", f);
473
+ function r(m) {
474
+ s.removeFieldError(d), se(o.formData, d, c.value), p("change", m);
475
475
  }
476
476
  const c = h(q(o.formData, d));
477
477
  return T(() => o.formData, () => {
@@ -480,41 +480,41 @@ const $l = /* @__PURE__ */ z({
480
480
  deep: !0
481
481
  }), a({
482
482
  focus() {
483
- var f;
484
- (f = u == null ? void 0 : u.value) == null || f.focus();
483
+ var m;
484
+ (m = u == null ? void 0 : u.value) == null || m.focus();
485
485
  },
486
486
  blur() {
487
- var f;
488
- (f = u == null ? void 0 : u.value) == null || f.blur();
487
+ var m;
488
+ (m = u == null ? void 0 : u.value) == null || m.blur();
489
489
  },
490
490
  elInputNumber: u
491
- }), (f, m) => (y(), C(i(Ye), {
492
- min: f.min,
493
- max: f.max,
494
- label: f.label,
495
- disabled: f.disabled,
496
- id: f.id,
497
- "aria-label": f.ariaLabel,
498
- controls: f.controls,
499
- "controls-position": f.controlsPosition,
491
+ }), (m, f) => (y(), C(i(Ye), {
492
+ min: m.min,
493
+ max: m.max,
494
+ label: m.label,
495
+ disabled: m.disabled,
496
+ id: m.id,
497
+ "aria-label": m.ariaLabel,
498
+ controls: m.controls,
499
+ "controls-position": m.controlsPosition,
500
500
  modelValue: c.value,
501
- "onUpdate:modelValue": m[0] || (m[0] = (_) => c.value = _),
502
- name: f.name,
503
- placeholder: f.placeholder,
504
- precision: f.precision,
505
- readonly: f.readonly,
501
+ "onUpdate:modelValue": f[0] || (f[0] = (_) => c.value = _),
502
+ name: m.name,
503
+ placeholder: m.placeholder,
504
+ precision: m.precision,
505
+ readonly: m.readonly,
506
506
  size: n.value,
507
- step: f.step,
508
- "step-strictly": f.stepStrictly,
509
- "value-on-clear": f.valueOnClear,
510
- "validate-event": f.validateEvent,
507
+ step: m.step,
508
+ "step-strictly": m.stepStrictly,
509
+ "value-on-clear": m.valueOnClear,
510
+ "validate-event": m.validateEvent,
511
511
  onChange: r,
512
- onBlur: m[1] || (m[1] = (_) => f.$emit("blur", _)),
513
- onFocus: m[2] || (m[2] = (_) => f.$emit("focus", _))
512
+ onBlur: f[1] || (f[1] = (_) => m.$emit("blur", _)),
513
+ onFocus: f[2] || (f[2] = (_) => m.$emit("focus", _))
514
514
  }, {
515
515
  default: g(() => [
516
- ee(f.$slots, "decrease-icon"),
517
- ee(f.$slots, "increase-icon")
516
+ ee(m.$slots, "decrease-icon"),
517
+ ee(m.$slots, "increase-icon")
518
518
  ]),
519
519
  _: 3
520
520
  }, 8, ["min", "max", "label", "disabled", "id", "aria-label", "controls", "controls-position", "modelValue", "name", "placeholder", "precision", "readonly", "size", "step", "step-strictly", "value-on-clear", "validate-event"]));
@@ -540,13 +540,13 @@ const $l = /* @__PURE__ */ z({
540
540
  ref_key: "input",
541
541
  ref: t,
542
542
  modelValue: p.value,
543
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
543
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
544
544
  onChange: u
545
545
  }, r.$attrs), ve({ _: 2 }, [
546
- K(r.$slots, (f, m) => ({
547
- name: m,
546
+ K(r.$slots, (m, f) => ({
547
+ name: f,
548
548
  fn: g(() => [
549
- ee(r.$slots, m)
549
+ ee(r.$slots, f)
550
550
  ])
551
551
  }))
552
552
  ]), 1040, ["modelValue"]));
@@ -565,17 +565,17 @@ const $l = /* @__PURE__ */ z({
565
565
  }, {
566
566
  deep: !0
567
567
  }), Xe(() => {
568
- Object.entries(t.value).filter(([f, m]) => m instanceof Function).forEach(([f, m]) => {
569
- u.value[f] = m;
568
+ Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
569
+ u.value[m] = f;
570
570
  });
571
- }), a(u.value), (c, f) => (y(), C(i(it), Y({
571
+ }), a(u.value), (c, m) => (y(), C(i(it), Y({
572
572
  ref_key: "input",
573
573
  ref: t,
574
574
  modelValue: i(o).formData[i(d)],
575
- "onUpdate:modelValue": f[0] || (f[0] = (m) => i(o).formData[i(d)] = m),
575
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => i(o).formData[i(d)] = f),
576
576
  onChange: p
577
577
  }, c.$attrs), ve({ _: 2 }, [
578
- K(c.$slots, (m, _) => ({
578
+ K(c.$slots, (f, _) => ({
579
579
  name: _,
580
580
  fn: g(() => [
581
581
  ee(c.$slots, _)
@@ -756,7 +756,7 @@ const sa = {
756
756
  W(le(`${t.tooltip ?? ""} ${t.shortcut ? "(" : ""}${t.shortcut ?? ""}${t.shortcut ? ")" : ""}`), 1)
757
757
  ]),
758
758
  default: g(() => [
759
- Q((y(), C(i(me), Y({
759
+ Q((y(), C(i(fe), Y({
760
760
  ref_key: "input",
761
761
  ref: l
762
762
  }, d.$attrs), ve({ _: 2 }, [
@@ -804,7 +804,7 @@ const sa = {
804
804
  trigger: "click"
805
805
  }, n.$attrs), ve({
806
806
  default: g(() => [
807
- Q((y(), C(i(me), Y({
807
+ Q((y(), C(i(fe), Y({
808
808
  ref_key: "input",
809
809
  ref: l,
810
810
  type: n.type,
@@ -864,13 +864,13 @@ const sa = {
864
864
  ref_key: "input",
865
865
  ref: t,
866
866
  modelValue: p.value,
867
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
867
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
868
868
  onChange: u
869
869
  }, r.$attrs), ve({ _: 2 }, [
870
- K(r.$slots, (f, m) => ({
871
- name: m,
870
+ K(r.$slots, (m, f) => ({
871
+ name: f,
872
872
  fn: g(() => [
873
- ee(r.$slots, m)
873
+ ee(r.$slots, f)
874
874
  ])
875
875
  }))
876
876
  ]), 1040, ["modelValue"]));
@@ -901,7 +901,7 @@ const sa = {
901
901
  u = !1;
902
902
  return;
903
903
  }
904
- n = !0, c ? (s.value = c.map((f) => ({ v: f })), s.value.length == 0 && s.value.push({ v: "" })) : s.value = [{ v: "" }];
904
+ n = !0, c ? (s.value = c.map((m) => ({ v: m })), s.value.length == 0 && s.value.push({ v: "" })) : s.value = [{ v: "" }];
905
905
  }
906
906
  return T(() => l.modelValue, (c) => {
907
907
  p(c);
@@ -911,18 +911,18 @@ const sa = {
911
911
  return;
912
912
  }
913
913
  u = !0;
914
- const c = s.value.map((f) => f.v).filter((f) => f && f.length > 0);
914
+ const c = s.value.map((m) => m.v).filter((m) => m && m.length > 0);
915
915
  t("update:modelValue", c), t("change", c);
916
- }, { deep: !0 }), (c, f) => (y(), L("div", Gl, [
916
+ }, { deep: !0 }), (c, m) => (y(), L("div", Gl, [
917
917
  w(i(yt), {
918
918
  direction: "vertical",
919
919
  style: { "align-items": "stretch", width: "100%" }
920
920
  }, {
921
921
  default: g(() => [
922
- (y(!0), L(re, null, K(s.value, (m, _) => (y(), C(i(we), {
922
+ (y(!0), L(re, null, K(s.value, (f, _) => (y(), C(i(we), {
923
923
  key: _,
924
- modelValue: m.v,
925
- "onUpdate:modelValue": (I) => m.v = I,
924
+ modelValue: f.v,
925
+ "onUpdate:modelValue": (I) => f.v = I,
926
926
  size: c.size
927
927
  }, {
928
928
  append: g(() => [
@@ -958,7 +958,7 @@ const sa = {
958
958
  var I;
959
959
  return [
960
960
  Q(J("div", {
961
- onClick: f[0] || (f[0] = (b) => d()),
961
+ onClick: m[0] || (m[0] = (b) => d()),
962
962
  style: { margin: "0 -20px", padding: "0 20px" }
963
963
  }, [
964
964
  w(i(ce), null, {
@@ -1033,7 +1033,7 @@ const sa = {
1033
1033
  u = !1;
1034
1034
  return;
1035
1035
  }
1036
- n = !0, c ? (s.value = c.map((f) => ({ v: f })), s.value.length == 0 && s.value.push({ v: 0 })) : s.value = [{ v: 0 }];
1036
+ n = !0, c ? (s.value = c.map((m) => ({ v: m })), s.value.length == 0 && s.value.push({ v: 0 })) : s.value = [{ v: 0 }];
1037
1037
  }
1038
1038
  }
1039
1039
  return T(() => l.modelValue, (c) => {
@@ -1044,10 +1044,10 @@ const sa = {
1044
1044
  return;
1045
1045
  }
1046
1046
  u = !0;
1047
- const c = s.value.map((f) => f.v);
1047
+ const c = s.value.map((m) => m.v);
1048
1048
  t("update:modelValue", c), t("change", c);
1049
- }, { deep: !0 }), (c, f) => {
1050
- const m = ye("el-tooltip");
1049
+ }, { deep: !0 }), (c, m) => {
1050
+ const f = ye("el-tooltip");
1051
1051
  return y(), L("div", Ql, [
1052
1052
  (y(!0), L(re, null, K(s.value, (_, I) => (y(), L("div", {
1053
1053
  class: "ja-input-box",
@@ -1060,7 +1060,7 @@ const sa = {
1060
1060
  size: c.size,
1061
1061
  step: c.step
1062
1062
  }, null, 8, ["modelValue", "onUpdate:modelValue", "precision", "size", "step"]),
1063
- w(m, {
1063
+ w(f, {
1064
1064
  content: "删除",
1065
1065
  placement: "right"
1066
1066
  }, {
@@ -1068,7 +1068,7 @@ const sa = {
1068
1068
  var b;
1069
1069
  return [
1070
1070
  Q(J("div", Xl, [
1071
- w(i(me), {
1071
+ w(i(fe), {
1072
1072
  link: "",
1073
1073
  icon: i(qe),
1074
1074
  onClick: (v) => o(I),
@@ -1081,7 +1081,7 @@ const sa = {
1081
1081
  }),
1082
1082
  _: 2
1083
1083
  }, 1024),
1084
- w(m, {
1084
+ w(f, {
1085
1085
  content: "添加",
1086
1086
  placement: "right"
1087
1087
  }, {
@@ -1089,8 +1089,8 @@ const sa = {
1089
1089
  var b;
1090
1090
  return [
1091
1091
  Q(J("div", Zl, [
1092
- w(i(me), {
1093
- onClick: f[0] || (f[0] = (v) => d()),
1092
+ w(i(fe), {
1093
+ onClick: m[0] || (m[0] = (v) => d()),
1094
1094
  size: c.size,
1095
1095
  link: "",
1096
1096
  icon: i(Se)
@@ -1106,7 +1106,7 @@ const sa = {
1106
1106
  ]);
1107
1107
  };
1108
1108
  }
1109
- }), ia = /* @__PURE__ */ pe(eo, [["__scopeId", "data-v-d4e93caa"]]), to = /* @__PURE__ */ z({
1109
+ }), ia = /* @__PURE__ */ pe(eo, [["__scopeId", "data-v-a3fae0c2"]]), to = /* @__PURE__ */ z({
1110
1110
  __name: "JaNumberList",
1111
1111
  emits: ["change"],
1112
1112
  setup(e, { emit: a }) {
@@ -1155,7 +1155,7 @@ const sa = {
1155
1155
  u = !1;
1156
1156
  return;
1157
1157
  }
1158
- n = !0, s.value = c.map((f) => ({ v: f })), s.value.length == 0 && s.value.push({ v: "" });
1158
+ n = !0, s.value = c.map((m) => ({ v: m })), s.value.length == 0 && s.value.push({ v: "" });
1159
1159
  }
1160
1160
  return T(() => l.modelValue, (c) => {
1161
1161
  p(c);
@@ -1165,10 +1165,10 @@ const sa = {
1165
1165
  return;
1166
1166
  }
1167
1167
  u = !0;
1168
- const c = s.value.map((f) => f.v).filter((f) => f && f.length > 0);
1168
+ const c = s.value.map((m) => m.v).filter((m) => m && m.length > 0);
1169
1169
  t("update:modelValue", c), t("change", c);
1170
- }, { deep: !0 }), (c, f) => {
1171
- const m = ye("el-option"), _ = ye("el-tooltip");
1170
+ }, { deep: !0 }), (c, m) => {
1171
+ const f = ye("el-option"), _ = ye("el-tooltip");
1172
1172
  return y(), L("div", oo, [
1173
1173
  (y(!0), L(re, null, K(s.value, (I, b) => (y(), L("div", {
1174
1174
  class: "ja-input-box",
@@ -1180,7 +1180,7 @@ const sa = {
1180
1180
  size: c.size
1181
1181
  }, {
1182
1182
  default: g(() => [
1183
- (y(!0), L(re, null, K(Object.keys(l.enumValues), (v) => (y(), C(m, {
1183
+ (y(!0), L(re, null, K(Object.keys(l.enumValues), (v) => (y(), C(f, {
1184
1184
  key: v,
1185
1185
  label: v,
1186
1186
  value: l.enumValues[v]
@@ -1196,7 +1196,7 @@ const sa = {
1196
1196
  var v;
1197
1197
  return [
1198
1198
  Q(J("div", no, [
1199
- w(i(me), {
1199
+ w(i(fe), {
1200
1200
  link: "",
1201
1201
  icon: i(qe),
1202
1202
  onClick: (S) => o(b),
@@ -1217,8 +1217,8 @@ const sa = {
1217
1217
  var v;
1218
1218
  return [
1219
1219
  Q(J("div", ro, [
1220
- w(i(me), {
1221
- onClick: f[0] || (f[0] = (S) => d()),
1220
+ w(i(fe), {
1221
+ onClick: m[0] || (m[0] = (S) => d()),
1222
1222
  size: c.size,
1223
1223
  link: "",
1224
1224
  icon: i(Se)
@@ -1234,7 +1234,7 @@ const sa = {
1234
1234
  ]);
1235
1235
  };
1236
1236
  }
1237
- }), da = /* @__PURE__ */ pe(so, [["__scopeId", "data-v-7f910f6d"]]), uo = /* @__PURE__ */ z({
1237
+ }), da = /* @__PURE__ */ pe(so, [["__scopeId", "data-v-49923459"]]), uo = /* @__PURE__ */ z({
1238
1238
  __name: "JaEnumList",
1239
1239
  props: {
1240
1240
  enumValues: {}
@@ -1260,7 +1260,7 @@ const sa = {
1260
1260
  }), io = R(uo), co = R(da), po = {
1261
1261
  style: { width: "100%" },
1262
1262
  class: "ja-enum-list"
1263
- }, fo = { class: "splitter" }, mo = { class: "el-input-group__append" }, vo = { class: "el-input-group__append" }, go = /* @__PURE__ */ z({
1263
+ }, mo = { class: "splitter" }, fo = { class: "el-input-group__append" }, vo = { class: "el-input-group__append" }, go = /* @__PURE__ */ z({
1264
1264
  __name: "MapItemListInput",
1265
1265
  props: {
1266
1266
  modelValue: {},
@@ -1271,13 +1271,13 @@ const sa = {
1271
1271
  emits: ["update:modelValue", "change"],
1272
1272
  setup(e, { emit: a }) {
1273
1273
  const l = e, t = a;
1274
- function o(m) {
1274
+ function o(f) {
1275
1275
  var _;
1276
- (_ = s.value) == null || _.splice(m, 1);
1276
+ (_ = s.value) == null || _.splice(f, 1);
1277
1277
  }
1278
1278
  function d() {
1279
- var m;
1280
- (m = s.value) == null || m.push({ k: "" });
1279
+ var f;
1280
+ (f = s.value) == null || f.push({ k: "" });
1281
1281
  }
1282
1282
  const s = h([]);
1283
1283
  let n = !1, u = !1, p = h(), r = h({});
@@ -1315,22 +1315,22 @@ const sa = {
1315
1315
  }
1316
1316
  }
1317
1317
  xe(() => {
1318
- f(l.modelValue), c();
1318
+ m(l.modelValue), c();
1319
1319
  });
1320
- function f(m) {
1320
+ function m(f) {
1321
1321
  if (u) {
1322
1322
  u = !1;
1323
1323
  return;
1324
1324
  }
1325
- if (m) {
1325
+ if (f) {
1326
1326
  n = !0;
1327
- const _ = Object.keys(m);
1328
- s.value = _.map((I) => ({ k: I, v: m[I] })), s.value.length == 0 && s.value.push({ k: "" });
1327
+ const _ = Object.keys(f);
1328
+ s.value = _.map((I) => ({ k: I, v: f[I] })), s.value.length == 0 && s.value.push({ k: "" });
1329
1329
  } else
1330
1330
  s.value = [{ k: "" }];
1331
1331
  }
1332
- return T(() => l.modelValue, (m) => {
1333
- f(m);
1332
+ return T(() => l.modelValue, (f) => {
1333
+ m(f);
1334
1334
  }, {
1335
1335
  deep: !0
1336
1336
  }), T(() => s.value, () => {
@@ -1340,11 +1340,11 @@ const sa = {
1340
1340
  return;
1341
1341
  }
1342
1342
  u = !0;
1343
- const m = (_ = s.value) == null ? void 0 : _.filter((I) => I.k && I.v).reduce((I, b) => (I[b.k] = b.v, I), {});
1344
- t("update:modelValue", m), t("change", m);
1343
+ const f = (_ = s.value) == null ? void 0 : _.filter((I) => I.k && I.v).reduce((I, b) => (I[b.k] = b.v, I), {});
1344
+ t("update:modelValue", f), t("change", f);
1345
1345
  }, { deep: !0 }), T(() => l.valueType, () => {
1346
1346
  c();
1347
- }), (m, _) => {
1347
+ }), (f, _) => {
1348
1348
  const I = ye("el-text"), b = ye("el-option"), v = ye("el-tooltip");
1349
1349
  return y(), L("div", po, [
1350
1350
  (y(!0), L(re, null, K(s.value, (S, P) => (y(), L("div", {
@@ -1354,10 +1354,10 @@ const sa = {
1354
1354
  w(i(we), {
1355
1355
  modelValue: S.k,
1356
1356
  "onUpdate:modelValue": (k) => S.k = k,
1357
- size: m.size,
1357
+ size: f.size,
1358
1358
  placeholder: "键"
1359
1359
  }, null, 8, ["modelValue", "onUpdate:modelValue", "size"]),
1360
- J("div", fo, [
1360
+ J("div", mo, [
1361
1361
  w(I, null, {
1362
1362
  default: g(() => _[1] || (_[1] = [
1363
1363
  W(":")
@@ -1369,7 +1369,7 @@ const sa = {
1369
1369
  (y(), C(Na(i(p)), Y({
1370
1370
  modelValue: S.v,
1371
1371
  "onUpdate:modelValue": (k) => S.v = k,
1372
- size: m.size,
1372
+ size: f.size,
1373
1373
  placeholder: "值"
1374
1374
  }, { ref_for: !0 }, i(r)), {
1375
1375
  default: g(() => [
@@ -1388,12 +1388,12 @@ const sa = {
1388
1388
  default: g(() => {
1389
1389
  var k;
1390
1390
  return [
1391
- Q(J("div", mo, [
1392
- w(i(me), {
1391
+ Q(J("div", fo, [
1392
+ w(i(fe), {
1393
1393
  link: "",
1394
1394
  icon: i(qe),
1395
1395
  onClick: (A) => o(P),
1396
- size: m.size
1396
+ size: f.size
1397
1397
  }, null, 8, ["icon", "onClick", "size"])
1398
1398
  ], 512), [
1399
1399
  [he, P < (((k = s.value) == null ? void 0 : k.length) ?? 0) - 1]
@@ -1410,9 +1410,9 @@ const sa = {
1410
1410
  var k;
1411
1411
  return [
1412
1412
  Q(J("div", vo, [
1413
- w(i(me), {
1413
+ w(i(fe), {
1414
1414
  onClick: _[0] || (_[0] = (A) => d()),
1415
- size: m.size,
1415
+ size: f.size,
1416
1416
  link: "",
1417
1417
  icon: i(Se)
1418
1418
  }, null, 8, ["size", "icon"])
@@ -1427,7 +1427,7 @@ const sa = {
1427
1427
  ]);
1428
1428
  };
1429
1429
  }
1430
- }), ca = /* @__PURE__ */ pe(go, [["__scopeId", "data-v-f8df7c64"]]), ho = /* @__PURE__ */ z({
1430
+ }), ca = /* @__PURE__ */ pe(go, [["__scopeId", "data-v-bebb510c"]]), ho = /* @__PURE__ */ z({
1431
1431
  __name: "JaMapItemList",
1432
1432
  emits: ["change"],
1433
1433
  setup(e, { emit: a }) {
@@ -1496,7 +1496,7 @@ const kt = "-1", pa = "-100", _o = /* @__PURE__ */ z({
1496
1496
  });
1497
1497
  });
1498
1498
  }, p = (r) => {
1499
- d("change", Array.isArray(r) ? n.department.filter((c) => r.findIndex((f) => c.id === f) >= 0) : n.department.find((c) => c.id === r));
1499
+ d("change", Array.isArray(r) ? n.department.filter((c) => r.findIndex((m) => c.id === m) >= 0) : n.department.find((c) => c.id === r));
1500
1500
  };
1501
1501
  return u(), T(
1502
1502
  () => o.realmId,
@@ -1512,7 +1512,7 @@ const kt = "-1", pa = "-100", _o = /* @__PURE__ */ z({
1512
1512
  "current-node-key": s.value,
1513
1513
  "highlight-current": "",
1514
1514
  modelValue: s.value,
1515
- "onUpdate:modelValue": c[0] || (c[0] = (f) => s.value = f),
1515
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => s.value = m),
1516
1516
  multiple: r.multiple,
1517
1517
  onChange: p
1518
1518
  }, r.$attrs, {
@@ -1522,12 +1522,12 @@ const kt = "-1", pa = "-100", _o = /* @__PURE__ */ z({
1522
1522
  teleported: ""
1523
1523
  }), null, 16, ["data", "size", "current-node-key", "modelValue", "multiple"]));
1524
1524
  }
1525
- }), ko = R(_o), fa = h(Date.now());
1525
+ }), ko = R(_o), ma = h(Date.now());
1526
1526
  function Vo() {
1527
- fa.value = Date.now();
1527
+ ma.value = Date.now();
1528
1528
  }
1529
- function ma() {
1530
- return fa;
1529
+ function fa() {
1530
+ return ma;
1531
1531
  }
1532
1532
  const rt = `data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1280.000000pt' height='1248.000000pt' viewBox='-384 -374 2048 2048' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0.000000,1248.000000) scale(0.100000,-0.100000)'
1533
1533
  fill='%23fff' stroke='none'%3E%3Cpath d='M6005 12474 c-22 -2 -89 -9 -149 -14 -542 -53 -1087 -253 -1556 -571
@@ -1553,7 +1553,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
1553
1553
  firstName: {}
1554
1554
  },
1555
1555
  setup(e) {
1556
- const a = e, l = ma(), t = h(!1), o = h(), d = h();
1556
+ const a = e, l = fa(), t = h(!1), o = h(), d = h();
1557
1557
  t.value = !0, Xe(async () => {
1558
1558
  await Ce();
1559
1559
  });
@@ -1600,7 +1600,7 @@ c-58 -10 -181 -38 -275 -61 -807 -204 -1528 -616 -2120 -1210 -726 -728 -1170
1600
1600
  _: 1
1601
1601
  }, 16, ["src"]));
1602
1602
  }
1603
- }), Ao = /* @__PURE__ */ pe(Io, [["__scopeId", "data-v-23297931"]]), pt = R(Ao);
1603
+ }), Ao = /* @__PURE__ */ pe(Io, [["__scopeId", "data-v-575c2d3a"]]), pt = R(Ao);
1604
1604
  let st;
1605
1605
  function Co() {
1606
1606
  return st || (st = oe()), st;
@@ -1643,7 +1643,7 @@ const $o = { class: "portrait" }, Do = { class: "user-info" }, Eo = { class: "dr
1643
1643
  if (!o.value)
1644
1644
  if (t.userId)
1645
1645
  n == null || n.getById(t.userId).then((b) => {
1646
- o.value = b, f();
1646
+ o.value = b, m();
1647
1647
  });
1648
1648
  else if (t.username && t.realm) {
1649
1649
  let b = t.username;
@@ -1652,15 +1652,15 @@ const $o = { class: "portrait" }, Do = { class: "user-info" }, Eo = { class: "dr
1652
1652
  b = v[v.length - 1];
1653
1653
  }
1654
1654
  n == null || n.getByUserName(t.realm, b).then((v) => {
1655
- o.value = v, f();
1655
+ o.value = v, m();
1656
1656
  });
1657
1657
  } else
1658
1658
  throw new Error("user-info-tag组件的userId和(realm, userName)属性不能都为空");
1659
1659
  }
1660
- function f() {
1660
+ function m() {
1661
1661
  o.value && (n == null || n.checkBookmarked(o.value.id).then((b) => u.value = b));
1662
1662
  }
1663
- function m() {
1663
+ function f() {
1664
1664
  p.value = !1, r("closed", t.userId, t.realm, t.username);
1665
1665
  }
1666
1666
  function _() {
@@ -1695,7 +1695,7 @@ const $o = { class: "portrait" }, Do = { class: "user-info" }, Eo = { class: "dr
1695
1695
  b.closable ? (y(), L("div", {
1696
1696
  key: 0,
1697
1697
  class: "close-btn",
1698
- onClick: v[0] || (v[0] = (S) => m())
1698
+ onClick: v[0] || (v[0] = (S) => f())
1699
1699
  }, [
1700
1700
  w(i(ce), { size: 10 }, {
1701
1701
  default: g(() => [
@@ -1770,7 +1770,7 @@ const $o = { class: "portrait" }, Do = { class: "user-info" }, Eo = { class: "dr
1770
1770
  _: 1
1771
1771
  }, 8, ["placement", "visible"]));
1772
1772
  }
1773
- }), zo = /* @__PURE__ */ pe(Uo, [["__scopeId", "data-v-b26877d9"]]), at = R(zo);
1773
+ }), zo = /* @__PURE__ */ pe(Uo, [["__scopeId", "data-v-51ad1216"]]), at = R(zo);
1774
1774
  function Qe(e) {
1775
1775
  var a = typeof e;
1776
1776
  return e != null && (a == "object" || a == "function");
@@ -1831,16 +1831,16 @@ function Lt(e) {
1831
1831
  }
1832
1832
  var ln = "Expected a function", on = Math.max, nn = Math.min;
1833
1833
  function Vt(e, a, l) {
1834
- var t, o, d, s, n, u, p = 0, r = !1, c = !1, f = !0;
1834
+ var t, o, d, s, n, u, p = 0, r = !1, c = !1, m = !0;
1835
1835
  if (typeof e != "function")
1836
1836
  throw new TypeError(ln);
1837
- a = Lt(a) || 0, Qe(l) && (r = !!l.leading, c = "maxWait" in l, d = c ? on(Lt(l.maxWait) || 0, a) : d, f = "trailing" in l ? !!l.trailing : f);
1838
- function m(M) {
1837
+ a = Lt(a) || 0, Qe(l) && (r = !!l.leading, c = "maxWait" in l, d = c ? on(Lt(l.maxWait) || 0, a) : d, m = "trailing" in l ? !!l.trailing : m);
1838
+ function f(M) {
1839
1839
  var G = t, te = o;
1840
1840
  return t = o = void 0, p = M, s = e.apply(te, G), s;
1841
1841
  }
1842
1842
  function _(M) {
1843
- return p = M, n = setTimeout(v, a), r ? m(M) : s;
1843
+ return p = M, n = setTimeout(v, a), r ? f(M) : s;
1844
1844
  }
1845
1845
  function I(M) {
1846
1846
  var G = M - u, te = M - p, H = a - G;
@@ -1857,7 +1857,7 @@ function Vt(e, a, l) {
1857
1857
  n = setTimeout(v, I(M));
1858
1858
  }
1859
1859
  function S(M) {
1860
- return n = void 0, f && t ? m(M) : (t = o = void 0, s);
1860
+ return n = void 0, m && t ? f(M) : (t = o = void 0, s);
1861
1861
  }
1862
1862
  function P() {
1863
1863
  n !== void 0 && clearTimeout(n), p = 0, t = u = o = n = void 0;
@@ -1871,7 +1871,7 @@ function Vt(e, a, l) {
1871
1871
  if (n === void 0)
1872
1872
  return _(u);
1873
1873
  if (c)
1874
- return clearTimeout(n), n = setTimeout(v, a), m(u);
1874
+ return clearTimeout(n), n = setTimeout(v, a), f(u);
1875
1875
  }
1876
1876
  return n === void 0 && (n = setTimeout(v, a)), s;
1877
1877
  }
@@ -1900,14 +1900,14 @@ function ba(e, a, l, t, o, d) {
1900
1900
  });
1901
1901
  o || (o = oe());
1902
1902
  const p = wt(o), r = _e(o), c = h(!1);
1903
- function f() {
1903
+ function m() {
1904
1904
  I().then((b) => {
1905
1905
  l && l(b, c.value), c.value = !1;
1906
1906
  });
1907
1907
  }
1908
- const m = Vt(f, 300);
1908
+ const f = Vt(m, 300);
1909
1909
  function _() {
1910
- u.value.total = 0, u.value.users = [], n.value.currentPage !== 1 ? n.value.currentPage = 1 : m();
1910
+ u.value.total = 0, u.value.users = [], n.value.currentPage !== 1 ? n.value.currentPage = 1 : f();
1911
1911
  }
1912
1912
  T(s, () => {
1913
1913
  c.value = !0, _();
@@ -1950,7 +1950,7 @@ function ba(e, a, l, t, o, d) {
1950
1950
  return p.queryUserRefs(te).then((H) => (u.value.users = H, H));
1951
1951
  {
1952
1952
  const H = n.value.currentPage - 1;
1953
- return p.queryUserRefsPaged(te, H, n.value.pageSize).then((fe) => (t && H > 0 ? u.value.users.push(...fe.content) : u.value.users = fe.content, u.value.total = fe.totalElements, fe.content));
1953
+ return p.queryUserRefsPaged(te, H, n.value.pageSize).then((me) => (t && H > 0 ? u.value.users.push(...me.content) : u.value.users = me.content, u.value.total = me.totalElements, me.content));
1954
1954
  }
1955
1955
  }
1956
1956
  return {
@@ -1998,7 +1998,7 @@ const rn = /* @__PURE__ */ z({
1998
1998
  }
1999
1999
  }), c = vt({
2000
2000
  departments: []
2001
- }), f = async () => {
2001
+ }), m = async () => {
2002
2002
  if (!n.realmId) return;
2003
2003
  const _ = await s.getNormal(n.realmId, Qt.BT);
2004
2004
  c.departments = [
@@ -2030,17 +2030,17 @@ const rn = /* @__PURE__ */ z({
2030
2030
  }] : [],
2031
2031
  ...Ue(_, "name")
2032
2032
  ], r.value = c.departments[0].id, u("loaded", c.departments);
2033
- }, m = (_) => {
2033
+ }, f = (_) => {
2034
2034
  p.value = _, u("change", _);
2035
2035
  };
2036
2036
  return T(
2037
2037
  () => n.realmId,
2038
2038
  () => {
2039
- f();
2039
+ m();
2040
2040
  }
2041
2041
  ), a({
2042
- reload: f
2043
- }), f(), (_, I) => Q((y(), C(i(Ze), {
2042
+ reload: m
2043
+ }), m(), (_, I) => Q((y(), C(i(Ze), {
2044
2044
  ref_key: "deptTree",
2045
2045
  ref: t,
2046
2046
  data: i(c).departments,
@@ -2050,7 +2050,7 @@ const rn = /* @__PURE__ */ z({
2050
2050
  "highlight-current": "",
2051
2051
  "current-node-key": r.value,
2052
2052
  "expand-on-click-node": !1,
2053
- onCurrentChange: m,
2053
+ onCurrentChange: f,
2054
2054
  props: {
2055
2055
  class: (b) => {
2056
2056
  var v;
@@ -2061,7 +2061,7 @@ const rn = /* @__PURE__ */ z({
2061
2061
  [i(Te), i(d)]
2062
2062
  ]);
2063
2063
  }
2064
- }), sn = /* @__PURE__ */ pe(rn, [["__scopeId", "data-v-3d45613c"]]), wa = R(sn), _a = "com.csicit.ace.scrollbar.wrapped";
2064
+ }), sn = /* @__PURE__ */ pe(rn, [["__scopeId", "data-v-b247a32f"]]), wa = R(sn), _a = "com.csicit.ace.scrollbar.wrapped";
2065
2065
  var un = "Expected a function";
2066
2066
  function je(e, a, l) {
2067
2067
  var t = !0, o = !0;
@@ -2088,13 +2088,13 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2088
2088
  emits: /* @__PURE__ */ X(["change", "loaded"], ["update:modelValue"]),
2089
2089
  async setup(e, { expose: a, emit: l }) {
2090
2090
  let t, o;
2091
- const d = h(), s = oe(), n = _e(s), u = Zt(s), p = _t(s), r = e, c = l, f = de(e, "modelValue"), m = h(r.appId), _ = ge({
2091
+ const d = h(), s = oe(), n = _e(s), u = Zt(s), p = _t(s), r = e, c = l, m = de(e, "modelValue"), f = h(r.appId), _ = ge({
2092
2092
  get() {
2093
2093
  var k;
2094
- return (k = f.value) == null ? void 0 : k.id;
2094
+ return (k = m.value) == null ? void 0 : k.id;
2095
2095
  },
2096
2096
  set(k) {
2097
- f.value = v.groups.find((A) => A.id === k) ?? null;
2097
+ m.value = v.groups.find((A) => A.id === k) ?? null;
2098
2098
  }
2099
2099
  }), [I, b] = ([t, o] = gt(() => Promise.all([
2100
2100
  p.getGlobalApp(),
@@ -2104,17 +2104,17 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2104
2104
  const k = b.findIndex((A) => A.name == "ace-app-manage");
2105
2105
  k >= 0 && b.splice(k, 1);
2106
2106
  }
2107
- m.value || (m.value = I.id);
2107
+ f.value || (f.value = I.id);
2108
2108
  const v = vt({
2109
2109
  groups: []
2110
2110
  }), S = async () => {
2111
- if (!r.realmId || !m.value) return;
2112
- const k = await u.getByAppIdAndRealm(m.value, r.realmId);
2111
+ if (!r.realmId || !f.value) return;
2112
+ const k = await u.getByAppIdAndRealm(f.value, r.realmId);
2113
2113
  v.groups = [
2114
2114
  ...Ue(k, "name")
2115
- ], !f.value && v.groups.length > 0 && (_.value = v.groups[0].id), c("loaded", v.groups);
2115
+ ], !m.value && v.groups.length > 0 && (_.value = v.groups[0].id), c("loaded", v.groups);
2116
2116
  }, P = (k) => {
2117
- f.value = k, c("change", k);
2117
+ m.value = k, c("change", k);
2118
2118
  };
2119
2119
  return T(
2120
2120
  () => r.realmId,
@@ -2122,8 +2122,8 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2122
2122
  S();
2123
2123
  }
2124
2124
  ), T(() => r.appId, () => {
2125
- m.value = r.appId;
2126
- }), T(m, () => {
2125
+ f.value = r.appId;
2126
+ }), T(f, () => {
2127
2127
  S();
2128
2128
  }), a({
2129
2129
  reload: S,
@@ -2131,8 +2131,8 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2131
2131
  }), S(), (k, A) => (y(), L("div", dn, [
2132
2132
  r.appId ? ue("", !0) : (y(), C(i(Ee), {
2133
2133
  key: 0,
2134
- modelValue: m.value,
2135
- "onUpdate:modelValue": A[0] || (A[0] = (M) => m.value = M),
2134
+ modelValue: f.value,
2135
+ "onUpdate:modelValue": A[0] || (A[0] = (M) => f.value = M),
2136
2136
  style: { width: "100%" }
2137
2137
  }, {
2138
2138
  default: g(() => [
@@ -2160,7 +2160,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2160
2160
  props: {
2161
2161
  class: (M) => {
2162
2162
  var G;
2163
- return ((G = f.value) == null ? void 0 : G.id) === M.id ? "selected-group" : "group";
2163
+ return ((G = m.value) == null ? void 0 : G.id) === M.id ? "selected-group" : "group";
2164
2164
  }
2165
2165
  }
2166
2166
  }), null, 16, ["style", "data", "current-node-key", "props"]), [
@@ -2168,7 +2168,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2168
2168
  ])
2169
2169
  ]));
2170
2170
  }
2171
- }), pn = /* @__PURE__ */ pe(cn, [["__scopeId", "data-v-69d218a4"]]), ka = R(pn), fn = /* @__PURE__ */ z({
2171
+ }), pn = /* @__PURE__ */ pe(cn, [["__scopeId", "data-v-d45cc589"]]), ka = R(pn), mn = /* @__PURE__ */ z({
2172
2172
  __name: "customGroupTree",
2173
2173
  props: /* @__PURE__ */ X({
2174
2174
  multiple: { type: Boolean }
@@ -2180,25 +2180,25 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2180
2180
  setup(e, { expose: a, emit: l }) {
2181
2181
  const t = h(), o = oe(), d = _e(o), s = ea(o), n = l, u = de(e, "modelValue"), p = ge({
2182
2182
  get() {
2183
- var m;
2184
- return (m = u.value) == null ? void 0 : m.id;
2183
+ var f;
2184
+ return (f = u.value) == null ? void 0 : f.id;
2185
2185
  },
2186
- set(m) {
2187
- u.value = r.groups.find((_) => _.id === m) ?? null;
2186
+ set(f) {
2187
+ u.value = r.groups.find((_) => _.id === f) ?? null;
2188
2188
  }
2189
2189
  }), r = vt({
2190
2190
  groups: []
2191
2191
  }), c = async () => {
2192
- const m = await s.getAll();
2192
+ const f = await s.getAll();
2193
2193
  r.groups = [
2194
- ...Ue(m, "name")
2194
+ ...Ue(f, "name")
2195
2195
  ], r.groups.length > 0 && (u.value = r.groups[0], p.value = u.value.id), n("loaded", r.groups);
2196
- }, f = (m) => {
2197
- u.value = m, n("change", m);
2196
+ }, m = (f) => {
2197
+ u.value = f, n("change", f);
2198
2198
  };
2199
2199
  return a({
2200
2200
  reload: c
2201
- }), c(), (m, _) => Q((y(), C(i(Ze), {
2201
+ }), c(), (f, _) => Q((y(), C(i(Ze), {
2202
2202
  ref_key: "deptTree",
2203
2203
  ref: t,
2204
2204
  data: i(r).groups,
@@ -2208,7 +2208,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2208
2208
  "highlight-current": "",
2209
2209
  "current-node-key": p.value,
2210
2210
  "expand-on-click-node": !1,
2211
- onCurrentChange: f,
2211
+ onCurrentChange: m,
2212
2212
  props: {
2213
2213
  class: (I) => {
2214
2214
  var b;
@@ -2219,7 +2219,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2219
2219
  [i(Te), i(d)]
2220
2220
  ]);
2221
2221
  }
2222
- }), mn = /* @__PURE__ */ pe(fn, [["__scopeId", "data-v-78c7dcfc"]]), vn = R(mn), gn = {
2222
+ }), fn = /* @__PURE__ */ pe(mn, [["__scopeId", "data-v-4e04bc5c"]]), vn = R(fn), gn = {
2223
2223
  class: "ja-user-select-dialog"
2224
2224
  }, hn = {
2225
2225
  class: "ja-user-select-dialog__content"
@@ -2288,10 +2288,10 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2288
2288
  throw new Error("多选模式的选择用户对话框(multiple设置为true)的v-model必须是数组类型");
2289
2289
  } else if (Array.isArray(t.value))
2290
2290
  throw new Error("单选模式的选择用户对话框(multiple设置为false)的v-model只能为空或是单个UserReference对象");
2291
- const s = h(!1), n = h(), u = h(), p = h(), r = oe(), c = _e(r), f = h(!1), m = h([]), _ = Je(/* @__PURE__ */ new Map()), I = h("dept");
2291
+ const s = h(!1), n = h(), u = h(), p = h(), r = oe(), c = _e(r), m = h(!1), f = h([]), _ = Je(/* @__PURE__ */ new Map()), I = h("dept");
2292
2292
  Ie(_a, void 0);
2293
2293
  const b = h(Array.isArray(t.value) ? [...t.value] : t.value), v = ba(void 0, l.customFilter, ($) => {
2294
- f.value || (m.value = $ ?? []);
2294
+ m.value || (f.value = $ ?? []);
2295
2295
  }, !1, r, !0), S = [{
2296
2296
  key: "user",
2297
2297
  dataKey: "id",
@@ -2352,7 +2352,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2352
2352
  De(() => {
2353
2353
  A.cancel(), M.cancel();
2354
2354
  });
2355
- function fe() {
2355
+ function me() {
2356
2356
  if (Array.isArray(b.value)) {
2357
2357
  const $ = v.queryResult.value.users.filter((U) => !G(U));
2358
2358
  $.forEach((U) => _.set(U.id, U)), b.value.push(...$);
@@ -2371,7 +2371,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2371
2371
  t.value = b.value, s.value = !1;
2372
2372
  }
2373
2373
  function B() {
2374
- f.value = !f.value, f.value ? Array.isArray(b.value) ? m.value = [...b.value] : m.value = b.value ? [b.value] : [] : m.value = v.queryResult.value.users;
2374
+ m.value = !m.value, m.value ? Array.isArray(b.value) ? f.value = [...b.value] : f.value = b.value ? [b.value] : [] : f.value = v.queryResult.value.users;
2375
2375
  }
2376
2376
  function ae() {
2377
2377
  !v.queryParams.value.realmId && o.value && (v.queryParams.value.realmId = o.value), b.value = Array.isArray(t.value) ? [...t.value] : t.value, Array.isArray(t.value) && (_.clear(), t.value.forEach(($) => _.set($.id, $)));
@@ -2387,7 +2387,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2387
2387
  }
2388
2388
  let x;
2389
2389
  function E() {
2390
- x && x < m.value.length && k.value.scrollToRow(x + 1), x = void 0;
2390
+ x && x < f.value.length && k.value.scrollToRow(x + 1), x = void 0;
2391
2391
  }
2392
2392
  function O($, U) {
2393
2393
  P.value = $.buttons > 0, P.value && (x = U, A());
@@ -2415,7 +2415,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2415
2415
  default: g(() => U[10] || (U[10] = [W("确定 ")])),
2416
2416
  _: 1,
2417
2417
  __: [10]
2418
- }), w(i(me), {
2418
+ }), w(i(fe), {
2419
2419
  plain: "",
2420
2420
  size: "default",
2421
2421
  onClick: U[4] || (U[4] = (ne) => s.value = !1)
@@ -2482,7 +2482,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2482
2482
  "row-height": 40,
2483
2483
  "header-height": 40,
2484
2484
  columns: S,
2485
- data: m.value,
2485
+ data: f.value,
2486
2486
  width: 300,
2487
2487
  height: 450,
2488
2488
  fixed: ""
@@ -2514,13 +2514,13 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2514
2514
  }
2515
2515
  }, {
2516
2516
  default: g(() => [w(i(ke), {
2517
- content: f.value ? "显示所有人员" : "只显示选中人员"
2517
+ content: m.value ? "显示所有人员" : "只显示选中人员"
2518
2518
  }, {
2519
2519
  default: g(() => [w(i(ce), {
2520
2520
  size: "15",
2521
2521
  onClick: B
2522
2522
  }, {
2523
- default: g(() => [f.value ? (y(), C(i(ul), {
2523
+ default: g(() => [m.value ? (y(), C(i(ul), {
2524
2524
  key: 1
2525
2525
  })) : (y(), C(i(sl), {
2526
2526
  key: 0
@@ -2539,7 +2539,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2539
2539
  link: "",
2540
2540
  tooltip: "全部选中",
2541
2541
  shortcut: "Ctrl+A",
2542
- onClick: fe
2542
+ onClick: me
2543
2543
  }, {
2544
2544
  default: g(() => U[7] || (U[7] = [W("全选 ")])),
2545
2545
  _: 1,
@@ -2578,7 +2578,7 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2578
2578
  _: 1
2579
2579
  }, 8, ["modelValue"]));
2580
2580
  }
2581
- }), wn = /* @__PURE__ */ pe(bn, [["__scopeId", "data-v-bb59eef3"]]), Va = R(wn), _n = /* @__PURE__ */ z({
2581
+ }), wn = /* @__PURE__ */ pe(bn, [["__scopeId", "data-v-efd26932"]]), Va = R(wn), _n = /* @__PURE__ */ z({
2582
2582
  __name: "Scrollbar",
2583
2583
  setup(e, { expose: a }) {
2584
2584
  const l = h(), t = h([]), o = /* @__PURE__ */ new Map();
@@ -2605,8 +2605,8 @@ const dn = { class: "ja-user-group-tree" }, cn = /* @__PURE__ */ z({
2605
2605
  try {
2606
2606
  for (let r = 0; r < t.value.length; r++)
2607
2607
  if (t.value[r]) {
2608
- const c = t.value[r], f = c.childElement.getBoundingClientRect(), m = u.getBoundingClientRect();
2609
- f.top >= m.top && f.bottom <= m.bottom && f.left >= m.left && f.right <= m.right && c.onInView(!0), o.set(c.childElement, c), s.observe(c.childElement);
2608
+ const c = t.value[r], m = c.childElement.getBoundingClientRect(), f = u.getBoundingClientRect();
2609
+ m.top >= f.top && m.bottom <= f.bottom && m.left >= f.left && m.right <= f.right && c.onInView(!0), o.set(c.childElement, c), s.observe(c.childElement);
2610
2610
  }
2611
2611
  } finally {
2612
2612
  t.value && t.value.splice(0);
@@ -2689,7 +2689,7 @@ function Ln(e) {
2689
2689
  function Rn(e) {
2690
2690
  return e.split("");
2691
2691
  }
2692
- var Ca = "\\ud800-\\udfff", Nn = "\\u0300-\\u036f", On = "\\ufe20-\\ufe2f", jn = "\\u20d0-\\u20ff", Jn = Nn + On + jn, xn = "\\ufe0e\\ufe0f", qn = "[" + Ca + "]", ft = "[" + Jn + "]", mt = "\\ud83c[\\udffb-\\udfff]", Gn = "(?:" + ft + "|" + mt + ")", $a = "[^" + Ca + "]", Da = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ea = "[\\ud800-\\udbff][\\udc00-\\udfff]", Hn = "\\u200d", Ta = Gn + "?", Sa = "[" + xn + "]?", Wn = "(?:" + Hn + "(?:" + [$a, Da, Ea].join("|") + ")" + Sa + Ta + ")*", Kn = Sa + Ta + Wn, Yn = "(?:" + [$a + ft + "?", ft, Da, Ea, qn].join("|") + ")", Qn = RegExp(mt + "(?=" + mt + ")|" + Yn + Kn, "g");
2692
+ var Ca = "\\ud800-\\udfff", Nn = "\\u0300-\\u036f", On = "\\ufe20-\\ufe2f", jn = "\\u20d0-\\u20ff", Jn = Nn + On + jn, xn = "\\ufe0e\\ufe0f", qn = "[" + Ca + "]", mt = "[" + Jn + "]", ft = "\\ud83c[\\udffb-\\udfff]", Gn = "(?:" + mt + "|" + ft + ")", $a = "[^" + Ca + "]", Da = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ea = "[\\ud800-\\udbff][\\udc00-\\udfff]", Hn = "\\u200d", Ta = Gn + "?", Sa = "[" + xn + "]?", Wn = "(?:" + Hn + "(?:" + [$a, Da, Ea].join("|") + ")" + Sa + Ta + ")*", Kn = Sa + Ta + Wn, Yn = "(?:" + [$a + mt + "?", mt, Da, Ea, qn].join("|") + ")", Qn = RegExp(ft + "(?=" + ft + ")|" + Yn + Kn, "g");
2693
2693
  function Xn(e) {
2694
2694
  return e.match(Qn) || [];
2695
2695
  }
@@ -2744,8 +2744,8 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2744
2744
  var A;
2745
2745
  return k.id === ((A = n.value) == null ? void 0 : A.id) ? "selected-group" : "group";
2746
2746
  }
2747
- }, n = h(), u = h(!1), p = h(), r = _e(t), c = e, f = {};
2748
- async function m() {
2747
+ }, n = h(), u = h(!1), p = h(), r = _e(t), c = e, m = {};
2748
+ async function f() {
2749
2749
  const k = Ue(await o.getAll()), A = {
2750
2750
  id: "-1",
2751
2751
  name: "[顶级组]",
@@ -2760,7 +2760,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2760
2760
  return d.value = [A], A;
2761
2761
  }
2762
2762
  async function _() {
2763
- n.value = await m();
2763
+ n.value = await f();
2764
2764
  }
2765
2765
  function I(k) {
2766
2766
  n.value = k;
@@ -2773,10 +2773,10 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2773
2773
  await o.create({
2774
2774
  name: p.value,
2775
2775
  parentId: ((k = n.value) == null ? void 0 : k.id) == "-1" || (A = n.value) == null ? void 0 : A.id
2776
- }), u.value = !1, await m();
2776
+ }), u.value = !1, await f();
2777
2777
  }
2778
2778
  async function S() {
2779
- n.value && n.value.id !== "-1" && (await Wa.confirm("确定要删除选中的自定义组?", "确认删除"), await o.delete(n.value.id), await m(), n.value = void 0);
2779
+ n.value && n.value.id !== "-1" && (await Wa.confirm("确定要删除选中的自定义组?", "确认删除"), await o.delete(n.value.id), await f(), n.value = void 0);
2780
2780
  }
2781
2781
  async function P() {
2782
2782
  var k;
@@ -2787,7 +2787,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2787
2787
  await o.setMembers({
2788
2788
  id: n.value.id,
2789
2789
  userIds: ((k = c.users) == null ? void 0 : k.map((A) => A.id)) ?? []
2790
- }, f), l.value = !1;
2790
+ }, m), l.value = !1;
2791
2791
  }
2792
2792
  return a({
2793
2793
  show() {
@@ -2820,7 +2820,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2820
2820
  _: 1,
2821
2821
  __: [6]
2822
2822
  }, 8, ["loading"]),
2823
- w(i(me), {
2823
+ w(i(fe), {
2824
2824
  onClick: A[0] || (A[0] = (M) => l.value = !1)
2825
2825
  }, {
2826
2826
  default: g(() => A[7] || (A[7] = [
@@ -2905,7 +2905,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2905
2905
  _: 1,
2906
2906
  __: [8]
2907
2907
  }, 8, ["loading"]),
2908
- w(i(me), {
2908
+ w(i(fe), {
2909
2909
  onClick: A[3] || (A[3] = (M) => u.value = !1),
2910
2910
  size: "default"
2911
2911
  }, {
@@ -2942,7 +2942,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2942
2942
  }, 8, ["modelValue"])
2943
2943
  ], 64));
2944
2944
  }
2945
- }), or = /* @__PURE__ */ pe(lr, [["__scopeId", "data-v-8ef9bcd8"]]), nr = { class: "ja-user-list" }, rr = ["onMouseenter", "onMousedown", "onMouseover"], sr = {
2945
+ }), or = /* @__PURE__ */ pe(lr, [["__scopeId", "data-v-1bab28b9"]]), nr = { class: "ja-user-list" }, rr = ["onMouseenter", "onMousedown", "onMouseover"], sr = {
2946
2946
  key: 0,
2947
2947
  class: "page-indicator"
2948
2948
  }, ur = { class: "nb-spinner" }, ir = 1, dr = /* @__PURE__ */ z({
@@ -2972,7 +2972,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2972
2972
  const V = (j = d.value) == null ? void 0 : j.wrapRef;
2973
2973
  V && V.scrollHeight - V.scrollTop <= V.clientHeight + ir && u.value < t.total / t.pageSize && u.value++;
2974
2974
  }, 200);
2975
- function f(V) {
2975
+ function m(V) {
2976
2976
  if (t.multiple) {
2977
2977
  if (!Array.isArray(n.value))
2978
2978
  throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
@@ -2984,15 +2984,15 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
2984
2984
  n.value !== null && V.id === n.value.id ? n.value = null : n.value = V;
2985
2985
  }
2986
2986
  }
2987
- let m;
2987
+ let f;
2988
2988
  function _(V) {
2989
- f(V), s.value = !0, m = V;
2989
+ m(V), s.value = !0, f = V;
2990
2990
  }
2991
2991
  function I() {
2992
- s.value = !1, p("itemClicked", m), m = void 0;
2992
+ s.value = !1, p("itemClicked", f), f = void 0;
2993
2993
  }
2994
2994
  function b(V) {
2995
- console.log("点击"), s.value && f(V);
2995
+ console.log("点击"), s.value && m(V);
2996
2996
  }
2997
2997
  function v() {
2998
2998
  o.value < t.users.length - 1 && o.value++, P();
@@ -3048,7 +3048,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3048
3048
  return n.value;
3049
3049
  throw new Error("UserPicker组件设置为多选模式(multiple)时,v-model必须绑定UserReference数组");
3050
3050
  });
3051
- function fe(V) {
3051
+ function me(V) {
3052
3052
  return V === o.value ? "active" : "";
3053
3053
  }
3054
3054
  const be = ge(() => t.loading && t.users.length == 0);
@@ -3081,7 +3081,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3081
3081
  }, [
3082
3082
  (y(!0), L(re, null, K(V.users, (B, ae) => (y(), L("li", {
3083
3083
  key: B.id,
3084
- class: We(fe(ae)),
3084
+ class: We(me(ae)),
3085
3085
  onMouseenter: (Z) => s.value && b(B),
3086
3086
  onMousedown: (Z) => _(B),
3087
3087
  onMouseover: (Z) => M(Z, ae)
@@ -3117,7 +3117,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3117
3117
  ])) : ue("", !0)
3118
3118
  ]));
3119
3119
  }
3120
- }), Pa = /* @__PURE__ */ pe(dr, [["__scopeId", "data-v-9ce99611"]]), cr = { class: "ja-user-picker__root" }, pr = { style: { display: "flex", "align-items": "center" } }, fr = { class: "ja-user-picker-bookmark__dropdown" }, mr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, vr = { style: { color: "var(--el-color-info-light-5)" } }, gr = { class: "dropdown-header" }, hr = {
3120
+ }), Pa = /* @__PURE__ */ pe(dr, [["__scopeId", "data-v-66ef9a59"]]), cr = { class: "ja-user-picker__root" }, pr = { style: { display: "flex", "align-items": "center" } }, mr = { class: "ja-user-picker-bookmark__dropdown" }, fr = { style: { width: "100%", display: "flex", "align-content": "center", "justify-content": "end", "margin-bottom": "4px" } }, vr = { style: { color: "var(--el-color-info-light-5)" } }, gr = { class: "dropdown-header" }, hr = {
3121
3121
  key: 0,
3122
3122
  class: "ja-user-picker__tag-container"
3123
3123
  }, yr = {
@@ -3154,8 +3154,8 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3154
3154
  }
3155
3155
  }
3156
3156
  o(), T(() => a.realmId, o);
3157
- const d = oe(), s = wt(d), n = Oa([]), u = de(e, "modelValue"), p = h(), r = h(!1), { queryResult: c, queryParams: f, pageParams: m, loading: _ } = ba(
3158
- () => f.value.name != null && f.value.name.length > Re,
3157
+ const d = oe(), s = wt(d), n = Oa([]), u = de(e, "modelValue"), p = h(), r = h(!1), { queryResult: c, queryParams: m, pageParams: f, loading: _ } = ba(
3158
+ () => m.value.name != null && m.value.name.length > Re,
3159
3159
  a.customFilter,
3160
3160
  (E, O) => {
3161
3161
  var $, U;
@@ -3178,7 +3178,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3178
3178
  }
3179
3179
  }
3180
3180
  function A() {
3181
- a.realmId && (f.value.realmId = a.realmId), f.value.name && f.value.name.length > Re && (f.value.name = void 0);
3181
+ a.realmId && (m.value.realmId = a.realmId), m.value.name && m.value.name.length > Re && (m.value.name = void 0);
3182
3182
  const E = Xt();
3183
3183
  if (a.customFilter) {
3184
3184
  const O = E.getQEntity();
@@ -3210,7 +3210,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3210
3210
  var E;
3211
3211
  P.value.scrollDown(), (E = p.value) == null || E.focus();
3212
3212
  }
3213
- function fe() {
3213
+ function me() {
3214
3214
  var E;
3215
3215
  P.value.scrollUp(), (E = p.value) == null || E.focus();
3216
3216
  }
@@ -3248,7 +3248,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3248
3248
  }
3249
3249
  const x = ge(() => Z.value.slice(0, a.maxShowCount));
3250
3250
  return T(() => a.classificationLevel, () => {
3251
- f.value.classificationLevel = a.classificationLevel;
3251
+ m.value.classificationLevel = a.classificationLevel;
3252
3252
  }), (E, O) => (y(), L(re, null, [
3253
3253
  w(i(Ia), Y({
3254
3254
  "max-height": a.maxHeight,
@@ -3269,7 +3269,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3269
3269
  }, {
3270
3270
  reference: g(() => [
3271
3271
  J("div", pr, [
3272
- E.$slots.default ? ee(E.$slots, "default", { key: 0 }, void 0, !0) : (y(), C(i(me), {
3272
+ E.$slots.default ? ee(E.$slots, "default", { key: 0 }, void 0, !0) : (y(), C(i(fe), {
3273
3273
  key: 1,
3274
3274
  circle: "",
3275
3275
  icon: i(Se),
@@ -3281,8 +3281,8 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3281
3281
  ])
3282
3282
  ]),
3283
3283
  default: g(() => [
3284
- J("div", fr, [
3285
- J("div", mr, [
3284
+ J("div", mr, [
3285
+ J("div", fr, [
3286
3286
  w(i(yt), { style: { flex: "auto" } }, {
3287
3287
  default: g(() => [
3288
3288
  w(i(ie), {
@@ -3331,8 +3331,8 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3331
3331
  J("div", vr, " 弹出快捷键:" + le(a.shortcut), 1)
3332
3332
  ]),
3333
3333
  w(i(we), {
3334
- modelValue: i(f).name,
3335
- "onUpdate:modelValue": O[0] || (O[0] = ($) => i(f).name = $),
3334
+ modelValue: i(m).name,
3335
+ "onUpdate:modelValue": O[0] || (O[0] = ($) => i(m).name = $),
3336
3336
  ref_key: "inputSearchText",
3337
3337
  ref: p,
3338
3338
  "suffix-icon": i(Pt),
@@ -3340,14 +3340,14 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3340
3340
  autocomplete: "off",
3341
3341
  onKeydown: [
3342
3342
  Ae(be, ["enter"]),
3343
- Ae(Tt(fe, ["stop", "prevent"]), ["up"]),
3343
+ Ae(Tt(me, ["stop", "prevent"]), ["up"]),
3344
3344
  Ae(Tt(H, ["stop", "prevent"]), ["down"])
3345
3345
  ]
3346
3346
  }, null, 8, ["modelValue", "suffix-icon", "onKeydown"]),
3347
3347
  J("div", gr, [
3348
3348
  w(i(Fe), null, {
3349
3349
  default: g(() => [
3350
- i(f).name && i(f).name.length > Re ? (y(), C(i(ce), { key: 0 }, {
3350
+ i(m).name && i(m).name.length > Re ? (y(), C(i(ce), { key: 0 }, {
3351
3351
  default: g(() => [
3352
3352
  w(i(Pt))
3353
3353
  ]),
@@ -3361,7 +3361,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3361
3361
  ]),
3362
3362
  _: 1
3363
3363
  })),
3364
- W(" " + le(i(f).name && i(f).name.length > Re ? "查询结果" : "常用人员"), 1)
3364
+ W(" " + le(i(m).name && i(m).name.length > Re ? "查询结果" : "常用人员"), 1)
3365
3365
  ]),
3366
3366
  _: 1
3367
3367
  })
@@ -3370,15 +3370,15 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3370
3370
  ref_key: "userList",
3371
3371
  ref: P,
3372
3372
  total: i(c).total,
3373
- "empty-text": i(f).name && i(f).name.length > Re ? void 0 : "无可选常用人员",
3374
- "page-size": i(m).pageSize,
3373
+ "empty-text": i(m).name && i(m).name.length > Re ? void 0 : "无可选常用人员",
3374
+ "page-size": i(f).pageSize,
3375
3375
  loading: i(_),
3376
3376
  users: n.value,
3377
3377
  height: 300,
3378
3378
  modelValue: u.value,
3379
3379
  "onUpdate:modelValue": O[1] || (O[1] = ($) => u.value = $),
3380
- page: i(m).currentPage,
3381
- "onUpdate:page": O[2] || (O[2] = ($) => i(m).currentPage = $),
3380
+ page: i(f).currentPage,
3381
+ "onUpdate:page": O[2] || (O[2] = ($) => i(f).currentPage = $),
3382
3382
  multiple: a.multiple,
3383
3383
  onItemClicked: ae,
3384
3384
  onArrowKeyDown: ae
@@ -3430,7 +3430,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3430
3430
  }, null, 8, ["users"])
3431
3431
  ], 64));
3432
3432
  }
3433
- }), Fa = /* @__PURE__ */ pe(wr, [["__scopeId", "data-v-bd45be54"]]), _r = /* @__PURE__ */ z({
3433
+ }), Fa = /* @__PURE__ */ pe(wr, [["__scopeId", "data-v-e16138f6"]]), _r = /* @__PURE__ */ z({
3434
3434
  __name: "JaUserPicker",
3435
3435
  emits: ["change"],
3436
3436
  setup(e, { emit: a }) {
@@ -3468,17 +3468,17 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3468
3468
  }, {
3469
3469
  deep: !0
3470
3470
  }), Xe(() => {
3471
- Object.entries(t.value).filter(([f, m]) => m instanceof Function).forEach(([f, m]) => {
3472
- u.value[f] = m;
3471
+ Object.entries(t.value).filter(([m, f]) => f instanceof Function).forEach(([m, f]) => {
3472
+ u.value[m] = f;
3473
3473
  });
3474
- }), a(u.value), (c, f) => (y(), C(i(Ya), Y({
3474
+ }), a(u.value), (c, m) => (y(), C(i(Ya), Y({
3475
3475
  ref_key: "input",
3476
3476
  ref: t,
3477
3477
  modelValue: i(o).formData[i(d)],
3478
- "onUpdate:modelValue": f[0] || (f[0] = (m) => i(o).formData[i(d)] = m),
3478
+ "onUpdate:modelValue": m[0] || (m[0] = (f) => i(o).formData[i(d)] = f),
3479
3479
  onChange: p
3480
3480
  }, c.$attrs), ve({ _: 2 }, [
3481
- K(c.$slots, (m, _) => ({
3481
+ K(c.$slots, (f, _) => ({
3482
3482
  name: _,
3483
3483
  fn: g(() => [
3484
3484
  ee(c.$slots, _)
@@ -3512,7 +3512,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3512
3512
  n.groups = [...Ue(r, "name")], !d.value && !o.multiple && (d.value = n.groups[0].id);
3513
3513
  });
3514
3514
  }, p = (r) => {
3515
- s("change", Array.isArray(r) ? n.groups.filter((c) => r.findIndex((f) => c.id === f) >= 0) : n.groups.find((c) => c.id === r));
3515
+ s("change", Array.isArray(r) ? n.groups.filter((c) => r.findIndex((m) => c.id === m) >= 0) : n.groups.find((c) => c.id === r));
3516
3516
  };
3517
3517
  return u(), T(
3518
3518
  () => o.realmId,
@@ -3528,7 +3528,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3528
3528
  "current-node-key": d.value,
3529
3529
  "highlight-current": "",
3530
3530
  modelValue: d.value,
3531
- "onUpdate:modelValue": c[0] || (c[0] = (f) => d.value = f),
3531
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => d.value = m),
3532
3532
  multiple: r.multiple,
3533
3533
  onChange: p
3534
3534
  }, r.$attrs, {
@@ -3557,13 +3557,13 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3557
3557
  ref_key: "input",
3558
3558
  ref: t,
3559
3559
  modelValue: p.value,
3560
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
3560
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
3561
3561
  onChange: u
3562
3562
  }, r.$attrs), ve({ _: 2 }, [
3563
- K(r.$slots, (f, m) => ({
3564
- name: m,
3563
+ K(r.$slots, (m, f) => ({
3564
+ name: f,
3565
3565
  fn: g(() => [
3566
- ee(r.$slots, m)
3566
+ ee(r.$slots, f)
3567
3567
  ])
3568
3568
  }))
3569
3569
  ]), 1040, ["modelValue"]));
@@ -3589,13 +3589,13 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3589
3589
  ref_key: "input",
3590
3590
  ref: t,
3591
3591
  modelValue: p.value,
3592
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
3592
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
3593
3593
  onChange: u
3594
3594
  }, r.$attrs), ve({ _: 2 }, [
3595
- K(r.$slots, (f, m) => ({
3596
- name: m,
3595
+ K(r.$slots, (m, f) => ({
3596
+ name: f,
3597
3597
  fn: g(() => [
3598
- ee(r.$slots, m)
3598
+ ee(r.$slots, f)
3599
3599
  ])
3600
3600
  }))
3601
3601
  ]), 1040, ["modelValue"]));
@@ -3611,15 +3611,15 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3611
3611
  emits: /* @__PURE__ */ X(["change"], ["update:modelValue"]),
3612
3612
  setup(e, { expose: a, emit: l }) {
3613
3613
  const t = oe(), o = ta(t), d = _t(t), s = e, n = h(), u = h([]), p = async () => {
3614
- s.appName && (n.value = await d.getByName(s.appName), u.value = await o.getAllRole(n.value.id), console.log(u.value), r.value ? f.value = b(r.value, u.value) : f.value = void 0);
3615
- }, r = de(e, "modelValue"), c = l, f = h();
3614
+ s.appName && (n.value = await d.getByName(s.appName), u.value = (await o.getAllRole(n.value.id)).map((v) => (v.name = v.appName + "." + v.name, v)), r.value ? m.value = b(r.value, u.value) : m.value = void 0);
3615
+ }, r = de(e, "modelValue"), c = l, m = h();
3616
3616
  T(() => s.appName, p), p();
3617
- const m = {
3617
+ const f = {
3618
3618
  label: (v) => v.caption ? v.caption : v.name,
3619
3619
  isLeaf: (v) => !v.hasChildren
3620
3620
  }, _ = h();
3621
3621
  function I(v) {
3622
- f.value = b(v, u.value), c("change", v);
3622
+ m.value = b(v, u.value), c("change", v);
3623
3623
  }
3624
3624
  function b(v, S) {
3625
3625
  for (let P = 0; P < S.length; P++) {
@@ -3634,7 +3634,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3634
3634
  }
3635
3635
  return a({
3636
3636
  loadData: p,
3637
- currentRole: f,
3637
+ currentRole: m,
3638
3638
  elTreeSelect: _
3639
3639
  }), (v, S) => (y(), C(i(bt), Y({
3640
3640
  ref_key: "select",
@@ -3643,7 +3643,7 @@ const Le = /* @__PURE__ */ new Map(), Ct = {
3643
3643
  "node-key": "name",
3644
3644
  "current-node-key": r.value,
3645
3645
  "value-key": "name",
3646
- props: m
3646
+ props: f
3647
3647
  }, v.$attrs, {
3648
3648
  clearable: "",
3649
3649
  "check-strictly": "",
@@ -3700,26 +3700,26 @@ const Mr = /* @__PURE__ */ z({
3700
3700
  name: ""
3701
3701
  }, s = h({
3702
3702
  formData: { ...d }
3703
- }), n = oe(), u = wl(Object.keys(d), n), p = _e(n), r = ta(n), c = h(), f = h(), m = h();
3703
+ }), n = oe(), u = wl(Object.keys(d), n), p = _e(n), r = ta(n), c = h(), m = h(), f = h();
3704
3704
  async function _() {
3705
3705
  if (s.value.formData = { ...d }, !t.appName)
3706
3706
  throw new Error("rolePicker组件的appName属性不能为空");
3707
- m.value = await (await $t()).getByName(t.appName);
3707
+ f.value = await (await $t()).getByName(t.appName);
3708
3708
  }
3709
3709
  async function I() {
3710
3710
  var S, P;
3711
3711
  if (!t.appName) return;
3712
- const b = s.value.formData, v = (S = f.value) == null ? void 0 : S.currentRole;
3712
+ const b = s.value.formData, v = (S = m.value) == null ? void 0 : S.currentRole;
3713
3713
  (P = c.value) == null || P.validate(() => r.create({
3714
3714
  addTo: v ? {
3715
3715
  id: v.id,
3716
3716
  name: v.name,
3717
3717
  app: {
3718
- id: m.value.id
3718
+ id: f.value.id
3719
3719
  }
3720
3720
  } : void 0,
3721
3721
  app: {
3722
- id: m.value.id
3722
+ id: f.value.id
3723
3723
  },
3724
3724
  description: b.description,
3725
3725
  name: b.name,
@@ -3752,7 +3752,7 @@ const Mr = /* @__PURE__ */ z({
3752
3752
  _: 1,
3753
3753
  __: [3]
3754
3754
  }, 8, ["loading"]),
3755
- w(i(me), {
3755
+ w(i(fe), {
3756
3756
  size: "default",
3757
3757
  onClick: v[1] || (v[1] = (k) => l.value = !1)
3758
3758
  }, {
@@ -3790,7 +3790,7 @@ const Mr = /* @__PURE__ */ z({
3790
3790
  default: g(() => [
3791
3791
  w(i(Dt), {
3792
3792
  ref_key: "rolePicker",
3793
- ref: f,
3793
+ ref: m,
3794
3794
  placeholder: "请选择上级角色,置空表示添加顶层角色",
3795
3795
  "app-name": t.appName
3796
3796
  }, null, 8, ["app-name"])
@@ -3806,7 +3806,7 @@ const Mr = /* @__PURE__ */ z({
3806
3806
  var k;
3807
3807
  return [
3808
3808
  w(S, {
3809
- "app-id": (k = m.value) == null ? void 0 : k.id,
3809
+ "app-id": (k = f.value) == null ? void 0 : k.id,
3810
3810
  size: "small",
3811
3811
  modelValue: s.value.formData.caption,
3812
3812
  "onUpdate:modelValue": v[0] || (v[0] = (A) => s.value.formData.caption = A)
@@ -3896,7 +3896,7 @@ const Mr = /* @__PURE__ */ z({
3896
3896
  ]), 1040, ["app-name", "modelValue"])
3897
3897
  ]));
3898
3898
  }
3899
- }), Ma = /* @__PURE__ */ pe(zr, [["__scopeId", "data-v-36b2392a"]]), Br = /* @__PURE__ */ z({
3899
+ }), Ma = /* @__PURE__ */ pe(zr, [["__scopeId", "data-v-dd3083a0"]]), Br = /* @__PURE__ */ z({
3900
3900
  __name: "RolePicker",
3901
3901
  props: {
3902
3902
  appName: {}
@@ -3917,13 +3917,13 @@ const Mr = /* @__PURE__ */ z({
3917
3917
  ref: t,
3918
3918
  "app-name": l.appName,
3919
3919
  modelValue: p.value,
3920
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
3920
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
3921
3921
  onChange: u
3922
3922
  }, r.$attrs), ve({ _: 2 }, [
3923
- K(r.$slots, (f, m) => ({
3924
- name: m,
3923
+ K(r.$slots, (m, f) => ({
3924
+ name: f,
3925
3925
  fn: g(() => [
3926
- ee(r.$slots, m)
3926
+ ee(r.$slots, f)
3927
3927
  ])
3928
3928
  }))
3929
3929
  ]), 1040, ["app-name", "modelValue"]));
@@ -4004,7 +4004,7 @@ const Mr = /* @__PURE__ */ z({
4004
4004
  setup(e) {
4005
4005
  const a = e;
4006
4006
  let l;
4007
- const t = de(e, "modelValue"), o = h([]), d = oe(), s = al(d), n = h(), u = {}, p = h(0), r = _e(d), c = h(!1), f = h(!1), m = h(), _ = h(), I = h("");
4007
+ const t = de(e, "modelValue"), o = h([]), d = oe(), s = al(d), n = h(), u = {}, p = h(0), r = _e(d), c = h(!1), m = h(!1), f = h(), _ = h(), I = h("");
4008
4008
  let b = h(!1);
4009
4009
  async function v() {
4010
4010
  if (l || (l = a.entityId), l) {
@@ -4025,7 +4025,7 @@ const Mr = /* @__PURE__ */ z({
4025
4025
  let U = x.find((ne) => ne.name === $);
4026
4026
  U && U.entityType ? (l = U.entityType.id, O < D.length - 1 ? (await v(), x = u[l]) : U.dataType === "ENTITY" && U.collectionType === "NONE" ? (l = U.entityType.id, v()) : (l = "-1", v())) : (l = "-1", v());
4027
4027
  }
4028
- (E = m.value) == null || E.focus();
4028
+ (E = f.value) == null || E.focus();
4029
4029
  }
4030
4030
  });
4031
4031
  }
@@ -4040,7 +4040,7 @@ const Mr = /* @__PURE__ */ z({
4040
4040
  }
4041
4041
  function M(D) {
4042
4042
  var N, x;
4043
- (N = o.value) == null || N.push(D.name), I.value = "", (x = m.value) == null || x.focus();
4043
+ (N = o.value) == null || N.push(D.name), I.value = "", (x = f.value) == null || x.focus();
4044
4044
  }
4045
4045
  function G(D) {
4046
4046
  var N;
@@ -4051,13 +4051,13 @@ const Mr = /* @__PURE__ */ z({
4051
4051
  if (!l) return;
4052
4052
  const D = u[l];
4053
4053
  if (!D) return;
4054
- const N = (x = m.value) == null ? void 0 : x.value;
4054
+ const N = (x = f.value) == null ? void 0 : x.value;
4055
4055
  N && N.length > 0 ? n.value = [...D].filter((E) => E.name.toLowerCase().indexOf(N.toLowerCase()) > -1) : n.value = D, ae();
4056
4056
  }
4057
4057
  function H() {
4058
4058
  n.value && (p.value < n.value.length - 1 && p.value++, ae());
4059
4059
  }
4060
- function fe() {
4060
+ function me() {
4061
4061
  p.value > 0 && p.value--, ae();
4062
4062
  }
4063
4063
  function be() {
@@ -4072,7 +4072,7 @@ const Mr = /* @__PURE__ */ z({
4072
4072
  function j(D) {
4073
4073
  D && Ce(() => {
4074
4074
  var N;
4075
- (N = m.value) == null || N.focus();
4075
+ (N = f.value) == null || N.focus();
4076
4076
  }), b.value = D;
4077
4077
  }
4078
4078
  const B = ge(() => {
@@ -4113,7 +4113,7 @@ const Mr = /* @__PURE__ */ z({
4113
4113
  dropdown: g(() => [
4114
4114
  J("div", Jr, [
4115
4115
  J("div", {
4116
- class: We(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": c.value, "is-focused": f.value }]),
4116
+ class: We(["el-input-tag el-input-tag--small el-input-tag__wrapper", { "is-hovering": c.value, "is-focused": m.value }]),
4117
4117
  onMouseenter: N[3] || (N[3] = (x) => c.value = !0),
4118
4118
  onMouseleave: N[4] || (N[4] = (x) => c.value = !1)
4119
4119
  }, [
@@ -4129,18 +4129,18 @@ const Mr = /* @__PURE__ */ z({
4129
4129
  }, 1032, ["id", "onClose"]))), 256)),
4130
4130
  Q(J("input", {
4131
4131
  ref_key: "filterInput",
4132
- ref: m,
4132
+ ref: f,
4133
4133
  type: "text",
4134
4134
  style: { flex: "auto" },
4135
4135
  class: "el-input-tag__input",
4136
4136
  "onUpdate:modelValue": N[0] || (N[0] = (x) => I.value = x),
4137
4137
  placeholder: "属性名过滤",
4138
- onFocus: N[1] || (N[1] = (x) => f.value = !0),
4139
- onBlur: N[2] || (N[2] = (x) => f.value = !1),
4138
+ onFocus: N[1] || (N[1] = (x) => m.value = !0),
4139
+ onBlur: N[2] || (N[2] = (x) => m.value = !1),
4140
4140
  onKeydown: [
4141
4141
  Ae(V, ["delete"]),
4142
4142
  Ae(H, ["down"]),
4143
- Ae(fe, ["up"]),
4143
+ Ae(me, ["up"]),
4144
4144
  Ae(be, ["enter"])
4145
4145
  ],
4146
4146
  onInput: te
@@ -4184,7 +4184,7 @@ const Mr = /* @__PURE__ */ z({
4184
4184
  W(le(B.value) + " ", 1),
4185
4185
  i(b) ? (y(), C(i(ce), { key: 0 }, {
4186
4186
  default: g(() => [
4187
- w(i(fl))
4187
+ w(i(ml))
4188
4188
  ]),
4189
4189
  _: 1
4190
4190
  })) : (y(), C(i(ce), { key: 1 }, {
@@ -4200,7 +4200,7 @@ const Mr = /* @__PURE__ */ z({
4200
4200
  _: 1
4201
4201
  }));
4202
4202
  }
4203
- }), za = /* @__PURE__ */ pe(Wr, [["__scopeId", "data-v-24d9cf5a"]]), Kr = /* @__PURE__ */ z({
4203
+ }), za = /* @__PURE__ */ pe(Wr, [["__scopeId", "data-v-f2487dc4"]]), Kr = /* @__PURE__ */ z({
4204
4204
  __name: "JaPropertyPicker",
4205
4205
  emits: ["change"],
4206
4206
  setup(e, { emit: a }) {
@@ -4231,8 +4231,8 @@ const Mr = /* @__PURE__ */ z({
4231
4231
  emits: /* @__PURE__ */ X(["success"], ["update:modelValue"]),
4232
4232
  async setup(e, { emit: a }) {
4233
4233
  let l, t;
4234
- const o = de(e, "modelValue"), d = e, s = oe(), n = aa(s), u = h(), p = h(""), r = h({}), c = a, f = ([l, t] = gt(() => $t()), l = await l, t(), l);
4235
- function m() {
4234
+ const o = de(e, "modelValue"), d = e, s = oe(), n = aa(s), u = h(), p = h(""), r = h({}), c = a, m = ([l, t] = gt(() => $t()), l = await l, t(), l);
4235
+ function f() {
4236
4236
  I(), p.value = d.preKey ?? "", r.value = {};
4237
4237
  }
4238
4238
  async function _() {
@@ -4246,7 +4246,7 @@ const Mr = /* @__PURE__ */ z({
4246
4246
  await n.createBundle(b), o.value = !1, c("success", p.value);
4247
4247
  }
4248
4248
  async function I() {
4249
- u.value = await f.getById(d.appId);
4249
+ u.value = await m.getById(d.appId);
4250
4250
  }
4251
4251
  return T(() => d.appId, async () => {
4252
4252
  await I();
@@ -4258,7 +4258,7 @@ const Mr = /* @__PURE__ */ z({
4258
4258
  modelValue: o.value,
4259
4259
  "onUpdate:modelValue": v[2] || (v[2] = (P) => o.value = P),
4260
4260
  title: "创建国际化文本",
4261
- onOpen: m
4261
+ onOpen: f
4262
4262
  }, {
4263
4263
  footer: g(() => [
4264
4264
  w(i(ie), {
@@ -4273,7 +4273,7 @@ const Mr = /* @__PURE__ */ z({
4273
4273
  _: 1,
4274
4274
  __: [3]
4275
4275
  }),
4276
- w(i(me), {
4276
+ w(i(fe), {
4277
4277
  size: "default",
4278
4278
  plain: "",
4279
4279
  onClick: v[1] || (v[1] = (P) => o.value = !1)
@@ -4346,7 +4346,7 @@ const Mr = /* @__PURE__ */ z({
4346
4346
  emits: /* @__PURE__ */ X(["change", "focus", "blur"], ["update:modelValue"]),
4347
4347
  async setup(e, { expose: a, emit: l }) {
4348
4348
  let t, o;
4349
- const d = e, s = de(e, "modelValue"), n = oe(), u = aa(n), p = Kt().locale, r = h(), c = h(!1), f = h(!1), m = h(), _ = h(""), I = ([t, o] = gt(() => $t()), t = await t, o(), t), b = h(""), v = h(""), S = h(), P = l, k = Vt(M, 500);
4349
+ const d = e, s = de(e, "modelValue"), n = oe(), u = aa(n), p = Kt().locale, r = h(), c = h(!1), m = h(!1), f = h(), _ = h(""), I = ([t, o] = gt(() => $t()), t = await t, o(), t), b = h(""), v = h(""), S = h(), P = l, k = Vt(M, 500);
4350
4350
  let A;
4351
4351
  async function M(V) {
4352
4352
  if (V || (V = s.value), !d.appId) return;
@@ -4368,7 +4368,7 @@ const Mr = /* @__PURE__ */ z({
4368
4368
  }
4369
4369
  async function te() {
4370
4370
  var V;
4371
- c.value = !0, await Ce(), P("focus"), (V = m.value) == null || V.focus();
4371
+ c.value = !0, await Ce(), P("focus"), (V = f.value) == null || V.focus();
4372
4372
  }
4373
4373
  function H() {
4374
4374
  A = setTimeout(() => {
@@ -4383,7 +4383,7 @@ const Mr = /* @__PURE__ */ z({
4383
4383
  deep: !0,
4384
4384
  immediate: !0
4385
4385
  });
4386
- function fe(V) {
4386
+ function me(V) {
4387
4387
  P("change", V);
4388
4388
  }
4389
4389
  async function be(V) {
@@ -4394,7 +4394,7 @@ const Mr = /* @__PURE__ */ z({
4394
4394
  S == null || S.value.focus();
4395
4395
  },
4396
4396
  blur() {
4397
- m == null || m.value.blur();
4397
+ f == null || f.value.blur();
4398
4398
  }
4399
4399
  }), (V, j) => (y(), L(re, null, [
4400
4400
  Q(w(i(we), {
@@ -4411,14 +4411,14 @@ const Mr = /* @__PURE__ */ z({
4411
4411
  ]),
4412
4412
  Q(w(i(Ee), {
4413
4413
  ref_key: "select",
4414
- ref: m,
4414
+ ref: f,
4415
4415
  filterable: "",
4416
4416
  remote: "",
4417
4417
  "remote-method": G,
4418
4418
  disabled: V.disabled,
4419
4419
  "default-first-option": "",
4420
4420
  "remote-show-suffix": "",
4421
- onChange: fe,
4421
+ onChange: me,
4422
4422
  size: V.size,
4423
4423
  "allow-create": "",
4424
4424
  clearable: "",
@@ -4431,7 +4431,7 @@ const Mr = /* @__PURE__ */ z({
4431
4431
  link: "",
4432
4432
  style: { width: "100%" },
4433
4433
  type: "primary",
4434
- onClick: j[1] || (j[1] = (B) => f.value = !0),
4434
+ onClick: j[1] || (j[1] = (B) => m.value = !0),
4435
4435
  shortcut: "Alt+I"
4436
4436
  }, {
4437
4437
  default: g(() => j[4] || (j[4] = [
@@ -4455,8 +4455,8 @@ const Mr = /* @__PURE__ */ z({
4455
4455
  w(Xr, {
4456
4456
  "app-id": V.appId,
4457
4457
  "pre-key": b.value,
4458
- modelValue: f.value,
4459
- "onUpdate:modelValue": j[3] || (j[3] = (B) => f.value = B),
4458
+ modelValue: m.value,
4459
+ "onUpdate:modelValue": j[3] || (j[3] = (B) => m.value = B),
4460
4460
  onSuccess: be
4461
4461
  }, null, 8, ["app-id", "pre-key", "modelValue"])
4462
4462
  ], 64));
@@ -4482,13 +4482,13 @@ const Mr = /* @__PURE__ */ z({
4482
4482
  ref_key: "input",
4483
4483
  ref: t,
4484
4484
  modelValue: p.value,
4485
- "onUpdate:modelValue": c[0] || (c[0] = (f) => p.value = f),
4485
+ "onUpdate:modelValue": c[0] || (c[0] = (m) => p.value = m),
4486
4486
  onChange: u
4487
4487
  }, r.$attrs), ve({ _: 2 }, [
4488
- K(r.$slots, (f, m) => ({
4489
- name: m,
4488
+ K(r.$slots, (m, f) => ({
4489
+ name: f,
4490
4490
  fn: g(() => [
4491
- ee(r.$slots, m)
4491
+ ee(r.$slots, f)
4492
4492
  ])
4493
4493
  }))
4494
4494
  ]), 1040, ["modelValue"]));
@@ -4520,13 +4520,13 @@ const Mr = /* @__PURE__ */ z({
4520
4520
  }
4521
4521
  const u = ge(() => a.multiple ? o.value.map((r) => r[a.keyField]) || [] : o.value[0] !== void 0 ? o.value[0][a.keyField] : ""), p = (r) => {
4522
4522
  if (typeof r == "string") {
4523
- const c = l.value.find((f) => f[a.keyField] === r);
4523
+ const c = l.value.find((m) => m[a.keyField] === r);
4524
4524
  o.value = c ? [c] : [];
4525
4525
  } else
4526
4526
  o.value = l.value.filter((c) => r.includes(c[a.keyField]));
4527
4527
  };
4528
4528
  return n(), T(() => a.name, n), T(() => a.serviceName, n), (r, c) => {
4529
- const f = Jt("loading");
4529
+ const m = Jt("loading");
4530
4530
  return Q((y(), C(i(Ee), {
4531
4531
  "model-value": u.value,
4532
4532
  filterable: a.filterable,
@@ -4535,15 +4535,15 @@ const Mr = /* @__PURE__ */ z({
4535
4535
  onChange: p
4536
4536
  }, {
4537
4537
  default: g(() => [
4538
- (y(!0), L(re, null, K(l.value, (m) => (y(), C(i(et), {
4539
- key: m.id,
4540
- value: m[a.keyField],
4541
- label: m.text
4538
+ (y(!0), L(re, null, K(l.value, (f) => (y(), C(i(et), {
4539
+ key: f.id,
4540
+ value: f[a.keyField],
4541
+ label: f.text
4542
4542
  }, null, 8, ["value", "label"]))), 128))
4543
4543
  ]),
4544
4544
  _: 1
4545
4545
  }, 8, ["model-value", "filterable", "multiple", "clearable"])), [
4546
- [f, t.value]
4546
+ [m, t.value]
4547
4547
  ]);
4548
4548
  };
4549
4549
  }
@@ -4593,7 +4593,7 @@ const Mr = /* @__PURE__ */ z({
4593
4593
  JaUserPicker: Vr,
4594
4594
  JaUserPickerRaw: kr,
4595
4595
  JaUserSelectDialog: Va,
4596
- getAvatarToken: ma,
4596
+ getAvatarToken: fa,
4597
4597
  updateAvatarToken: Vo
4598
4598
  }, Symbol.toStringTag, { value: "Module" }));
4599
4599
  function rs(e) {
@@ -4658,14 +4658,14 @@ function ps(e) {
4658
4658
  if (!window.microApp)
4659
4659
  throw new Error("无法获取到window.microApp。");
4660
4660
  const a = h(/* @__PURE__ */ new Set()), l = (p, r = !0, c = !0) => {
4661
- const f = {
4661
+ const m = {
4662
4662
  sender: e,
4663
4663
  // 将自己的appName填入sender字段
4664
4664
  timestamp: Date.now(),
4665
4665
  payload: p
4666
4666
  };
4667
- r ? window.microApp.forceDispatch(f) : window.microApp.dispatch(f, (m) => {
4668
- console.log("消息是否有返回值", m);
4667
+ r ? window.microApp.forceDispatch(m) : window.microApp.dispatch(m, (f) => {
4668
+ console.log("消息是否有返回值", f);
4669
4669
  }), c && s();
4670
4670
  }, t = (p, r = !0) => {
4671
4671
  const c = {
@@ -4713,10 +4713,10 @@ async function lt(e) {
4713
4713
  Ve.value = await l.getClassificationLevels(e);
4714
4714
  }
4715
4715
  }
4716
- async function fs(e) {
4716
+ async function ms(e) {
4717
4717
  return await lt(e), Ve.value.system;
4718
4718
  }
4719
- async function ms(e) {
4719
+ async function fs(e) {
4720
4720
  return await lt(e), Ve.value.user;
4721
4721
  }
4722
4722
  async function vs(e) {
@@ -4791,7 +4791,7 @@ export {
4791
4791
  kr as JaUserPickerRaw,
4792
4792
  Va as JaUserSelectDialog,
4793
4793
  _a as SCROLL_BAR_WRAPPED_INJECT_KEY,
4794
- ma as getAvatarToken,
4794
+ fa as getAvatarToken,
4795
4795
  rs as installDirectives,
4796
4796
  cs as shortcuts,
4797
4797
  Vo as updateAvatarToken,
@@ -4800,9 +4800,9 @@ export {
4800
4800
  ps as useBridge,
4801
4801
  It as useRealms,
4802
4802
  gs as useSystemClassificationLevelMap,
4803
- fs as useSystemClassificationLevels,
4803
+ ms as useSystemClassificationLevels,
4804
4804
  Ue as useTreeData,
4805
- ms as useUserClassificationLevel,
4805
+ fs as useUserClassificationLevel,
4806
4806
  vs as useUserClassificationLevelMap,
4807
4807
  ba as useUserRefQuery
4808
4808
  };