@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-fullscreen-toolbar{position:fixed;bottom:28px;left:0;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:30px}.ibiz-fullscreen-toolbar__wrapper{z-index:101;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:inherit}.ibiz-fullscreen-toolbar__wrapper:hover .ibiz-fullscreen-toolbar__wrapper-content{display:flex}.ibiz-fullscreen-toolbar__wrapper-content{z-index:101;display:none;flex-flow:row nowrap;place-content:center center;align-items:center;width:169px;height:56px;padding:12px 16px;background-color:#333;border-radius:6px}.ibiz-fullscreen-toolbar__item{display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:32px;height:32px;padding:8px;margin-right:8px;cursor:pointer;border-radius:4px;fill:#fff}.ibiz-fullscreen-toolbar__item:hover{background-color:#5c5c5c;fill:#6698ff}.ibiz-fullscreen-toolbar__divider{position:relative;box-sizing:border-box;display:inline-block;height:1rem;padding:0;margin:0;margin:0 16px;font-size:.875rem;line-height:1.5715;color:#333;vertical-align:middle;list-style:none;border-top:0;border-left:1px solid #666}.ibiz-fullscreen-toolbar__canvas{z-index:100}.ibiz-fullscreen-toolbar__canvas>.cursor{cursor:none!important}.ibiz-fullscreen-toolbar__canvas>.nocursor{display:none!important}.ibiz-fullscreen-toolbar__canvas>canvas{position:fixed;top:0;left:0;z-index:-1;width:100vw;height:100vh;background:0 0}.ibiz-fullscreen-toolbar__tooltip .el-popper__arrow{display:block}
|
|
1
|
+
.ibiz-fullscreen-toolbar{position:fixed;bottom:28px;left:0;z-index:100;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:30px}.ibiz-fullscreen-toolbar__wrapper{z-index:101;display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:100%;height:inherit}.ibiz-fullscreen-toolbar__wrapper:hover .ibiz-fullscreen-toolbar__wrapper-content{display:flex}.ibiz-fullscreen-toolbar__wrapper-content{z-index:101;display:none;flex-flow:row nowrap;place-content:center center;align-items:center;width:169px;height:56px;padding:12px 16px;background-color:#333;border-radius:6px}.ibiz-fullscreen-toolbar__item{display:flex;flex-flow:row nowrap;place-content:center center;align-items:center;width:32px;height:32px;padding:8px;margin-right:8px;cursor:pointer;border-radius:4px;fill:#fff}.ibiz-fullscreen-toolbar__item:hover{background-color:#5c5c5c;fill:#6698ff}.ibiz-fullscreen-toolbar__divider{position:relative;box-sizing:border-box;display:inline-block;height:1rem;padding:0;margin:0;margin:0 16px;font-size:.875rem;line-height:1.5715;color:#333;vertical-align:middle;list-style:none;border-top:0;border-left:1px solid #666}.ibiz-fullscreen-toolbar__canvas{z-index:100}.ibiz-fullscreen-toolbar__canvas>.cursor{cursor:none!important}.ibiz-fullscreen-toolbar__canvas>.nocursor{display:none!important}.ibiz-fullscreen-toolbar__canvas>canvas{position:fixed;top:0;left:0;z-index:-1;width:100vw;height:100vh;background:0 0}.ibiz-fullscreen-toolbar__tooltip .el-popper__arrow{display:block}
|
|
@@ -104,10 +104,19 @@ const IBizFullscreenToolbar = /* @__PURE__ */ defineComponent({
|
|
|
104
104
|
app.mount(content);
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
+
const clearFullscreenClass = () => {
|
|
108
|
+
if (ibiz.fullscreenUtil.FullscreenClass) {
|
|
109
|
+
const divFull = document.querySelector(".".concat(ibiz.fullscreenUtil.FullscreenClass));
|
|
110
|
+
if (divFull) {
|
|
111
|
+
divFull.classList.toggle(ibiz.fullscreenUtil.FullscreenClass);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
107
115
|
const compressArrowsClick = () => {
|
|
108
116
|
const div = document.getElementById("fullscreen");
|
|
109
117
|
if (div) {
|
|
110
118
|
document.exitFullscreen();
|
|
119
|
+
clearFullscreenClass();
|
|
111
120
|
if (div.parentElement) {
|
|
112
121
|
div.parentElement.removeChild(div);
|
|
113
122
|
}
|
|
@@ -119,6 +128,7 @@ const IBizFullscreenToolbar = /* @__PURE__ */ defineComponent({
|
|
|
119
128
|
} else {
|
|
120
129
|
const div = document.getElementById("fullscreen");
|
|
121
130
|
if (div) {
|
|
131
|
+
clearFullscreenClass();
|
|
122
132
|
if (div.parentElement) {
|
|
123
133
|
div.parentElement.removeChild(div);
|
|
124
134
|
}
|
package/es/common/index.mjs
CHANGED
|
@@ -24,6 +24,7 @@ import { IBizCarouselCard } from './carousel-card/carousel-card.mjs';
|
|
|
24
24
|
import { IBizEmojiSelect } from './emoji-select/emoji-select.mjs';
|
|
25
25
|
import { IBizQuickEdit } from './quick-edit/quick-edit.mjs';
|
|
26
26
|
import { IBizFullscreenToolbar } from './fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
27
|
+
import { IBizPqlEditor } from './pql-editor/pql-editor.mjs';
|
|
27
28
|
|
|
28
29
|
"use strict";
|
|
29
30
|
const IBizCommonComponents = {
|
|
@@ -65,6 +66,7 @@ const IBizCommonComponents = {
|
|
|
65
66
|
v.component(CustomTheme.name, CustomTheme);
|
|
66
67
|
v.component(IBizCarouselCard.name, IBizCarouselCard);
|
|
67
68
|
v.component(IBizFullscreenToolbar.name, IBizFullscreenToolbar);
|
|
69
|
+
v.component(IBizPqlEditor.name, IBizPqlEditor);
|
|
68
70
|
}
|
|
69
71
|
};
|
|
70
72
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pql-editor-suggestion/pql-editor-suggestion';
|
|
@@ -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}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import './pql-editor-suggestion.scss';
|
|
3
|
+
export declare const IBizPqlEditorSuggestion: import("vue").DefineComponent<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<IData[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
renderItem: {
|
|
9
|
+
type: PropType<(_item: IData) => VNode>;
|
|
10
|
+
};
|
|
11
|
+
}, {
|
|
12
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
13
|
+
handleClick: (item: IData) => void;
|
|
14
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
15
|
+
select: (_item: IData) => true;
|
|
16
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
|
+
items: {
|
|
18
|
+
type: PropType<IData[]>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
};
|
|
21
|
+
renderItem: {
|
|
22
|
+
type: PropType<(_item: IData) => VNode>;
|
|
23
|
+
};
|
|
24
|
+
}>> & {
|
|
25
|
+
onSelect?: ((_item: IData) => any) | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
items: IData[];
|
|
28
|
+
}, {}>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './pql-editor-suggestion.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const IBizPqlEditorSuggestion = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "IBizPqlEditorSuggestion",
|
|
8
|
+
props: {
|
|
9
|
+
items: {
|
|
10
|
+
type: Array,
|
|
11
|
+
default: () => []
|
|
12
|
+
},
|
|
13
|
+
renderItem: {
|
|
14
|
+
type: Function
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
emits: {
|
|
18
|
+
select: (_item) => true
|
|
19
|
+
},
|
|
20
|
+
setup(_props, {
|
|
21
|
+
emit
|
|
22
|
+
}) {
|
|
23
|
+
const ns = useNamespace("pql-editor-suggestion");
|
|
24
|
+
const handleClick = (item) => {
|
|
25
|
+
emit("select", item);
|
|
26
|
+
};
|
|
27
|
+
return {
|
|
28
|
+
ns,
|
|
29
|
+
handleClick
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
render() {
|
|
33
|
+
return createVNode("div", {
|
|
34
|
+
"class": this.ns.b()
|
|
35
|
+
}, [this.items.map((item) => {
|
|
36
|
+
return createVNode("div", {
|
|
37
|
+
"class": [this.ns.b("item")],
|
|
38
|
+
"onClick": (e) => {
|
|
39
|
+
e.stopPropagation();
|
|
40
|
+
this.handleClick(item);
|
|
41
|
+
}
|
|
42
|
+
}, [this.renderItem ? this.renderItem(item) : createVNode("div", {
|
|
43
|
+
"class": this.ns.be("item", "text")
|
|
44
|
+
}, [item.label || ""])]);
|
|
45
|
+
})]);
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
|
|
49
|
+
export { IBizPqlEditorSuggestion };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-pql-editor{display:flex;flex-direction:column;width:100%;height:100%;padding:var(--ibiz-spacing-base-tight);overflow:auto;font-size:var(--ibiz-font-size-regular);border:1px solid var(--ibiz-color-border);border-radius:var(--ibiz-border-radius-small);outline:0}.ibiz-pql-editor [data-slate-node=element][data-slate-void=true]{margin:var(--ibiz-spacing-extra-tight)}.ibiz-pql-editor-content{flex:1 0 0}.ibiz-pql-editor-content .w-e-text-placeholder{top:var(--ibiz-spacing-super-tight);left:0;font-style:normal}.ibiz-pql-editor-content .w-e-text-container [data-slate-editor]{padding:0}.ibiz-pql-editor-content .w-e-text-container [data-slate-editor] p{margin:0}.ibiz-pql-editor-footer{flex:0 0 auto;font-size:var(--ibiz-font-size-small);color:var(--ibiz-color-danger)}.ibiz-pql-editor-error-msg{position:relative}.ibiz-pql-editor-error-msg::after{position:absolute;bottom:-.12rem;left:0;width:100%;height:.25rem;content:"";background:linear-gradient(135deg,transparent,transparent 45%,var(--ibiz-color-danger),transparent 55%,transparent 100%),linear-gradient(45deg,transparent,transparent 45%,var(--ibiz-color-danger),transparent 55%,transparent 100%);background-repeat:repeat-x,repeat-x;background-size:.5rem .5rem}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PropType, VNode } from 'vue';
|
|
2
|
+
import { IDomEditor } from '@wangeditor/editor';
|
|
3
|
+
import { ISchemaField } from '../../interface';
|
|
4
|
+
import './pql-editor.scss';
|
|
5
|
+
export declare const IBizPqlEditor: import("vue").DefineComponent<{
|
|
6
|
+
fields: {
|
|
7
|
+
type: PropType<ISchemaField[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
value: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
readonly: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
placeholder: {
|
|
19
|
+
type: StringConstructor;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
context: {
|
|
23
|
+
type: PropType<IContext>;
|
|
24
|
+
required: true;
|
|
25
|
+
};
|
|
26
|
+
renderItem: {
|
|
27
|
+
type: PropType<(_item: IData) => VNode>;
|
|
28
|
+
};
|
|
29
|
+
}, {
|
|
30
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
31
|
+
editorRef: import("vue").Ref<HTMLElement | undefined>;
|
|
32
|
+
editor: IDomEditor | undefined;
|
|
33
|
+
errorMsg: import("vue").Ref<string | undefined>;
|
|
34
|
+
verify: () => boolean;
|
|
35
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
+
change: (_value: string) => true;
|
|
37
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
38
|
+
fields: {
|
|
39
|
+
type: PropType<ISchemaField[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
value: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
readonly: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
placeholder: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
context: {
|
|
55
|
+
type: PropType<IContext>;
|
|
56
|
+
required: true;
|
|
57
|
+
};
|
|
58
|
+
renderItem: {
|
|
59
|
+
type: PropType<(_item: IData) => VNode>;
|
|
60
|
+
};
|
|
61
|
+
}>> & {
|
|
62
|
+
onChange?: ((_value: string) => any) | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
value: string;
|
|
65
|
+
fields: ISchemaField[];
|
|
66
|
+
readonly: boolean;
|
|
67
|
+
placeholder: string;
|
|
68
|
+
}, {}>;
|