@ibiz-template/vue3-components 0.6.17 → 0.7.0

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 (94) hide show
  1. package/dist/chart-jfPZ04eU.js +1 -0
  2. package/dist/index-Wk7Kbc7Z.js +4 -0
  3. package/dist/index.min.css +1 -1
  4. package/dist/index.system.min.js +1 -1
  5. package/dist/{xlsx-util-tKOH6BvT.js → xlsx-util-keqImqNu.js} +1 -1
  6. package/es/common/pagination/pagination.d.ts +9 -0
  7. package/es/common/pagination/pagination.mjs +12 -2
  8. package/es/common/view-message/view-message.css +1 -1
  9. package/es/common/view-message/view-message.d.ts +27 -1
  10. package/es/common/view-message/view-message.mjs +130 -17
  11. package/es/control/chart/chart.css +1 -1
  12. package/es/control/chart/chart.d.ts +3 -1
  13. package/es/control/chart/chart.mjs +70 -6
  14. package/es/control/data-view/data-view.mjs +1 -0
  15. package/es/control/drbar/drbar.controller.d.ts +9 -0
  16. package/es/control/drbar/drbar.controller.mjs +16 -1
  17. package/es/control/drtab/drtab.controller.d.ts +9 -0
  18. package/es/control/drtab/drtab.controller.mjs +16 -1
  19. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
  20. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +2 -1
  21. package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +13 -4
  22. package/es/control/form/form-detail/form-mdctrl/index.d.ts +1 -0
  23. package/es/control/form/form-detail/form-rawitem/form-rawitem.d.ts +2 -1
  24. package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +31 -1
  25. package/es/control/form/form-detail/form-rawitem/index.d.ts +1 -0
  26. package/es/control/grid/grid/grid.mjs +1 -0
  27. package/es/control/list/list.mjs +1 -0
  28. package/es/control/search-bar/filter-tree/filter-tree.d.ts +3 -3
  29. package/es/control/search-bar/filter-tree/filter-tree.mjs +98 -37
  30. package/es/control/search-bar/index.d.ts +1 -0
  31. package/es/control/search-bar/index.mjs +2 -0
  32. package/es/control/search-bar/quick-search-select/quick-search-select.css +1 -0
  33. package/es/control/search-bar/quick-search-select/quick-search-select.d.ts +16 -0
  34. package/es/control/search-bar/quick-search-select/quick-search-select.mjs +72 -0
  35. package/es/control/search-bar/search-bar.css +1 -1
  36. package/es/control/search-bar/search-bar.d.ts +1 -0
  37. package/es/control/search-bar/search-bar.mjs +14 -3
  38. package/es/control/tree-grid/tree-grid.mjs +1 -0
  39. package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +11 -3
  40. package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +13 -2
  41. package/es/editor/list-box/ibiz-list-box/ibiz-list-box.mjs +13 -5
  42. package/es/editor/raw/ibiz-raw/ibiz-raw.mjs +7 -0
  43. package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.mjs +3 -3
  44. package/es/panel-component/index.mjs +2 -0
  45. package/es/panel-component/panel-index-view-search/index.d.ts +1 -0
  46. package/es/panel-component/panel-index-view-search/panel-index-view-search.d.ts +1 -0
  47. package/es/panel-component/panel-index-view-search/panel-index-view-search.mjs +22 -2
  48. package/es/panel-component/view-msg-pos/index.d.ts +25 -0
  49. package/es/panel-component/view-msg-pos/index.mjs +16 -0
  50. package/es/panel-component/view-msg-pos/view-msg-pos.controller.d.ts +21 -0
  51. package/es/panel-component/view-msg-pos/view-msg-pos.controller.mjs +48 -0
  52. package/es/panel-component/view-msg-pos/view-msg-pos.d.ts +25 -0
  53. package/es/panel-component/view-msg-pos/view-msg-pos.mjs +47 -0
  54. package/es/panel-component/view-msg-pos/view-msg-pos.provider.d.ts +16 -0
  55. package/es/panel-component/view-msg-pos/view-msg-pos.provider.mjs +21 -0
  56. package/es/view-engine/index.mjs +4 -0
  57. package/es/view-engine/panel-view-engine.d.ts +2 -2
  58. package/es/web-app/App.mjs +9 -1
  59. package/lib/common/pagination/pagination.cjs +12 -2
  60. package/lib/common/view-message/view-message.cjs +129 -16
  61. package/lib/common/view-message/view-message.css +1 -1
  62. package/lib/control/chart/chart.cjs +69 -5
  63. package/lib/control/chart/chart.css +1 -1
  64. package/lib/control/data-view/data-view.cjs +1 -0
  65. package/lib/control/drbar/drbar.controller.cjs +16 -1
  66. package/lib/control/drtab/drtab.controller.cjs +16 -1
  67. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +13 -4
  68. package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -1
  69. package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +30 -0
  70. package/lib/control/grid/grid/grid.cjs +1 -0
  71. package/lib/control/list/list.cjs +1 -0
  72. package/lib/control/search-bar/filter-tree/filter-tree.cjs +98 -37
  73. package/lib/control/search-bar/index.cjs +2 -0
  74. package/lib/control/search-bar/quick-search-select/quick-search-select.cjs +74 -0
  75. package/lib/control/search-bar/quick-search-select/quick-search-select.css +1 -0
  76. package/lib/control/search-bar/search-bar.cjs +14 -3
  77. package/lib/control/search-bar/search-bar.css +1 -1
  78. package/lib/control/tree-grid/tree-grid.cjs +1 -0
  79. package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +11 -3
  80. package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +13 -2
  81. package/lib/editor/list-box/ibiz-list-box/ibiz-list-box.cjs +13 -5
  82. package/lib/editor/raw/ibiz-raw/ibiz-raw.cjs +7 -0
  83. package/lib/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.cjs +2 -2
  84. package/lib/panel-component/index.cjs +2 -0
  85. package/lib/panel-component/panel-index-view-search/panel-index-view-search.cjs +21 -1
  86. package/lib/panel-component/view-msg-pos/index.cjs +22 -0
  87. package/lib/panel-component/view-msg-pos/view-msg-pos.cjs +49 -0
  88. package/lib/panel-component/view-msg-pos/view-msg-pos.controller.cjs +50 -0
  89. package/lib/panel-component/view-msg-pos/view-msg-pos.provider.cjs +23 -0
  90. package/lib/view-engine/index.cjs +4 -0
  91. package/lib/web-app/App.cjs +8 -0
  92. package/package.json +12 -12
  93. package/dist/chart-IsmrW_d0.js +0 -1
  94. package/dist/index-fN8w56IX.js +0 -4
@@ -96,6 +96,14 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
96
96
  const handleSave = () => {
97
97
  c.handleSave();
98
98
  };
99
+ const renderAdvancedSearch = () => {
100
+ if (!c.state.advancedQuickSearch) {
101
+ return null;
102
+ }
103
+ return vue.createVNode(vue.resolveComponent("iBizQuickSearchSelect"), {
104
+ "controller": c
105
+ }, null);
106
+ };
99
107
  return {
100
108
  c,
101
109
  ns,
@@ -106,7 +114,8 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
106
114
  onKeydown,
107
115
  onGroupClick,
108
116
  triggerFilter,
109
- handleSave
117
+ handleSave,
118
+ renderAdvancedSearch
110
119
  };
111
120
  },
112
121
  render() {
@@ -139,7 +148,7 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
139
148
  "modelValue": this.c.state.query,
140
149
  "onUpdate:modelValue": ($event) => this.c.state.query = $event,
141
150
  "class": this.ns.b("quick-search"),
142
- "placeholder": this.c.placeHolder,
151
+ "placeholder": this.c.state.quickSearchPlaceHolder,
143
152
  "clearable": true,
144
153
  "onKeydown": this.onKeydown,
145
154
  "onClear": this.onClear,
@@ -148,7 +157,9 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
148
157
  "class": this.ns.e("search-icon"),
149
158
  "name": "search"
150
159
  }, null)
151
- }, null), this.c.enableFilter && vue.createVNode(vue.resolveComponent("el-button"), {
160
+ }, {
161
+ prepend: () => this.renderAdvancedSearch()
162
+ }), this.c.enableFilter && vue.createVNode(vue.resolveComponent("el-button"), {
152
163
  "ref": "filterButtonRef",
153
164
  "type": "primary",
154
165
  "title": "\u8FC7\u6EE4",
@@ -1 +1 @@
1
- @charset "UTF-8";.ibiz-control-searchbar{--ibiz-control-searchbar-quick-search-width:220px;--ibiz-control-searchbar-quick-group-item-padding:var(--ibiz-spacing-tight);--ibiz-control-searchbar-quick-group-item-margin:var(--ibiz-spacing-tight);display:flex;align-items:center;justify-content:flex-start;height:100%}.ibiz-control-searchbar .ibiz-control-searchbar-quick-search{width:var(--ibiz-control-searchbar-quick-search-width);margin-left:var(--ibiz-spacing-base-tight);font-size:14px;color:var(--ibiz-text-color);background:var(--ibiz-color-white);border:1px solid var(--ibiz-border-color);border-radius:4px}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group{height:100%;overflow-x:auto;white-space:nowrap}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group .ibiz-control-searchbar-quick-group-item{position:relative;display:inline-block;height:100%;padding:var(--ibiz-control-searchbar-quick-group-item-padding);margin-right:var(--ibiz-control-searchbar-quick-group-item-margin);font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group .ibiz-control-searchbar-quick-group-item.is-selected::after{position:absolute;bottom:2px;left:0;width:100%;height:2px;content:"";background-color:var(--ibiz-color-primary)}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group .ibiz-control-searchbar-quick-group-item:hover{color:var(--ibiz-color-primary)}.ibiz-control-searchbar .el-input__icon{cursor:pointer}.ibiz-control-searchbar-filter{margin-right:var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-base-tight)}.ibiz-control-searchbar-save{margin-left:var(--ibiz-spacing-base-tight)}
1
+ @charset "UTF-8";.ibiz-control-searchbar{--ibiz-control-searchbar-quick-search-width:220px;--ibiz-control-searchbar-quick-group-item-padding:var(--ibiz-spacing-tight);--ibiz-control-searchbar-quick-group-item-margin:var(--ibiz-spacing-tight);display:flex;align-items:center;justify-content:flex-start;height:100%}.ibiz-control-searchbar .ibiz-control-searchbar-quick-search{width:var(--ibiz-control-searchbar-quick-search-width);margin-left:var(--ibiz-spacing-base-tight);font-size:14px;color:var(--ibiz-text-color);background:var(--ibiz-color-white);border:1px solid var(--ibiz-border-color);border-radius:4px}.ibiz-control-searchbar .ibiz-control-searchbar-quick-search .el-input-group__prepend,.ibiz-control-searchbar .ibiz-control-searchbar-quick-search.el-input-group__append{padding:0}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group{height:100%;overflow-x:auto;white-space:nowrap}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group .ibiz-control-searchbar-quick-group-item{position:relative;display:inline-block;height:100%;padding:var(--ibiz-control-searchbar-quick-group-item-padding);margin-right:var(--ibiz-control-searchbar-quick-group-item-margin);font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group .ibiz-control-searchbar-quick-group-item.is-selected::after{position:absolute;bottom:2px;left:0;width:100%;height:2px;content:"";background-color:var(--ibiz-color-primary)}.ibiz-control-searchbar .ibiz-control-searchbar-quick-group .ibiz-control-searchbar-quick-group-item:hover{color:var(--ibiz-color-primary)}.ibiz-control-searchbar .el-input__icon{cursor:pointer}.ibiz-control-searchbar-filter{margin-right:var(--ibiz-spacing-extra-tight);margin-left:var(--ibiz-spacing-base-tight)}.ibiz-control-searchbar-save{margin-left:var(--ibiz-spacing-base-tight)}
@@ -239,6 +239,7 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
239
239
  "total": state.total,
240
240
  "curPage": state.curPage,
241
241
  "size": state.size,
242
+ "totalPages": state.totalPages,
242
243
  "onChange": this.onPageChange,
243
244
  "onPageSizeChange": this.onPageSizeChange,
244
245
  "onPageRefresh": this.onPageRefresh
@@ -61,7 +61,7 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
61
61
  const strVal = props.value;
62
62
  if (strVal !== "") {
63
63
  if (codeList) {
64
- const selects = strVal.split(valueSeparator);
64
+ const selects = c.model.valueType === "SIMPLES" ? strVal : strVal.split(valueSeparator);
65
65
  if (codeList.codeItemValueNumber) {
66
66
  for (let i = 0, len = selects.length; i < len; i++) {
67
67
  selects[i] = Number(selects[i]);
@@ -83,7 +83,11 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
83
83
  const numVal = typeof item === "string" ? parseInt(item, 10) : item;
84
84
  temp |= numVal;
85
85
  });
86
- value = temp;
86
+ if (c.model.valueType === "SIMPLES") {
87
+ value = [temp];
88
+ } else if (c.model.valueType === "SIMPLE") {
89
+ value = temp;
90
+ }
87
91
  } else if (Object.is(currentMode.value, "str")) {
88
92
  const _datas = [];
89
93
  if (items.value.length > 0) {
@@ -94,7 +98,11 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
94
98
  }
95
99
  _datas.push(_item.value);
96
100
  });
97
- value = _datas.join(valueSeparator);
101
+ if (c.model.valueType === "SIMPLES") {
102
+ value = _datas;
103
+ } else if (c.model.valueType === "SIMPLE") {
104
+ value = _datas.join(valueSeparator);
105
+ }
98
106
  }
99
107
  }
100
108
  emit("change", value);
@@ -111,14 +111,25 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
111
111
  if (editorItems && editorItems.length > 0 && !c.multiple) {
112
112
  return props.data[editorItems[0].id];
113
113
  }
114
- if (props.value) {
114
+ if (props.value && typeof props.value === "string") {
115
115
  return c.multiple ? (_a = props.value) == null ? void 0 : _a.toString().split(",") : props.value.toString();
116
116
  }
117
+ if (props.value && Array.isArray(props.value)) {
118
+ return c.multiple ? props.value : props.value.toString();
119
+ }
117
120
  return (_b = props.value) == null ? void 0 : _b.toString();
118
121
  },
119
122
  set(select) {
120
123
  if (Array.isArray(select)) {
121
- emit("change", select.length === 0 ? null : select.join(","));
124
+ let selectArr = null;
125
+ if (select.length === 0) {
126
+ selectArr = null;
127
+ } else if (c.model.valueType === "SIMPLES") {
128
+ selectArr = select;
129
+ } else {
130
+ selectArr = select.join(",");
131
+ }
132
+ emit("change", selectArr);
122
133
  } else if (editorItems && editorItems.length > 0) {
123
134
  emit("change", select, editorItems[0].id);
124
135
  const selectItem = getCodeListItemByValue(select);
@@ -79,8 +79,8 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
79
79
  });
80
80
  } else if (Object.is(currentMode.value, "str")) {
81
81
  if (newVal !== "") {
82
- if (codeList && typeof newVal === "string") {
83
- selectsArray = newVal.split(valueSeparator);
82
+ if (codeList && (typeof newVal === "string" || Array.isArray(newVal))) {
83
+ selectsArray = Array.isArray(newVal) ? newVal : newVal.split(valueSeparator);
84
84
  if (codeList.codeItemValueNumber) {
85
85
  for (let i = 0, len = selectsArray.length; i < len; i++) {
86
86
  selectsArray[i] = Number(selectsArray[i]);
@@ -91,7 +91,7 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
91
91
  }
92
92
  } else if (editorType === "LISTBOXPICKUP") {
93
93
  if (newVal !== "") {
94
- selectsArray = newVal.split(valueSeparator);
94
+ selectsArray = c.model.valueType === "SIMPLES" && Array.isArray(newVal) ? newVal : newVal.split(valueSeparator);
95
95
  }
96
96
  }
97
97
  selectArray.value = selectsArray;
@@ -117,10 +117,18 @@ const IBizListBox = /* @__PURE__ */ vue.defineComponent({
117
117
  });
118
118
  _value = temp;
119
119
  } else if (Object.is(currentMode, "str")) {
120
- _value = values.join(valueSeparator);
120
+ if (c.model.valueType === "SIMPLES") {
121
+ _value = values;
122
+ } else if (c.model.valueType === "SIMPLE") {
123
+ _value = values.join(valueSeparator);
124
+ }
121
125
  }
122
126
  } else if (Object.is("LISTBOXPICKUP", editorType)) {
123
- _value = values.join(valueSeparator);
127
+ if (c.model.valueType === "SIMPLES") {
128
+ _value = values;
129
+ } else if (c.model.valueType === "SIMPLE") {
130
+ _value = values.join(valueSeparator);
131
+ }
124
132
  }
125
133
  } else {
126
134
  _value = value;
@@ -49,6 +49,13 @@ const IBizRaw = /* @__PURE__ */ vue.defineComponent({
49
49
  ibiz.log.error("JSON\u5B57\u7B26\u4E32\u8F6C\u6362\u9519\u8BEF");
50
50
  }
51
51
  }
52
+ if (!Array.isArray(obj)) {
53
+ Object.assign(obj, {
54
+ data: {
55
+ ...props.data
56
+ }
57
+ });
58
+ }
52
59
  content.value = await ibiz.util.hbs.render(template, obj || newVal);
53
60
  }
54
61
  }
@@ -38,7 +38,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
38
38
  if (newVal) {
39
39
  try {
40
40
  const searchconds = JSON.parse(newVal);
41
- filterNodes.value = searchconds.map((item) => runtime.parseFilters(item));
41
+ filterNodes.value = searchconds.map((item) => runtime.SearchCondEx2filterNode(item));
42
42
  } catch (error) {
43
43
  ibiz.log.error("".concat(newVal, "\u503C\u683C\u5F0F\u4E0D\u6B63\u786E\uFF0C\u5FC5\u987B\u4E3Ajson\u5B57\u7B26\u4E32"));
44
44
  }
@@ -84,7 +84,7 @@ const IBizSearchCondEdit = /* @__PURE__ */ vue.defineComponent({
84
84
  }
85
85
  };
86
86
  const getCurrentValByFilterNodes = () => {
87
- const searchconds = runtime.calcSearchConds(filterNodes.value);
87
+ const searchconds = runtime.calcSearchCondExs(filterNodes.value);
88
88
  if (searchconds) {
89
89
  currentVal.value = JSON.stringify(searchconds, null, 2);
90
90
  }
@@ -23,6 +23,7 @@ var index$g = require('./searchform-buttons/index.cjs');
23
23
  var index$h = require('./view-message/index.cjs');
24
24
  var index$i = require('./panel-static-carousel/index.cjs');
25
25
  var index$j = require('./coop-pos/index.cjs');
26
+ var index$k = require('./view-msg-pos/index.cjs');
26
27
  var navPosIndex_state = require('./nav-pos-index/nav-pos-index.state.cjs');
27
28
  var navPosIndex_controller = require('./nav-pos-index/nav-pos-index.controller.cjs');
28
29
  var panelButton_controller = require('./panel-button/panel-button.controller.cjs');
@@ -67,6 +68,7 @@ const IBizPanelComponents = {
67
68
  v.use(vue3Util.IBizTeleportPlaceholder);
68
69
  v.use(vue3Util.IBizPanelContainerTabs);
69
70
  v.use(index$j.IBizCoopPos);
71
+ v.use(index$k.IBizViewMsgPos);
70
72
  }
71
73
  };
72
74
 
@@ -47,11 +47,30 @@ const PanelIndexViewSearch = /* @__PURE__ */ vue.defineComponent({
47
47
  result.push(...props.controller.containerClass);
48
48
  return result;
49
49
  });
50
+ const onSearch = async () => {
51
+ const id = props.modelData.id;
52
+ const menuC = c.panel.view.getController("appmenu");
53
+ if (menuC) {
54
+ const targetMenu = menuC.allAppMenuItems.find((item) => {
55
+ return item.id === id;
56
+ });
57
+ if (targetMenu) {
58
+ const tempContext = c.panel.context.clone();
59
+ const tempParam = c.panel.params;
60
+ tempContext.srfappid = targetMenu.appId || ibiz.env.appId;
61
+ await ibiz.commands.execute(runtime.AppFuncCommand.TAG, targetMenu.appFuncId, tempContext, {
62
+ ...tempParam,
63
+ query: query.value
64
+ }, {});
65
+ }
66
+ }
67
+ };
50
68
  return {
51
69
  ns,
52
70
  classArr,
53
71
  isCollapse,
54
72
  onInput,
73
+ onSearch,
55
74
  c,
56
75
  query,
57
76
  menuAlign
@@ -67,7 +86,8 @@ const PanelIndexViewSearch = /* @__PURE__ */ vue.defineComponent({
67
86
  "model-value": this.query,
68
87
  "class": this.ns.b("search"),
69
88
  "placeholder": ibiz.i18n.t("component.indexSearch.placeholder"),
70
- "onInput": this.onInput
89
+ "onInput": this.onInput,
90
+ "onChange": this.onSearch
71
91
  }, {
72
92
  prefix: () => {
73
93
  return vue.createVNode("ion-icon", {
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var vue3Util = require('@ibiz-template/vue3-util');
6
+ var runtime = require('@ibiz-template/runtime');
7
+ var viewMsgPos = require('./view-msg-pos.cjs');
8
+ var viewMsgPos_provider = require('./view-msg-pos.provider.cjs');
9
+ var viewMsgPos_controller = require('./view-msg-pos.controller.cjs');
10
+
11
+ "use strict";
12
+ const IBizViewMsgPos = vue3Util.withInstall(viewMsgPos.ViewMsgPos, function(v) {
13
+ v.component(viewMsgPos.ViewMsgPos.name, viewMsgPos.ViewMsgPos);
14
+ runtime.registerPanelItemProvider(
15
+ "RAWITEM_VIEWMSG_POS",
16
+ () => new viewMsgPos_provider.ViewMsgPosProvider()
17
+ );
18
+ });
19
+
20
+ exports.ViewMsgPosController = viewMsgPos_controller.ViewMsgPosController;
21
+ exports.IBizViewMsgPos = IBizViewMsgPos;
22
+ exports.default = IBizViewMsgPos;
@@ -0,0 +1,49 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+ var vue3Util = require('@ibiz-template/vue3-util');
5
+ var viewMsgPos_controller = require('./view-msg-pos.controller.cjs');
6
+
7
+ "use strict";
8
+ const ViewMsgPos = /* @__PURE__ */ vue.defineComponent({
9
+ name: "IBizViewMsgPos",
10
+ props: {
11
+ modelData: {
12
+ type: Object,
13
+ required: true
14
+ },
15
+ controller: {
16
+ type: viewMsgPos_controller.ViewMsgPosController,
17
+ required: true
18
+ }
19
+ },
20
+ setup() {
21
+ const ns = vue3Util.useNamespace("view-msg-pos");
22
+ const ctx = vue3Util.useCtx();
23
+ const view = ctx.view;
24
+ return {
25
+ ns,
26
+ view
27
+ };
28
+ },
29
+ render() {
30
+ const c = this.controller;
31
+ if (!this.view.state.isCreated) {
32
+ return;
33
+ }
34
+ const position = c.rawItemParams.position || "BODY";
35
+ const scroll = c.rawItemParams.scroll === "true";
36
+ const viewMessages = this.view.state.viewMessages[position];
37
+ if (viewMessages == null ? void 0 : viewMessages.length) {
38
+ return vue.createVNode("div", {
39
+ "class": this.ns.b()
40
+ }, [vue.createVNode(vue.resolveComponent("view-message"), {
41
+ "messages": viewMessages,
42
+ "scroll": scroll
43
+ }, null)]);
44
+ }
45
+ return null;
46
+ }
47
+ });
48
+
49
+ exports.ViewMsgPos = ViewMsgPos;
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ var runtime = require('@ibiz-template/runtime');
4
+
5
+ "use strict";
6
+ var __defProp = Object.defineProperty;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __publicField = (obj, key, value) => {
9
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
+ return value;
11
+ };
12
+ class ViewMsgPosController extends runtime.PanelItemController {
13
+ constructor() {
14
+ super(...arguments);
15
+ /**
16
+ * 直接内容项参数
17
+ *
18
+ * @author zhanghengfeng
19
+ * @date 2024-04-08 19:04:15
20
+ * @type {IData}
21
+ */
22
+ __publicField(this, "rawItemParams", {});
23
+ }
24
+ async onInit() {
25
+ await super.onInit();
26
+ this.handleRawItemParams();
27
+ }
28
+ /**
29
+ * 处理直接内容项参数
30
+ *
31
+ * @author zhanghengfeng
32
+ * @date 2024-04-08 19:04:59
33
+ * @protected
34
+ */
35
+ handleRawItemParams() {
36
+ var _a;
37
+ const rawItemParams = (_a = this.model.rawItem) == null ? void 0 : _a.rawItemParams;
38
+ if (Array.isArray(rawItemParams)) {
39
+ rawItemParams.forEach((item) => {
40
+ const key = item.key;
41
+ const value = item.value;
42
+ if (key && value) {
43
+ this.rawItemParams[key.toLowerCase()] = value;
44
+ }
45
+ });
46
+ }
47
+ }
48
+ }
49
+
50
+ exports.ViewMsgPosController = ViewMsgPosController;
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ var viewMsgPos_controller = require('./view-msg-pos.controller.cjs');
4
+
5
+ "use strict";
6
+ var __defProp = Object.defineProperty;
7
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
+ var __publicField = (obj, key, value) => {
9
+ __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
+ return value;
11
+ };
12
+ class ViewMsgPosProvider {
13
+ constructor() {
14
+ __publicField(this, "component", "IBizViewMsgPos");
15
+ }
16
+ async createController(panelItem, panel, parent) {
17
+ const c = new viewMsgPos_controller.ViewMsgPosController(panelItem, panel, parent);
18
+ await c.init();
19
+ return c;
20
+ }
21
+ }
22
+
23
+ exports.ViewMsgPosProvider = ViewMsgPosProvider;
@@ -182,6 +182,10 @@ const IBizViewEngine = {
182
182
  "VIEW_DEPANELVIEW",
183
183
  (c) => new panelViewEngine.PanelViewEngine(c)
184
184
  );
185
+ ibiz.engine.register(
186
+ "VIEW_APPPANELVIEW",
187
+ (c) => new panelViewEngine.PanelViewEngine(c)
188
+ );
185
189
  ibiz.engine.register(
186
190
  "VIEW_DECUSTOMVIEW",
187
191
  (c) => new customView_engine.CustomViewEngine(c)
@@ -24,6 +24,14 @@ var App = /* @__PURE__ */ vue.defineComponent({
24
24
  }
25
25
  };
26
26
  document.addEventListener("keydown", listenDevtool);
27
+ const destroyAppHub = () => {
28
+ window.removeEventListener("unload", destroyAppHub);
29
+ ibiz.hub.destroy();
30
+ };
31
+ window.addEventListener("unload", destroyAppHub);
32
+ vue.onUnmounted(() => {
33
+ destroyAppHub();
34
+ });
27
35
  return {
28
36
  modal
29
37
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.6.17",
3
+ "version": "0.7.0",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,13 +30,13 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.1",
32
32
  "@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
33
- "@ibiz-template/core": "0.6.18",
33
+ "@ibiz-template/core": "0.7.0",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.6.18",
36
- "@ibiz-template/runtime": "0.6.18",
37
- "@ibiz-template/theme": "^0.6.0",
38
- "@ibiz-template/vue3-util": "0.6.18",
39
- "@ibiz-template/web-theme": "^1.1.14",
35
+ "@ibiz-template/model-helper": "0.7.0",
36
+ "@ibiz-template/runtime": "0.7.0",
37
+ "@ibiz-template/theme": "^0.7.0",
38
+ "@ibiz-template/vue3-util": "0.7.0",
39
+ "@ibiz-template/web-theme": "^1.1.15",
40
40
  "@ibiz/model-core": "^0.1.20",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",
42
42
  "@monaco-editor/loader": "^1.4.0",
@@ -95,11 +95,11 @@
95
95
  },
96
96
  "peerDependencies": {
97
97
  "@floating-ui/dom": "^1.5.1",
98
- "@ibiz-template/core": "^0.6.0",
99
- "@ibiz-template/model-helper": "^0.6.0",
100
- "@ibiz-template/runtime": "^0.6.0",
101
- "@ibiz-template/theme": "^0.6.0",
102
- "@ibiz-template/vue3-util": "^0.6.0",
98
+ "@ibiz-template/core": "^0.7.0",
99
+ "@ibiz-template/model-helper": "^0.7.0",
100
+ "@ibiz-template/runtime": "^0.7.0",
101
+ "@ibiz-template/theme": "^0.7.0",
102
+ "@ibiz-template/vue3-util": "^0.7.0",
103
103
  "@ibiz/model-core": "^0.1.20",
104
104
  "@imengyu/vue3-context-menu": "^1.3.3",
105
105
  "@monaco-editor/loader": "^1.3.3",
@@ -1 +0,0 @@
1
- System.register(["vue","@ibiz-template/vue3-util","echarts","@ibiz-template/runtime"],(function(e){"use strict";var t,n,r,o,i,a,s,c,l;return{setters:[function(e){t=e.defineComponent,n=e.ref,r=e.onMounted,o=e.createVNode,i=e.resolveComponent},function(e){a=e.useControlController,s=e.useNamespace},function(e){c=e.init},function(e){l=e.ChartController}],execute:function(){e("default",t({name:"IBizChartControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!0}},setup(){const e=a(((...e)=>new l(...e))),t=s("control-".concat(e.model.controlType.toLowerCase())),o=n();return r((()=>{const t=c(o.value);e.initChart(t)})),{c:e,ns:t,chartRef:o}},render(){return o(i("iBizControlBase"),{controller:this.c},{default:()=>[o(i("el-empty"),{class:[this.ns.e("empty"),this.ns.is("no-data",0===this.c.state.items.length)],description:"暂无数据"},null),o("div",{ref:"chartRef",class:[this.ns.e("chart"),this.ns.is("no-data",0===this.c.state.items.length)]},[ibiz.i18n.t("control.chart.chartPlaceholder")])]})}}))}}}));