@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
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
|
+
}, {}>;
|