@ibiz-template/vue3-components 0.7.30-alpha.3 → 0.7.31-alpha.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.
- package/dist/chart-0UV2FAN6.js +1 -0
- package/dist/index-YQyitjSg.js +1 -0
- package/dist/index-maJGu4b8.js +4 -0
- package/dist/index-trS6uS3E.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/wang-editor-AcjI1Mdj.js +1 -0
- package/dist/{xlsx-util-cTIccUxx.js → xlsx-util-OUxT4A8O.js} +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
- package/es/common/fullscreen-toolbar/fullscreen-toolbar.mjs +10 -0
- package/es/common/index.mjs +2 -0
- package/es/common/pql-editor/components/index.d.ts +1 -0
- package/es/common/pql-editor/components/index.mjs +3 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.d.ts +28 -0
- package/es/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.mjs +49 -0
- package/es/common/pql-editor/pql-editor.css +1 -0
- package/es/common/pql-editor/pql-editor.d.ts +68 -0
- package/es/common/pql-editor/pql-editor.mjs +606 -0
- package/es/common/pql-editor/pql-editor.module.d.ts +47 -0
- package/es/common/pql-editor/pql-editor.module.mjs +176 -0
- package/es/common/pql-editor/utils/index.d.ts +15 -0
- package/es/common/pql-editor/utils/index.mjs +270 -0
- package/es/control/chart/chart.css +1 -1
- package/es/control/chart/chart.d.ts +5 -5
- package/es/control/chart/chart.mjs +60 -36
- package/es/control/dashboard/custom-dashboard-container/custom-dashboard-container.d.ts +16 -13
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +8 -0
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +12 -2
- package/es/control/dashboard/portlet/report-portlet/index.d.ts +1 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.d.ts +1 -0
- package/es/control/dashboard/portlet/report-portlet/report-portlet.mjs +10 -2
- package/es/control/dashboard/portlet/report-portlet/report-portlet.provider.d.ts +2 -2
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +15 -12
- package/es/control/grid/grid/grid.mjs +2 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -2
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +32 -2
- package/es/control/grid/grid-column/grid-field-column/index.d.ts +4 -0
- package/es/control/list/list.mjs +13 -1
- package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/es/control/search-bar/filter-tree/filter-tree.d.ts +30 -3
- package/es/control/search-bar/filter-tree/filter-tree.mjs +83 -9
- package/es/control/search-bar/search-bar.mjs +10 -1
- package/es/control/tree-grid/index.d.ts +1 -0
- package/es/control/tree-grid/tree-grid.d.ts +1 -0
- package/es/control/tree-grid/tree-grid.mjs +4 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/index.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.d.ts +1 -1
- package/es/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.mjs +4 -9
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -1
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -1
- package/es/editor/carousel/ibiz-carousel/ibiz-carousel.d.ts +1 -1
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -1
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -1
- package/es/editor/check-box-list/checkbox-list-editor.controller.d.ts +7 -0
- package/es/editor/check-box-list/checkbox-list-editor.controller.mjs +11 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.mjs +2 -1
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -1
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +2 -2
- package/es/editor/data-picker/ibiz-picker-link/ibiz-picker-link.d.ts +1 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -1
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -1
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +1 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.mjs +1 -1
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -1
- package/es/editor/html/wang-editor/wang-editor.mjs +3 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -1
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -1
- package/es/editor/preset/preset-rawitem/ibiz-preset-rawitem/ibiz-preset-rawitem.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -1
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.mjs +2 -1
- package/es/editor/radio-button-list/radio-button-list.controller.d.ts +8 -0
- package/es/editor/radio-button-list/radio-button-list.controller.mjs +23 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +1 -1
- package/es/editor/raw/ibiz-raw/ibiz-raw.d.ts +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -1
- package/es/editor/span/span/span.css +1 -1
- package/es/editor/span/span/span.d.ts +1 -1
- package/es/editor/span/span/span.mjs +2 -1
- package/es/editor/span/span-link/span-link.d.ts +1 -1
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -1
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -1
- package/es/editor/text-box/input/input.d.ts +1 -1
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -1
- package/es/editor/upload/ibiz-image-preview/ibiz-image-preview.d.ts +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -1
- package/es/editor/user/ibiz-searchcond-edit/ibiz-searchcond-edit.d.ts +1 -1
- package/es/interface/i-pql-item.d.ts +52 -0
- package/es/interface/i-pql-item.mjs +1 -0
- package/es/interface/i-pql-node.d.ts +37 -0
- package/es/interface/i-pql-node.mjs +1 -0
- package/es/interface/i-schema-field.d.ts +51 -0
- package/es/interface/i-schema-field.mjs +1 -0
- package/es/interface/index.d.ts +3 -0
- package/es/interface/index.mjs +5 -0
- package/es/locale/en/index.d.ts +9 -4
- package/es/locale/en/index.mjs +6 -6
- package/es/locale/zh-CN/index.d.ts +9 -4
- package/es/locale/zh-CN/index.mjs +6 -6
- package/es/panel-component/short-cut/index.d.ts +1 -1
- package/es/panel-component/short-cut/short-cut.d.ts +1 -1
- package/es/util/fullscreen/fullscreen-util.d.ts +8 -2
- package/es/util/fullscreen/fullscreen-util.mjs +22 -2
- package/es/view-engine/edit-view.engine.mjs +28 -32
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.cjs +10 -0
- package/lib/common/fullscreen-toolbar/fullscreen-toolbar.css +1 -1
- package/lib/common/index.cjs +2 -0
- package/lib/common/pql-editor/components/index.cjs +7 -0
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.cjs +51 -0
- package/lib/common/pql-editor/components/pql-editor-suggestion/pql-editor-suggestion.css +1 -0
- package/lib/common/pql-editor/pql-editor.cjs +608 -0
- package/lib/common/pql-editor/pql-editor.css +1 -0
- package/lib/common/pql-editor/pql-editor.module.cjs +182 -0
- package/lib/common/pql-editor/utils/index.cjs +280 -0
- package/lib/control/chart/chart.cjs +59 -35
- package/lib/control/chart/chart.css +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +12 -2
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/dashboard/portlet/report-portlet/report-portlet.cjs +9 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/grid/grid/grid.cjs +2 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +32 -2
- package/lib/control/list/list.cjs +13 -1
- package/lib/control/search-bar/filter-tree/filter-tree.cjs +82 -8
- package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
- package/lib/control/search-bar/search-bar.cjs +10 -1
- package/lib/control/tree-grid/tree-grid.cjs +4 -1
- package/lib/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-field-column.cjs +3 -8
- package/lib/editor/check-box-list/checkbox-list-editor.controller.cjs +11 -0
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.cjs +2 -1
- package/lib/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.css +1 -1
- package/lib/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.cjs +1 -1
- package/lib/editor/html/wang-editor/wang-editor.cjs +3 -0
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.cjs +2 -1
- package/lib/editor/radio-button-list/ibiz-radio/ibiz-radio.css +1 -1
- package/lib/editor/radio-button-list/radio-button-list.controller.cjs +23 -0
- package/lib/editor/span/span/span.cjs +2 -1
- package/lib/editor/span/span/span.css +1 -1
- package/lib/interface/i-pql-item.cjs +3 -0
- package/lib/interface/i-pql-node.cjs +3 -0
- package/lib/interface/i-schema-field.cjs +3 -0
- package/lib/interface/index.cjs +7 -0
- package/lib/locale/en/index.cjs +6 -6
- package/lib/locale/zh-CN/index.cjs +6 -6
- package/lib/util/fullscreen/fullscreen-util.cjs +22 -2
- package/lib/view-engine/edit-view.engine.cjs +28 -32
- package/package.json +10 -9
- package/dist/chart-JFzIz6Oa.js +0 -1
- package/dist/index-Nw4GzACH.js +0 -1
- package/dist/index-Va9AxP7w.js +0 -4
- package/dist/index-qjfHTzTv.js +0 -1
- package/dist/wang-editor-YqnK5uQU.js +0 -1
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.28_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.30_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 +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.28_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.30_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 +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-portlet-layout{--ibiz-portlet-layout-bg-color:transparent;--ibiz-portlet-layout-header-height:50px;--ibiz-portlet-layout-header-padding:calc(var(--ibiz-spacing-base-tight) + 2px) var(--ibiz-spacing-base);--ibiz-portlet-layout-header-margin:var(--ibiz-spacing-none);--ibiz-portlet-layout-header-bg-color:var(--ibiz-color-bg-1);--ibiz-portlet-layout-header-border-bottom:var(--ibiz-border);--ibiz-portlet-layout-caption-max-width:300px;--ibiz-portlet-layout-caption-font-weight:var(--ibiz-font-weight-regular);--ibiz-portlet-layout-caption-font-size:var(--ibiz-font-size-header-5);--ibiz-portlet-layout-caption-color:var(--ibiz-text-color-primary);--ibiz-portlet-layout-content-bg-color:var(--ibiz-color-bg-1);--ibiz-portlet-layout-content-padding:var(--ibiz-spacing-none);--ibiz-portlet-layout-content-margin:var(--ibiz-spacing-none);--ibiz-portlet-layout-padding:var(--ibiz-spacing-tight);width:100%;height:100%;padding:var(--ibiz-portlet-layout-padding);background-color:var(--ibiz-portlet-layout-bg-color)}.ibiz-portlet-layout__caption{max-width:var(--ibiz-portlet-layout-caption-max-width);height:100%;padding:var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-base)}.ibiz-portlet-layout__caption-text{font-size:var(--ibiz-portlet-layout-caption-font-size);font-weight:var(--ibiz-portlet-layout-caption-font-weight);line-height:var(--ibiz-portlet-layout-caption-font-size);color:var(--ibiz-portlet-layout-caption-color)}.ibiz-portlet-layout__caption::before{position:absolute;top:50%;left:0;width:4px;height:var(--ibiz-width-icon-large);content:"";background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-extra-small);transform:translateY(-50%)}.ibiz-portlet-layout.is-no-header>.ibiz-portlet-layout-content{height:100%}.ibiz-portlet-layout-header{display:flex;justify-content:space-between;height:var(--ibiz-portlet-layout-header-height);padding:var(--ibiz-portlet-layout-header-padding);margin:var(--ibiz-portlet-layout-header-margin);background-color:var(--ibiz-portlet-layout-header-bg-color);border-bottom:var(--ibiz-portlet-layout-header-border-bottom)}.ibiz-portlet-layout-header__left{position:relative}.ibiz-portlet-layout-content{height:calc(100% - var(--ibiz-portlet-layout-header-height));padding:var(--ibiz-portlet-layout-content-padding);margin:var(--ibiz-portlet-layout-content-margin);overflow-y:scroll;background-color:var(--ibiz-portlet-layout-content-bg-color)}
|
|
1
|
+
.ibiz-portlet-layout{--ibiz-portlet-layout-bg-color:transparent;--ibiz-portlet-layout-header-height:50px;--ibiz-portlet-layout-header-padding:calc(var(--ibiz-spacing-base-tight) + 2px) var(--ibiz-spacing-base);--ibiz-portlet-layout-header-margin:var(--ibiz-spacing-none);--ibiz-portlet-layout-header-bg-color:var(--ibiz-color-bg-1);--ibiz-portlet-layout-header-border-bottom:var(--ibiz-border);--ibiz-portlet-layout-caption-max-width:300px;--ibiz-portlet-layout-caption-font-weight:var(--ibiz-font-weight-regular);--ibiz-portlet-layout-caption-font-size:var(--ibiz-font-size-header-5);--ibiz-portlet-layout-caption-color:var(--ibiz-text-color-primary);--ibiz-portlet-layout-content-bg-color:var(--ibiz-color-bg-1);--ibiz-portlet-layout-content-padding:var(--ibiz-spacing-none);--ibiz-portlet-layout-content-margin:var(--ibiz-spacing-none);--ibiz-portlet-layout-padding:var(--ibiz-spacing-tight);width:100%;height:100%;padding:var(--ibiz-portlet-layout-padding);background-color:var(--ibiz-portlet-layout-bg-color)}.ibiz-portlet-layout__caption{max-width:var(--ibiz-portlet-layout-caption-max-width);height:100%;padding:var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-base)}.ibiz-portlet-layout__caption-text{font-size:var(--ibiz-portlet-layout-caption-font-size);font-weight:var(--ibiz-portlet-layout-caption-font-weight);line-height:var(--ibiz-portlet-layout-caption-font-size);color:var(--ibiz-portlet-layout-caption-color)}.ibiz-portlet-layout__caption::before{position:absolute;top:50%;left:0;width:4px;height:var(--ibiz-width-icon-large);content:"";background-color:var(--ibiz-color-primary);border-radius:var(--ibiz-border-radius-extra-small);transform:translateY(-50%)}.ibiz-portlet-layout__caption.is-link{cursor:pointer}.ibiz-portlet-layout__caption.is-link:hover{color:var(--ibiz-color-link)}.ibiz-portlet-layout.is-no-header>.ibiz-portlet-layout-content{height:100%}.ibiz-portlet-layout-header{display:flex;justify-content:space-between;height:var(--ibiz-portlet-layout-header-height);padding:var(--ibiz-portlet-layout-header-padding);margin:var(--ibiz-portlet-layout-header-margin);background-color:var(--ibiz-portlet-layout-header-bg-color);border-bottom:var(--ibiz-portlet-layout-header-border-bottom)}.ibiz-portlet-layout-header__left{position:relative}.ibiz-portlet-layout-content{height:calc(100% - var(--ibiz-portlet-layout-header-height));padding:var(--ibiz-portlet-layout-content-padding);margin:var(--ibiz-portlet-layout-content-margin);overflow-y:scroll;background-color:var(--ibiz-portlet-layout-content-bg-color)}
|
|
@@ -26,6 +26,12 @@ const ReportPortlet = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const report = (_b = props.modelData.controls) == null ? void 0 : _b.find((item) => {
|
|
27
27
|
return item.controlType === runtime.ControlType.REPORT_PANEL;
|
|
28
28
|
});
|
|
29
|
+
const linkAction = vue.computed(() => {
|
|
30
|
+
const {
|
|
31
|
+
uiactionGroupDetails = []
|
|
32
|
+
} = props.controller.model.uiactionGroup || {};
|
|
33
|
+
return uiactionGroupDetails.find((x) => x.uiactionId && x.uiactionId.startsWith("bi_report_view"));
|
|
34
|
+
});
|
|
29
35
|
let timerTag;
|
|
30
36
|
vue.onMounted(() => {
|
|
31
37
|
const timer = props.controller.model.timer;
|
|
@@ -40,7 +46,8 @@ const ReportPortlet = /* @__PURE__ */ vue.defineComponent({
|
|
|
40
46
|
});
|
|
41
47
|
return {
|
|
42
48
|
ns,
|
|
43
|
-
report
|
|
49
|
+
report,
|
|
50
|
+
linkAction
|
|
44
51
|
};
|
|
45
52
|
},
|
|
46
53
|
render() {
|
|
@@ -52,6 +59,7 @@ const ReportPortlet = /* @__PURE__ */ vue.defineComponent({
|
|
|
52
59
|
} = this.controller;
|
|
53
60
|
return vue.createVNode(vue.resolveComponent("iBizPortletLayout"), {
|
|
54
61
|
"controller": this.controller,
|
|
62
|
+
"linkAction": this.linkAction,
|
|
55
63
|
"class": classArr
|
|
56
64
|
}, _isSlot(_slot = vue.h(vue.resolveComponent("IBizControlShell"), {
|
|
57
65
|
context,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.30_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');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -336,7 +336,7 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
336
336
|
"controller": this.c,
|
|
337
337
|
"style": this.headerCssVars
|
|
338
338
|
}, {
|
|
339
|
-
default: () => [vue.createVNode(vue.resolveComponent("el-table"), {
|
|
339
|
+
default: () => [vue.createVNode(vue.resolveComponent("el-table"), vue.mergeProps({
|
|
340
340
|
"ref": "tableRef",
|
|
341
341
|
"class": this.ns.e("table"),
|
|
342
342
|
"default-sort": this.defaultSort,
|
|
@@ -357,7 +357,7 @@ const GridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
357
357
|
"onHeaderDragend": this.headerDragend,
|
|
358
358
|
"tooltip-effect": "light",
|
|
359
359
|
"scrollbar-always-on": true
|
|
360
|
-
}, {
|
|
360
|
+
}, this.$attrs), {
|
|
361
361
|
empty: this.renderNoData,
|
|
362
362
|
default: () => {
|
|
363
363
|
return [this.c.enableRowEditOrder && this.renderDragIconColumn(), !state.singleSelect && vue.createVNode(vue.resolveComponent("el-table-column"), {
|
|
@@ -41,7 +41,8 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
41
41
|
vue.watch(() => props.row, async () => {
|
|
42
42
|
CustomHtml.value = await props.controller.getCustomHtml(props.row);
|
|
43
43
|
}, {
|
|
44
|
-
deep: true
|
|
44
|
+
deep: true,
|
|
45
|
+
immediate: true
|
|
45
46
|
});
|
|
46
47
|
const fieldValue = vue.computed(() => props.row.data[props.controller.fieldName]);
|
|
47
48
|
const formatValue = vue.computed(() => props.controller.formatValue(fieldValue.value));
|
|
@@ -89,6 +90,25 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
89
90
|
}
|
|
90
91
|
};
|
|
91
92
|
vue3Util.useCodeListListen(props.controller.model.appCodeListId, props.controller.context.srfappid, fn);
|
|
93
|
+
const findLayoutPanel = () => {
|
|
94
|
+
var _a;
|
|
95
|
+
const {
|
|
96
|
+
controlRenders = []
|
|
97
|
+
} = props.controller.model;
|
|
98
|
+
return (_a = controlRenders.find((renderItem) => renderItem.renderType === "LAYOUTPANEL")) == null ? void 0 : _a.layoutPanel;
|
|
99
|
+
};
|
|
100
|
+
const renderPanelItemLayout = (item, modelData) => {
|
|
101
|
+
const {
|
|
102
|
+
context,
|
|
103
|
+
params
|
|
104
|
+
} = props.controller;
|
|
105
|
+
return vue.createVNode(vue.resolveComponent("iBizControlShell"), {
|
|
106
|
+
"data": item,
|
|
107
|
+
"modelData": modelData,
|
|
108
|
+
"context": context,
|
|
109
|
+
"params": params
|
|
110
|
+
}, null);
|
|
111
|
+
};
|
|
92
112
|
return {
|
|
93
113
|
ns,
|
|
94
114
|
onCellClick,
|
|
@@ -102,7 +122,9 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
102
122
|
codeListValue,
|
|
103
123
|
tooltip,
|
|
104
124
|
zIndex,
|
|
105
|
-
codeListItems
|
|
125
|
+
codeListItems,
|
|
126
|
+
findLayoutPanel,
|
|
127
|
+
renderPanelItemLayout
|
|
106
128
|
};
|
|
107
129
|
},
|
|
108
130
|
render() {
|
|
@@ -117,11 +139,19 @@ const GridFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
117
139
|
"zIndex": this.zIndex
|
|
118
140
|
}, null) : null;
|
|
119
141
|
let content = null;
|
|
142
|
+
const panel = this.findLayoutPanel();
|
|
120
143
|
if (c.isCustomCode) {
|
|
121
144
|
content = vue.createVNode("span", {
|
|
122
145
|
"class": this.ns.e("script"),
|
|
123
146
|
"innerHTML": this.CustomHtml
|
|
124
147
|
}, null);
|
|
148
|
+
} else if (panel) {
|
|
149
|
+
content = vue.createVNode(vue.resolveComponent("iBizControlShell"), {
|
|
150
|
+
"data": this.row.data,
|
|
151
|
+
"modelData": panel,
|
|
152
|
+
"context": c.context,
|
|
153
|
+
"params": c.params
|
|
154
|
+
}, null);
|
|
125
155
|
} else if (c.codeList) {
|
|
126
156
|
content = vue.createVNode(vue.resolveComponent("iBizCodeList"), {
|
|
127
157
|
"class": this.ns.e("text"),
|
|
@@ -83,6 +83,15 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
});
|
|
84
84
|
const infiniteScroll = vue.ref();
|
|
85
85
|
const infiniteScrollKey = vue.ref(qxUtil.createUUID());
|
|
86
|
+
const defaultOpens = vue.ref();
|
|
87
|
+
if (c.controlParams.defaultexpandall === "true") {
|
|
88
|
+
vue.watch(() => c.state.groups, () => {
|
|
89
|
+
if (c.state.groups.length > 0) {
|
|
90
|
+
defaultOpens.value = c.state.groups.map((x) => x.key);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
defaultOpens.value = c.state.groups.map((x) => x.key);
|
|
94
|
+
}
|
|
86
95
|
vue.watch(() => c.state.curPage, () => {
|
|
87
96
|
var _a, _b;
|
|
88
97
|
if (c.state.curPage === 1 && (c.model.pagingMode === 2 || c.model.pagingMode === 3)) {
|
|
@@ -129,7 +138,8 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
129
138
|
const panel = props.modelData.itemLayoutPanel;
|
|
130
139
|
return vue.createVNode(vue.resolveComponent("el-collapse-item"), {
|
|
131
140
|
"title": core.showTitle(group.caption),
|
|
132
|
-
"class": ns.be("group-content", "item")
|
|
141
|
+
"class": ns.be("group-content", "item"),
|
|
142
|
+
"name": group.key
|
|
133
143
|
}, {
|
|
134
144
|
default: () => [group.children.length > 0 ? group.children.map((item) => {
|
|
135
145
|
return panel ? renderPanelItem(item, panel) : renderDefaultItem(item);
|
|
@@ -142,6 +152,8 @@ const ListControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
142
152
|
let _slot;
|
|
143
153
|
if (c.model.enableGroup && !c.state.isSimple) {
|
|
144
154
|
return vue.createVNode(vue.resolveComponent("el-collapse"), {
|
|
155
|
+
"modelValue": defaultOpens.value,
|
|
156
|
+
"onUpdate:modelValue": ($event) => defaultOpens.value = $event,
|
|
145
157
|
"class": [ns.b("group-content"), ns.b("content")]
|
|
146
158
|
}, {
|
|
147
159
|
default: () => {
|
|
@@ -80,9 +80,20 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
80
80
|
parent: {
|
|
81
81
|
type: String,
|
|
82
82
|
required: true
|
|
83
|
+
},
|
|
84
|
+
filterMode: {
|
|
85
|
+
type: String,
|
|
86
|
+
default: "default"
|
|
87
|
+
},
|
|
88
|
+
customCond: {
|
|
89
|
+
type: String,
|
|
90
|
+
default: ""
|
|
91
|
+
},
|
|
92
|
+
context: {
|
|
93
|
+
type: Object
|
|
83
94
|
}
|
|
84
95
|
},
|
|
85
|
-
emits: ["confirm", "cancel", "change"],
|
|
96
|
+
emits: ["confirm", "cancel", "change", "customCondChange"],
|
|
86
97
|
setup(props, {
|
|
87
98
|
emit
|
|
88
99
|
}) {
|
|
@@ -144,6 +155,34 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
144
155
|
find.valueOPs.push(filterC.valueOP);
|
|
145
156
|
}
|
|
146
157
|
});
|
|
158
|
+
const schemaFields = vue.ref([]);
|
|
159
|
+
allFields.forEach(async (field) => {
|
|
160
|
+
var _a, _b, _c;
|
|
161
|
+
const filterController = props.filterControllers.find((item) => item.key === field.name);
|
|
162
|
+
if (!filterController) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
schemaFields.value.push({
|
|
166
|
+
appDEFieldId: field.fieldName,
|
|
167
|
+
caption: field.label,
|
|
168
|
+
valueOPs: field.valueOPs,
|
|
169
|
+
appDataEntity: (_a = filterController.appDataEntity) == null ? void 0 : _a.id,
|
|
170
|
+
appDataEntityFullTag: (_b = filterController.appDataEntity) == null ? void 0 : _b.defullTag,
|
|
171
|
+
appCodeListId: (_c = filterController.model.editor) == null ? void 0 : _c.appCodeListId
|
|
172
|
+
});
|
|
173
|
+
});
|
|
174
|
+
const pqlEditor = vue.ref();
|
|
175
|
+
const mode = vue.ref(props.filterMode || "default");
|
|
176
|
+
const currentCustomCond = vue.ref("");
|
|
177
|
+
const handleCustomCondChange = (value) => {
|
|
178
|
+
currentCustomCond.value = value;
|
|
179
|
+
emit("customCondChange", currentCustomCond.value);
|
|
180
|
+
};
|
|
181
|
+
vue.watch(() => props.customCond, () => {
|
|
182
|
+
currentCustomCond.value = props.customCond;
|
|
183
|
+
}, {
|
|
184
|
+
immediate: true
|
|
185
|
+
});
|
|
147
186
|
const getFilterModes = (fieldName, fieldInfos = allFields) => {
|
|
148
187
|
if (!fieldName) {
|
|
149
188
|
return;
|
|
@@ -291,7 +330,7 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
291
330
|
}, null), editor]);
|
|
292
331
|
};
|
|
293
332
|
let renderFilterItems = (_node) => vue.createVNode("div", null, null);
|
|
294
|
-
const renderFilterGroup = (node, itemsC) => {
|
|
333
|
+
const renderFilterGroup = (node, itemsC, root) => {
|
|
295
334
|
if (node.hidden) {
|
|
296
335
|
return;
|
|
297
336
|
}
|
|
@@ -306,22 +345,38 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
306
345
|
"text": true,
|
|
307
346
|
"type": "primary",
|
|
308
347
|
"onClick": () => {
|
|
348
|
+
if (mode.value === "pql") {
|
|
349
|
+
mode.value = "default";
|
|
350
|
+
return;
|
|
351
|
+
}
|
|
309
352
|
addGroup(node);
|
|
310
353
|
}
|
|
311
354
|
}, {
|
|
312
|
-
default: () => [
|
|
355
|
+
default: () => [mode.value === "pql" ? "\u5207\u6362\u7EC4" : "\u6DFB\u52A0\u7EC4"]
|
|
313
356
|
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
314
357
|
"text": true,
|
|
315
358
|
"onClick": () => {
|
|
359
|
+
if (mode.value === "pql") {
|
|
360
|
+
mode.value = "default";
|
|
361
|
+
return;
|
|
362
|
+
}
|
|
316
363
|
addItem(node);
|
|
317
364
|
}
|
|
318
365
|
}, {
|
|
319
|
-
default: () => [
|
|
366
|
+
default: () => [mode.value === "pql" ? "\u5207\u6362\u9879" : "\u6DFB\u52A0\u9879"]
|
|
367
|
+
}), root && isInSearchBar.value && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
368
|
+
"text": true,
|
|
369
|
+
"onClick": () => {
|
|
370
|
+
mode.value = "pql";
|
|
371
|
+
}
|
|
372
|
+
}, {
|
|
373
|
+
default: () => [vue.createTextVNode("\u6DFB\u52A0PQL")]
|
|
320
374
|
}), vue.createVNode(vue.resolveComponent("el-select"), {
|
|
321
375
|
"model-value": node.logicType,
|
|
322
376
|
"teleported": false,
|
|
323
377
|
"class": ns.be("group", "logic-type"),
|
|
324
378
|
"onChange": (logicType) => {
|
|
379
|
+
mode.value = "default";
|
|
325
380
|
onGroupLogicTypeChange(node, logicType);
|
|
326
381
|
}
|
|
327
382
|
}, {
|
|
@@ -334,7 +389,15 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
334
389
|
"value": "OR",
|
|
335
390
|
"label": "OR"
|
|
336
391
|
}, null)]
|
|
337
|
-
})]), vue.createVNode("div", {
|
|
392
|
+
})]), mode.value === "pql" && vue.createVNode("div", {
|
|
393
|
+
"class": ns.be("group", "editor")
|
|
394
|
+
}, [vue.createVNode(vue.resolveComponent("iBizPqlEditor"), {
|
|
395
|
+
"ref": "pqlEditor",
|
|
396
|
+
"value": currentCustomCond.value,
|
|
397
|
+
"fields": schemaFields.value,
|
|
398
|
+
"context": props.context,
|
|
399
|
+
"onChange": handleCustomCondChange
|
|
400
|
+
}, null)]), mode.value !== "pql" && vue.createVNode("div", {
|
|
338
401
|
"class": ns.be("group", "list")
|
|
339
402
|
}, [node.children.length > 0 && node.children.map((child, index) => {
|
|
340
403
|
const childContent = child.nodeType === "FIELD" ? renderFilterItem(child, itemsC) : renderFilterGroup(child, itemsC);
|
|
@@ -418,7 +481,17 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
418
481
|
})])]);
|
|
419
482
|
};
|
|
420
483
|
const onConfirm = () => {
|
|
421
|
-
|
|
484
|
+
var _a, _b;
|
|
485
|
+
if (mode.value === "pql") {
|
|
486
|
+
if (pqlEditor.value) {
|
|
487
|
+
const result = (_b = (_a = pqlEditor.value).verify) == null ? void 0 : _b.call(_a);
|
|
488
|
+
if (result) {
|
|
489
|
+
emit("confirm", mode.value, currentCustomCond.value);
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
emit("confirm", mode.value, currentCustomCond.value);
|
|
422
495
|
};
|
|
423
496
|
const onCancel = () => {
|
|
424
497
|
emit("cancel");
|
|
@@ -430,7 +503,8 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
430
503
|
onConfirm,
|
|
431
504
|
onCancel,
|
|
432
505
|
isInSearchBar,
|
|
433
|
-
UiFilterNodes
|
|
506
|
+
UiFilterNodes,
|
|
507
|
+
pqlEditor
|
|
434
508
|
};
|
|
435
509
|
},
|
|
436
510
|
render() {
|
|
@@ -441,7 +515,7 @@ const FilterTreeControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
441
515
|
if (node.nodeType === "FIELD") {
|
|
442
516
|
return this.renderFilterItem(node);
|
|
443
517
|
}
|
|
444
|
-
return this.renderFilterGroup(node);
|
|
518
|
+
return this.renderFilterGroup(node, void 0, true);
|
|
445
519
|
}), vue.createVNode("div", {
|
|
446
520
|
"class": this.ns.b("footer")
|
|
447
521
|
}, [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-filter-tree{padding:var(--ibiz-spacing-base)}.ibiz-filter-tree__editor{display:inline-block;width:180px;margin-right:var(--ibiz-spacing-tight)}.ibiz-filter-tree__field-select{width:185px;margin-right:var(--ibiz-spacing-tight)}.ibiz-filter-tree__mode-select{width:185px;margin-right:var(--ibiz-spacing-tight)}.ibiz-filter-tree-group{padding:var(--ibiz-spacing-tight);border:1px solid var(--ibiz-color-border)}.ibiz-filter-tree-group__actions{padding-bottom:var(--ibiz-spacing-base)}.ibiz-filter-tree-group__logic-type{width:80px;margin-left:var(--ibiz-spacing-tight)}.ibiz-filter-tree-group__list-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:var(--ibiz-spacing-base);padding-bottom:var(--ibiz-spacing-base)}.ibiz-filter-tree-group__list-item-left{align-self:flex-start;width:32px;margin:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-none);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-editor-default-text-color)}.ibiz-filter-tree-group__list-item-right{position:absolute;top:8px;right:0;color:var(--ibiz-color-danger);cursor:pointer}.ibiz-filter-tree-group__list-item-right:hover{color:var(--ibiz-color-danger-hover)}.ibiz-filter-tree-group--items>.ibiz-filter-tree-group__actions{display:flex}.ibiz-filter-tree-group--items>.ibiz-filter-tree-group__actions>.ibiz-filter-tree-item{width:auto}.ibiz-filter-tree-item{display:flex;align-items:center;justify-content:flex-start;width:574px}.ibiz-filter-tree-footer{margin-top:var(--ibiz-spacing-tight);text-align:right}
|
|
1
|
+
.ibiz-filter-tree{padding:var(--ibiz-spacing-base)}.ibiz-filter-tree__editor{display:inline-block;width:180px;margin-right:var(--ibiz-spacing-tight)}.ibiz-filter-tree__field-select{width:185px;margin-right:var(--ibiz-spacing-tight)}.ibiz-filter-tree__mode-select{width:185px;margin-right:var(--ibiz-spacing-tight)}.ibiz-filter-tree-group{padding:var(--ibiz-spacing-tight);border:1px solid var(--ibiz-color-border)}.ibiz-filter-tree-group__editor{width:600px;height:270px}.ibiz-filter-tree-group__actions{padding-bottom:var(--ibiz-spacing-base)}.ibiz-filter-tree-group__logic-type{width:80px;margin-left:var(--ibiz-spacing-tight)}.ibiz-filter-tree-group__list-item{position:relative;display:flex;align-items:center;justify-content:flex-start;padding-right:var(--ibiz-spacing-base);padding-bottom:var(--ibiz-spacing-base)}.ibiz-filter-tree-group__list-item-left{align-self:flex-start;width:32px;margin:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-tight) var(--ibiz-spacing-none);font-size:var(--ibiz-font-size-regular);color:var(--ibiz-editor-default-text-color)}.ibiz-filter-tree-group__list-item-right{position:absolute;top:8px;right:0;color:var(--ibiz-color-danger);cursor:pointer}.ibiz-filter-tree-group__list-item-right:hover{color:var(--ibiz-color-danger-hover)}.ibiz-filter-tree-group--items>.ibiz-filter-tree-group__actions{display:flex}.ibiz-filter-tree-group--items>.ibiz-filter-tree-group__actions>.ibiz-filter-tree-item{width:auto}.ibiz-filter-tree-item{display:flex;align-items:center;justify-content:flex-start;width:574px}.ibiz-filter-tree-footer{margin-top:var(--ibiz-spacing-tight);text-align:right}
|
|
@@ -70,7 +70,15 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
70
70
|
"filterControllers": c.filterControllers,
|
|
71
71
|
"filterNodes": c.state.filterNodes,
|
|
72
72
|
"parent": "search-bar",
|
|
73
|
-
"
|
|
73
|
+
"filterMode": c.state.filterMode,
|
|
74
|
+
"customCond": c.state.customCond,
|
|
75
|
+
"context": c.context,
|
|
76
|
+
"onCustomCondChange": (customCond) => {
|
|
77
|
+
c.state.customCond = customCond;
|
|
78
|
+
},
|
|
79
|
+
"onConfirm": (mode, customCond) => {
|
|
80
|
+
c.state.filterMode = mode;
|
|
81
|
+
c.state.customCond = customCond;
|
|
74
82
|
c.onSearch();
|
|
75
83
|
if (popover) {
|
|
76
84
|
popover.dismiss();
|
|
@@ -78,6 +86,7 @@ const SearchBarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
78
86
|
},
|
|
79
87
|
"onCancel": () => {
|
|
80
88
|
c.resetFilter();
|
|
89
|
+
c.state.customCond = "";
|
|
81
90
|
}
|
|
82
91
|
}, null);
|
|
83
92
|
}, void 0, {
|
|
@@ -83,7 +83,8 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
83
83
|
tableData,
|
|
84
84
|
renderColumns,
|
|
85
85
|
defaultSort,
|
|
86
|
-
summaryMethod
|
|
86
|
+
summaryMethod,
|
|
87
|
+
headerDragend
|
|
87
88
|
} = gridControl_util.useAppGridBase(c, props);
|
|
88
89
|
const {
|
|
89
90
|
renderPopover
|
|
@@ -196,6 +197,7 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
196
197
|
renderNoData,
|
|
197
198
|
loadData,
|
|
198
199
|
summaryMethod,
|
|
200
|
+
headerDragend,
|
|
199
201
|
renderPopover,
|
|
200
202
|
renderBatchToolBar,
|
|
201
203
|
headerCssVars
|
|
@@ -228,6 +230,7 @@ const TreeGridControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
228
230
|
"onRowDblclick": this.onDbRowClick,
|
|
229
231
|
"onSelectionChange": this.onSelectionChange,
|
|
230
232
|
"onSortChange": this.onSortChange,
|
|
233
|
+
"onHeaderDragend": this.headerDragend,
|
|
231
234
|
"tooltip-effect": "light",
|
|
232
235
|
"tree-props": {
|
|
233
236
|
children: "children",
|
|
@@ -24,16 +24,11 @@ const TreeGridExFieldColumn = /* @__PURE__ */ vue.defineComponent({
|
|
|
24
24
|
},
|
|
25
25
|
setup(props) {
|
|
26
26
|
const ns = vue3Util.useNamespace("tree-grid-ex-field-column");
|
|
27
|
-
const fieldValue = vue.
|
|
28
|
-
vue.watch(() => props.row.data, () => {
|
|
27
|
+
const fieldValue = vue.computed(() => {
|
|
29
28
|
if (props.row.data._nodeType !== "DE" && props.controller.isFirstShowColumn) {
|
|
30
|
-
|
|
31
|
-
} else {
|
|
32
|
-
fieldValue.value = props.row.data[props.controller.name];
|
|
29
|
+
return props.row.data._text;
|
|
33
30
|
}
|
|
34
|
-
|
|
35
|
-
deep: true,
|
|
36
|
-
immediate: true
|
|
31
|
+
return props.row.data[props.controller.name];
|
|
37
32
|
});
|
|
38
33
|
const nodeColumn = vue.computed(() => {
|
|
39
34
|
return props.controller.nodeColumnControllerMap.get(props.row.data._nodeId);
|
|
@@ -19,13 +19,24 @@ class CheckBoxListEditorController extends runtime.CodeListEditorController {
|
|
|
19
19
|
* @Date: 2023-05-24 10:55:50
|
|
20
20
|
*/
|
|
21
21
|
__publicField(this, "codeList");
|
|
22
|
+
/**
|
|
23
|
+
* 多选一行展示几个
|
|
24
|
+
* @author fangZhiHao
|
|
25
|
+
* @date 2024-07-17 10:07:40
|
|
26
|
+
* @type {(number | undefined)}
|
|
27
|
+
*/
|
|
28
|
+
__publicField(this, "rowNumber");
|
|
22
29
|
}
|
|
23
30
|
async onInit() {
|
|
31
|
+
var _a;
|
|
24
32
|
super.onInit();
|
|
25
33
|
if (this.model.appCodeListId) {
|
|
26
34
|
const app = await ibiz.hub.getApp(this.context.srfappid);
|
|
27
35
|
this.codeList = app.codeList.getCodeList(this.model.appCodeListId);
|
|
28
36
|
}
|
|
37
|
+
if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
|
|
38
|
+
this.rowNumber = Number(this.editorParams.rowNumber);
|
|
39
|
+
}
|
|
29
40
|
}
|
|
30
41
|
}
|
|
31
42
|
|
|
@@ -158,7 +158,8 @@ const IBizCheckboxList = /* @__PURE__ */ vue.defineComponent({
|
|
|
158
158
|
let _slot;
|
|
159
159
|
return vue.createVNode("div", {
|
|
160
160
|
"ref": "editorRef",
|
|
161
|
-
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)]
|
|
161
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("grid-layout", !!this.controller.rowNumber)],
|
|
162
|
+
"style": this.controller.rowNumber ? "--ibiz-checkbox-list-group-row-number:".concat(this.controller.rowNumber) : ""
|
|
162
163
|
}, [this.readonly ? this.valueText : vue.createVNode(vue.resolveComponent("el-checkbox-group"), vue.mergeProps({
|
|
163
164
|
"model-value": this.selectArray,
|
|
164
165
|
"onChange": this.onSelectArrayChange
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-checkbox-list__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-checkbox-list--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-form-item .ibiz-checkbox-list.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
1
|
+
.ibiz-checkbox-list{--ibiz-checkbox-list-group-row-number:0}.ibiz-checkbox-list__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-checkbox-list--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-checkbox-list.is-grid-layout .el-checkbox-group{display:grid;grid-template-columns:repeat(var(--ibiz-checkbox-list-group-row-number),1fr)}.ibiz-form-item .ibiz-checkbox-list.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
@@ -312,7 +312,7 @@ const IBizDropdown = /* @__PURE__ */ vue.defineComponent({
|
|
|
312
312
|
"disabled": this.disabled,
|
|
313
313
|
"loading": this.isLoading,
|
|
314
314
|
"fit-input-width": isEllipsis,
|
|
315
|
-
"popper-class": "".concat(this.ns.b("popper"), " ").concat(this.c.editorParams.type === "round" ? this.ns.bm("popper", "round") : ""),
|
|
315
|
+
"popper-class": "".concat(this.ns.b("popper"), " ").concat(this.c.editorParams.type === "round" ? this.ns.bm("popper", "round") : "", " ").concat(this.ns.bm("popper", "".concat(this.c.model.id))),
|
|
316
316
|
"onBlur": this.onBlur,
|
|
317
317
|
"onFocus": this.onFocus,
|
|
318
318
|
"onKeyup": this.handleKeyUp,
|
|
@@ -422,12 +422,14 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
422
422
|
return vue.createVNode("i", {
|
|
423
423
|
"class": "fa fa-compress",
|
|
424
424
|
"aria-hidden": "true",
|
|
425
|
+
"title": ibiz.i18n.t("editor.html.reduce"),
|
|
425
426
|
"onClick": () => changeFullScreenState()
|
|
426
427
|
}, null);
|
|
427
428
|
}
|
|
428
429
|
return vue.createVNode("i", {
|
|
429
430
|
"class": "fa fa-expand",
|
|
430
431
|
"aria-hidden": "true",
|
|
432
|
+
"title": ibiz.i18n.t("editor.html.expand"),
|
|
431
433
|
"onClick": () => changeFullScreenState()
|
|
432
434
|
}, null);
|
|
433
435
|
}
|
|
@@ -440,6 +442,7 @@ const IBizHtml = /* @__PURE__ */ vue.defineComponent({
|
|
|
440
442
|
}, [hasEnableEdit.value && enableEdit.value && readonlyState.value ? vue.createVNode("i", {
|
|
441
443
|
"class": "fa fa-edit",
|
|
442
444
|
"aria-hidden": "true",
|
|
445
|
+
"title": ibiz.i18n.t("editor.html.enableedit"),
|
|
443
446
|
"onClick": () => changeEditState()
|
|
444
447
|
}, null) : null, isAllowRenderFullScreen()]);
|
|
445
448
|
}
|
|
@@ -87,7 +87,8 @@ const IBizRadio = /* @__PURE__ */ vue.defineComponent({
|
|
|
87
87
|
render() {
|
|
88
88
|
let _slot;
|
|
89
89
|
return vue.createVNode("div", {
|
|
90
|
-
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
90
|
+
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("grid-layout", !!this.controller.rowNumber)],
|
|
91
|
+
"style": this.controller.rowNumber ? "--ibiz-radio-group-row-number:".concat(this.controller.rowNumber) : "",
|
|
91
92
|
"ref": "editorRef"
|
|
92
93
|
}, [this.readonly ? this.valueText : vue.createVNode(vue.resolveComponent("el-radio-group"), vue.mergeProps({
|
|
93
94
|
"class": this.ns.e("group"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-radio__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-radio--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-radio__button--round-corner{margin-right:var(--ibiz-spacing-base-loose)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__inner{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-secondary-light-default);border-color:var(--ibiz-color-secondary-light-default)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__original-radio:checked+.el-radio-button__inner{box-shadow:none}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);background-color:var(--ibiz-color-tertiary-light-hover);border-color:var(--ibiz-color-tertiary-light-hover);border-radius:var(--ibiz-height-control-default)}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner:nth-last-child(1){margin:0}.ibiz-radio__button--round-corner.el-radio-button.is-disabled.is-active .el-radio-button__inner{border:var(--ibiz-border-thickness-control) solid var(--ibiz-color-disabled-text)}.ibiz-radio__button--round-corner.el-radio-button.is-disabled .el-radio-button__inner{color:var(--ibiz-color-disabled-text);background:var(--ibiz-color-disabled-bg);border-color:var(--ibiz-color-disabled-border)}.ibiz-form-item .ibiz-radio.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
1
|
+
.ibiz-radio{--ibiz-radio-group-row-number:0}.ibiz-radio__text{font-size:var(--ibiz-form-item-font-size);color:var(--ibiz-form-item-text-color)}.ibiz-radio--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-radio__button--round-corner{margin-right:var(--ibiz-spacing-base-loose)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__inner{color:var(--ibiz-color-primary);background-color:var(--ibiz-color-secondary-light-default);border-color:var(--ibiz-color-secondary-light-default)}.ibiz-radio__button--round-corner.el-radio-button.is-active .el-radio-button__original-radio:checked+.el-radio-button__inner{box-shadow:none}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner{padding:var(--ibiz-spacing-tight) var(--ibiz-spacing-base);background-color:var(--ibiz-color-tertiary-light-hover);border-color:var(--ibiz-color-tertiary-light-hover);border-radius:var(--ibiz-height-control-default)}.ibiz-radio__button--round-corner.el-radio-button .el-radio-button__inner:nth-last-child(1){margin:0}.ibiz-radio__button--round-corner.el-radio-button.is-disabled.is-active .el-radio-button__inner{border:var(--ibiz-border-thickness-control) solid var(--ibiz-color-disabled-text)}.ibiz-radio__button--round-corner.el-radio-button.is-disabled .el-radio-button__inner{color:var(--ibiz-color-disabled-text);background:var(--ibiz-color-disabled-bg);border-color:var(--ibiz-color-disabled-border)}.ibiz-radio.is-grid-layout .el-radio-group{display:grid;grid-template-columns:repeat(var(--ibiz-radio-group-row-number),1fr)}.ibiz-form-item .ibiz-radio.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
@@ -3,7 +3,30 @@
|
|
|
3
3
|
var runtime = require('@ibiz-template/runtime');
|
|
4
4
|
|
|
5
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
|
+
};
|
|
6
12
|
class RadioButtonListEditorController extends runtime.CodeListEditorController {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
/**
|
|
16
|
+
* 单选一行展示几个
|
|
17
|
+
* @author fangZhiHao
|
|
18
|
+
* @date 2024-07-17 10:07:40
|
|
19
|
+
* @type {(number | undefined)}
|
|
20
|
+
*/
|
|
21
|
+
__publicField(this, "rowNumber");
|
|
22
|
+
}
|
|
23
|
+
async onInit() {
|
|
24
|
+
var _a;
|
|
25
|
+
super.onInit();
|
|
26
|
+
if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
|
|
27
|
+
this.rowNumber = Number(this.editorParams.rowNumber);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
7
30
|
}
|
|
8
31
|
|
|
9
32
|
exports.RadioButtonListEditorController = RadioButtonListEditorController;
|
|
@@ -151,8 +151,9 @@ const IBizSpan = /* @__PURE__ */ vue.defineComponent({
|
|
|
151
151
|
} else {
|
|
152
152
|
content = "- - -";
|
|
153
153
|
}
|
|
154
|
+
const isEllipsis = this.c.editorParams.overflowMode === "ellipsis" || this.c.model.wrapMode === "NOWRAP";
|
|
154
155
|
return vue.createVNode("span", {
|
|
155
|
-
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
156
|
+
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("is-ellipsis", isEllipsis)],
|
|
156
157
|
"ref": "editorRef"
|
|
157
158
|
}, [content]);
|
|
158
159
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-span{display:inline-block;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color);white-space:pre-line}.ibiz-span--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-span__code-list{height:100%}.ibiz-form-item .ibiz-span.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
|
1
|
+
.ibiz-span{display:inline-block;font-size:var(--ibiz-form-item-font-size);line-height:var(--ibiz-form-item-line-height);color:var(--ibiz-form-item-text-color);white-space:pre-line}.ibiz-span--readonly{color:var(--ibiz-form-item-readonly-color)}.ibiz-span__code-list{height:100%}.ibiz-span.is-is-ellipsis{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ibiz-form-item .ibiz-span.is-show-default{padding:var(--ibiz-form-item-hover-edit-padding)}
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -77,10 +77,7 @@ var index = {
|
|
|
77
77
|
refreshPagePrompt: "The data has been modified. Do you want to refresh the page?",
|
|
78
78
|
refreshRemind: "Refresh reminder",
|
|
79
79
|
confirmRefreshPrompt: "The form data has been modified. Are you sure you want to refresh it?",
|
|
80
|
-
missingErr: "context missing
|
|
81
|
-
noFoundViewId: "Cannot find the view whose id is {id}",
|
|
82
|
-
firstPieceOfData: "This is already the first piece of data",
|
|
83
|
-
lastPieceOfData: "This is already the last piece of data",
|
|
80
|
+
missingErr: "context missing srfnavctrlid",
|
|
84
81
|
subclassAchieve: "Subclass implementation",
|
|
85
82
|
missingConfigErr: "Missing configuration for a list component called simplelist",
|
|
86
83
|
noFoundLayoutOccupied: "No tabexppanel layout placeholders found",
|
|
@@ -307,7 +304,7 @@ var index = {
|
|
|
307
304
|
},
|
|
308
305
|
chart: {
|
|
309
306
|
chartPlaceholder: "Chart",
|
|
310
|
-
|
|
307
|
+
drillDetail: "drillDetail"
|
|
311
308
|
},
|
|
312
309
|
dashboard: {
|
|
313
310
|
customDashboardContainer: {
|
|
@@ -509,7 +506,10 @@ var index = {
|
|
|
509
506
|
wangEditor: {
|
|
510
507
|
customTips: "Custom tip",
|
|
511
508
|
emoji: "Emoji"
|
|
512
|
-
}
|
|
509
|
+
},
|
|
510
|
+
enableedit: "Enable edit",
|
|
511
|
+
expand: "Expand",
|
|
512
|
+
reduce: "Reduce"
|
|
513
513
|
},
|
|
514
514
|
markdown: {
|
|
515
515
|
uploadJsonFormatErr: "The configuration of uploadparams did not follow the standard JSON format",
|