@gct-paas/render-web 0.1.6-dev.19 → 0.1.6-dev.20

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 (38) hide show
  1. package/dist/index.min.css +1 -1
  2. package/dist/loader.esm.min.js +3 -2
  3. package/es/components/collapse-detail/components/collapse-list.vue_vue_type_script_setup_true_lang.mjs +2 -2
  4. package/es/components/collapse-detail/index.vue.d.ts +9 -1
  5. package/es/components/collapse-detail/index.vue.mjs +2 -2
  6. package/es/components/collapse-detail/index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs +4 -3
  7. package/es/components/collapse-detail/{index.vue_vue_type_style_index_0_scoped_53e7e2bf_lang.css → index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css} +19 -19
  8. package/es/components/field-search-cascader/field-cascader.vue.d.ts +17 -0
  9. package/es/components/field-search-cascader/field-cascader.vue.mjs +8 -0
  10. package/es/components/field-search-cascader/field-cascader.vue_vue_type_script_setup_true_lang.mjs +297 -0
  11. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_0_scoped_cb5e4d67_lang.css +52 -0
  12. package/es/components/field-search-cascader/field-cascader.vue_vue_type_style_index_1_lang.css +3 -0
  13. package/es/components/field-search-cascader/index.d.ts +2 -0
  14. package/es/components/field-search-cascader/index.mjs +1 -0
  15. package/es/components/index.d.ts +2 -0
  16. package/es/components/index.mjs +4 -0
  17. package/es/components/rich-editor/index.d.ts +2 -0
  18. package/es/components/rich-editor/index.mjs +1 -0
  19. package/es/components/rich-editor/rich-editor.vue.d.ts +22 -0
  20. package/es/components/rich-editor/rich-editor.vue.mjs +5 -0
  21. package/es/components/rich-editor/rich-editor.vue_vue_type_script_setup_true_lang.mjs +150 -0
  22. package/es/components/rich-editor/style.css +747 -0
  23. package/es/constants/xlsx-parser.d.ts +15 -0
  24. package/es/constants/xlsx-parser.mjs +58 -0
  25. package/es/enums/xlsx-parser.d.ts +293 -0
  26. package/es/enums/xlsx-parser.mjs +36 -0
  27. package/es/index.d.ts +1 -0
  28. package/es/index.mjs +5 -1
  29. package/es/interface/xlsx-parser/base.d.ts +151 -0
  30. package/es/interface/xlsx-parser/index.d.ts +246 -0
  31. package/es/types/shims-modules.d.ts +11 -0
  32. package/es/utils/cell-border.d.ts +73 -0
  33. package/es/utils/cell-border.mjs +203 -0
  34. package/es/utils/index.d.ts +1 -0
  35. package/es/utils/index.mjs +1 -0
  36. package/es/utils/xlsx-parser.d.ts +141 -0
  37. package/es/utils/xlsx-parser.mjs +262 -0
  38. package/package.json +16 -11
@@ -35,9 +35,9 @@ var collapse_list_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
35
35
  class: normalizeClass(__props.isHead ? "item" : "desc-area"),
36
36
  column: __props.column || 3
37
37
  }, {
38
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.descData, (item, index) => {
38
+ default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.descData, (item, _index) => {
39
39
  return openBlock(), createBlock(_component_a_descriptions_item, {
40
- key: index,
40
+ key: _index,
41
41
  label: item.label,
42
42
  span: getSpan(item.span),
43
43
  "content-style": ellipsisStyle(item)
@@ -6,7 +6,15 @@ type __VLS_Props = {
6
6
  };
7
7
  declare function __VLS_template(): {
8
8
  attrs: Partial<{}>;
9
- slots: any;
9
+ slots: Partial<Record<NonNullable<string | symbol>, (_: {
10
+ item: CollapseItem;
11
+ slotData: IObject | undefined;
12
+ }) => any>> & Partial<Record<NonNullable<string | symbol>, (_: {
13
+ item: CollapseItem;
14
+ slotData: IObject | undefined;
15
+ }) => any>> & {
16
+ default?(_: {}): any;
17
+ };
10
18
  refs: {};
11
19
  rootEl: HTMLDivElement;
12
20
  };
@@ -1,7 +1,7 @@
1
1
  import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
2
  import index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default from "./index.vue_vue_type_script_setup_true_name_collapse-detail_lang.mjs";
3
- import './index.vue_vue_type_style_index_0_scoped_53e7e2bf_lang.css';/* empty css */
3
+ import './index.vue_vue_type_style_index_0_scoped_b4b9903c_lang.css';/* empty css */
4
4
  //#region src/components/collapse-detail/index.vue
5
- var collapse_detail_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default, [["__scopeId", "data-v-53e7e2bf"]]);
5
+ var collapse_detail_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default, [["__scopeId", "data-v-b4b9903c"]]);
6
6
  //#endregion
7
7
  export { collapse_detail_default as default };
@@ -1,5 +1,5 @@
1
1
  import collapse_list_default from "./components/collapse-list.vue.mjs";
2
- import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, onBeforeMount, openBlock, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, withCtx } from "vue";
2
+ import { computed, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeClass, normalizeProps, onBeforeMount, openBlock, ref, renderList, renderSlot, resolveComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
3
3
  import { t } from "@gct-paas/core";
4
4
  //#region src/components/collapse-detail/index.vue?vue&type=script&setup=true&name=collapse-detail&lang.ts
5
5
  var _hoisted_1 = { class: "collapse-detail-wrap" };
@@ -18,6 +18,7 @@ var index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default = /*
18
18
  },
19
19
  emits: ["collapse-change"],
20
20
  setup(__props, { expose: __expose, emit: __emit }) {
21
+ const slots = useSlots();
21
22
  const props = __props;
22
23
  const emit = __emit;
23
24
  const isExpand = ref(true);
@@ -63,7 +64,7 @@ var index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default = /*
63
64
  "desc-data": headerInfo.value,
64
65
  column: col.value,
65
66
  "is-head": true
66
- }, createSlots({ _: 2 }, [renderList(_ctx.$slots, (_, slotName) => {
67
+ }, createSlots({ _: 2 }, [renderList(unref(slots), (_, slotName) => {
67
68
  return {
68
69
  name: slotName,
69
70
  fn: withCtx((slotData) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotData)), void 0, true)])
@@ -72,7 +73,7 @@ var index_vue_vue_type_script_setup_true_name_collapse_detail_lang_default = /*
72
73
  default: withCtx(() => [createVNode(collapse_list_default, {
73
74
  "desc-data": mainInfo.value,
74
75
  column: col.value
75
- }, createSlots({ _: 2 }, [renderList(_ctx.$slots, (_, slotName) => {
76
+ }, createSlots({ _: 2 }, [renderList(unref(slots), (_, slotName) => {
76
77
  return {
77
78
  name: slotName,
78
79
  fn: withCtx((slotData) => [renderSlot(_ctx.$slots, slotName, normalizeProps(guardReactiveProps(slotData)), void 0, true)])
@@ -1,25 +1,25 @@
1
- .collapse-detail-wrap[data-v-53e7e2bf] .btn-text.ant-btn {
1
+ .collapse-detail-wrap[data-v-b4b9903c] .btn-text.ant-btn {
2
2
  padding: 4px 12px;
3
3
  }
4
- .collapse-detail-wrap[data-v-53e7e2bf] .btn-text.ant-btn > .anticon + span {
4
+ .collapse-detail-wrap[data-v-b4b9903c] .btn-text.ant-btn > .anticon + span {
5
5
  margin-left: 8px;
6
6
  }
7
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-collapse > .ant-collapse-item > .ant-collapse-header {
7
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-collapse > .ant-collapse-item > .ant-collapse-header {
8
8
  flex-wrap: wrap;
9
9
  padding: 0 !important;
10
10
  background-color: #fff;
11
11
  }
12
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-collapse > .ant-collapse-item > .ant-collapse-header > div:first-child {
12
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-collapse > .ant-collapse-item > .ant-collapse-header > div:first-child {
13
13
  display: flex;
14
14
  align-items: center;
15
15
  justify-content: center;
16
16
  height: 40px;
17
17
  padding-top: 16px;
18
18
  }
19
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-collapse-item {
19
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-collapse-item {
20
20
  border-bottom: none;
21
21
  }
22
- .collapse-detail-wrap .header[data-v-53e7e2bf] {
22
+ .collapse-detail-wrap .header[data-v-b4b9903c] {
23
23
  display: flex;
24
24
  flex: 1;
25
25
  align-items: center;
@@ -27,10 +27,10 @@
27
27
  padding-top: 16px;
28
28
  padding-bottom: 12px;
29
29
  }
30
- .collapse-detail-wrap .header .header-title[data-v-53e7e2bf] {
30
+ .collapse-detail-wrap .header .header-title[data-v-b4b9903c] {
31
31
  font-size: 16px;
32
32
  }
33
- .collapse-detail-wrap .header .action-wrap .ant-btn[data-v-53e7e2bf] {
33
+ .collapse-detail-wrap .header .action-wrap .ant-btn[data-v-b4b9903c] {
34
34
  position: absolute;
35
35
  right: 0;
36
36
  top: 12px;
@@ -39,45 +39,45 @@
39
39
  line-height: 18px;
40
40
  padding: 4px 12px;
41
41
  }
42
- .collapse-detail-wrap .header .action-wrap .ant-btn .iconfont[data-v-53e7e2bf] {
42
+ .collapse-detail-wrap .header .action-wrap .ant-btn .iconfont[data-v-b4b9903c] {
43
43
  font-size: 14px;
44
44
  }
45
- .collapse-detail-wrap .description[data-v-53e7e2bf] {
45
+ .collapse-detail-wrap .description[data-v-b4b9903c] {
46
46
  display: flex;
47
47
  align-items: center;
48
48
  padding: 20px 0;
49
49
  border-radius: 4px;
50
50
  background-color: #f7f8fa;
51
51
  }
52
- .collapse-detail-wrap .description.desc-expand[data-v-53e7e2bf] {
52
+ .collapse-detail-wrap .description.desc-expand[data-v-b4b9903c] {
53
53
  border-bottom-right-radius: 0;
54
54
  border-bottom-left-radius: 0;
55
55
  }
56
- .collapse-detail-wrap .description .item[data-v-53e7e2bf] {
56
+ .collapse-detail-wrap .description .item[data-v-b4b9903c] {
57
57
  padding: 0 20px;
58
58
  }
59
- .collapse-detail-wrap .description[data-v-53e7e2bf] .ant-descriptions-row td {
59
+ .collapse-detail-wrap .description[data-v-b4b9903c] .ant-descriptions-row td {
60
60
  padding-bottom: 0;
61
61
  }
62
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-collapse.ant-collapse-borderless {
62
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-collapse.ant-collapse-borderless {
63
63
  background: transparent;
64
64
  }
65
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-collapse.ant-collapse-borderless .ant-collapse-item .ant-collapse-content {
65
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-collapse.ant-collapse-borderless .ant-collapse-item .ant-collapse-content {
66
66
  border-radius: 0 0 4px 4px;
67
67
  background-color: #f7f8fa;
68
68
  }
69
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-collapse.ant-collapse-borderless .ant-collapse-item .ant-collapse-content .ant-collapse-content-box {
69
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-collapse.ant-collapse-borderless .ant-collapse-item .ant-collapse-content .ant-collapse-content-box {
70
70
  padding: 0 20px !important;
71
71
  }
72
- .collapse-detail-wrap[data-v-53e7e2bf] .ant-descriptions-item-container .ant-descriptions-item-label {
72
+ .collapse-detail-wrap[data-v-b4b9903c] .ant-descriptions-item-container .ant-descriptions-item-label {
73
73
  color: #797a7d;
74
74
  }
75
- .collapse-detail-wrap .desc-area[data-v-53e7e2bf] {
75
+ .collapse-detail-wrap .desc-area[data-v-b4b9903c] {
76
76
  color: #333;
77
77
  font-family: PingFangSC-Regular, 'PingFang SC';
78
78
  font-size: 14px;
79
79
  font-weight: 400;
80
80
  }
81
- .collapse-detail-wrap .desc-area[data-v-53e7e2bf] .ant-descriptions-row td {
81
+ .collapse-detail-wrap .desc-area[data-v-b4b9903c] .ant-descriptions-row td {
82
82
  padding-bottom: 20px;
83
83
  }
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ value: string;
3
+ modelKey?: string;
4
+ isField?: boolean;
5
+ rootRef?: IObject;
6
+ noShowName?: boolean;
7
+ btnTitle?: string;
8
+ filterFunc?: (item: IObject) => boolean;
9
+ };
10
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {
11
+ fieldCascaderName: import('vue').Ref<string | undefined, string | undefined>;
12
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ "update:value": (...args: any[]) => void;
14
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
15
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import _plugin_vue_export_helper_default from "../../_virtual/_plugin-vue_export-helper.mjs";
2
+ import field_cascader_vue_vue_type_script_setup_true_lang_default from "./field-cascader.vue_vue_type_script_setup_true_lang.mjs";
3
+ import './field-cascader.vue_vue_type_style_index_1_lang.css';import './field-cascader.vue_vue_type_style_index_0_scoped_cb5e4d67_lang.css';/* empty css */
4
+ /* empty css */
5
+ //#region src/components/field-search-cascader/field-cascader.vue
6
+ var field_cascader_default = /* @__PURE__ */ _plugin_vue_export_helper_default(field_cascader_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-cb5e4d67"]]);
7
+ //#endregion
8
+ export { field_cascader_default as default };
@@ -0,0 +1,297 @@
1
+ import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, vShow, watch, withCtx, withDirectives } from "vue";
2
+ import { FIELD_TYPE, t } from "@gct-paas/core";
3
+ import { message } from "ant-design-vue";
4
+ import { cloneDeep } from "lodash-es";
5
+ import { watchDebounced } from "@vueuse/core";
6
+ //#region src/components/field-search-cascader/field-cascader.vue?vue&type=script&setup=true&lang.ts
7
+ var _hoisted_1 = { class: "field-search-cascader-wrap" };
8
+ var _hoisted_2 = { class: "field-cascader-pop-content flex" };
9
+ var _hoisted_3 = { class: "field-cascader-list-box" };
10
+ var _hoisted_4 = ["onClick"];
11
+ var _hoisted_5 = ["title"];
12
+ var _hoisted_6 = { class: "search-name" };
13
+ var _hoisted_7 = ["title"];
14
+ var _hoisted_8 = { class: "field-name-show" };
15
+ var field_cascader_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
16
+ __name: "field-cascader",
17
+ props: {
18
+ value: {},
19
+ modelKey: {},
20
+ isField: { type: Boolean },
21
+ rootRef: {},
22
+ noShowName: { type: Boolean },
23
+ btnTitle: {},
24
+ filterFunc: { type: Function }
25
+ },
26
+ emits: ["update:value"],
27
+ setup(__props, { expose: __expose, emit: __emit }) {
28
+ const props = __props;
29
+ const emit = __emit;
30
+ const optionsMap = /* @__PURE__ */ new Map();
31
+ const visible = ref(false);
32
+ const fieldCascaderName = ref();
33
+ const fullName = ref();
34
+ const fieldType = ref();
35
+ const showTypes = [
36
+ FIELD_TYPE.REF,
37
+ FIELD_TYPE.REF_MULTI,
38
+ FIELD_TYPE.RDO_REF,
39
+ FIELD_TYPE.MASTERSLAVE
40
+ ];
41
+ const originData = ref({
42
+ left: {
43
+ title: "",
44
+ search: "",
45
+ fieldKey: "",
46
+ options: []
47
+ },
48
+ center: {
49
+ title: "",
50
+ search: "",
51
+ fieldKey: "",
52
+ options: []
53
+ },
54
+ right: {
55
+ title: "",
56
+ search: "",
57
+ fieldKey: "",
58
+ options: []
59
+ }
60
+ });
61
+ const NO_SHOW_FIELDTYPES = [FIELD_TYPE.IMAGE, FIELD_TYPE.ATTACHMENT];
62
+ watchDebounced(() => props.modelKey, async () => {
63
+ if (props.modelKey) {
64
+ originData.value["left"].options = await getFieldlist(props.modelKey);
65
+ if (props.value) dataToShow();
66
+ }
67
+ }, {
68
+ immediate: true,
69
+ debounce: 300
70
+ });
71
+ watch(() => visible.value, () => {
72
+ if (!visible.value && props.noShowName) Object.keys(originData.value).forEach((i) => {
73
+ originData.value[i].fieldKey = "";
74
+ originData.value[i].title = "";
75
+ originData.value[i].search = "";
76
+ if (i !== "left") originData.value[i].options = [];
77
+ });
78
+ });
79
+ const dataToShow = async () => {
80
+ const fieldKeys = props.value.split(".");
81
+ let leftItem;
82
+ let centerItem;
83
+ let rightItem;
84
+ originData.value.left.fieldKey = fieldKeys[0];
85
+ leftItem = originData.value["left"].options.find((i) => i.key === fieldKeys[0]);
86
+ originData.value.left.title = leftItem?.title;
87
+ fieldCascaderName.value = leftItem?.title;
88
+ fieldType.value = leftItem?.fieldType;
89
+ if (fieldKeys.length > 1) {
90
+ originData.value.center.fieldKey = fieldKeys[1] || "";
91
+ if (leftItem?.bindInfo) {
92
+ originData.value["center"].options = await getFieldlist(leftItem?.bindInfo);
93
+ centerItem = originData.value["center"].options.find((i) => i.key === fieldKeys[1]);
94
+ originData.value.center.title = centerItem?.title;
95
+ fieldCascaderName.value = centerItem?.title;
96
+ fieldType.value = centerItem?.fieldType;
97
+ }
98
+ }
99
+ if (fieldKeys.length > 2) {
100
+ originData.value.right.fieldKey = fieldKeys[2] || "";
101
+ if (centerItem?.bindInfo) {
102
+ originData.value["right"].options = await getFieldlist(centerItem?.bindInfo);
103
+ rightItem = originData.value["right"].options.find((i) => i.key === fieldKeys[2]);
104
+ originData.value.right.title = rightItem?.title;
105
+ fieldCascaderName.value = rightItem?.title;
106
+ fieldType.value = rightItem?.fieldType;
107
+ }
108
+ }
109
+ };
110
+ const handleClick = (_e) => {
111
+ if (!props.modelKey) {
112
+ message.error(t("sys.checkBarcodeFieldTip"));
113
+ return;
114
+ }
115
+ visible.value = !visible.value;
116
+ };
117
+ const onChange = (e) => {
118
+ if (!e.target?.value) {
119
+ fullName.value = "";
120
+ fieldType.value = "";
121
+ fieldCascaderName.value = "";
122
+ fieldCascaderValue.value = "";
123
+ emit("update:value", "");
124
+ for (let key in originData.value) originData.value[key].fieldKey = "";
125
+ }
126
+ };
127
+ async function getFieldlist(modelKey) {
128
+ return (await _api.apaas.fieldMeta.getList({ modelKey }) || []).filter((v) => !NO_SHOW_FIELDTYPES.includes(v.type)).filter((v) => !props.filterFunc || props.filterFunc(v)).map((i) => {
129
+ return {
130
+ id: i.id,
131
+ title: i.name,
132
+ key: i.key,
133
+ bindInfo: i.bindInfo,
134
+ fieldType: i.type
135
+ };
136
+ });
137
+ }
138
+ const fieldCascaderValue = computed({
139
+ get() {
140
+ return props.value;
141
+ },
142
+ set(value) {
143
+ emit("update:value", value, {
144
+ type: fieldType.value,
145
+ name: fullName.value,
146
+ key: value
147
+ });
148
+ }
149
+ });
150
+ const selectOptions = computed(() => {
151
+ return (direction) => {
152
+ const orgItem = originData.value?.[direction];
153
+ return orgItem.search?.trim() ? orgItem.options?.filter((e) => e.title.indexOf(orgItem.search?.trim()) > -1) : cloneDeep(orgItem.options);
154
+ };
155
+ });
156
+ watch(() => originData.value.left?.search, async (val) => {
157
+ if (!(val?.trim() ? originData.value.left.options.filter((e) => e.title.indexOf(val.trim()) > -1) : cloneDeep(originData.value.left.options)).map((i) => i.key).includes(originData.value.left.fieldKey)) Object.keys(originData.value).forEach((i) => {
158
+ originData.value[i].fieldKey = "";
159
+ originData.value[i].title = "";
160
+ if (i !== "left") originData.value[i].options = [];
161
+ });
162
+ }, { deep: true });
163
+ watch(() => originData.value.center?.search, async (val) => {
164
+ if (!(val?.trim() ? originData.value.center.options.filter((e) => e.title.indexOf(val.trim()) > -1) : cloneDeep(originData.value.center.options)).map((i) => i.key).includes(originData.value.center.fieldKey)) Object.keys(originData.value).forEach((i) => {
165
+ if (i !== "left") {
166
+ originData.value[i].fieldKey = "";
167
+ originData.value[i].title = "";
168
+ }
169
+ if (i === "right") originData.value[i].options = [];
170
+ });
171
+ }, { deep: true });
172
+ const setSelectedKey = async (value, direction = "left") => {
173
+ originData.value[direction].fieldKey = value.key;
174
+ originData.value[direction].title = value.title;
175
+ fieldCascaderName.value = value.title;
176
+ fieldType.value = value.fieldType;
177
+ if (direction == "left") {
178
+ if (showTypes.includes(value.type) || showTypes.includes(value.fieldType)) {
179
+ originData.value["center"].options = await getOptions(value) || [];
180
+ originData.value["center"].search = "";
181
+ originData.value["right"].options = [];
182
+ if (originData.value["center"].options?.length) return;
183
+ }
184
+ fullName.value = value.title;
185
+ fieldCascaderValue.value = value.key;
186
+ }
187
+ if (direction == "center") {
188
+ const list = await getOptions(value) || [];
189
+ originData.value["right"].options = value.key !== "parent_id_" ? list : [];
190
+ originData.value["right"].search = "";
191
+ if (originData.value["right"].options?.length) return;
192
+ fullName.value = `${originData.value["left"].title}.${value.title}`;
193
+ fieldCascaderValue.value = `${originData.value["left"].fieldKey}.${value.key}`;
194
+ }
195
+ if (direction == "right") {
196
+ if (showTypes.includes(value.fieldType)) return;
197
+ fullName.value = `${originData.value["left"].title}.${originData.value["center"].title}.${value.title}`;
198
+ fieldCascaderValue.value = `${originData.value["left"].fieldKey}.${originData.value["center"].fieldKey}.${value.key}`;
199
+ }
200
+ visible.value = false;
201
+ };
202
+ const getOptions = async (value) => {
203
+ let list = [];
204
+ if (value.bindInfo && ![FIELD_TYPE.ENUM, FIELD_TYPE.ENUM_MULTI].includes(value.fieldType)) {
205
+ const options = optionsMap.get(value.id);
206
+ if (options?.length) list = cloneDeep(options);
207
+ else {
208
+ list = await getFieldlist(value.bindInfo);
209
+ optionsMap.set(value.id, cloneDeep(list));
210
+ }
211
+ }
212
+ return list;
213
+ };
214
+ __expose({ fieldCascaderName });
215
+ return (_ctx, _cache) => {
216
+ const _component_a_input = resolveComponent("a-input");
217
+ const _component_a_form_item_rest = resolveComponent("a-form-item-rest");
218
+ const _component_right_outlined = resolveComponent("right-outlined");
219
+ const _component_a_button = resolveComponent("a-button");
220
+ const _component_a_popover = resolveComponent("a-popover");
221
+ return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(_component_a_popover, {
222
+ visible: visible.value,
223
+ "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
224
+ trigger: "click",
225
+ "overlay-style": { minWidth: "150px" },
226
+ "overlay-class-name": "field-search-cascader-pop"
227
+ }, {
228
+ content: withCtx(() => [withDirectives(createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(Object.keys(originData.value), (orgKey, _index) => {
229
+ return withDirectives((openBlock(), createElementBlock("div", {
230
+ key: orgKey + _index,
231
+ class: "field-cascader-item-box px-12px py-8px serial-num-no-error"
232
+ }, [createVNode(_component_a_form_item_rest, null, {
233
+ default: withCtx(() => [createVNode(_component_a_input, {
234
+ value: originData.value[orgKey].search,
235
+ "onUpdate:value": ($event) => originData.value[orgKey].search = $event,
236
+ class: "tree-search",
237
+ placeholder: _ctx.$t("sys.pageDesigner.searchField"),
238
+ "allow-clear": ""
239
+ }, {
240
+ suffix: withCtx(() => [..._cache[2] || (_cache[2] = [createElementVNode("i", { class: "iconfont icon-sousuo1" }, null, -1)])]),
241
+ _: 1
242
+ }, 8, [
243
+ "value",
244
+ "onUpdate:value",
245
+ "placeholder"
246
+ ])]),
247
+ _: 2
248
+ }, 1024), createElementVNode("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(selectOptions.value(orgKey), (item) => {
249
+ return openBlock(), createElementBlock("div", {
250
+ key: item.key,
251
+ class: normalizeClass(["field-cascader-item", { "field-cascader-item-selected": item.key == originData.value[orgKey].fieldKey }]),
252
+ onClick: ($event) => setSelectedKey(item, orgKey)
253
+ }, [item["title"].indexOf(originData.value[orgKey].search) > -1 ? (openBlock(), createElementBlock("span", {
254
+ key: 0,
255
+ title: item["title"]
256
+ }, [
257
+ createElementVNode("span", null, toDisplayString(item["title"].substr(0, item["title"].indexOf(originData.value[orgKey].search))), 1),
258
+ createElementVNode("span", _hoisted_6, toDisplayString(originData.value[orgKey].search), 1),
259
+ createElementVNode("span", null, toDisplayString(item["title"].substr(item["title"].indexOf(originData.value[orgKey].search) + originData.value[orgKey].search?.length)), 1)
260
+ ], 8, _hoisted_5)) : (openBlock(), createElementBlock("span", {
261
+ key: 1,
262
+ title: item["title"]
263
+ }, toDisplayString(item["title"]), 9, _hoisted_7)), item.bindInfo && showTypes.includes(item.fieldType) && orgKey !== "right" && item.key !== "parent_id_" ? (openBlock(), createBlock(_component_right_outlined, {
264
+ key: 2,
265
+ class: "right-icon"
266
+ })) : createCommentVNode("", true)], 10, _hoisted_4);
267
+ }), 128))])], 512)), [[vShow, originData.value[orgKey].options.length]]);
268
+ }), 128))], 512), [[vShow, visible.value]])]),
269
+ default: withCtx(() => [createElementVNode("div", _hoisted_8, [!__props.noShowName ? (openBlock(), createBlock(_component_a_form_item_rest, { key: 0 }, {
270
+ default: withCtx(() => [createVNode(_component_a_input, {
271
+ value: fieldCascaderName.value,
272
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => fieldCascaderName.value = $event),
273
+ class: normalizeClass(["field-search-cascader-input", fieldCascaderName.value ? "clear-icon" : ""]),
274
+ readonly: "",
275
+ placeholder: _ctx.$t("sys.pageDesigner.dataLinkage.rootSelectPlaceholder2"),
276
+ onClick: handleClick,
277
+ onChange
278
+ }, null, 8, [
279
+ "value",
280
+ "class",
281
+ "placeholder"
282
+ ])]),
283
+ _: 1
284
+ })) : (openBlock(), createBlock(_component_a_button, {
285
+ key: 1,
286
+ type: "link"
287
+ }, {
288
+ default: withCtx(() => [createTextVNode(toDisplayString(__props.btnTitle || unref(t)("sys.message.metaFiled")), 1)]),
289
+ _: 1
290
+ }))])]),
291
+ _: 1
292
+ }, 8, ["visible"])]);
293
+ };
294
+ }
295
+ });
296
+ //#endregion
297
+ export { field_cascader_vue_vue_type_script_setup_true_lang_default as default };
@@ -0,0 +1,52 @@
1
+ .field-search-cascader-wrap[data-v-cb5e4d67] {
2
+ position: relative;
3
+ }
4
+ .field-search-cascader-wrap[data-v-cb5e4d67] .field-search-cascader-input:hover.clear-icon .anticon.ant-input-clear-icon-hidden {
5
+ visibility: visible !important;
6
+ }
7
+ .field-cascader-pop-content[data-v-cb5e4d67] {
8
+ margin-top: 4px;
9
+ z-index: 1011;
10
+ background: #fff;
11
+ box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
12
+ }
13
+ .field-cascader-pop-content .field-cascader-item-box[data-v-cb5e4d67] {
14
+ border-right: 1px solid #e0e3ea;
15
+ width: 150px;
16
+ }
17
+ .field-cascader-pop-content .field-cascader-item-box[data-v-cb5e4d67]:last-child {
18
+ border-right: 0;
19
+ }
20
+ .field-cascader-pop-content .field-cascader-list-box[data-v-cb5e4d67] {
21
+ margin-top: 4px;
22
+ height: 100%;
23
+ max-height: 200px;
24
+ overflow-y: auto;
25
+ }
26
+ .field-cascader-pop-content .field-cascader-list-box .search-name[data-v-cb5e4d67] {
27
+ color: var(--ant-primary-color) !important;
28
+ }
29
+ .field-cascader-pop-content .field-cascader-item[data-v-cb5e4d67] {
30
+ cursor: pointer;
31
+ line-height: 24px;
32
+ margin-bottom: 4px;
33
+ padding: 0 6px;
34
+ border-radius: 4px 4px 4px 4px;
35
+ position: relative;
36
+ padding-right: 12px;
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
39
+ white-space: nowrap;
40
+ }
41
+ .field-cascader-pop-content .field-cascader-item .right-icon[data-v-cb5e4d67] {
42
+ position: absolute;
43
+ right: 0;
44
+ top: 6px;
45
+ font-size: 12px;
46
+ }
47
+ .field-cascader-pop-content .field-cascader-item[data-v-cb5e4d67]:hover {
48
+ background: #f5f5f5;
49
+ }
50
+ .field-cascader-pop-content .field-cascader-item-selected[data-v-cb5e4d67] {
51
+ background: #e6eeff !important;
52
+ }
@@ -0,0 +1,3 @@
1
+ .field-search-cascader-pop .ant-popover-inner-content {
2
+ padding: 0;
3
+ }
@@ -0,0 +1,2 @@
1
+ import { default as fieldCascader } from './field-cascader.vue';
2
+ export { fieldCascader as FieldSearchCascader };
@@ -0,0 +1 @@
1
+ import "./field-cascader.vue.mjs";
@@ -3,5 +3,7 @@ import { default as BasicPageRender } from './layouts/basic-page-render/basic-pa
3
3
  export * from './form-component/index';
4
4
  export * from './multi-field';
5
5
  export * from './collapse-detail';
6
+ export * from './field-search-cascader';
7
+ export * from './rich-editor';
6
8
  export { CardViewRender } from './card-view-render/card-view-render';
7
9
  export { BasicPage, BasicPageRender };
@@ -14,3 +14,7 @@ import "./multi-field/multi-field-display.vue.mjs";
14
14
  import "./multi-field/index.mjs";
15
15
  import "./collapse-detail/index.vue.mjs";
16
16
  import "./collapse-detail/index.mjs";
17
+ import "./field-search-cascader/field-cascader.vue.mjs";
18
+ import "./field-search-cascader/index.mjs";
19
+ import "./rich-editor/rich-editor.vue.mjs";
20
+ import "./rich-editor/index.mjs";
@@ -0,0 +1,2 @@
1
+ import { default as RichEditor } from './rich-editor.vue';
2
+ export { RichEditor };
@@ -0,0 +1 @@
1
+ import "./rich-editor.vue.mjs";
@@ -0,0 +1,22 @@
1
+ interface Props {
2
+ content: string;
3
+ }
4
+ declare const _default: import('vue').DefineComponent<Props, {
5
+ getText: () => any;
6
+ getContent: () => any;
7
+ setHtml: (node: string) => any;
8
+ dangerouslyInsertHtml: (node: string) => any;
9
+ restoreSelection: () => any;
10
+ isFocused: () => any;
11
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ blur: (...args: any[]) => void;
13
+ change: (...args: any[]) => void;
14
+ created: (...args: any[]) => void;
15
+ focus: (...args: any[]) => void;
16
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
17
+ onBlur?: ((...args: any[]) => any) | undefined;
18
+ onChange?: ((...args: any[]) => any) | undefined;
19
+ onCreated?: ((...args: any[]) => any) | undefined;
20
+ onFocus?: ((...args: any[]) => any) | undefined;
21
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import rich_editor_vue_vue_type_script_setup_true_lang_default from "./rich-editor.vue_vue_type_script_setup_true_lang.mjs";
2
+ //#region src/components/rich-editor/rich-editor.vue
3
+ var rich_editor_default = rich_editor_vue_vue_type_script_setup_true_lang_default;
4
+ //#endregion
5
+ export { rich_editor_default as default };