@ibiz-template/vue3-components 0.7.30 → 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-maJGu4b8.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-sKVlHqdj.js → xlsx-util-OUxT4A8O.js} +1 -1
- 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.mjs +32 -19
- 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/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/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/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 +1 -1
- 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/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/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 +31 -18
- 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/grid/grid/grid.cjs +2 -2
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +32 -2
- 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/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/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/package.json +6 -6
- package/dist/chart-J-0VPQfg.js +0 -1
- package/dist/index-5Hb8nfPm.js +0 -4
|
@@ -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)}
|
|
@@ -85,7 +85,8 @@ const IBizRadio = /* @__PURE__ */ defineComponent({
|
|
|
85
85
|
render() {
|
|
86
86
|
let _slot;
|
|
87
87
|
return createVNode("div", {
|
|
88
|
-
"class": [this.ns.b(), this.disabled ? this.ns.m("disabled") : "", this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
88
|
+
"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)],
|
|
89
|
+
"style": this.controller.rowNumber ? "--ibiz-radio-group-row-number:".concat(this.controller.rowNumber) : "",
|
|
89
90
|
"ref": "editorRef"
|
|
90
91
|
}, [this.readonly ? this.valueText : createVNode(resolveComponent("el-radio-group"), mergeProps({
|
|
91
92
|
"class": this.ns.e("group"),
|
|
@@ -7,4 +7,12 @@ import { IRadioButtonList } from '@ibiz/model-core';
|
|
|
7
7
|
* @Date: 2022-08-25 10:57:58
|
|
8
8
|
*/
|
|
9
9
|
export declare class RadioButtonListEditorController extends CodeListEditorController<IRadioButtonList> {
|
|
10
|
+
/**
|
|
11
|
+
* 单选一行展示几个
|
|
12
|
+
* @author fangZhiHao
|
|
13
|
+
* @date 2024-07-17 10:07:40
|
|
14
|
+
* @type {(number | undefined)}
|
|
15
|
+
*/
|
|
16
|
+
rowNumber: number | undefined;
|
|
17
|
+
protected onInit(): Promise<void>;
|
|
10
18
|
}
|
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
import { CodeListEditorController } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => {
|
|
7
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
|
+
return value;
|
|
9
|
+
};
|
|
4
10
|
class RadioButtonListEditorController extends CodeListEditorController {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
/**
|
|
14
|
+
* 单选一行展示几个
|
|
15
|
+
* @author fangZhiHao
|
|
16
|
+
* @date 2024-07-17 10:07:40
|
|
17
|
+
* @type {(number | undefined)}
|
|
18
|
+
*/
|
|
19
|
+
__publicField(this, "rowNumber");
|
|
20
|
+
}
|
|
21
|
+
async onInit() {
|
|
22
|
+
var _a;
|
|
23
|
+
super.onInit();
|
|
24
|
+
if ((_a = this.editorParams) == null ? void 0 : _a.rowNumber) {
|
|
25
|
+
this.rowNumber = Number(this.editorParams.rowNumber);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
5
28
|
}
|
|
6
29
|
|
|
7
30
|
export { RadioButtonListEditorController };
|
|
@@ -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)}
|
|
@@ -149,8 +149,9 @@ const IBizSpan = /* @__PURE__ */ defineComponent({
|
|
|
149
149
|
} else {
|
|
150
150
|
content = "- - -";
|
|
151
151
|
}
|
|
152
|
+
const isEllipsis = this.c.editorParams.overflowMode === "ellipsis" || this.c.model.wrapMode === "NOWRAP";
|
|
152
153
|
return createVNode("span", {
|
|
153
|
-
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent)],
|
|
154
|
+
"class": [this.ns.b(), this.readonly ? this.ns.m("readonly") : "", this.ns.is("show-default", this.showFormDefaultContent), this.ns.is("is-ellipsis", isEllipsis)],
|
|
154
155
|
"ref": "editorRef"
|
|
155
156
|
}, [content]);
|
|
156
157
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export interface IPqlItem {
|
|
2
|
+
/**
|
|
3
|
+
* 类型
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghengfeng
|
|
6
|
+
* @date 2024-07-12 22:07:04
|
|
7
|
+
* @type {('condition' | 'connection')}
|
|
8
|
+
*/
|
|
9
|
+
type?: 'condition' | 'connection';
|
|
10
|
+
/**
|
|
11
|
+
* 键
|
|
12
|
+
*
|
|
13
|
+
* @author zhanghengfeng
|
|
14
|
+
* @date 2024-07-12 22:07:12
|
|
15
|
+
* @type {{
|
|
16
|
+
* value?: string;
|
|
17
|
+
* label?: string;
|
|
18
|
+
* }}
|
|
19
|
+
*/
|
|
20
|
+
key?: {
|
|
21
|
+
value?: string;
|
|
22
|
+
label?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* 操作符
|
|
26
|
+
*
|
|
27
|
+
* @author zhanghengfeng
|
|
28
|
+
* @date 2024-07-12 22:07:24
|
|
29
|
+
* @type {{
|
|
30
|
+
* value?: string;
|
|
31
|
+
* label?: string;
|
|
32
|
+
* }}
|
|
33
|
+
*/
|
|
34
|
+
operator?: {
|
|
35
|
+
value?: string;
|
|
36
|
+
label?: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* 值
|
|
40
|
+
*
|
|
41
|
+
* @author zhanghengfeng
|
|
42
|
+
* @date 2024-07-12 22:07:31
|
|
43
|
+
* @type {{
|
|
44
|
+
* value?: string;
|
|
45
|
+
* label?: string;
|
|
46
|
+
* }}
|
|
47
|
+
*/
|
|
48
|
+
value?: {
|
|
49
|
+
value?: string;
|
|
50
|
+
label?: string;
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface IPqlNode {
|
|
2
|
+
/**
|
|
3
|
+
* 类型
|
|
4
|
+
*
|
|
5
|
+
* @author zhanghengfeng
|
|
6
|
+
* @date 2024-07-12 22:07:25
|
|
7
|
+
* @type {('pql-field'
|
|
8
|
+
* | 'pql-field-operator'
|
|
9
|
+
* | 'pql-field-value'
|
|
10
|
+
* | 'pql-field-connection')}
|
|
11
|
+
*/
|
|
12
|
+
type?: 'pql-field' | 'pql-field-operator' | 'pql-field-value' | 'pql-field-connection';
|
|
13
|
+
/**
|
|
14
|
+
* 标签
|
|
15
|
+
*
|
|
16
|
+
* @author zhanghengfeng
|
|
17
|
+
* @date 2024-07-12 22:07:36
|
|
18
|
+
* @type {string}
|
|
19
|
+
*/
|
|
20
|
+
label?: string;
|
|
21
|
+
/**
|
|
22
|
+
* 值
|
|
23
|
+
*
|
|
24
|
+
* @author zhanghengfeng
|
|
25
|
+
* @date 2024-07-12 22:07:47
|
|
26
|
+
* @type {string}
|
|
27
|
+
*/
|
|
28
|
+
value?: string;
|
|
29
|
+
/**
|
|
30
|
+
* 文本
|
|
31
|
+
*
|
|
32
|
+
* @author zhanghengfeng
|
|
33
|
+
* @date 2024-07-12 22:07:54
|
|
34
|
+
* @type {string}
|
|
35
|
+
*/
|
|
36
|
+
text?: string;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ValueOP } from '@ibiz-template/runtime';
|
|
2
|
+
export interface ISchemaField {
|
|
3
|
+
/**
|
|
4
|
+
* 属性标识
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghengfeng
|
|
7
|
+
* @date 2024-07-19 12:07:21
|
|
8
|
+
* @type {string}
|
|
9
|
+
*/
|
|
10
|
+
appDEFieldId: string;
|
|
11
|
+
/**
|
|
12
|
+
* 标题
|
|
13
|
+
*
|
|
14
|
+
* @author zhanghengfeng
|
|
15
|
+
* @date 2024-07-19 12:07:31
|
|
16
|
+
* @type {string}
|
|
17
|
+
*/
|
|
18
|
+
caption: string;
|
|
19
|
+
/**
|
|
20
|
+
* 预置操作符
|
|
21
|
+
*
|
|
22
|
+
* @author zhanghengfeng
|
|
23
|
+
* @date 2024-07-19 12:07:58
|
|
24
|
+
* @type {ValueOP[]}
|
|
25
|
+
*/
|
|
26
|
+
valueOPs: ValueOP[];
|
|
27
|
+
/**
|
|
28
|
+
* 代码表标识
|
|
29
|
+
*
|
|
30
|
+
* @author zhanghengfeng
|
|
31
|
+
* @date 2024-07-19 12:07:46
|
|
32
|
+
* @type {string}
|
|
33
|
+
*/
|
|
34
|
+
appCodeListId?: string;
|
|
35
|
+
/**
|
|
36
|
+
* 应用实体标识
|
|
37
|
+
*
|
|
38
|
+
* @author zhanghengfeng
|
|
39
|
+
* @date 2024-07-19 12:07:10
|
|
40
|
+
* @type {string}
|
|
41
|
+
*/
|
|
42
|
+
appDataEntityId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 应用实体完全标识
|
|
45
|
+
*
|
|
46
|
+
* @author zhanghengfeng
|
|
47
|
+
* @date 2024-07-19 12:07:22
|
|
48
|
+
* @type {string}
|
|
49
|
+
*/
|
|
50
|
+
appDataEntityFullTag?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/lib/common/index.cjs
CHANGED
|
@@ -28,6 +28,7 @@ var carouselCard = require('./carousel-card/carousel-card.cjs');
|
|
|
28
28
|
var emojiSelect = require('./emoji-select/emoji-select.cjs');
|
|
29
29
|
var quickEdit = require('./quick-edit/quick-edit.cjs');
|
|
30
30
|
var fullscreenToolbar = require('./fullscreen-toolbar/fullscreen-toolbar.cjs');
|
|
31
|
+
var pqlEditor = require('./pql-editor/pql-editor.cjs');
|
|
31
32
|
|
|
32
33
|
"use strict";
|
|
33
34
|
const IBizCommonComponents = {
|
|
@@ -69,6 +70,7 @@ const IBizCommonComponents = {
|
|
|
69
70
|
v.component(customTheme.CustomTheme.name, customTheme.CustomTheme);
|
|
70
71
|
v.component(carouselCard.IBizCarouselCard.name, carouselCard.IBizCarouselCard);
|
|
71
72
|
v.component(fullscreenToolbar.IBizFullscreenToolbar.name, fullscreenToolbar.IBizFullscreenToolbar);
|
|
73
|
+
v.component(pqlEditor.IBizPqlEditor.name, pqlEditor.IBizPqlEditor);
|
|
72
74
|
}
|
|
73
75
|
};
|
|
74
76
|
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./pql-editor-suggestion.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const IBizPqlEditorSuggestion = /* @__PURE__ */ vue.defineComponent({
|
|
9
|
+
name: "IBizPqlEditorSuggestion",
|
|
10
|
+
props: {
|
|
11
|
+
items: {
|
|
12
|
+
type: Array,
|
|
13
|
+
default: () => []
|
|
14
|
+
},
|
|
15
|
+
renderItem: {
|
|
16
|
+
type: Function
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
emits: {
|
|
20
|
+
select: (_item) => true
|
|
21
|
+
},
|
|
22
|
+
setup(_props, {
|
|
23
|
+
emit
|
|
24
|
+
}) {
|
|
25
|
+
const ns = vue3Util.useNamespace("pql-editor-suggestion");
|
|
26
|
+
const handleClick = (item) => {
|
|
27
|
+
emit("select", item);
|
|
28
|
+
};
|
|
29
|
+
return {
|
|
30
|
+
ns,
|
|
31
|
+
handleClick
|
|
32
|
+
};
|
|
33
|
+
},
|
|
34
|
+
render() {
|
|
35
|
+
return vue.createVNode("div", {
|
|
36
|
+
"class": this.ns.b()
|
|
37
|
+
}, [this.items.map((item) => {
|
|
38
|
+
return vue.createVNode("div", {
|
|
39
|
+
"class": [this.ns.b("item")],
|
|
40
|
+
"onClick": (e) => {
|
|
41
|
+
e.stopPropagation();
|
|
42
|
+
this.handleClick(item);
|
|
43
|
+
}
|
|
44
|
+
}, [this.renderItem ? this.renderItem(item) : vue.createVNode("div", {
|
|
45
|
+
"class": this.ns.be("item", "text")
|
|
46
|
+
}, [item.label || ""])]);
|
|
47
|
+
})]);
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
exports.IBizPqlEditorSuggestion = IBizPqlEditorSuggestion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-pql-editor-suggestion{max-height:320px;padding:var(--ibiz-spacing-base-tight) 0;overflow-y:auto}.ibiz-pql-editor-suggestion-item{display:flex;align-items:center;min-height:40px;padding:var(--ibiz-spacing-extra-tight) var(--ibiz-spacing-base-loose);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;outline:0}.ibiz-pql-editor-suggestion-item:hover{background-color:var(--ibiz-color-fill-1)}.ibiz-pql-editor-suggestion-item__text{flex:1 1 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|