@guodun/antdv 1.6.2 → 1.6.4

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 (69) hide show
  1. package/dist/es/components/dept-selector/src/DeptSelector.vue.mjs +52 -46
  2. package/dist/es/components/dept-selector/src/types.mjs +4 -0
  3. package/dist/es/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.mjs +67 -106
  4. package/dist/es/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.mjs +791 -794
  5. package/dist/es/components/pro-contract-template-designer/src/composables/use-template-authoring.mjs +2 -9
  6. package/dist/es/components/pro-contract-template-designer/src/extensions/editor-extensions.mjs +34 -36
  7. package/dist/es/components/pro-contract-template-designer/style/index.css +1 -1
  8. package/dist/es/components/pro-menu-tree/src/pro-menu-tree.mjs +108 -103
  9. package/dist/es/components/pro-menu-tree/src/types.mjs +4 -0
  10. package/dist/es/components/pro-selector/src/ProUserSelector.vue.mjs +50 -44
  11. package/dist/es/components/pro-selector/src/types.mjs +4 -0
  12. package/dist/es/components/pro-selector-group/src/index.vue.mjs +47 -40
  13. package/dist/es/components/role-selector/src/RoleSelector.vue.mjs +50 -44
  14. package/dist/es/components/role-selector/src/types.mjs +5 -1
  15. package/dist/es/components/selector-core/components/SelectorDialog.vue.mjs +242 -233
  16. package/dist/es/components/selector-core/selection-theme.mjs +35 -0
  17. package/dist/es/components/selector-core/useSelectorData.mjs +1 -1
  18. package/dist/lib/components/dept-selector/src/DeptSelector.vue.cjs +1 -1
  19. package/dist/lib/components/dept-selector/src/types.cjs +1 -1
  20. package/dist/lib/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.cjs +1 -1
  21. package/dist/lib/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.cjs +1 -1
  22. package/dist/lib/components/pro-contract-template-designer/src/composables/use-template-authoring.cjs +1 -1
  23. package/dist/lib/components/pro-contract-template-designer/src/extensions/editor-extensions.cjs +1 -1
  24. package/dist/lib/components/pro-contract-template-designer/style/index.css +1 -1
  25. package/dist/lib/components/pro-menu-tree/src/pro-menu-tree.cjs +1 -1
  26. package/dist/lib/components/pro-menu-tree/src/types.cjs +1 -1
  27. package/dist/lib/components/pro-selector/src/ProUserSelector.vue.cjs +1 -1
  28. package/dist/lib/components/pro-selector/src/types.cjs +1 -1
  29. package/dist/lib/components/pro-selector-group/src/index.vue.cjs +1 -1
  30. package/dist/lib/components/role-selector/src/RoleSelector.vue.cjs +1 -1
  31. package/dist/lib/components/role-selector/src/types.cjs +1 -1
  32. package/dist/lib/components/selector-core/components/SelectorDialog.vue.cjs +1 -1
  33. package/dist/lib/components/selector-core/selection-theme.cjs +1 -0
  34. package/dist/lib/components/selector-core/useSelectorData.cjs +1 -1
  35. package/dist/theme/dept-selector.css +1 -0
  36. package/dist/theme/icon.css +1 -1
  37. package/dist/theme/index.css +1 -1
  38. package/dist/theme/pro-menu-tree.css +1 -1
  39. package/dist/theme/pro-selector-group.css +1 -0
  40. package/dist/theme/role-selector.css +1 -0
  41. package/dist/theme/selector-core.css +1 -1
  42. package/dist/types/components/dept-selector/index.d.ts +15 -0
  43. package/dist/types/components/dept-selector/src/DeptSelector.vue.d.ts +9 -0
  44. package/dist/types/components/dept-selector/src/types.d.ts +7 -0
  45. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue.d.ts +0 -3
  46. package/dist/types/components/pro-contract-template-designer/src/ContractTemplateDesignerToolbar.vue.d.ts +2 -2
  47. package/dist/types/components/pro-contract-template-designer/src/ProContractTemplateDesigner.vue.d.ts +0 -3
  48. package/dist/types/components/pro-contract-template-designer/src/composables/use-template-authoring.d.ts +2 -4
  49. package/dist/types/components/pro-contract-template-designer/src/constants.d.ts +0 -3
  50. package/dist/types/components/pro-contract-template-designer/src/types.d.ts +0 -4
  51. package/dist/types/components/pro-menu-tree/index.d.ts +9 -0
  52. package/dist/types/components/pro-menu-tree/src/pro-menu-tree.d.ts +9 -0
  53. package/dist/types/components/pro-menu-tree/src/types.d.ts +7 -0
  54. package/dist/types/components/pro-selector/index.d.ts +59 -2
  55. package/dist/types/components/pro-selector/src/ProUserSelector.vue.d.ts +9 -0
  56. package/dist/types/components/pro-selector/src/ProUserSelectorDrilldown.vue.d.ts +28 -4
  57. package/dist/types/components/pro-selector/src/types.d.ts +7 -0
  58. package/dist/types/components/pro-selector-group/index.d.ts +3 -0
  59. package/dist/types/components/pro-selector-group/src/index.vue.d.ts +1 -0
  60. package/dist/types/components/pro-selector-group/src/types.d.ts +5 -0
  61. package/dist/types/components/role-selector/index.d.ts +30 -0
  62. package/dist/types/components/role-selector/src/RoleSelector.vue.d.ts +9 -0
  63. package/dist/types/components/role-selector/src/types.d.ts +9 -2
  64. package/dist/types/components/selector-core/components/SelectorDialog.vue.d.ts +2 -0
  65. package/dist/types/components/selector-core/selection-theme.d.ts +20 -0
  66. package/package.json +3 -3
  67. package/dist/es/components/pro-contract-template-designer/src/utils/clause-snippets.mjs +0 -56
  68. package/dist/lib/components/pro-contract-template-designer/src/utils/clause-snippets.cjs +0 -1
  69. package/dist/types/components/pro-contract-template-designer/src/utils/clause-snippets.d.ts +0 -10
@@ -1,23 +1,24 @@
1
1
  import { defaultFieldNames as e, serializeDepartments as t, text as n } from "../../selector-core/model.mjs";
2
- import r from "../../selector-core/components/SelectorDialog.mjs";
3
- import i from "../../selector-core/components/SelectionChips.mjs";
4
- import { deptSelectorEmits as a, deptSelectorProps as o } from "./types.mjs";
5
- import { computed as s, createBlock as c, createCommentVNode as l, createElementVNode as u, createVNode as d, defineComponent as f, openBlock as p, renderSlot as m, unref as h, useAttrs as g, withCtx as _ } from "vue";
6
- import { FormItemRest as v } from "ant-design-vue";
2
+ import { createSelectionTheme as r } from "../../selector-core/selection-theme.mjs";
3
+ import i from "../../selector-core/components/SelectorDialog.mjs";
4
+ import a from "../../selector-core/components/SelectionChips.mjs";
5
+ import { deptSelectorEmits as o, deptSelectorProps as s } from "./types.mjs";
6
+ import { computed as c, createBlock as l, createCommentVNode as u, createElementVNode as d, createVNode as f, defineComponent as p, normalizeStyle as m, openBlock as h, renderSlot as g, unref as _, useAttrs as v, withCtx as y } from "vue";
7
+ import { FormItemRest as b } from "ant-design-vue";
7
8
  //#region src/components/dept-selector/src/DeptSelector.vue?vue&type=script&setup=true&lang.ts
8
- var y = { class: "gd-ant-dept-selector" }, b = /* @__PURE__ */ f({
9
+ var x = /* @__PURE__ */ p({
9
10
  name: "KDeptSelector",
10
11
  __name: "DeptSelector",
11
- props: o,
12
- emits: a,
13
- setup(a, { emit: o }) {
14
- let f = a, b = o, x = g(), S = s(() => f.isBuiltInRequest ? e : f.fieldNames), C = s(() => (Array.isArray(f.modelValue) ? f.modelValue : f.modelValue ? [f.modelValue] : []).map((e) => ({
12
+ props: s,
13
+ emits: o,
14
+ setup(o, { emit: s }) {
15
+ let p = o, x = s, S = v(), C = c(() => r(p.activeColor)), w = c(() => p.isBuiltInRequest ? e : p.fieldNames), T = c(() => (Array.isArray(p.modelValue) ? p.modelValue : p.modelValue ? [p.modelValue] : []).map((e) => ({
15
16
  type: "dept",
16
- value: n(e[S.value.key]),
17
- label: n(e[S.value.title]),
17
+ value: n(e[w.value.key]),
18
+ label: n(e[w.value.title]),
18
19
  raw: e
19
- })).filter((e) => e.value)), w = s(() => {
20
- let { modalProps: e, ...t } = x;
20
+ })).filter((e) => e.value)), E = c(() => {
21
+ let { modalProps: e, ...t } = S;
21
22
  return {
22
23
  cancelText: "取消",
23
24
  okText: "确定",
@@ -25,45 +26,49 @@ var y = { class: "gd-ant-dept-selector" }, b = /* @__PURE__ */ f({
25
26
  ...e || {}
26
27
  };
27
28
  });
28
- function T(e) {
29
- b("update:visible", e === !0);
29
+ function D(e) {
30
+ x("update:visible", e === !0);
30
31
  }
31
- function E(e) {
32
- let { values: n, confirm: r } = t(e, S.value), i = f.type === "radio" ? n[0] || null : n;
33
- b("update:visible", !1), b("update:modelValue", i), b("confirm", r);
32
+ function O(e) {
33
+ let { values: n, confirm: r } = t(e, w.value), i = p.type === "radio" ? n[0] || null : n;
34
+ x("update:visible", !1), x("update:modelValue", i), x("confirm", r);
34
35
  }
35
- function D() {
36
- b("update:visible", !1), b("cancel");
36
+ function k() {
37
+ x("update:visible", !1), x("cancel");
37
38
  }
38
- function O(e) {
39
- if (f.type === "radio") {
40
- b("update:modelValue", null);
39
+ function A(e) {
40
+ if (p.type === "radio") {
41
+ x("update:modelValue", null);
41
42
  return;
42
43
  }
43
- b("update:modelValue", (Array.isArray(f.modelValue) ? f.modelValue : []).filter((t) => String(t[S.value.key]) !== e));
44
+ x("update:modelValue", (Array.isArray(p.modelValue) ? p.modelValue : []).filter((t) => String(t[w.value.key]) !== e));
44
45
  }
45
- return (e, t) => (p(), c(h(v), null, {
46
- default: _(() => [u("div", y, [f.hideSlot ? l("", !0) : m(e.$slots, "default", { key: 0 }, () => [d(i, {
47
- items: C.value,
48
- "max-visible-count": f.maxVisibleCount,
46
+ return (e, t) => (h(), l(_(b), null, {
47
+ default: y(() => [d("div", {
48
+ class: "gd-ant-dept-selector",
49
+ style: m(C.value.style)
50
+ }, [p.hideSlot ? u("", !0) : g(e.$slots, "default", { key: 0 }, () => [f(a, {
51
+ items: T.value,
52
+ "max-visible-count": p.maxVisibleCount,
49
53
  "add-text": "选择部门",
50
- onAdd: t[0] ||= (e) => b("update:visible", !0),
51
- onRemove: t[1] ||= (e) => O(e.value)
52
- }, null, 8, ["items", "max-visible-count"])]), d(r, {
53
- open: f.visible,
54
+ onAdd: t[0] ||= (e) => x("update:visible", !0),
55
+ onRemove: t[1] ||= (e) => A(e.value)
56
+ }, null, 8, ["items", "max-visible-count"])]), f(i, {
57
+ open: p.visible,
54
58
  mode: "dept",
55
- selected: C.value,
56
- selection: f.type,
59
+ selected: T.value,
60
+ selection: p.type,
57
61
  title: "选择部门",
58
- "tree-data": f.treeData,
59
- "field-names": S.value,
60
- http: f.http,
61
- prefix: f.prefix,
62
- "is-built-in-request": f.isBuiltInRequest,
63
- "modal-props": w.value,
64
- "onUpdate:open": T,
65
- onConfirm: E,
66
- onCancel: D
62
+ "tree-data": p.treeData,
63
+ "field-names": w.value,
64
+ http: p.http,
65
+ prefix: p.prefix,
66
+ "is-built-in-request": p.isBuiltInRequest,
67
+ "active-color": p.activeColor,
68
+ "modal-props": E.value,
69
+ "onUpdate:open": D,
70
+ onConfirm: O,
71
+ onCancel: k
67
72
  }, null, 8, [
68
73
  "open",
69
74
  "selected",
@@ -73,11 +78,12 @@ var y = { class: "gd-ant-dept-selector" }, b = /* @__PURE__ */ f({
73
78
  "http",
74
79
  "prefix",
75
80
  "is-built-in-request",
81
+ "active-color",
76
82
  "modal-props"
77
- ])])]),
83
+ ])], 4)]),
78
84
  _: 3
79
85
  }));
80
86
  }
81
87
  });
82
88
  //#endregion
83
- export { b as default };
89
+ export { x as default };
@@ -30,6 +30,10 @@ var e = {
30
30
  default: () => {}
31
31
  },
32
32
  prefix: String,
33
+ activeColor: {
34
+ type: String,
35
+ default: "#1161ff"
36
+ },
33
37
  maxVisibleCount: {
34
38
  type: Number,
35
39
  default: 5
@@ -1,16 +1,15 @@
1
- import { CONTRACT_CLAUSE_SNIPPETS as e } from "./utils/clause-snippets.mjs";
2
- import t from "./ContractTemplateFindReplace.mjs";
3
- import { Fragment as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createStaticVNode as s, createVNode as c, defineComponent as l, mergeModels as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, unref as h, useModel as g, useTemplateRef as _, withCtx as v, withKeys as y, withModifiers as b } from "vue";
4
- import { Button as x, Tooltip as S } from "ant-design-vue";
5
- import { CloseOutlined as C, FileTextOutlined as w, QuestionCircleOutlined as T, SearchOutlined as E } from "@ant-design/icons-vue";
1
+ import e from "./ContractTemplateFindReplace.mjs";
2
+ import { createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createStaticVNode as a, createVNode as o, defineComponent as s, mergeModels as c, normalizeClass as l, openBlock as u, unref as d, useModel as f, useTemplateRef as p, withCtx as m, withKeys as h, withModifiers as g } from "vue";
3
+ import { Button as _, Tooltip as v } from "ant-design-vue";
4
+ import { CloseOutlined as y, QuestionCircleOutlined as b, SearchOutlined as x } from "@ant-design/icons-vue";
6
5
  //#region src/components/pro-contract-template-designer/src/ContractTemplateAuthoringBar.vue?vue&type=script&setup=true&lang.ts
7
- var D = {
6
+ var S = {
8
7
  class: "gd-contract-template-designer__authoring-actions",
9
8
  role: "toolbar",
10
9
  "aria-label": "编写辅助工具"
11
- }, O = { key: 0 }, k = { key: 0 }, A = { key: 0 }, j = { class: "gd-contract-template-designer__authoring-panel-head" }, M = { class: "gd-contract-template-designer__snippet-list" }, N = ["disabled", "onClick"], P = { class: "gd-contract-template-designer__authoring-panel-head" }, F = /* @__PURE__ */ l({
10
+ }, C = { key: 0 }, w = { key: 0 }, T = { class: "gd-contract-template-designer__authoring-panel-head" }, E = /* @__PURE__ */ s({
12
11
  __name: "ContractTemplateAuthoringBar",
13
- props: /* @__PURE__ */ u({
12
+ props: /* @__PURE__ */ c({
14
13
  compact: { type: Boolean },
15
14
  panel: {},
16
15
  readonly: { type: Boolean },
@@ -29,92 +28,77 @@ var D = {
29
28
  },
30
29
  matchCaseModifiers: {}
31
30
  }),
32
- emits: /* @__PURE__ */ u([
31
+ emits: /* @__PURE__ */ c([
33
32
  "open",
34
33
  "close",
35
34
  "navigate",
36
35
  "replaceCurrent",
37
- "replaceAll",
38
- "insertSnippet"
36
+ "replaceAll"
39
37
  ], [
40
38
  "update:query",
41
39
  "update:replacement",
42
40
  "update:matchCase"
43
41
  ]),
44
- setup(l, { expose: u, emit: F }) {
45
- let I = l, L = g(l, "query"), R = g(l, "replacement"), z = g(l, "matchCase"), B = F, V = _("barElement"), H = _("findElement");
46
- function U(e) {
47
- I.panel === e || e === "find" && I.panel === "replace" ? B("close") : B("open", e);
42
+ setup(s, { expose: c, emit: E }) {
43
+ let D = s, O = f(s, "query"), k = f(s, "replacement"), A = f(s, "matchCase"), j = E, M = p("barElement"), N = p("findElement");
44
+ function P(e) {
45
+ D.panel === e || e === "find" && D.panel === "replace" ? j("close") : j("open", e);
48
46
  }
49
- return u({
47
+ return c({
50
48
  focusPanel: () => {
51
- I.panel === "find" || I.panel === "replace" ? H.value?.focus() : V.value?.querySelector("[data-authoring-panel] button")?.focus();
49
+ D.panel === "find" || D.panel === "replace" ? N.value?.focus() : M.value?.querySelector("[data-authoring-panel] button")?.focus();
52
50
  },
53
- focusTrigger: (e) => V.value?.querySelector(`[data-authoring-trigger="${e === "replace" ? "find" : e}"]`)?.focus()
54
- }), (u, g) => (f(), a("div", {
51
+ focusTrigger: (e) => M.value?.querySelector(`[data-authoring-trigger="${e === "replace" ? "find" : e}"]`)?.focus()
52
+ }), (c, f) => (u(), r("div", {
55
53
  ref_key: "barElement",
56
- ref: V,
57
- class: d(["gd-contract-template-designer__authoring-bar", { "is-compact": l.compact }])
58
- }, [o("div", D, [
59
- c(h(S), { title: "查找与替换(Ctrl / ⌘ + F)" }, {
60
- default: v(() => [c(h(x), {
61
- type: "text",
62
- "data-authoring-trigger": "find",
63
- "aria-label": "查找与替换",
64
- "aria-expanded": l.panel === "find" || l.panel === "replace",
65
- onClick: g[0] ||= (e) => U("find")
66
- }, {
67
- default: v(() => [c(h(E), { "aria-hidden": "true" }), l.compact ? i("", !0) : (f(), a("span", O, "查找 / 替换"))]),
68
- _: 1
69
- }, 8, ["aria-expanded"])]),
70
- _: 1
71
- }),
72
- c(h(x), {
54
+ ref: M,
55
+ class: l(["gd-contract-template-designer__authoring-bar", { "is-compact": s.compact }])
56
+ }, [i("div", S, [o(d(v), { title: "查找与替换(Ctrl / ⌘ + F)" }, {
57
+ default: m(() => [o(d(_), {
73
58
  type: "text",
74
- "data-authoring-trigger": "snippets",
75
- "aria-label": "条款骨架",
76
- disabled: l.readonly,
77
- "aria-expanded": l.panel === "snippets",
78
- onClick: g[1] ||= (e) => U("snippets")
59
+ "data-authoring-trigger": "find",
60
+ "aria-label": "查找与替换",
61
+ "aria-expanded": s.panel === "find" || s.panel === "replace",
62
+ onClick: f[0] ||= (e) => P("find")
79
63
  }, {
80
- default: v(() => [c(h(w), { "aria-hidden": "true" }), l.compact ? i("", !0) : (f(), a("span", k, "条款骨架"))]),
64
+ default: m(() => [o(d(x), { "aria-hidden": "true" }), s.compact ? n("", !0) : (u(), r("span", C, "查找 / 替换"))]),
81
65
  _: 1
82
- }, 8, ["disabled", "aria-expanded"]),
83
- c(h(S), { title: "编写快捷键(Ctrl / ⌘ + /)" }, {
84
- default: v(() => [c(h(x), {
85
- type: "text",
86
- class: "gd-contract-template-designer__authoring-help-trigger",
87
- "data-authoring-trigger": "help",
88
- "aria-label": "编写快捷键",
89
- "aria-expanded": l.panel === "help",
90
- onClick: g[2] ||= (e) => U("help")
91
- }, {
92
- default: v(() => [c(h(T), { "aria-hidden": "true" }), l.compact ? i("", !0) : (f(), a("span", A, "快捷键"))]),
93
- _: 1
94
- }, 8, ["aria-expanded"])]),
66
+ }, 8, ["aria-expanded"])]),
67
+ _: 1
68
+ }), o(d(v), { title: "编写快捷键(Ctrl / ⌘ + /)" }, {
69
+ default: m(() => [o(d(_), {
70
+ type: "text",
71
+ class: "gd-contract-template-designer__authoring-help-trigger",
72
+ "data-authoring-trigger": "help",
73
+ "aria-label": "编写快捷键",
74
+ "aria-expanded": s.panel === "help",
75
+ onClick: f[1] ||= (e) => P("help")
76
+ }, {
77
+ default: m(() => [o(d(b), { "aria-hidden": "true" }), s.compact ? n("", !0) : (u(), r("span", w, "快捷键"))]),
95
78
  _: 1
96
- })
97
- ]), l.panel === "find" || l.panel === "replace" ? (f(), r(t, {
79
+ }, 8, ["aria-expanded"])]),
80
+ _: 1
81
+ })]), s.panel === "find" || s.panel === "replace" ? (u(), t(e, {
98
82
  key: 0,
99
83
  ref_key: "findElement",
100
- ref: H,
101
- query: L.value,
102
- "onUpdate:query": g[3] ||= (e) => L.value = e,
103
- replacement: R.value,
104
- "onUpdate:replacement": g[4] ||= (e) => R.value = e,
105
- "match-case": z.value,
106
- "onUpdate:matchCase": g[5] ||= (e) => z.value = e,
107
- readonly: l.readonly,
108
- "replace-mode": l.panel === "replace",
109
- total: l.total,
110
- "current-index": l.currentIndex,
111
- "current-page": l.currentPage,
112
- feedback: l.feedback,
113
- onNavigate: g[6] ||= (e) => B("navigate", e),
114
- onReplaceCurrent: g[7] ||= (e) => B("replaceCurrent"),
115
- onReplaceAll: g[8] ||= (e) => B("replaceAll"),
116
- onToggleReplace: g[9] ||= (e) => B("open", l.panel === "replace" ? "find" : "replace"),
117
- onClose: g[10] ||= (e) => B("close")
84
+ ref: N,
85
+ query: O.value,
86
+ "onUpdate:query": f[2] ||= (e) => O.value = e,
87
+ replacement: k.value,
88
+ "onUpdate:replacement": f[3] ||= (e) => k.value = e,
89
+ "match-case": A.value,
90
+ "onUpdate:matchCase": f[4] ||= (e) => A.value = e,
91
+ readonly: s.readonly,
92
+ "replace-mode": s.panel === "replace",
93
+ total: s.total,
94
+ "current-index": s.currentIndex,
95
+ "current-page": s.currentPage,
96
+ feedback: s.feedback,
97
+ onNavigate: f[5] ||= (e) => j("navigate", e),
98
+ onReplaceCurrent: f[6] ||= (e) => j("replaceCurrent"),
99
+ onReplaceAll: f[7] ||= (e) => j("replaceAll"),
100
+ onToggleReplace: f[8] ||= (e) => j("open", s.panel === "replace" ? "find" : "replace"),
101
+ onClose: f[9] ||= (e) => j("close")
118
102
  }, null, 8, [
119
103
  "query",
120
104
  "replacement",
@@ -125,44 +109,21 @@ var D = {
125
109
  "current-index",
126
110
  "current-page",
127
111
  "feedback"
128
- ])) : l.panel === "snippets" ? (f(), a("section", {
112
+ ])) : s.panel === "help" ? (u(), r("section", {
129
113
  key: 1,
130
114
  "data-authoring-panel": "",
131
- class: "gd-contract-template-designer__authoring-panel",
132
- "aria-label": "条款骨架",
133
- onKeydown: g[12] ||= y(b((e) => B("close"), ["stop", "prevent"]), ["esc"])
134
- }, [
135
- o("div", j, [g[15] ||= o("strong", null, "条款骨架(可选)", -1), c(h(x), {
136
- type: "text",
137
- "aria-label": "关闭条款骨架",
138
- onClick: g[11] ||= (e) => B("close")
139
- }, {
140
- default: v(() => [c(h(C), { "aria-hidden": "true" })]),
141
- _: 1
142
- })]),
143
- o("div", M, [(f(!0), a(n, null, p(h(e), (e) => (f(), a("button", {
144
- key: e.key,
145
- type: "button",
146
- disabled: l.readonly,
147
- class: "gd-contract-template-designer__snippet",
148
- onClick: (t) => B("insertSnippet", e.key)
149
- }, [o("strong", null, m(e.label), 1), o("span", null, m(e.description), 1)], 8, N))), 128))]),
150
- g[16] ||= o("p", { class: "gd-contract-template-designer__authoring-note" }, "低频快捷入口:在当前光标 / 选区插入可编辑的标题与填写提示;不是完整合同范本,也不是法律意见。", -1)
151
- ], 32)) : l.panel === "help" ? (f(), a("section", {
152
- key: 2,
153
- "data-authoring-panel": "",
154
- class: "gd-contract-template-designer__authoring-panel",
115
+ class: "gd-contract-template-designer__authoring-panel gd-contract-template-designer__shortcut-panel",
155
116
  "aria-label": "编写快捷键帮助",
156
- onKeydown: g[14] ||= y(b((e) => B("close"), ["stop", "prevent"]), ["esc"])
157
- }, [o("div", P, [g[17] ||= o("strong", null, "快捷键 · 仅在当前设计器内生效", -1), c(h(x), {
117
+ onKeydown: f[11] ||= h(g((e) => j("close"), ["stop", "prevent"]), ["esc"])
118
+ }, [i("div", T, [f[12] ||= i("div", { class: "gd-contract-template-designer__shortcut-heading" }, [i("strong", null, "快捷键"), i("span", null, "仅在当前设计器内生效")], -1), o(d(_), {
158
119
  type: "text",
159
120
  "aria-label": "关闭快捷键帮助",
160
- onClick: g[13] ||= (e) => B("close")
121
+ onClick: f[10] ||= (e) => j("close")
161
122
  }, {
162
- default: v(() => [c(h(C), { "aria-hidden": "true" })]),
123
+ default: m(() => [o(d(y), { "aria-hidden": "true" })]),
163
124
  _: 1
164
- })]), g[18] ||= s("<dl class=\"gd-contract-template-designer__shortcut-list\"><div><dt>查找正文</dt><dd><kbd>Ctrl / ⌘</kbd> + <kbd>F</kbd></dd></div><div><dt>替换正文</dt><dd><kbd>Ctrl + H</kbd> / <kbd>⌘ + Shift + H</kbd></dd></div><div><dt>下一处 / 上一处</dt><dd><kbd>Enter</kbd> / <kbd>Shift + Enter</kbd>(查找框内)</dd></div><div><dt>查找结果导航</dt><dd><kbd>Ctrl / ⌘ + G</kbd>,加 <kbd>Shift</kbd> 反向</dd></div><div><dt>撤销 / 重做(当前页)</dt><dd><kbd>Ctrl / ⌘ + Z</kbd> / <kbd>Ctrl / ⌘ + Shift + Z</kbd></dd></div><div><dt>正文右键菜单</dt><dd><kbd>Shift + F10</kbd></dd></div><div><dt>收起工具 / 退出沉浸</dt><dd><kbd>Esc</kbd>(逐层关闭)</dd></div><div><dt>此帮助</dt><dd><kbd>Ctrl / ⌘ + /</kbd></dd></div></dl><p class=\"gd-contract-template-designer__authoring-note\">加粗 / 斜体 / 下划线:Ctrl / ⌘ + B / I / U。属性输入框保留原生输入行为;只读模式不执行写入。</p>", 2)], 32)) : i("", !0)], 2));
125
+ })]), f[13] ||= a("<dl class=\"gd-contract-template-designer__shortcut-list\"><div><dt>查找正文</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>F</kbd></span></dd></div><div><dt>替换正文</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl</kbd><span>+</span><kbd>H</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">或</span><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>⌘</kbd><span>+</span><kbd>Shift</kbd><span>+</span><kbd>H</kbd></span></dd></div><div><dt>下一处 / 上一处</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Enter</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">/</span><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>Enter</kbd></span><small>查找框内</small></dd></div><div><dt>查找结果导航</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>G</kbd></span><span class=\"gd-contract-template-designer__shortcut-separator\">反向加</span><kbd>Shift</kbd></dd></div><div><dt>撤销 / 重做(当前页)</dt><dd><kbd>Ctrl / ⌘ + Z</kbd><span class=\"gd-contract-template-designer__shortcut-separator\">/</span><kbd>Ctrl / ⌘ + Shift + Z</kbd></dd></div><div><dt>正文右键菜单</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Shift</kbd><span>+</span><kbd>F10</kbd></span></dd></div><div><dt>收起 / 退出沉浸</dt><dd><kbd>Esc</kbd><small>逐层关闭</small></dd></div><div><dt>打开此帮助</dt><dd><span class=\"gd-contract-template-designer__shortcut-combo\"><kbd>Ctrl / ⌘</kbd><span>+</span><kbd>/</kbd></span></dd></div></dl><div class=\"gd-contract-template-designer__shortcut-note\"><span><strong>文本格式</strong>:<kbd>Ctrl</kbd> / <kbd>⌘</kbd> + <kbd>B</kbd> / <kbd>I</kbd> / <kbd>U</kbd></span><span>属性输入框保留原生输入行为;只读模式不执行写入。</span></div>", 2)], 32)) : n("", !0)], 2));
165
126
  }
166
127
  });
167
128
  //#endregion
168
- export { F as default };
129
+ export { E as default };