@guodun/antdv 1.4.4 → 1.4.5

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 (93) hide show
  1. package/dist/es/components/contract-signing-location/src/ContractSigningLocation.vue.mjs +85 -85
  2. package/dist/es/components/dept-selector/src/dept.mjs +170 -142
  3. package/dist/es/components/index.mjs +1 -0
  4. package/dist/es/components/pro-contract-template-designer/index.mjs +1 -0
  5. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.mjs +372 -185
  6. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.mjs +59 -42
  7. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.mjs +218 -85
  8. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.mjs +5 -0
  9. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.mjs +97 -0
  10. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +914 -853
  11. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.mjs +550 -245
  12. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-designer.mjs +214 -139
  13. package/dist/es/components/pro-contract-template-designer/src/extensions/template-variable.mjs +53 -35
  14. package/dist/es/components/pro-contract-template-designer/src/types.mjs +15 -2
  15. package/dist/es/components/pro-contract-template-designer/src/utils/advanced-controls.mjs +91 -0
  16. package/dist/es/components/pro-contract-template-designer/src/utils/template-renderer.mjs +96 -65
  17. package/dist/es/components/pro-contract-template-designer/src/utils/template-tool-icons.mjs +23 -16
  18. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  19. package/dist/es/components/pro-selector/src/components/org-tree.mjs +130 -89
  20. package/dist/es/components/pro-selector/src/components/user.mjs +34 -26
  21. package/dist/es/components/pro-selector/src/pro-user.mjs +86 -72
  22. package/dist/es/components/pro-selector/src/types.mjs +4 -1
  23. package/dist/es/components/pro-selector/src/utils/orgTree.mjs +5 -2
  24. package/dist/es/components/pro-selector-group/src/compoents/dept-tree.vue.mjs +92 -65
  25. package/dist/es/components/pro-selector-group/src/compoents/dept.vue.mjs +3 -3
  26. package/dist/es/components/pro-selector-group/src/compoents/role.vue.mjs +98 -73
  27. package/dist/es/components/pro-selector-group/src/compoents/select-box.vue.mjs +12 -9
  28. package/dist/es/components/pro-selector-group/src/compoents/user.vue.mjs +101 -72
  29. package/dist/es/components/pro-selector-group/src/hooks/useApi.mjs +39 -22
  30. package/dist/es/components/pro-selector-group/src/index.vue.mjs +105 -83
  31. package/dist/es/components/pro-selector-group/src/utils/index.mjs +36 -0
  32. package/dist/es/components/role-selector/src/role.mjs +134 -120
  33. package/dist/es/index.mjs +50 -49
  34. package/dist/lib/components/contract-signing-location/src/ContractSigningLocation.vue.cjs +1 -1
  35. package/dist/lib/components/dept-selector/src/dept.cjs +1 -1
  36. package/dist/lib/components/index.cjs +1 -1
  37. package/dist/lib/components/pro-contract-template-designer/index.cjs +1 -1
  38. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.cjs +2 -1
  39. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.cjs +1 -1
  40. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.cjs +1 -1
  41. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.cjs +1 -0
  42. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.cjs +1 -0
  43. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  44. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.cjs +1 -1
  45. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-designer.cjs +4 -4
  46. package/dist/lib/components/pro-contract-template-designer/src/extensions/template-variable.cjs +1 -1
  47. package/dist/lib/components/pro-contract-template-designer/src/types.cjs +1 -1
  48. package/dist/lib/components/pro-contract-template-designer/src/utils/advanced-controls.cjs +1 -0
  49. package/dist/lib/components/pro-contract-template-designer/src/utils/template-renderer.cjs +3 -3
  50. package/dist/lib/components/pro-contract-template-designer/src/utils/template-tool-icons.cjs +1 -1
  51. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  52. package/dist/lib/components/pro-selector/src/components/org-tree.cjs +1 -1
  53. package/dist/lib/components/pro-selector/src/components/user.cjs +1 -1
  54. package/dist/lib/components/pro-selector/src/pro-user.cjs +1 -1
  55. package/dist/lib/components/pro-selector/src/types.cjs +1 -1
  56. package/dist/lib/components/pro-selector/src/utils/orgTree.cjs +1 -1
  57. package/dist/lib/components/pro-selector-group/src/compoents/dept-tree.vue.cjs +1 -1
  58. package/dist/lib/components/pro-selector-group/src/compoents/dept.vue.cjs +1 -1
  59. package/dist/lib/components/pro-selector-group/src/compoents/role.vue.cjs +1 -1
  60. package/dist/lib/components/pro-selector-group/src/compoents/select-box.vue.cjs +1 -1
  61. package/dist/lib/components/pro-selector-group/src/compoents/user.vue.cjs +1 -1
  62. package/dist/lib/components/pro-selector-group/src/hooks/useApi.cjs +1 -1
  63. package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
  64. package/dist/lib/components/pro-selector-group/src/utils/index.cjs +1 -0
  65. package/dist/lib/components/role-selector/src/role.cjs +1 -1
  66. package/dist/lib/index.cjs +1 -1
  67. package/dist/theme/dept-selector.css +1 -1
  68. package/dist/theme/icon.css +1 -1
  69. package/dist/theme/index.css +1 -1
  70. package/dist/theme/pro-selector-group.css +1 -1
  71. package/dist/theme/pro-selector.css +1 -1
  72. package/dist/theme/role-selector.css +1 -1
  73. package/dist/types/components/contract-signing-location/src/ContractSigningLocation.vue.d.ts +3 -3
  74. package/dist/types/components/pro-contract-template-designer/index.d.ts +1 -0
  75. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerInspector.vue.d.ts +1 -0
  76. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerWorkspaceHeader.vue.d.ts +3 -0
  77. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateRendererField.vue.d.ts +7 -1
  78. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateVariableDataModal.vue.d.ts +14 -0
  79. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +13 -1
  80. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateRenderer.vue.d.ts +11 -1
  81. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-designer.d.ts +4 -0
  82. package/dist/types/components/pro-contract-template-designer/src/extensions/template-variable.d.ts +11 -1
  83. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +131 -2
  84. package/dist/types/components/pro-contract-template-designer/src/utils/advanced-controls.d.ts +15 -0
  85. package/dist/types/components/pro-contract-template-designer/src/utils/template-renderer.d.ts +10 -2
  86. package/dist/types/components/pro-selector/index.d.ts +9 -0
  87. package/dist/types/components/pro-selector/src/components/user.d.ts +9 -0
  88. package/dist/types/components/pro-selector/src/types.d.ts +2 -0
  89. package/dist/types/components/pro-selector/src/utils/orgTree.d.ts +4 -1
  90. package/dist/types/components/pro-selector-group/src/compoents/select-box.vue.d.ts +4 -4
  91. package/dist/types/components/pro-selector-group/src/hooks/useApi.d.ts +6 -1
  92. package/dist/types/components/pro-selector-group/src/utils/index.d.ts +8 -0
  93. package/package.json +3 -1
@@ -6,7 +6,7 @@ import ce from "./ContractSigningLocationCanvas.mjs";
6
6
  import le from "./ContractSigningLocationInspector.mjs";
7
7
  import ue from "./ContractSigningLocationNavigator.mjs";
8
8
  import { ContractSigningPreviewRequests as de } from "./preview-requests.mjs";
9
- import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as fe, createVNode as g, defineComponent as pe, nextTick as _, normalizeClass as v, normalizeStyle as me, onBeforeUnmount as he, openBlock as y, ref as b, shallowRef as x, toDisplayString as ge, unref as S, watch as C, withCtx as w } from "vue";
9
+ import { computed as d, createBlock as f, createCommentVNode as p, createElementBlock as fe, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as pe, nextTick as _, normalizeClass as v, normalizeStyle as me, onBeforeUnmount as he, openBlock as y, ref as b, shallowRef as x, toDisplayString as ge, unref as S, watch as C, withCtx as w } from "vue";
10
10
  import { Button as T, Tooltip as _e } from "ant-design-vue";
11
11
  import { LeftOutlined as ve, ReloadOutlined as ye, RightOutlined as be } from "@ant-design/icons-vue";
12
12
  //#region src/components/contract-signing-location/src/ContractSigningLocation.vue?vue&type=script&setup=true&lang.ts
@@ -74,13 +74,13 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
74
74
  let E = e, D = Ae, O = d(() => i(E.sealMinSize, E.sealMaxSize)), k = u(E.modelValue ?? c(E.contractId), {
75
75
  sealSizeLimit: O.value,
76
76
  sealTypeOptions: E.sealTypeOptions
77
- }), A = b(k), je = x(s(k)), j = x(k.files[0]?.fileId ?? ""), M = x(k.files[0]?.pages[0]?.pageIndex ?? 0), N = x(""), P = x(!1), F = x(""), I = b([]), L = b({}), R = x(We(E.zoom)), z = b(null), B = b(!1), V = b(!1), H = 0, U = !1, Me, W = [], G = 0, K = new de(), q = d(() => E.mode === "preview"), J = d(() => q.value || E.readonly || E.disabled), Ne = d(() => E.showInspector ?? !q.value), Pe = d(() => !q.value && E.showSubmitButton), Fe = d(() => A.value.files.length <= 1), Ie = d(() => St(E.height)), Y = d(() => A.value.files.find((e) => e.fileId === j.value) ?? A.value.files[0]), Le = d(() => Y.value?.pages.find((e) => e.pageIndex === M.value) ?? Y.value?.pages[0]), Re = d(() => {
78
- let e = Y.value;
79
- return e ? A.value.placements.filter((t) => t.fileId === e.fileId) : [];
80
- }), X = d(() => A.value.placements.find((e) => e.id === N.value)), ze = d(() => {
77
+ }), A = x(k), je = x(s(k)), j = x(k.files[0]?.fileId ?? ""), M = x(k.files[0]?.pages[0]?.pageIndex ?? 0), N = x(""), P = x(!1), F = x(""), I = b([]), L = b({}), R = x(Ue(E.zoom)), z = b(null), B = b(!1), V = b(!1), H = 0, U = !1, W, G = [], K = 0, q = new de(), J = d(() => E.mode === "preview"), Y = d(() => J.value || E.readonly || E.disabled), Me = d(() => E.showInspector ?? !J.value), Ne = d(() => !J.value && E.showSubmitButton), Pe = d(() => A.value.files.length <= 1), Fe = d(() => St(E.height)), X = d(() => A.value.files.find((e) => e.fileId === j.value) ?? A.value.files[0]), Ie = d(() => X.value?.pages.find((e) => e.pageIndex === M.value) ?? X.value?.pages[0]), Le = d(() => {
81
78
  let e = X.value;
82
- return e ? l(A.value, e.fileId, e.pageIndex) ?? Le.value : Le.value;
83
- }), Be = d(() => I.value.filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Ve = d(() => Object.keys(L.value).filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), He = d(() => I.value.filter((e) => e.endsWith(":preview")).map((e) => e.slice(0, -8))), Ue = d(() => {
79
+ return e ? A.value.placements.filter((t) => t.fileId === e.fileId) : [];
80
+ }), Z = d(() => A.value.placements.find((e) => e.id === N.value)), Re = d(() => {
81
+ let e = Z.value;
82
+ return e ? l(A.value, e.fileId, e.pageIndex) ?? Ie.value : Ie.value;
83
+ }), ze = d(() => I.value.filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Be = d(() => Object.keys(L.value).filter((e) => e.endsWith(":thumbnail")).map((e) => e.slice(0, -10))), Ve = d(() => I.value.filter((e) => e.endsWith(":preview")).map((e) => e.slice(0, -8))), He = d(() => {
84
84
  let e = {};
85
85
  return Object.entries(L.value).forEach(([t, n]) => {
86
86
  t.endsWith(":preview") && (e[t.slice(0, -8)] = n);
@@ -97,29 +97,29 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
97
97
  bt(u(A.value, {
98
98
  sealSizeLimit: O.value,
99
99
  sealTypeOptions: E.sealTypeOptions
100
- })) !== bt(A.value) && Z(A.value);
100
+ })) !== bt(A.value) && Q(A.value);
101
101
  }), C(() => E.zoom, (e) => {
102
- R.value = We(e);
102
+ R.value = Ue(e);
103
103
  }), C(() => [
104
104
  E.contractId,
105
105
  E.dataProvider,
106
106
  E.autoLoad
107
107
  ], ([e, t, n], r) => {
108
- !n || !t || !e || (!r || e !== r[0] || t !== r[1]) && Q();
108
+ !n || !t || !e || (!r || e !== r[0] || t !== r[1]) && Ke();
109
109
  }, { immediate: !0 }), he(() => {
110
110
  U = !0, H += 1, ht(), gt();
111
111
  });
112
- function We(e) {
112
+ function Ue(e) {
113
113
  return n(e, Math.min(E.minZoom, E.maxZoom), Math.max(E.minZoom, E.maxZoom));
114
114
  }
115
- function Ge(e) {
116
- let t = We(e);
115
+ function We(e) {
116
+ let t = Ue(e);
117
117
  R.value = t, D("update:zoom", t);
118
118
  }
119
- function Ke() {
119
+ function Ge() {
120
120
  return z.value?.fitWidth() ?? R.value;
121
121
  }
122
- function Z(e, t = {}) {
122
+ function Q(e, t = {}) {
123
123
  A.value = u(e, {
124
124
  sealSizeLimit: O.value,
125
125
  sealTypeOptions: E.sealTypeOptions
@@ -127,7 +127,7 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
127
127
  let n = s(A.value);
128
128
  return D("update:modelValue", n), D("change", n), n;
129
129
  }
130
- async function Q() {
130
+ async function Ke() {
131
131
  let e = String(E.contractId || A.value.contractId || "").trim();
132
132
  if (!E.dataProvider) return $({
133
133
  code: "CONTRACT_PROVIDER_MISSING",
@@ -170,7 +170,7 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
170
170
  let i = E.dataProvider?.loadPagePreview, o = A.value.files.find((t) => t.fileId === e), ee = l(A.value, e, t), s = pt(e, t, n);
171
171
  if (!i || a(o) || !ee || I.value.includes(s)) return;
172
172
  mt(s), I.value = [...I.value, s];
173
- let c = K.start(s);
173
+ let c = q.start(s);
174
174
  try {
175
175
  let a = await i({
176
176
  contractId: A.value.contractId || E.contractId,
@@ -179,7 +179,7 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
179
179
  thumbnail: n,
180
180
  signal: c.signal
181
181
  });
182
- if (U || !K.isCurrent(s, c) || !l(A.value, e, t)) return;
182
+ if (U || !q.isCurrent(s, c) || !l(A.value, e, t)) return;
183
183
  let o = oe(l(A.value, e, t), a, r(E.dataProvider?.coordinateScale), n), ee = A.value.files.map((r) => r.fileId === e ? {
184
184
  ...r,
185
185
  pages: r.pages.map((e) => e.pageIndex === t ? {
@@ -188,12 +188,12 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
188
188
  ...n ? { thumbnailUrl: a.url } : { previewUrl: a.url }
189
189
  } : e)
190
190
  } : r);
191
- Z({
191
+ Q({
192
192
  ...A.value,
193
193
  files: ee
194
194
  }, { clearError: !1 });
195
195
  } catch (n) {
196
- if (!K.isCurrent(s, c) || _t(n)) return;
196
+ if (!q.isCurrent(s, c) || _t(n)) return;
197
197
  let r = ft(n, "CONTRACT_PREVIEW_FAILED", "合同页面预览加载失败,可切换页面或重试", {
198
198
  fileId: e,
199
199
  pageIndex: t
@@ -203,13 +203,13 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
203
203
  [s]: r.message
204
204
  };
205
205
  } finally {
206
- K.finish(s, c) && (I.value = I.value.filter((e) => e !== s));
206
+ q.finish(s, c) && (I.value = I.value.filter((e) => e !== s));
207
207
  }
208
208
  }
209
209
  function Ye(e) {
210
210
  if (e === j.value) return;
211
211
  let t = j.value;
212
- ht(), t && (gt((e) => e.startsWith(`${t}:`) && e.endsWith(":preview")), W = W.filter((t) => t.fileId === e)), j.value = e, M.value = ne(A.value.files.find((t) => t.fileId === e)?.pages)?.pageIndex ?? 0, N.value = "", D("file-change", e), D("page-change", e, M.value), _(() => z.value?.scrollToPage(M.value));
212
+ ht(), t && (gt((e) => e.startsWith(`${t}:`) && e.endsWith(":preview")), G = G.filter((t) => t.fileId === e)), j.value = e, M.value = ne(A.value.files.find((t) => t.fileId === e)?.pages)?.pageIndex ?? 0, N.value = "", D("file-change", e), D("page-change", e, M.value), _(() => z.value?.scrollToPage(M.value));
213
213
  }
214
214
  function Xe(e) {
215
215
  M.value = e;
@@ -220,15 +220,15 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
220
220
  function Qe(e) {
221
221
  ht();
222
222
  let t = j.value;
223
- Me = setTimeout(() => {
224
- Me = void 0, j.value === t && $e(t, e);
223
+ W = setTimeout(() => {
224
+ W = void 0, j.value === t && $e(t, e);
225
225
  }, 150);
226
226
  }
227
227
  function $e(e, t) {
228
228
  let n = A.value.files.find((t) => t.fileId === e);
229
229
  !n || a(n) || e !== j.value || (t.forEach((e) => {
230
230
  let t = n.pages.find((t) => t.pageIndex === e);
231
- !t || t.previewUrl || I.value.includes(pt(n.fileId, e, !1)) || W.some((t) => t.fileId === n.fileId && t.pageIndex === e) || W.push({
231
+ !t || t.previewUrl || I.value.includes(pt(n.fileId, e, !1)) || G.some((t) => t.fileId === n.fileId && t.pageIndex === e) || G.push({
232
232
  fileId: n.fileId,
233
233
  pageIndex: e
234
234
  });
@@ -236,12 +236,12 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
236
236
  }
237
237
  async function et() {
238
238
  let e = j.value;
239
- for (W = W.filter((t) => t.fileId === e); G < 3 && W.length;) {
240
- let t = W.shift();
239
+ for (G = G.filter((t) => t.fileId === e); K < 3 && G.length;) {
240
+ let t = G.shift();
241
241
  if (!t || t.fileId !== e) continue;
242
242
  let n = l(A.value, t.fileId, t.pageIndex), r = A.value.files.find((e) => e.fileId === t.fileId);
243
- !n || a(r) || n.previewUrl || I.value.includes(pt(t.fileId, t.pageIndex, !1)) || (G += 1, Je(t.fileId, t.pageIndex, !1).finally(() => {
244
- G = Math.max(0, G - 1), et();
243
+ !n || a(r) || n.previewUrl || I.value.includes(pt(t.fileId, t.pageIndex, !1)) || (K += 1, Je(t.fileId, t.pageIndex, !1).finally(() => {
244
+ K = Math.max(0, K - 1), et();
245
245
  }));
246
246
  }
247
247
  }
@@ -250,8 +250,8 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
250
250
  t && (t.fileId !== j.value && Ye(t.fileId), N.value = e, _(() => z.value?.scrollToPlacement(e)));
251
251
  }
252
252
  function nt(e, t = {}) {
253
- if (J.value || !E.allowedPlacementTypes.includes(e)) return;
254
- let n = t.fileId ?? Y.value?.fileId, r = t.pageIndex ?? Le.value?.pageIndex;
253
+ if (Y.value || !E.allowedPlacementTypes.includes(e)) return;
254
+ let n = t.fileId ?? X.value?.fileId, r = t.pageIndex ?? Ie.value?.pageIndex;
255
255
  if (!n || r === void 0) return;
256
256
  let i = l(A.value, n, r);
257
257
  if (!i || !re(i)) {
@@ -281,13 +281,13 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
281
281
  sealTypeOptions: E.sealTypeOptions,
282
282
  ...e === "seal" ? { sealType: [String(a)] } : {}
283
283
  });
284
- return Z({
284
+ return Q({
285
285
  ...A.value,
286
286
  placements: [...A.value.placements, o]
287
287
  }), j.value = n, M.value = r, N.value = o.id, yt(o);
288
288
  }
289
289
  function rt(e, t) {
290
- J.value || Z({
290
+ Y.value || Q({
291
291
  ...A.value,
292
292
  placements: A.value.placements.map((n) => {
293
293
  if (n.id !== e) return n;
@@ -300,8 +300,8 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
300
300
  });
301
301
  }
302
302
  function it() {
303
- let e = X.value;
304
- if (!e || J.value) return;
303
+ let e = Z.value;
304
+ if (!e || Y.value) return;
305
305
  let n = l(A.value, e.fileId, e.pageIndex);
306
306
  if (!n) return;
307
307
  let r = t({
@@ -310,13 +310,13 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
310
310
  signLeft: e.signLeft + 16,
311
311
  signTop: e.signTop + 16
312
312
  }, n, { sealSizeLimit: O.value });
313
- Z({
313
+ Q({
314
314
  ...A.value,
315
315
  placements: [...A.value.placements, r]
316
316
  }), N.value = r.id;
317
317
  }
318
318
  function at(e) {
319
- J.value || (Z({
319
+ Y.value || (Q({
320
320
  ...A.value,
321
321
  placements: A.value.placements.filter((t) => t.id !== e)
322
322
  }), N.value === e && (N.value = ""));
@@ -342,7 +342,7 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
342
342
  }
343
343
  }
344
344
  function ut() {
345
- let e = Z(s(je.value));
345
+ let e = Q(s(je.value));
346
346
  return N.value = "", dt(!0), _(() => z.value?.scrollToPage(M.value)), e;
347
347
  }
348
348
  function dt(e = !1) {
@@ -370,17 +370,17 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
370
370
  delete t[e], L.value = t;
371
371
  }
372
372
  function ht() {
373
- Me &&= (clearTimeout(Me), void 0);
373
+ W &&= (clearTimeout(W), void 0);
374
374
  }
375
375
  function gt(e) {
376
- let t = e ?? (() => !0), n = new Set(K.abort(t));
377
- n.size && (I.value = I.value.filter((e) => !n.has(e))), e || (W = []);
376
+ let t = e ?? (() => !0), n = new Set(q.abort(t));
377
+ n.size && (I.value = I.value.filter((e) => !n.has(e))), e || (G = []);
378
378
  }
379
379
  function _t(e) {
380
380
  return !!(e && typeof e == "object" && "cancelled" in e && e.cancelled) || e instanceof DOMException && e.name === "AbortError";
381
381
  }
382
382
  function vt(e) {
383
- let t = Y.value;
383
+ let t = X.value;
384
384
  t && Je(t.fileId, e, !1);
385
385
  }
386
386
  function yt(e) {
@@ -400,7 +400,7 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
400
400
  if (typeof e == "string" && e.trim()) return { "--gd-ant-contract-signing-location-height": e.trim() };
401
401
  }
402
402
  return pe({
403
- load: Q,
403
+ load: Ke,
404
404
  validate: ot,
405
405
  getValue: st,
406
406
  getOutput: ct,
@@ -408,65 +408,65 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
408
408
  reset: ut,
409
409
  addPlacement: nt,
410
410
  removePlacement: at,
411
- fitWidth: Ke
412
- }), (t, n) => (y(), m("section", {
411
+ fitWidth: Ge
412
+ }), (t, n) => (y(), fe("section", {
413
413
  class: v(["gd-ant-contract-signing-location", {
414
- "is-readonly": J.value,
414
+ "is-readonly": Y.value,
415
415
  "is-disabled": e.disabled,
416
- "is-preview": q.value
416
+ "is-preview": J.value
417
417
  }]),
418
- style: me(Ie.value)
418
+ style: me(Fe.value)
419
419
  }, [
420
- h("header", xe, [h("div", Se, [n[6] ||= h("span", {
420
+ m("header", xe, [m("div", Se, [n[6] ||= m("span", {
421
421
  class: "gd-ant-contract-signing-location__title-bar",
422
422
  "aria-hidden": "true"
423
- }, null, -1), h("div", null, [h("strong", null, ge(q.value ? "合同预览" : "指定合同签署位置"), 1)])]), h("div", Ce, [
424
- h("span", we, ge(A.value.placements.length) + " 个位置", 1),
423
+ }, null, -1), m("div", null, [m("strong", null, ge(J.value ? "合同预览" : "指定合同签署位置"), 1)])]), m("div", Ce, [
424
+ m("span", we, ge(A.value.placements.length) + " 个位置", 1),
425
425
  e.dataProvider ? (y(), f(S(T), {
426
426
  key: 0,
427
427
  loading: P.value,
428
- onClick: Q
428
+ onClick: Ke
429
429
  }, {
430
- default: w(() => [g(S(ye), { "aria-hidden": "true" }), n[7] ||= fe(" 重新加载 ", -1)]),
430
+ default: w(() => [g(S(ye), { "aria-hidden": "true" }), n[7] ||= h(" 重新加载 ", -1)]),
431
431
  _: 1
432
432
  }, 8, ["loading"])) : p("", !0),
433
- q.value ? p("", !0) : (y(), f(S(T), {
433
+ J.value ? p("", !0) : (y(), f(S(T), {
434
434
  key: 1,
435
- disabled: J.value,
435
+ disabled: Y.value,
436
436
  onClick: ut
437
437
  }, {
438
- default: w(() => [...n[8] ||= [fe("重置", -1)]]),
438
+ default: w(() => [...n[8] ||= [h("重置", -1)]]),
439
439
  _: 1
440
440
  }, 8, ["disabled"])),
441
- Pe.value ? (y(), f(S(T), {
441
+ Ne.value ? (y(), f(S(T), {
442
442
  key: 2,
443
443
  type: "primary",
444
444
  loading: P.value,
445
445
  disabled: e.disabled,
446
446
  onClick: lt
447
447
  }, {
448
- default: w(() => [...n[9] ||= [fe("确认并生成规则", -1)]]),
448
+ default: w(() => [...n[9] ||= [h("确认并生成规则", -1)]]),
449
449
  _: 1
450
450
  }, 8, ["loading", "disabled"])) : p("", !0)
451
451
  ])]),
452
- F.value ? (y(), m("div", Te, [h("span", null, ge(F.value), 1), e.dataProvider && e.contractId ? (y(), f(S(T), {
452
+ F.value ? (y(), fe("div", Te, [m("span", null, ge(F.value), 1), e.dataProvider && e.contractId ? (y(), f(S(T), {
453
453
  key: 0,
454
454
  type: "link",
455
455
  size: "small",
456
- onClick: Q
456
+ onClick: Ke
457
457
  }, {
458
- default: w(() => [...n[10] ||= [fe("重试", -1)]]),
458
+ default: w(() => [...n[10] ||= [h("重试", -1)]]),
459
459
  _: 1
460
460
  })) : p("", !0)])) : p("", !0),
461
- h("div", { class: v(["gd-ant-contract-signing-location__body", {
462
- "is-single-file": Fe.value,
463
- "is-inspector-hidden": !Ne.value
461
+ m("div", { class: v(["gd-ant-contract-signing-location__body", {
462
+ "is-single-file": Pe.value,
463
+ "is-inspector-hidden": !Me.value
464
464
  }]) }, [
465
- Fe.value ? p("", !0) : (y(), m("div", {
465
+ Pe.value ? p("", !0) : (y(), fe("div", {
466
466
  key: 0,
467
467
  class: v(["gd-ant-contract-signing-location__navigator-wrap", { "is-collapsed": V.value }])
468
468
  }, [g(S(_e), { title: V.value ? "展开页面栏" : "收起页面栏" }, {
469
- default: w(() => [h("button", {
469
+ default: w(() => [m("button", {
470
470
  type: "button",
471
471
  class: "gd-ant-contract-signing-location__panel-handle",
472
472
  "aria-label": V.value ? "展开页面栏" : "收起页面栏",
@@ -480,11 +480,11 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
480
480
  "aria-hidden": "true"
481
481
  }))], 8, Ee)]),
482
482
  _: 1
483
- }, 8, ["title"]), h("div", De, [g(ue, {
483
+ }, 8, ["title"]), m("div", De, [g(ue, {
484
484
  files: A.value.files,
485
485
  "active-file-id": j.value,
486
- "loading-preview-keys": Be.value,
487
- "error-preview-keys": Ve.value,
486
+ "loading-preview-keys": ze.value,
487
+ "error-preview-keys": Be.value,
488
488
  onSelect: Ye
489
489
  }, null, 8, [
490
490
  "files",
@@ -495,17 +495,17 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
495
495
  g(ce, {
496
496
  ref_key: "canvasRef",
497
497
  ref: z,
498
- file: Y.value,
499
- pages: Y.value?.pages ?? [],
500
- placements: Re.value,
498
+ file: X.value,
499
+ pages: X.value?.pages ?? [],
500
+ placements: Le.value,
501
501
  "selected-placement-id": N.value,
502
- readonly: J.value,
502
+ readonly: Y.value,
503
503
  resizable: e.resizable,
504
504
  "seal-size-limit": O.value,
505
505
  "seal-type-options": e.sealTypeOptions,
506
506
  zoom: R.value,
507
- "preview-loading-keys": He.value,
508
- "preview-error-map": Ue.value,
507
+ "preview-loading-keys": Ve.value,
508
+ "preview-error-map": He.value,
509
509
  "active-page-index": M.value,
510
510
  "min-zoom": e.minZoom,
511
511
  "max-zoom": e.maxZoom,
@@ -521,7 +521,7 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
521
521
  onVisiblePages: Qe,
522
522
  onViewPage: Xe,
523
523
  onPageChange: Ze,
524
- onZoomChange: Ge
524
+ onZoomChange: We
525
525
  }, null, 8, [
526
526
  "file",
527
527
  "pages",
@@ -538,11 +538,11 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
538
538
  "min-zoom",
539
539
  "max-zoom"
540
540
  ]),
541
- Ne.value ? (y(), m("div", {
541
+ Me.value ? (y(), fe("div", {
542
542
  key: 1,
543
543
  class: v(["gd-ant-contract-signing-location__inspector-wrap", { "is-collapsed": B.value }])
544
544
  }, [g(S(_e), { title: B.value ? "展开属性栏" : "收起属性栏" }, {
545
- default: w(() => [h("button", {
545
+ default: w(() => [m("button", {
546
546
  type: "button",
547
547
  class: "gd-ant-contract-signing-location__panel-handle",
548
548
  "aria-label": B.value ? "展开属性栏" : "收起属性栏",
@@ -556,19 +556,19 @@ var xe = { class: "gd-ant-contract-signing-location__header" }, Se = { class: "g
556
556
  "aria-hidden": "true"
557
557
  }))], 8, Oe)]),
558
558
  _: 1
559
- }, 8, ["title"]), h("div", ke, [g(le, {
560
- placement: X.value,
561
- page: ze.value,
562
- pages: Y.value?.pages ?? [],
563
- placements: Re.value,
564
- readonly: J.value,
559
+ }, 8, ["title"]), m("div", ke, [g(le, {
560
+ placement: Z.value,
561
+ page: Re.value,
562
+ pages: X.value?.pages ?? [],
563
+ placements: Le.value,
564
+ readonly: Y.value,
565
565
  resizable: e.resizable,
566
566
  "seal-size-limit": O.value,
567
567
  "seal-type-options": e.sealTypeOptions,
568
568
  "allowed-placement-types": e.allowedPlacementTypes,
569
569
  "size-profile": e.sizeProfile,
570
570
  onAdd: nt,
571
- onUpdate: n[5] ||= (e) => X.value && rt(X.value.id, e),
571
+ onUpdate: n[5] ||= (e) => Z.value && rt(Z.value.id, e),
572
572
  onDuplicate: it,
573
573
  onRemove: at,
574
574
  onLocate: tt