@ibiz-template/vue3-components 0.7.24-alpha.1 → 0.7.24

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 (90) hide show
  1. package/dist/{index-d_MgYoar.js → index--XeT2CTZ.js} +1 -1
  2. package/dist/index-XTX4vyZZ.js +4 -0
  3. package/dist/{index-3r8aPzsK.js → index-_h-elF6t.js} +1 -1
  4. package/dist/index.min.css +1 -1
  5. package/dist/index.system.min.js +1 -1
  6. package/dist/{xlsx-util-B5sYgU54.js → xlsx-util-aO-rYvlt.js} +1 -1
  7. package/es/common/grid-setting/grid-setting.d.ts +1 -0
  8. package/es/control/data-view/data-view.css +1 -1
  9. package/es/control/data-view/data-view.d.ts +1 -0
  10. package/es/control/data-view/data-view.mjs +35 -5
  11. package/es/control/data-view/index.d.ts +1 -0
  12. package/es/control/drtab/drtab-control.util.d.ts +17 -0
  13. package/es/control/drtab/drtab-control.util.mjs +115 -0
  14. package/es/control/drtab/drtab.controller.d.ts +7 -0
  15. package/es/control/drtab/drtab.controller.mjs +13 -0
  16. package/es/control/drtab/drtab.css +1 -1
  17. package/es/control/drtab/drtab.d.ts +4 -0
  18. package/es/control/drtab/drtab.mjs +94 -33
  19. package/es/control/drtab/index.d.ts +4 -0
  20. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +1 -0
  21. package/es/control/grid/grid/grid-control.util.mjs +3 -1
  22. package/es/control/grid/grid/grid.css +1 -1
  23. package/es/control/grid/grid/grid.d.ts +3 -0
  24. package/es/control/grid/grid/grid.mjs +43 -4
  25. package/es/control/grid/grid/index.d.ts +3 -0
  26. package/es/control/list/index.d.ts +1 -0
  27. package/es/control/list/list.css +1 -1
  28. package/es/control/list/list.d.ts +1 -0
  29. package/es/control/list/list.mjs +35 -7
  30. package/es/control/tree/el-tree-util.d.ts +0 -16
  31. package/es/control/tree/index.d.ts +0 -16
  32. package/es/control/tree/tree.d.ts +0 -16
  33. package/es/editor/check-box/check-box-editor.provider.mjs +1 -1
  34. package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.mjs +7 -2
  35. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +7 -2
  36. package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.mjs +7 -2
  37. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +7 -2
  38. package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.mjs +12 -10
  39. package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +7 -2
  40. package/es/editor/rate/ibiz-rate/ibiz-rate.mjs +7 -2
  41. package/es/editor/slider/ibiz-slider/ibiz-slider.mjs +7 -2
  42. package/es/editor/span/span/span.d.ts +6 -0
  43. package/es/editor/span/span/span.mjs +11 -6
  44. package/es/editor/switch/ibiz-switch/ibiz-switch.mjs +7 -2
  45. package/es/editor/text-box/input/input.d.ts +35 -0
  46. package/es/editor/text-box/input/input.mjs +30 -3
  47. package/es/editor/text-box/text-box-editor.controller.d.ts +10 -3
  48. package/es/editor/text-box/text-box-editor.controller.mjs +13 -2
  49. package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +7 -2
  50. package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +7 -2
  51. package/es/locale/en/index.d.ts +3 -1
  52. package/es/locale/en/index.mjs +2 -1
  53. package/es/locale/zh-CN/index.d.ts +3 -1
  54. package/es/locale/zh-CN/index.mjs +2 -1
  55. package/es/node_modules/.pnpm/@ibiz-template_core@0.7.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +218 -0
  56. package/es/node_modules/.pnpm/{element-plus@2.7.5_vue@3.3.8 → element-plus@2.4.4_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.mjs +1 -14
  57. package/es/web-app/create-vue-app.mjs +1 -1
  58. package/lib/control/data-view/data-view.cjs +34 -4
  59. package/lib/control/data-view/data-view.css +1 -1
  60. package/lib/control/drtab/drtab-control.util.cjs +117 -0
  61. package/lib/control/drtab/drtab.cjs +93 -32
  62. package/lib/control/drtab/drtab.controller.cjs +13 -0
  63. package/lib/control/drtab/drtab.css +1 -1
  64. package/lib/control/grid/grid/grid-control.util.cjs +3 -1
  65. package/lib/control/grid/grid/grid.cjs +42 -3
  66. package/lib/control/grid/grid/grid.css +1 -1
  67. package/lib/control/list/list.cjs +34 -6
  68. package/lib/control/list/list.css +1 -1
  69. package/lib/editor/check-box/check-box-editor.provider.cjs +1 -1
  70. package/lib/editor/check-box/ibiz-checkbox/ibiz-checkbox.cjs +6 -1
  71. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +6 -1
  72. package/lib/editor/data-picker/ibiz-picker-link/ibiz-picker-link.cjs +6 -1
  73. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +6 -1
  74. package/lib/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.cjs +11 -9
  75. package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +6 -1
  76. package/lib/editor/rate/ibiz-rate/ibiz-rate.cjs +6 -1
  77. package/lib/editor/slider/ibiz-slider/ibiz-slider.cjs +6 -1
  78. package/lib/editor/span/span/span.cjs +11 -6
  79. package/lib/editor/switch/ibiz-switch/ibiz-switch.cjs +6 -1
  80. package/lib/editor/text-box/input/input.cjs +28 -1
  81. package/lib/editor/text-box/text-box-editor.controller.cjs +12 -1
  82. package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -1
  83. package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +6 -1
  84. package/lib/locale/en/index.cjs +2 -1
  85. package/lib/locale/zh-CN/index.cjs +2 -1
  86. package/lib/node_modules/.pnpm/@ibiz-template_core@0.7.18_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +221 -0
  87. package/lib/node_modules/.pnpm/{element-plus@2.7.5_vue@3.3.8 → element-plus@2.4.4_vue@3.3.8}/node_modules/element-plus/dist/locale/zh-cn.cjs +1 -14
  88. package/lib/web-app/create-vue-app.cjs +1 -1
  89. package/package.json +8 -8
  90. package/dist/index-O0hiquCe.js +0 -4
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
2
- import { getNumberRangeProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getNumberRangeProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-number-range-picker.css';
4
4
  import { toNumber } from 'lodash-es';
5
5
 
@@ -14,6 +14,10 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
14
14
  const ns = useNamespace("number-range-picker");
15
15
  const c = props.controller;
16
16
  const editorModel = c.model;
17
+ const {
18
+ useInFocusAndBlur,
19
+ useInValueChange
20
+ } = useAutoFocusBlur(props, emit);
17
21
  let max = Infinity;
18
22
  let min = -Infinity;
19
23
  let precision = 0;
@@ -62,12 +66,6 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
62
66
  }, {
63
67
  immediate: true
64
68
  });
65
- watch(editorRef, (newVal) => {
66
- if (props.autoFocus && newVal) {
67
- const input = newVal.$el.getElementsByTagName("input")[0];
68
- input.focus();
69
- }
70
- });
71
69
  const setEditable = (flag) => {
72
70
  if (flag) {
73
71
  isEditable.value = flag;
@@ -86,22 +84,26 @@ const IBizNumberRangePicker = /* @__PURE__ */ defineComponent({
86
84
  if (minValue.value !== null && maxValue.value !== null) {
87
85
  emit("change", [minValue.value, maxValue.value].join(valueSeparator));
88
86
  setEditable(false);
87
+ useInValueChange();
89
88
  }
90
89
  if (refFormItem.value) {
91
90
  const valueName = refFormItem.value[index];
92
91
  emit("change", value, valueName);
92
+ useInValueChange();
93
93
  }
94
94
  };
95
95
  const {
96
96
  componentRef
97
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
97
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
98
98
  const onFocus = (e) => {
99
99
  emit("focus", e);
100
100
  setEditable(true);
101
101
  };
102
102
  const onBlur = (e) => {
103
- emit("blur", e);
104
- setEditable(false);
103
+ if (minValue.value !== null && maxValue.value !== null) {
104
+ emit("blur", e);
105
+ setEditable(false);
106
+ }
105
107
  };
106
108
  const handleKeyUp = (e) => {
107
109
  if (e && e.code === "Enter") {
@@ -1,5 +1,5 @@
1
1
  import { isVNode, ref, watch, computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
2
- import { getRadioProps, getEditorEmits, useNamespace, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getRadioProps, getEditorEmits, useNamespace, useAutoFocusBlur, useCodeListListen, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-radio.css';
4
4
  import { notNilEmpty } from 'qx-util';
5
5
 
@@ -27,8 +27,13 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
27
27
  isBtnRoundCorner = c.toBoolean(editorModel.editorParams.isBtnRoundCorner);
28
28
  }
29
29
  }
30
+ const {
31
+ useInFocusAndBlur,
32
+ useInValueChange
33
+ } = useAutoFocusBlur(props, emit);
30
34
  const onSelectValueChange = (value) => {
31
35
  emit("change", value);
36
+ useInValueChange();
32
37
  };
33
38
  const items = ref([]);
34
39
  watch(() => props.data, (newVal) => {
@@ -64,7 +69,7 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
64
69
  });
65
70
  const {
66
71
  componentRef: editorRef
67
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
72
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
68
73
  return {
69
74
  ns,
70
75
  editorModel,
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
2
- import { getRateProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getRateProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import { toNumber } from 'lodash-es';
4
4
  import './ibiz-rate.css';
5
5
 
@@ -15,6 +15,10 @@ const IBizRate = /* @__PURE__ */ defineComponent({
15
15
  const currentVal = ref();
16
16
  const c = props.controller;
17
17
  const editorModel = c.model;
18
+ const {
19
+ useInFocusAndBlur,
20
+ useInValueChange
21
+ } = useAutoFocusBlur(props, emit);
18
22
  let colors = [];
19
23
  let showText = false;
20
24
  let max = 5;
@@ -52,10 +56,11 @@ const IBizRate = /* @__PURE__ */ defineComponent({
52
56
  });
53
57
  const handleChange = (currentValue) => {
54
58
  emit("change", currentValue);
59
+ useInValueChange();
55
60
  };
56
61
  const {
57
62
  componentRef: editorRef
58
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
63
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
59
64
  return {
60
65
  ns,
61
66
  currentVal,
@@ -1,5 +1,5 @@
1
1
  import { computed, ref, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
2
- import { getSliderProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getSliderProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import { toNumber } from 'lodash-es';
4
4
  import './ibiz-slider.css';
5
5
 
@@ -14,6 +14,10 @@ const IBizSlider = /* @__PURE__ */ defineComponent({
14
14
  const ns = useNamespace("slider");
15
15
  const c = props.controller;
16
16
  const editorModel = c.model;
17
+ const {
18
+ useInFocusAndBlur,
19
+ useInValueChange
20
+ } = useAutoFocusBlur(props, emit);
17
21
  let step = 1;
18
22
  let max = 100;
19
23
  let min = 0;
@@ -86,10 +90,11 @@ const IBizSlider = /* @__PURE__ */ defineComponent({
86
90
  } else {
87
91
  emit("change", currentValue);
88
92
  }
93
+ useInValueChange();
89
94
  };
90
95
  const {
91
96
  componentRef: editorRef
92
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
97
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
93
98
  return {
94
99
  ns,
95
100
  currentVal,
@@ -58,7 +58,13 @@ export declare const IBizSpan: import("vue").DefineComponent<{
58
58
  data?: IData | undefined;
59
59
  tooltip?: string | undefined;
60
60
  userData?: string | undefined;
61
+ beginValue?: number | undefined;
62
+ endValue?: number | undefined;
63
+ includeBeginValue?: boolean | undefined;
64
+ includeEndValue?: boolean | undefined;
61
65
  }[]>;
66
+ valueFormat: string | undefined;
67
+ unitName: string | undefined;
62
68
  showFormDefaultContent: import("vue").ComputedRef<boolean>;
63
69
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
64
70
  value: (ArrayConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
@@ -25,6 +25,11 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
25
25
  const c = props.controller;
26
26
  const text = ref("");
27
27
  const codeList = c.codeList;
28
+ const {
29
+ valueFormat,
30
+ dataType,
31
+ unitName
32
+ } = c.parent;
28
33
  const textSeparator = c.model.textSeparator || ((_a = c.editorParams) == null ? void 0 : _a.TEXTSEPARATOR) || ",";
29
34
  watch(() => props.value, (newVal, oldVal) => {
30
35
  if (newVal !== oldVal) {
@@ -32,11 +37,6 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
32
37
  text.value = "";
33
38
  return;
34
39
  }
35
- const {
36
- valueFormat,
37
- dataType,
38
- unitName
39
- } = c.parent;
40
40
  if (c.model.valueType === "SIMPLES") {
41
41
  text.value = newVal.join(textSeparator);
42
42
  } else if (c.model.valueType === "OBJECT") {
@@ -116,6 +116,8 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
116
116
  text,
117
117
  editorRef,
118
118
  items,
119
+ valueFormat,
120
+ unitName,
119
121
  showFormDefaultContent
120
122
  };
121
123
  },
@@ -126,7 +128,10 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
126
128
  "class": this.ns.e("code-list"),
127
129
  "codeListItems": this.items,
128
130
  "codeList": this.c.codeList,
129
- "value": this.text
131
+ "value": this.value,
132
+ "valueFormat": this.valueFormat,
133
+ "unitName": this.unitName,
134
+ "convertToCodeItemText": this.c.convertToCodeItemText
130
135
  }, null);
131
136
  } else if (this.text) {
132
137
  content = this.text;
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, watch, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
2
- import { getSwitchProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getSwitchProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-switch.css';
4
4
 
5
5
  "use strict";
@@ -65,13 +65,18 @@ const IBizSwitch = /* @__PURE__ */ defineComponent({
65
65
  }
66
66
  return props.disabled || props.readonly;
67
67
  });
68
+ const {
69
+ useInFocusAndBlur,
70
+ useInValueChange
71
+ } = useAutoFocusBlur(props, emit);
68
72
  const handleChange = (currentValue) => {
69
73
  const emitValue = currentValue === true ? 1 : 0;
70
74
  emit("change", emitValue);
75
+ useInValueChange();
71
76
  };
72
77
  const {
73
78
  componentRef: editorRef
74
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
79
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
75
80
  return {
76
81
  ns,
77
82
  currentVal,
@@ -27,6 +27,41 @@ export declare const IBizInput: import("vue").DefineComponent<{
27
27
  ns: import("@ibiz-template/core").Namespace;
28
28
  rows: import("vue").Ref<number>;
29
29
  type: import("vue").ComputedRef<"string" | "text" | "textarea" | "password">;
30
+ items: import("vue").Ref<readonly {
31
+ value: string | number;
32
+ text: string;
33
+ id: string;
34
+ color?: string | undefined;
35
+ bkcolor?: string | undefined;
36
+ children?: any[] | undefined;
37
+ textCls?: string | undefined;
38
+ cls?: string | undefined;
39
+ disableSelect?: boolean | undefined;
40
+ sysImage?: {
41
+ codeName?: string | undefined;
42
+ cssClass?: string | undefined;
43
+ cssClassX?: string | undefined;
44
+ glyph?: string | undefined;
45
+ height?: number | undefined;
46
+ imagePath?: string | undefined;
47
+ imagePathX?: string | undefined;
48
+ rawContent?: string | undefined;
49
+ width?: number | undefined;
50
+ appId: string;
51
+ id?: string | undefined;
52
+ name?: string | undefined;
53
+ userParam?: Record<string, string> | undefined;
54
+ modelId?: string | undefined;
55
+ modelType?: string | undefined;
56
+ } | undefined;
57
+ data?: IData | undefined;
58
+ tooltip?: string | undefined;
59
+ userData?: string | undefined;
60
+ beginValue?: number | undefined;
61
+ endValue?: number | undefined;
62
+ includeBeginValue?: boolean | undefined;
63
+ includeEndValue?: boolean | undefined;
64
+ }[]>;
30
65
  currentVal: import("vue").Ref<string>;
31
66
  readonlyText: import("vue").ComputedRef<string>;
32
67
  handleChange: (val: string | number) => void;
@@ -1,5 +1,5 @@
1
- import { isVNode, ref, computed, watch, onUnmounted, createVNode, resolveComponent, mergeProps, defineComponent } from 'vue';
2
- import { getInputProps, getEditorEmits, useNamespace } from '@ibiz-template/vue3-util';
1
+ import { isVNode, ref, computed, watch, onUnmounted, resolveComponent, createVNode, mergeProps, defineComponent } from 'vue';
2
+ import { getInputProps, getEditorEmits, useNamespace, useCodeListListen } from '@ibiz-template/vue3-util';
3
3
  import { createUUID } from 'qx-util';
4
4
  import './input.css';
5
5
 
@@ -208,11 +208,29 @@ const IBizInput = /* @__PURE__ */ defineComponent({
208
208
  const shouldAutoComplete = computed(() => {
209
209
  return c.model.editorParams && c.model.editorParams.autocomplete && c.toBoolean(c.model.editorParams.autocomplete) ? "on" : "new-password";
210
210
  });
211
+ const items = ref([]);
212
+ if (c.codeList) {
213
+ watch(() => props.data, (newVal) => {
214
+ c.loadCodeList(newVal).then((_codeList) => {
215
+ items.value = _codeList;
216
+ });
217
+ }, {
218
+ immediate: true,
219
+ deep: true
220
+ });
221
+ }
222
+ const fn = (data) => {
223
+ if (data) {
224
+ items.value = data;
225
+ }
226
+ };
227
+ useCodeListListen(c.model.appCodeListId, c.context.srfappid, fn);
211
228
  return {
212
229
  c,
213
230
  ns,
214
231
  rows,
215
232
  type,
233
+ items,
216
234
  currentVal,
217
235
  readonlyText,
218
236
  handleChange,
@@ -241,7 +259,16 @@ const IBizInput = /* @__PURE__ */ defineComponent({
241
259
  } = this.c.model;
242
260
  let content = null;
243
261
  if (this.readonly) {
244
- content = this.readonlyText;
262
+ if (this.c.codeList) {
263
+ content = createVNode(resolveComponent("iBizCodeList"), {
264
+ "codeListItems": this.items,
265
+ "codeList": this.c.codeList,
266
+ "value": this.currentVal,
267
+ "convertToCodeItemText": this.c.convertToCodeItemText
268
+ }, null);
269
+ } else {
270
+ content = this.readonlyText;
271
+ }
245
272
  } else {
246
273
  const slots = {};
247
274
  if (unitName) {
@@ -1,5 +1,5 @@
1
- import { EditorController, IAppDEService } from '@ibiz-template/runtime';
2
- import { IAppDEACMode, IDEACModeDataItem, ITextBox } from '@ibiz/model-core';
1
+ import { CodeListEditorController, IAppDEService } from '@ibiz-template/runtime';
2
+ import { IAppCodeList, IAppDEACMode, IDEACModeDataItem, ITextBox } from '@ibiz/model-core';
3
3
  /**
4
4
  * 输入框编辑器控制器
5
5
  *
@@ -9,7 +9,7 @@ import { IAppDEACMode, IDEACModeDataItem, ITextBox } from '@ibiz/model-core';
9
9
  * @class TextBoxEditorController
10
10
  * @extends {EditorController}
11
11
  */
12
- export declare class TextBoxEditorController extends EditorController<ITextBox> {
12
+ export declare class TextBoxEditorController extends CodeListEditorController<ITextBox> {
13
13
  /**
14
14
  * 精度
15
15
  * @author lxm
@@ -73,5 +73,12 @@ export declare class TextBoxEditorController extends EditorController<ITextBox>
73
73
  * @type {boolean}
74
74
  */
75
75
  chatCompletion: boolean;
76
+ /**
77
+ * 代码表模型
78
+ * @return {*}
79
+ * @author: zhujiamin
80
+ * @Date: 2023-05-24 10:55:50
81
+ */
82
+ codeList: IAppCodeList | undefined;
76
83
  protected onInit(): Promise<void>;
77
84
  }
@@ -1,4 +1,4 @@
1
- import { EditorController, getDeACMode } from '@ibiz-template/runtime';
1
+ import { CodeListEditorController, getDeACMode } from '@ibiz-template/runtime';
2
2
  import { toNumber } from 'lodash-es';
3
3
 
4
4
  "use strict";
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
9
9
  return value;
10
10
  };
11
- class TextBoxEditorController extends EditorController {
11
+ class TextBoxEditorController extends CodeListEditorController {
12
12
  constructor() {
13
13
  super(...arguments);
14
14
  /**
@@ -74,6 +74,13 @@ class TextBoxEditorController extends EditorController {
74
74
  * @type {boolean}
75
75
  */
76
76
  __publicField(this, "chatCompletion", false);
77
+ /**
78
+ * 代码表模型
79
+ * @return {*}
80
+ * @author: zhujiamin
81
+ * @Date: 2023-05-24 10:55:50
82
+ */
83
+ __publicField(this, "codeList");
77
84
  }
78
85
  async onInit() {
79
86
  await super.onInit();
@@ -121,6 +128,10 @@ class TextBoxEditorController extends EditorController {
121
128
  } else if (this.model.predefinedType === "AUTH_PASSWORD" && !this.placeHolder) {
122
129
  this.placeHolder = ibiz.i18n.t("app.pleaseEnterPassword");
123
130
  }
131
+ if (this.model.appCodeListId) {
132
+ const app = await ibiz.hub.getApp(this.context.srfappid);
133
+ this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
134
+ }
124
135
  }
125
136
  }
126
137
 
@@ -1,5 +1,5 @@
1
1
  import { isVNode, computed, resolveComponent, mergeProps, createVNode, defineComponent } from 'vue';
2
- import { getUploadProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getUploadProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-file-upload.css';
4
4
  import { useIViewUpload } from '../use/use-iview-upload.mjs';
5
5
 
@@ -16,6 +16,10 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
16
16
  }) {
17
17
  const ns = useNamespace("file-upload");
18
18
  const c = props.controller;
19
+ const {
20
+ useInFocusAndBlur,
21
+ useInValueChange
22
+ } = useAutoFocusBlur(props, emit);
19
23
  const {
20
24
  uploadUrl,
21
25
  headers,
@@ -28,6 +32,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
28
32
  beforeUpload
29
33
  } = useIViewUpload(props, (value) => {
30
34
  emit("change", value);
35
+ useInValueChange();
31
36
  }, c);
32
37
  const noUploadIcon = computed(() => {
33
38
  var _a;
@@ -44,7 +49,7 @@ const IBizFileUpload = /* @__PURE__ */ defineComponent({
44
49
  });
45
50
  const {
46
51
  componentRef
47
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
52
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
48
53
  return {
49
54
  ns,
50
55
  c,
@@ -1,5 +1,5 @@
1
1
  import { ref, computed, createVNode, resolveComponent, mergeProps, defineComponent } from 'vue';
2
- import { getUploadProps, getEditorEmits, useNamespace, useFocusAndBlur } from '@ibiz-template/vue3-util';
2
+ import { getUploadProps, getEditorEmits, useNamespace, useAutoFocusBlur, useFocusAndBlur } from '@ibiz-template/vue3-util';
3
3
  import './ibiz-image-upload.css';
4
4
  import { useIViewUpload } from '../use/use-iview-upload.mjs';
5
5
 
@@ -13,6 +13,10 @@ const IBizImageUpload = /* @__PURE__ */ defineComponent({
13
13
  }) {
14
14
  const ns = useNamespace("image-upload");
15
15
  const c = props.controller;
16
+ const {
17
+ useInFocusAndBlur,
18
+ useInValueChange
19
+ } = useAutoFocusBlur(props, emit);
16
20
  const {
17
21
  uploadUrl,
18
22
  headers,
@@ -25,6 +29,7 @@ const IBizImageUpload = /* @__PURE__ */ defineComponent({
25
29
  beforeUpload
26
30
  } = useIViewUpload(props, (value) => {
27
31
  emit("change", value);
32
+ useInValueChange();
28
33
  }, c);
29
34
  const dialogImageUrl = ref("");
30
35
  const dialogVisible = ref(false);
@@ -46,7 +51,7 @@ const IBizImageUpload = /* @__PURE__ */ defineComponent({
46
51
  });
47
52
  const {
48
53
  componentRef
49
- } = useFocusAndBlur(() => emit("focus"), () => emit("blur"));
54
+ } = useFocusAndBlur(() => emit("focus"), () => useInFocusAndBlur());
50
55
  return {
51
56
  ns,
52
57
  c,
@@ -51,6 +51,7 @@ declare const _default: {
51
51
  noConfiguredEntity: string;
52
52
  noReturnValue: string;
53
53
  noAttribute: string;
54
+ noConfiguredScript: string;
54
55
  noConfiguerdEntityBehanior: string;
55
56
  sessionView: string;
56
57
  viewStateAttribute: string;
@@ -472,7 +473,7 @@ declare const _default: {
472
473
  loginFailure: string;
473
474
  logoutFailure: string;
474
475
  noFound: string;
475
- masterState: string;
476
+ mainState: string;
476
477
  operationIdentifier: string;
477
478
  matchMasterState: string;
478
479
  masterStatePermissions: string;
@@ -893,6 +894,7 @@ declare const _default: {
893
894
  gridRowSelect: string;
894
895
  gridRowSelectDesc: string;
895
896
  };
897
+ loadMore: string;
896
898
  };
897
899
  menu: {
898
900
  noSupportAlign: string;
@@ -234,7 +234,8 @@ var index = {
234
234
  gridRowHoverDesc: "Table row suspension color, background color when a row is hover",
235
235
  gridRowSelect: "Select color for table row",
236
236
  gridRowSelectDesc: "Table row selected color, background color when a row is selected"
237
- }
237
+ },
238
+ loadMore: "Load more"
238
239
  },
239
240
  menu: {
240
241
  noSupportAlign: "The menu direction {align} is not supported temporarily",
@@ -51,6 +51,7 @@ declare const _default: {
51
51
  noConfiguredEntity: string;
52
52
  noReturnValue: string;
53
53
  noAttribute: string;
54
+ noConfiguredScript: string;
54
55
  noConfiguerdEntityBehanior: string;
55
56
  sessionView: string;
56
57
  viewStateAttribute: string;
@@ -470,7 +471,7 @@ declare const _default: {
470
471
  loginFailure: string;
471
472
  logoutFailure: string;
472
473
  noFound: string;
473
- masterState: string;
474
+ mainState: string;
474
475
  operationIdentifier: string;
475
476
  matchMasterState: string;
476
477
  masterStatePermissions: string;
@@ -891,6 +892,7 @@ declare const _default: {
891
892
  gridRowSelect: string;
892
893
  gridRowSelectDesc: string;
893
894
  };
895
+ loadMore: string;
894
896
  };
895
897
  menu: {
896
898
  noSupportAlign: string;
@@ -234,7 +234,8 @@ var index = {
234
234
  gridRowHoverDesc: "\u8868\u683C\u884C\u60AC\u6D6E\u8272, \u5F53\u67D0\u4E00\u884Chover\u65F6\u80CC\u666F\u8272",
235
235
  gridRowSelect: "\u8868\u683C\u884C\u9009\u4E2D\u8272",
236
236
  gridRowSelectDesc: "\u8868\u683C\u884C\u9009\u4E2D\u8272\uFF0C\u5F53\u67D0\u4E00\u884C\u9009\u4E2D\u65F6\u80CC\u666F\u8272"
237
- }
237
+ },
238
+ loadMore: "\u52A0\u8F7D\u66F4\u591A"
238
239
  },
239
240
  menu: {
240
241
  noSupportAlign: "\u6682\u672A\u652F\u6301\u83DC\u5355\u65B9\u5411\u4E3A {align}",