@ibiz-template/vue3-components 0.7.29 → 0.7.30-alpha.1
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.
- package/dist/chart-x3_XMfQ1.js +1 -0
- package/dist/{index-HNRMy1_g.js → index-Nw4GzACH.js} +1 -1
- package/dist/index-iSl5TkW2.js +4 -0
- package/dist/{index-xa8K5AHD.js → index-qjfHTzTv.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-bhQVAaEM.js → xlsx-util-BqA1Y8VI.js} +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +8 -0
- package/es/control/calendar/calendar.mjs +1 -1
- package/es/control/calendar/components/calendar-daily/calendar-daily.mjs +1 -1
- package/es/control/calendar/components/calendar-week/calendar-week.mjs +1 -1
- package/es/control/calendar/components/custom-calendar/custom-calendar.mjs +1 -1
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.d.ts +8 -2
- package/es/control/chart/chart.mjs +79 -3
- package/es/control/drtab/drtab.mjs +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +2 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +1 -0
- package/es/control/grid/grid/grid-control.util.d.ts +1 -0
- package/es/control/grid/grid/grid-control.util.mjs +14 -1
- package/es/control/grid/grid/grid.d.ts +1 -0
- package/es/control/grid/grid/grid.mjs +5 -2
- package/es/control/grid/grid/index.d.ts +1 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +3 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +11 -7
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +1 -1
- package/es/control/toolbar/toolbar.mjs +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.mjs +5 -5
- package/es/locale/en/index.d.ts +1 -0
- package/es/locale/en/index.mjs +2 -1
- package/es/locale/zh-CN/index.d.ts +1 -0
- package/es/locale/zh-CN/index.mjs +2 -1
- package/es/panel-component/auth-captcha/auth-captcha.mjs +1 -1
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.cjs +8 -0
- package/lib/control/calendar/calendar.cjs +1 -1
- package/lib/control/calendar/components/calendar-daily/calendar-daily.cjs +1 -1
- package/lib/control/calendar/components/calendar-week/calendar-week.cjs +1 -1
- package/lib/control/calendar/components/custom-calendar/custom-calendar.cjs +1 -1
- package/lib/control/chart/chart.cjs +78 -2
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/drtab/drtab.cjs +1 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +2 -1
- package/lib/control/grid/grid/grid-control.util.cjs +14 -1
- package/lib/control/grid/grid/grid.cjs +5 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +10 -6
- package/lib/control/toolbar/toolbar.cjs +1 -1
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.cjs +5 -5
- package/lib/editor/data-picker/ibiz-mpicker/ibiz-mpicker.css +1 -1
- package/lib/locale/en/index.cjs +2 -1
- package/lib/locale/zh-CN/index.cjs +2 -1
- package/lib/panel-component/auth-captcha/auth-captcha.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/package.json +6 -6
- package/dist/chart-4KHwhatb.js +0 -1
- package/dist/index-dIj05Kls.js +0 -4
|
@@ -48,12 +48,20 @@ const ChartControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
48
48
|
required: false
|
|
49
49
|
}
|
|
50
50
|
},
|
|
51
|
-
|
|
51
|
+
emits: ["drillDown"],
|
|
52
|
+
setup(props, {
|
|
53
|
+
emit
|
|
54
|
+
}) {
|
|
52
55
|
const c = vue3Util.useControlController((...args) => new runtime.ChartController(...args));
|
|
53
56
|
const ns = vue3Util.useNamespace("control-".concat(c.model.controlType.toLowerCase()));
|
|
54
57
|
const chartRef = vue.ref();
|
|
55
58
|
const maxHeight = vue.ref(0);
|
|
56
59
|
const uuid = qxUtil.createUUID();
|
|
60
|
+
const showCheck = vue.ref(false);
|
|
61
|
+
const drillDownPos = vue.ref({});
|
|
62
|
+
const drillDownRef = vue.ref();
|
|
63
|
+
let func;
|
|
64
|
+
let tempParams;
|
|
57
65
|
const initSimpleData = () => {
|
|
58
66
|
if (!props.data) {
|
|
59
67
|
return;
|
|
@@ -89,8 +97,24 @@ const ChartControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
97
|
const getGridData = () => {
|
|
90
98
|
return c.state.gridData || [];
|
|
91
99
|
};
|
|
100
|
+
const computedDrillDownPos = (params) => {
|
|
101
|
+
if (params.event) {
|
|
102
|
+
const event = params.event.event;
|
|
103
|
+
event.stopPropagation();
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
const {
|
|
106
|
+
offsetX,
|
|
107
|
+
offsetY
|
|
108
|
+
} = params.event;
|
|
109
|
+
drillDownPos.value = {
|
|
110
|
+
top: "".concat(offsetY, "px"),
|
|
111
|
+
left: "".concat(offsetX + 16, "px")
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
};
|
|
92
115
|
let resizeObserver;
|
|
93
116
|
vue.onMounted(() => {
|
|
117
|
+
var _a, _b;
|
|
94
118
|
const chart = echarts.init(chartRef.value);
|
|
95
119
|
c.initChart(chart);
|
|
96
120
|
window.addEventListener("resize", setHeight);
|
|
@@ -101,7 +125,32 @@ const ChartControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
101
125
|
resizeObserver.observe(chartRef.value);
|
|
102
126
|
}
|
|
103
127
|
setHeight();
|
|
128
|
+
if ((_b = (_a = props.modelData.controlParam) == null ? void 0 : _a.ctrlParams) == null ? void 0 : _b.ENABLEDRILLDOWN) {
|
|
129
|
+
chart.on("click", (params) => {
|
|
130
|
+
tempParams = params;
|
|
131
|
+
chart.dispatchAction({
|
|
132
|
+
type: "hideTip"
|
|
133
|
+
});
|
|
134
|
+
showCheck.value = true;
|
|
135
|
+
c.changeTooltipState(false);
|
|
136
|
+
func = vue3Util.useClickOutside(drillDownRef, () => {
|
|
137
|
+
showCheck.value = false;
|
|
138
|
+
c.changeTooltipState(true);
|
|
139
|
+
func.stop();
|
|
140
|
+
});
|
|
141
|
+
computedDrillDownPos(params);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
104
144
|
});
|
|
145
|
+
const openDrillDown = (_event) => {
|
|
146
|
+
showCheck.value = false;
|
|
147
|
+
if (func) {
|
|
148
|
+
func.stop();
|
|
149
|
+
}
|
|
150
|
+
c.changeTooltipState(true);
|
|
151
|
+
const param = c.computedDrillDownParam(tempParams);
|
|
152
|
+
emit("drillDown", param);
|
|
153
|
+
};
|
|
105
154
|
vue.watch(() => c.state.showGrid, () => {
|
|
106
155
|
setHeight();
|
|
107
156
|
}, {
|
|
@@ -137,6 +186,10 @@ const ChartControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
137
186
|
ns,
|
|
138
187
|
chartRef,
|
|
139
188
|
uuid,
|
|
189
|
+
showCheck,
|
|
190
|
+
drillDownPos,
|
|
191
|
+
drillDownRef,
|
|
192
|
+
openDrillDown,
|
|
140
193
|
renderGrid
|
|
141
194
|
};
|
|
142
195
|
},
|
|
@@ -159,7 +212,30 @@ const ChartControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
159
212
|
}, [vue.createVNode("div", {
|
|
160
213
|
"ref": "chartRef",
|
|
161
214
|
"class": [this.ns.e("chart")]
|
|
162
|
-
}, [ibiz.i18n.t("control.chart.chartPlaceholder")])
|
|
215
|
+
}, [ibiz.i18n.t("control.chart.chartPlaceholder")]), this.showCheck ? vue.createVNode("div", {
|
|
216
|
+
"ref": "drillDownRef",
|
|
217
|
+
"class": this.ns.e("drill-down"),
|
|
218
|
+
"style": this.drillDownPos
|
|
219
|
+
}, [vue.createVNode("div", {
|
|
220
|
+
"class": this.ns.em("drill-down", "item")
|
|
221
|
+
}, [vue.createVNode("svg", {
|
|
222
|
+
"viewBox": "0 0 16 16",
|
|
223
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
224
|
+
"height": "1em",
|
|
225
|
+
"width": "1em",
|
|
226
|
+
"focusable": "false",
|
|
227
|
+
"fill": "currentColor"
|
|
228
|
+
}, [vue.createVNode("g", {
|
|
229
|
+
"id": "aspnormal/preview",
|
|
230
|
+
"stroke-width": "1",
|
|
231
|
+
"fill-rule": "evenodd"
|
|
232
|
+
}, [vue.createVNode("path", {
|
|
233
|
+
"d": "M11.626 0c1.057 0 1.923.818 2 1.855l.005.15v3.411a.6.6 0 0 1-1.192.097l-.008-.097.001-1.348V2.005c0-.41-.31-.749-.705-.799l-.101-.006h-9.62c-.41 0-.75.308-.8.704l-.006.101v11.989c0 .41.308.75.705.8l.101.006h5.906l.017-.004.016-.003h2.074a.598.598 0 1 1 .107 1.187l-.095.01V16H2.006a2.006 2.006 0 0 1-2-1.856L0 13.994V2.005C0 .948.818.082 1.856.005L2.006 0h9.62zm-1.595 6.328a3.669 3.669 0 0 1 3.665 3.665c0 .79-.251 1.523-.678 2.123l2.412 2.412a.6.6 0 1 1-.848.85l-2.41-2.412a3.646 3.646 0 0 1-2.14.692 3.67 3.67 0 0 1-3.667-3.665 3.67 3.67 0 0 1 3.666-3.665zm-5.106 5.29a.6.6 0 0 1 .097 1.191l-.097.008H2.85a.6.6 0 0 1-.097-1.192l.097-.008h2.074zm5.106-4.09a2.468 2.468 0 0 0-2.466 2.465 2.468 2.468 0 0 0 2.466 2.466 2.47 2.47 0 0 0 2.466-2.466 2.469 2.469 0 0 0-2.466-2.465zm-4.815-.126a.6.6 0 0 1 .097 1.193l-.097.007h-2.35A.6.6 0 0 1 2.77 7.41l.098-.008h2.349zm5.58-4a.6.6 0 0 1 .097 1.192l-.097.008H2.867A.6.6 0 0 1 2.77 3.41l.097-.008h7.929z",
|
|
234
|
+
"id": "asp\u5408\u5E76\u5F62\u72B6"
|
|
235
|
+
}, null)])]), vue.createVNode("div", {
|
|
236
|
+
"class": this.ns.em("drill-down", "item-text"),
|
|
237
|
+
"onClick": this.openDrillDown
|
|
238
|
+
}, [ibiz.i18n.t("control.chart.drillDown")])])]) : null]), this.c.state.showGrid ? vue.createVNode("div", {
|
|
163
239
|
"class": this.ns.e("grid")
|
|
164
240
|
}, [this.renderGrid()]) : null])])]
|
|
165
241
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-chart{width:100%;height:100%}.ibiz-control-chart__chart-grid{width:100%;height:100%}.ibiz-control-chart__chart-grid.is-show-grid{display:flex;height:calc(100% - 16px)}.ibiz-control-chart__chart-grid--bottom{flex-direction:column}.ibiz-control-chart__chart-grid--top{flex-direction:column-reverse}.ibiz-control-chart__chart-grid--left{flex-direction:row-reverse}.ibiz-control-chart__chart-grid--right{flex-direction:row}.ibiz-control-chart__chart-grid.is-no-data{display:none}.ibiz-control-chart__chart-grid-container{flex:1;height:50%}.ibiz-control-chart__chart-grid-container.is-bottom{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-top{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-left{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-right{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-no-grid{flex:unset;width:100%;height:100%}.ibiz-control-chart__chart{width:100%;height:100%}.ibiz-control-chart__grid{flex:1;height:auto}.ibiz-control-chart__grid .cell{text-overflow:ellipsis;white-space:nowrap}.ibiz-control-chart__grid .el-table__body-wrapper{border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-chart__empty{display:none;height:100%}.ibiz-control-chart__empty.is-no-data{display:flex}.ibiz-control-chart-chart-container{width:100%;height:100%}
|
|
1
|
+
.ibiz-control-chart{width:100%;height:100%}.ibiz-control-chart__chart-grid{width:100%;height:100%}.ibiz-control-chart__chart-grid.is-show-grid{display:flex;height:calc(100% - 16px)}.ibiz-control-chart__chart-grid--bottom{flex-direction:column}.ibiz-control-chart__chart-grid--top{flex-direction:column-reverse}.ibiz-control-chart__chart-grid--left{flex-direction:row-reverse}.ibiz-control-chart__chart-grid--right{flex-direction:row}.ibiz-control-chart__chart-grid.is-no-data{display:none}.ibiz-control-chart__chart-grid-container{position:relative;flex:1;height:50%}.ibiz-control-chart__chart-grid-container.is-bottom{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-top{width:100%;height:50%;min-height:50%}.ibiz-control-chart__chart-grid-container.is-left{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-right{width:50%;min-width:50%;height:100%}.ibiz-control-chart__chart-grid-container.is-no-grid{flex:unset;width:100%;height:100%}.ibiz-control-chart__chart{width:100%;height:100%}.ibiz-control-chart__drill-down{position:absolute;top:0;left:0;width:150px;padding:var(--ibiz-spacing-tight) 0;background:var(--ibiz-color-bg-1);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small);box-shadow:var(--ibiz-color-elevated)}.ibiz-control-chart__drill-down--item{display:flex;gap:var(--ibiz-spacing-tight);align-items:center;height:40px;padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base-loose);font-size:var(--ibiz-font-size-regular);cursor:pointer}.ibiz-control-chart__drill-down--item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-control-chart__drill-down--item-text{margin-bottom:var(--ibiz-spacing-super-tight)}.ibiz-control-chart__grid{flex:1;height:auto}.ibiz-control-chart__grid .cell{text-overflow:ellipsis;white-space:nowrap}.ibiz-control-chart__grid .el-table__body-wrapper{border-bottom:1px solid var(--ibiz-color-border)}.ibiz-control-chart__empty{display:none;height:100%}.ibiz-control-chart__empty.is-no-data{display:flex}.ibiz-control-chart-chart-container{width:100%;height:100%}
|
|
@@ -5,10 +5,10 @@ var vue3Util = require('@ibiz-template/vue3-util');
|
|
|
5
5
|
var vueRouter = require('vue-router');
|
|
6
6
|
var runtime = require('@ibiz-template/runtime');
|
|
7
7
|
var ramda = require('ramda');
|
|
8
|
+
var core = require('@ibiz-template/core');
|
|
8
9
|
var drtab_controller = require('./drtab.controller.cjs');
|
|
9
10
|
require('./drtab.css');
|
|
10
11
|
var drtabControl_util = require('./drtab-control.util.cjs');
|
|
11
|
-
var core = require('@ibiz-template/core');
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
14
14
|
const DRTabControl = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -40,12 +40,13 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
40
|
};
|
|
41
41
|
},
|
|
42
42
|
render() {
|
|
43
|
+
var _a;
|
|
43
44
|
if (!this.c.state.visible) {
|
|
44
45
|
return null;
|
|
45
46
|
}
|
|
46
47
|
let editor = null;
|
|
47
48
|
const editorProps = {
|
|
48
|
-
style: this.controller.editor.style,
|
|
49
|
+
style: (_a = this.controller.editor) == null ? void 0 : _a.style,
|
|
49
50
|
value: this.controller.value,
|
|
50
51
|
data: this.controller.data,
|
|
51
52
|
controller: this.controller.editor,
|
|
@@ -339,12 +339,25 @@ function useAppGridBase(c, props) {
|
|
|
339
339
|
};
|
|
340
340
|
}
|
|
341
341
|
};
|
|
342
|
+
const headerDragend = (newWidth, oldWidth, column) => {
|
|
343
|
+
const { property } = column;
|
|
344
|
+
const columnC = c.columns[property];
|
|
345
|
+
if (columnC.isAdaptiveColumn) {
|
|
346
|
+
columnC.isAdaptiveColumn = false;
|
|
347
|
+
const index = renderColumns.value.findIndex((renderColumn) => {
|
|
348
|
+
const renderColumnC = c.columns[renderColumn.codeName];
|
|
349
|
+
return renderColumnC.isAdaptiveColumn;
|
|
350
|
+
});
|
|
351
|
+
c.hasAdaptiveColumn = index !== -1;
|
|
352
|
+
}
|
|
353
|
+
};
|
|
342
354
|
return {
|
|
343
355
|
tableData,
|
|
344
356
|
renderColumns,
|
|
345
357
|
defaultSort,
|
|
346
358
|
summaryMethod,
|
|
347
|
-
spanMethod
|
|
359
|
+
spanMethod,
|
|
360
|
+
headerDragend
|
|
348
361
|
};
|
|
349
362
|
}
|
|
350
363
|
function useGridHeaderStyle(tableRef, ns) {
|
|
@@ -35,7 +35,7 @@ function renderColumn(c, model, renderColumns, index) {
|
|
|
35
35
|
} = model;
|
|
36
36
|
const columnC = c.columns[columnName];
|
|
37
37
|
const columnState = c.state.columnStates.find((item) => item.key === columnName);
|
|
38
|
-
const widthFlexGrow = columnC.isAdaptiveColumn || index === renderColumns.length - 1;
|
|
38
|
+
const widthFlexGrow = columnC.isAdaptiveColumn || !c.hasAdaptiveColumn && index === renderColumns.length - 1;
|
|
39
39
|
const widthName = widthFlexGrow ? "min-width" : "width";
|
|
40
40
|
return vue.createVNode(vue.resolveComponent("el-table-column"), vue.mergeProps({
|
|
41
41
|
"label": model.caption,
|
|
@@ -202,7 +202,8 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
202
202
|
renderColumns,
|
|
203
203
|
defaultSort,
|
|
204
204
|
summaryMethod,
|
|
205
|
-
spanMethod
|
|
205
|
+
spanMethod,
|
|
206
|
+
headerDragend
|
|
206
207
|
} = gridControl_util.useAppGridBase(c, props);
|
|
207
208
|
const {
|
|
208
209
|
renderPopover
|
|
@@ -314,6 +315,7 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
314
315
|
renderNoData,
|
|
315
316
|
summaryMethod,
|
|
316
317
|
spanMethod,
|
|
318
|
+
headerDragend,
|
|
317
319
|
renderPopover,
|
|
318
320
|
defaultSort,
|
|
319
321
|
renderBatchToolBar,
|
|
@@ -352,6 +354,7 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
352
354
|
"onRowDblclick": this.onDbRowClick,
|
|
353
355
|
"onSelectionChange": this.onSelectionChange,
|
|
354
356
|
"onSortChange": this.onSortChange,
|
|
357
|
+
"onHeaderDragend": this.headerDragend,
|
|
355
358
|
"tooltip-effect": "light",
|
|
356
359
|
"scrollbar-always-on": true
|
|
357
360
|
}, {
|
|
@@ -37,16 +37,20 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
props.controller.openLinkView(props.row, event);
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
|
-
const CustomHtml = vue.
|
|
41
|
-
|
|
40
|
+
const CustomHtml = vue.ref("");
|
|
41
|
+
vue.watch(() => props.row, async () => {
|
|
42
|
+
CustomHtml.value = await props.controller.getCustomHtml(props.row);
|
|
43
|
+
}, {
|
|
44
|
+
deep: true
|
|
42
45
|
});
|
|
43
46
|
const fieldValue = vue.computed(() => props.row.data[props.controller.fieldName]);
|
|
44
47
|
const formatValue = vue.computed(() => props.controller.formatValue(fieldValue.value));
|
|
45
48
|
const percent = vue.computed(() => {
|
|
46
49
|
const {
|
|
47
|
-
grid
|
|
50
|
+
grid,
|
|
51
|
+
fieldName
|
|
48
52
|
} = props.controller;
|
|
49
|
-
if (!grid.
|
|
53
|
+
if (!grid.percentkeys.includes(fieldName)) {
|
|
50
54
|
return "";
|
|
51
55
|
}
|
|
52
56
|
const value = Number(fieldValue.value);
|
|
@@ -54,8 +58,8 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
54
58
|
const {
|
|
55
59
|
totalResult = {}
|
|
56
60
|
} = grid.state;
|
|
57
|
-
const total = totalResult[
|
|
58
|
-
if (total) {
|
|
61
|
+
const total = totalResult[fieldName];
|
|
62
|
+
if (total && !Number.isNaN(total)) {
|
|
59
63
|
return ibiz.util.text.format("".concat(value / total), "0.##%");
|
|
60
64
|
}
|
|
61
65
|
}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
5
|
var runtime = require('@ibiz-template/runtime');
|
|
6
|
+
var core = require('@ibiz-template/core');
|
|
6
7
|
var exportExcel = require('./export-excel/export-excel.cjs');
|
|
7
8
|
var shortCutButton = require('./short-cut-button/short-cut-button.cjs');
|
|
8
9
|
require('./toolbar.css');
|
|
9
|
-
var core = require('@ibiz-template/core');
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
function _isSlot(s) {
|
|
@@ -332,12 +332,12 @@ const IBizMPicker = /* @__PURE__ */ vue.defineComponent({
|
|
|
332
332
|
default: () => [_slot]
|
|
333
333
|
}), !this.readonly && vue.createVNode("div", {
|
|
334
334
|
"class": this.ns.e("buns-position")
|
|
335
|
-
}, [vue.createVNode("div", {
|
|
336
|
-
"class": this.ns.e("btns")
|
|
337
|
-
|
|
338
|
-
|
|
335
|
+
}, [this.c.model.pickupAppViewId ? vue.createVNode("div", {
|
|
336
|
+
"class": this.ns.e("btns"),
|
|
337
|
+
"onClick": this.openPickUpView
|
|
338
|
+
}, [vue.createVNode("ion-icon", {
|
|
339
339
|
"name": "search"
|
|
340
|
-
}, null) : null])]
|
|
340
|
+
}, null)]) : null])];
|
|
341
341
|
const readonlyContent = vue.createVNode("div", {
|
|
342
342
|
"class": (this.ns.b(), this.ns.m("readonly"))
|
|
343
343
|
}, [this.valueText]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";.ibiz-mpicker{display:flex}.ibiz-mpicker input::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-mpicker input::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-mpicker .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-mpicker .el-select{width:100%}.ibiz-mpicker ion-icon{font-size:var(--ibiz-form-item-font-size);cursor:pointer}.ibiz-mpicker__buns-position{right:26px;
|
|
1
|
+
@charset "UTF-8";.ibiz-mpicker{display:flex}.ibiz-mpicker input::-moz-placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-mpicker input::placeholder{color:var(--ibiz-form-item-placeholder-color)}.ibiz-mpicker .el-input.is-disabled .el-input__inner{color:var(--ibiz-form-item-disabled-color);border-color:var(--ibiz-form-item-disabled-border-color)}.ibiz-mpicker .el-select{width:100%}.ibiz-mpicker ion-icon{font-size:var(--ibiz-form-item-font-size);cursor:pointer}.ibiz-mpicker__buns-position{position:absolute;right:26px;z-index:1;display:inline-block;width:30px;height:100%;cursor:pointer}.ibiz-mpicker__btns{position:absolute;right:0;width:100%;height:100%;color:var(--ibiz-form-item-placeholder-color);cursor:pointer;display:flex;align-items:center;justify-content:center}.ibiz-mpicker--disabled ion-icon{pointer-events:none}.ibiz-mpicker--readonly{font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-readonly-color)}.ibiz-mpicker-form-default-content{display:none}.ibiz-form-item .ibiz-mpicker.is-show-default:hover .ibiz-mpicker-form-default-content{display:none}.ibiz-form-item .ibiz-mpicker.is-show-default:hover .ibiz-mpicker-select{display:block}.ibiz-form-item .ibiz-mpicker.is-show-default .ibiz-mpicker-form-default-content{display:flex;align-items:center;width:100%;height:var(--ibiz-editor-default-line-height);padding:var(--ibiz-form-item-hover-edit-padding);font-family:Arial,sans-serif;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-editor-default-line-height);color:var(--ibiz-form-item-text-color)}.ibiz-form-item .ibiz-mpicker.is-show-default .ibiz-mpicker-form-default-content .ibiz-mpicker-content-item{height:calc(var(--ibiz-editor-default-line-height) - var(--ibiz-spacing-tight));padding:0 var(--ibiz-spacing-tight);margin:2px 6px 2px 0;font-size:var(--ibiz-font-size-small);line-height:calc(var(--ibiz-editor-default-line-height) - var(--ibiz-spacing-tight));color:var(--ibiz-editor-default-text-color);background-color:var(--ibiz-color-fill-0);border:1px solid transparent;border-radius:var(--ibiz-border-radius-small)}.ibiz-form-item .ibiz-mpicker.is-show-default .ibiz-mpicker-select{display:none}.ibiz-form-item .ibiz-mpicker.is-show-default.is-editable .ibiz-mpicker-form-default-content{display:none}.ibiz-form-item .ibiz-mpicker.is-show-default.is-editable .ibiz-mpicker-select{display:block}
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
var core = require('@ibiz-template/core');
|
|
5
6
|
var authCaptcha_controller = require('./auth-captcha.controller.cjs');
|
|
6
7
|
require('./auth-captcha.css');
|
|
7
|
-
var core = require('@ibiz-template/core');
|
|
8
8
|
|
|
9
9
|
"use strict";
|
|
10
10
|
const AuthCaptcha = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var vue = require('vue');
|
|
6
6
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
7
|
+
var core = require('@ibiz-template/core');
|
|
7
8
|
var panelButton_controller = require('./panel-button.controller.cjs');
|
|
8
9
|
require('./panel-button.css');
|
|
9
|
-
var core = require('@ibiz-template/core');
|
|
10
10
|
|
|
11
11
|
"use strict";
|
|
12
12
|
const PanelButton = /* @__PURE__ */ vue.defineComponent({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.30-alpha.1",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -30,15 +30,15 @@
|
|
|
30
30
|
"@floating-ui/dom": "^1.5.3",
|
|
31
31
|
"@ibiz-template-plugin/ai-chat": "^0.0.5",
|
|
32
32
|
"@ibiz-template-plugin/gantt": "0.1.8-alpha.6",
|
|
33
|
-
"@ibiz-template-plugin/bi-report": "0.0.
|
|
33
|
+
"@ibiz-template-plugin/bi-report": "0.0.10",
|
|
34
34
|
"@ibiz-template/core": "0.7.28",
|
|
35
35
|
"@ibiz-template/devtool": "0.0.1-dev.6",
|
|
36
|
-
"@ibiz-template/model-helper": "0.7.
|
|
37
|
-
"@ibiz-template/runtime": "0.7.
|
|
36
|
+
"@ibiz-template/model-helper": "0.7.30-alpha.0",
|
|
37
|
+
"@ibiz-template/runtime": "0.7.30-alpha.0",
|
|
38
38
|
"@ibiz-template/theme": "^0.7.0",
|
|
39
|
-
"@ibiz-template/vue3-util": "0.7.
|
|
39
|
+
"@ibiz-template/vue3-util": "0.7.30-alpha.0",
|
|
40
40
|
"@ibiz-template/web-theme": "^1.1.18",
|
|
41
|
-
"@ibiz/model-core": "^0.1.
|
|
41
|
+
"@ibiz/model-core": "^0.1.44",
|
|
42
42
|
"@imengyu/vue3-context-menu": "^1.3.5",
|
|
43
43
|
"@monaco-editor/loader": "^1.4.0",
|
|
44
44
|
"@wangeditor/editor": "^5.1.23",
|
package/dist/chart-4KHwhatb.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
System.register(["vue","@ibiz-template/vue3-util","echarts","qx-util","@ibiz-template/runtime"],(function(e){"use strict";var t,i,s,r,a,n,o,d,c,l,h,u,m,p;return{setters:[function(e){t=e.defineComponent,i=e.ref,s=e.watch,r=e.onMounted,a=e.onBeforeUnmount,n=e.createVNode,o=e.resolveComponent,d=e.nextTick,c=e.isVNode},function(e){l=e.useControlController,h=e.useNamespace},function(e){u=e.init},function(e){m=e.createUUID},function(e){p=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},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1}},setup(e){const t=l(((...e)=>new p(...e))),f=h("control-".concat(t.model.controlType.toLowerCase())),v=i(),b=i(0),g=m(),y=()=>{e.data&&(t.state.items=e.data,t.afterLoad({},t.state.items))};t.evt.on("onCreated",(async()=>{e.isSimple&&(y(),t.state.isSimple=!0,t.state.isLoaded=!0)})),s((()=>e.data),(()=>{e.isSimple&&y()}),{deep:!0});const w=async()=>{await d();const e=document.getElementById(g);e&&("bottom"===t.state.gridPosition||"top"===t.state.gridPosition?b.value=e.offsetHeight/2-8:b.value=e.offsetHeight-16)};let C;r((()=>{const e=u(v.value);t.initChart(e),window.addEventListener("resize",w),v.value&&ResizeObserver&&(C=new ResizeObserver((()=>{t.resizeChart()})),C.observe(v.value)),w()})),s((()=>t.state.showGrid),(()=>{w()}),{immediate:!0});return a((()=>{window.removeEventListener("resize",w),null==C||C.disconnect()})),{c:t,ns:f,chartRef:v,uuid:g,renderGrid:()=>{let e;return n(o("el-table"),{ref:"tableRef",data:t.state.gridData||[],border:!0,style:{width:"100%"},"max-height":b.value,"header-row-class-name":f.e("grid-header")},"function"==typeof(i=e=t.state.gridHeaders.map((e=>n(o("el-table-column"),{prop:e.id,align:"center",label:e.name},null))))||"[object Object]"===Object.prototype.toString.call(i)&&!c(i)?e:{default:()=>[e]});var i}}},render(){return n(o("iBizControlBase"),{controller:this.c},{default:()=>[n("div",{id:this.uuid,class:this.ns.b("chart-container")},[n(o("el-empty"),{class:[this.ns.e("empty"),this.ns.is("no-data",0===this.c.state.items.length)],description:ibiz.i18n.t("control.common.currentNoData")},null),n("div",{class:[this.ns.e("chart-grid"),this.ns.is("no-data",0===this.c.state.items.length),this.ns.is("show-grid",this.c.state.showGrid),{[this.ns.em("chart-grid",this.c.state.gridPosition)]:this.c.state.showGrid}]},[n("div",{class:[this.ns.e("chart-grid-container"),this.ns.is(this.c.state.gridPosition,this.c.state.showGrid),this.ns.is("no-grid",!this.c.state.showGrid)]},[n("div",{ref:"chartRef",class:[this.ns.e("chart")]},[ibiz.i18n.t("control.chart.chartPlaceholder")])]),this.c.state.showGrid?n("div",{class:this.ns.e("grid")},[this.renderGrid()]):null])])]})}}))}}}));
|