@ibiz-template/vue3-components 0.7.41-alpha.12 → 0.7.41-alpha.14
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/ibiz-markdown-editor-0VHzFa2l.js +1 -0
- package/dist/index-1fHusiqt.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-TYKjfyR5.js → wang-editor-z0RY8bO1.js} +1 -1
- package/dist/{xlsx-util-Q9msA8ef.js → xlsx-util-8Du1A340.js} +1 -1
- package/es/control/calendar/calendar.mjs +4 -1
- package/es/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/es/control/calendar/components/calendar-user/calendar-user.mjs +76 -2
- package/es/control/data-view/data-view.d.ts +1 -1
- package/es/control/data-view/index.d.ts +1 -1
- package/es/control/drbar/drbar.controller.d.ts +6 -0
- package/es/control/drbar/drbar.controller.mjs +8 -0
- package/es/control/drbar/drbar.mjs +6 -0
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/drtab/drtab.controller.d.ts +6 -0
- package/es/control/drtab/drtab.controller.mjs +9 -0
- package/es/control/drtab/drtab.mjs +13 -0
- package/es/control/form/form/index.mjs +2 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.d.ts +29 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.mjs +53 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.d.ts +13 -0
- package/es/control/form/form-detail/form-iframe/form-iframe.provider.mjs +21 -0
- package/es/control/form/form-detail/form-iframe/index.d.ts +25 -0
- package/es/control/form/form-detail/form-iframe/index.mjs +12 -0
- package/es/control/form/form-detail/form-item/form-item.css +1 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +6 -4
- package/es/control/form/form-detail/index.d.ts +1 -0
- package/es/control/form/form-detail/index.mjs +1 -0
- package/es/control/form/index.mjs +1 -0
- package/es/control/gantt/gantt.d.ts +1 -1
- package/es/control/gantt/gantt.mjs +4 -1
- package/es/control/gantt/index.d.ts +1 -1
- package/es/control/grid/grid/grid.d.ts +1 -1
- package/es/control/grid/grid/index.d.ts +1 -1
- package/es/control/grid/grid/index.mjs +2 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.d.ts +4 -4
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +5 -8
- package/es/control/grid/virtualized-table/index.d.ts +136 -0
- package/es/control/grid/virtualized-table/index.mjs +18 -0
- package/es/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/es/control/grid/virtualized-table/virtualized-table.d.ts +200 -0
- package/es/control/grid/virtualized-table/virtualized-table.mjs +325 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.d.ts +10 -0
- package/es/control/grid/virtualized-table/virtualized-table.provider.mjs +14 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.d.ts +95 -0
- package/es/control/grid/virtualized-table/virtualized-table.util.mjs +191 -0
- package/es/control/index.mjs +1 -0
- package/es/control/kanban/index.d.ts +44 -1
- package/es/control/kanban/kanban.d.ts +56 -1
- package/es/control/kanban/kanban.mjs +36 -2
- package/es/control/list/index.d.ts +1 -1
- package/es/control/list/list.d.ts +1 -1
- package/es/control/list/list.mjs +1 -1
- package/es/control/search-bar/search-bar.mjs +3 -0
- package/es/control/tab-exp-panel/index.d.ts +1 -0
- package/es/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/es/control/tab-exp-panel/tab-exp-panel.d.ts +2 -1
- package/es/control/tab-exp-panel/tab-exp-panel.mjs +21 -2
- package/es/control/tree/index.d.ts +1 -1
- package/es/control/tree/tree.d.ts +1 -1
- package/es/control/tree/tree.mjs +4 -1
- package/es/control/tree-grid/index.d.ts +1 -1
- package/es/control/tree-grid/tree-grid.d.ts +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/es/editor/array/ibiz-array/ibiz-array.mjs +4 -1
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/components/transfer/transfer.d.ts +1 -1
- package/es/editor/data-picker/ibiz-transfer-picker/ibiz-transfer-picker.d.ts +3 -2
- package/es/editor/date-range-select/date-range-select-picker/date-range-select.d.ts +5 -5
- package/es/editor/date-range-select/date-range-select.controller.mjs +9 -0
- package/es/editor/dropdown-list/ibiz-emoji-picker/ibiz-emoji-picker.d.ts +1 -0
- package/es/editor/dropdown-list/ibiz-tree-picker/ibiz-tree-picker.d.ts +4 -3
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.d.ts +10 -7
- package/es/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.mjs +5 -5
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.mjs +1 -1
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +3 -3
- package/es/editor/span/span/span.d.ts +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +3 -77
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.mjs +167 -108
- package/es/editor/text-box/input/input.d.ts +4 -4
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +1 -1
- package/es/index.mjs +1 -0
- package/es/panel-component/panel-button/panel-button.controller.mjs +2 -1
- package/es/panel-component/panel-button/panel-button.mjs +1 -1
- package/es/util/app-util/app-util.d.ts +54 -2
- package/es/util/app-util/app-util.mjs +48 -1
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/custom-view.engine.d.ts +1 -1
- package/es/view-engine/custom-view.engine.mjs +5 -5
- package/es/view-engine/de-index-view-engine.mjs +1 -1
- package/es/view-engine/edit-view.engine.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +1 -1
- package/es/view-engine/md-custom-view.engine.mjs +5 -5
- package/es/view-engine/opt-view.engine.mjs +1 -1
- package/lib/control/calendar/calendar.cjs +4 -1
- package/lib/control/calendar/components/calendar-user/calendar-user.cjs +76 -2
- package/lib/control/calendar/components/calendar-user/calendar-user.css +1 -1
- package/lib/control/drbar/drbar.cjs +6 -0
- package/lib/control/drbar/drbar.controller.cjs +8 -0
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/drtab/drtab.cjs +13 -0
- package/lib/control/drtab/drtab.controller.cjs +9 -0
- package/lib/control/form/form/index.cjs +2 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.cjs +58 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.css +1 -0
- package/lib/control/form/form-detail/form-iframe/form-iframe.provider.cjs +23 -0
- package/lib/control/form/form-detail/form-iframe/index.cjs +17 -0
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -3
- package/lib/control/form/form-detail/form-item/form-item.css +1 -1
- package/lib/control/form/form-detail/index.cjs +2 -0
- package/lib/control/form/index.cjs +6 -4
- package/lib/control/gantt/gantt.cjs +4 -1
- package/lib/control/grid/grid/index.cjs +2 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +3 -6
- package/lib/control/grid/virtualized-table/index.cjs +23 -0
- package/lib/control/grid/virtualized-table/virtualized-table.cjs +327 -0
- package/lib/control/grid/virtualized-table/virtualized-table.css +1 -0
- package/lib/control/grid/virtualized-table/virtualized-table.provider.cjs +16 -0
- package/lib/control/grid/virtualized-table/virtualized-table.util.cjs +193 -0
- package/lib/control/index.cjs +82 -80
- package/lib/control/kanban/kanban.cjs +34 -0
- package/lib/control/list/list.cjs +1 -1
- package/lib/control/search-bar/search-bar.cjs +3 -0
- package/lib/control/tab-exp-panel/tab-exp-panel.cjs +20 -1
- package/lib/control/tab-exp-panel/tab-exp-panel.css +1 -1
- package/lib/control/tree/tree.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.cjs +4 -1
- package/lib/editor/array/ibiz-array/ibiz-array.css +1 -1
- package/lib/editor/date-range-select/date-range-select.controller.cjs +9 -0
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.cjs +5 -5
- package/lib/editor/dropdown-list/ibiz-virtualized-list/ibiz-virtualized-list.css +1 -1
- package/lib/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.cjs +1 -1
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.cjs +166 -107
- package/lib/editor/text-box/ibiz-input-ip/ibiz-input-ip.css +1 -1
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +1 -1
- package/lib/index.cjs +112 -110
- package/lib/panel-component/panel-button/panel-button.cjs +1 -1
- package/lib/panel-component/panel-button/panel-button.controller.cjs +2 -1
- package/lib/util/app-util/app-util.cjs +47 -0
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/custom-view.engine.cjs +5 -5
- package/lib/view-engine/de-index-view-engine.cjs +1 -1
- package/lib/view-engine/edit-view.engine.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +5 -5
- package/lib/view-engine/opt-view.engine.cjs +1 -1
- package/package.json +5 -5
- package/dist/ibiz-markdown-editor-KyK5mBTS.js +0 -1
- package/dist/index-pyv7Wdpx.js +0 -4
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.12_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.41-alpha.14_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.41-alpha.12_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.41-alpha.14_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
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
export declare const IBizVirtualizedTableControl: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
modelData: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz/model-core").IDEGrid>;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
context: {
|
|
7
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
params: {
|
|
11
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
12
|
+
default: () => {};
|
|
13
|
+
};
|
|
14
|
+
provider: {
|
|
15
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
|
|
16
|
+
};
|
|
17
|
+
mdctrlActiveMode: {
|
|
18
|
+
type: NumberConstructor;
|
|
19
|
+
default: undefined;
|
|
20
|
+
};
|
|
21
|
+
singleSelect: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
rowEditOpen: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
default: undefined;
|
|
28
|
+
};
|
|
29
|
+
isSimple: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
required: false;
|
|
32
|
+
};
|
|
33
|
+
data: {
|
|
34
|
+
type: {
|
|
35
|
+
(arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
36
|
+
(...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
37
|
+
new (arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
38
|
+
new (...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
39
|
+
isArray(arg: any): arg is any[];
|
|
40
|
+
readonly prototype: any[];
|
|
41
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
42
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
43
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
44
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
45
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
46
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
47
|
+
};
|
|
48
|
+
required: false;
|
|
49
|
+
};
|
|
50
|
+
loadDefault: {
|
|
51
|
+
type: BooleanConstructor;
|
|
52
|
+
default: boolean;
|
|
53
|
+
};
|
|
54
|
+
}, {
|
|
55
|
+
c: import("@ibiz-template/runtime").GridController<import("@ibiz/model-core").IDEGrid, import("@ibiz-template/runtime").IGridState, import("@ibiz-template/runtime").IGridEvent>;
|
|
56
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
57
|
+
tableRef: import("vue").Ref<any>;
|
|
58
|
+
tableData: import("vue").ComputedRef<import("@ibiz-template/runtime").ControlVO[]>;
|
|
59
|
+
columnModel: import("vue").ComputedRef<import("./virtualized-table.util").IColumn[]>;
|
|
60
|
+
onPageChange: (page: number) => void;
|
|
61
|
+
onPageRefresh: () => void;
|
|
62
|
+
onPageSizeChange: (size: number) => void;
|
|
63
|
+
renderNoData: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
|
+
[key: string]: any;
|
|
65
|
+
}> | null;
|
|
66
|
+
calcRowClass: (params: import("@ibiz-template/core").IApiParams) => string;
|
|
67
|
+
renderBodyCell: (params: import("@ibiz-template/core").IApiParams) => JSX.Element;
|
|
68
|
+
handleRowClick: (event: MouseEvent, data: import("@ibiz-template/runtime").ControlVO) => Promise<void>;
|
|
69
|
+
calcColumnWidth: (_columns: import("./virtualized-table.util").IColumn[], bodyWidth: number) => import("./virtualized-table.util").IColumn[];
|
|
70
|
+
handleDbRowClick: (event: MouseEvent, data: import("@ibiz-template/runtime").ControlVO) => Promise<void>;
|
|
71
|
+
renderHeaderCell: (params: import("@ibiz-template/core").IApiParams) => JSX.Element;
|
|
72
|
+
renderBatchToolBar: () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}> | undefined;
|
|
75
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
76
|
+
modelData: {
|
|
77
|
+
type: import("vue").PropType<import("@ibiz/model-core").IDEGrid>;
|
|
78
|
+
required: true;
|
|
79
|
+
};
|
|
80
|
+
context: {
|
|
81
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiContext>;
|
|
82
|
+
required: true;
|
|
83
|
+
};
|
|
84
|
+
params: {
|
|
85
|
+
type: import("vue").PropType<import("@ibiz-template/core").IApiParams>;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
provider: {
|
|
89
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
|
|
90
|
+
};
|
|
91
|
+
mdctrlActiveMode: {
|
|
92
|
+
type: NumberConstructor;
|
|
93
|
+
default: undefined;
|
|
94
|
+
};
|
|
95
|
+
singleSelect: {
|
|
96
|
+
type: BooleanConstructor;
|
|
97
|
+
default: undefined;
|
|
98
|
+
};
|
|
99
|
+
rowEditOpen: {
|
|
100
|
+
type: BooleanConstructor;
|
|
101
|
+
default: undefined;
|
|
102
|
+
};
|
|
103
|
+
isSimple: {
|
|
104
|
+
type: BooleanConstructor;
|
|
105
|
+
required: false;
|
|
106
|
+
};
|
|
107
|
+
data: {
|
|
108
|
+
type: {
|
|
109
|
+
(arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
110
|
+
(...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
111
|
+
new (arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
112
|
+
new (...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
113
|
+
isArray(arg: any): arg is any[];
|
|
114
|
+
readonly prototype: any[];
|
|
115
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
116
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
117
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
118
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
119
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
120
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
121
|
+
};
|
|
122
|
+
required: false;
|
|
123
|
+
};
|
|
124
|
+
loadDefault: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
}>>, {
|
|
129
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
130
|
+
singleSelect: boolean;
|
|
131
|
+
mdctrlActiveMode: number;
|
|
132
|
+
rowEditOpen: boolean;
|
|
133
|
+
isSimple: boolean;
|
|
134
|
+
loadDefault: boolean;
|
|
135
|
+
}, {}>>;
|
|
136
|
+
export default IBizVirtualizedTableControl;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { registerControlProvider } from '@ibiz-template/runtime';
|
|
3
|
+
import { VirtualizedTableControl } from './virtualized-table.mjs';
|
|
4
|
+
import { VirtualizedTableProvider } from './virtualized-table.provider.mjs';
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
const IBizVirtualizedTableControl = withInstall(
|
|
8
|
+
VirtualizedTableControl,
|
|
9
|
+
(v) => {
|
|
10
|
+
v.component(VirtualizedTableControl.name, VirtualizedTableControl);
|
|
11
|
+
registerControlProvider(
|
|
12
|
+
"GRID_VIRTUALIZED_TABLE",
|
|
13
|
+
() => new VirtualizedTableProvider()
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
export { IBizVirtualizedTableControl, IBizVirtualizedTableControl as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-control-virtualized-table{--ibiz-control-virtualized-table-text-color:var(--ibiz-color-text-0);--ibiz-control-virtualized-table-bg-color:transparent;--ibiz-control-virtualized-table-padding:var(--ibiz-spacing-none);--ibiz-control-virtualized-table-cell-padding:var(--ibiz-spacing-tight);--ibiz-control-virtualized-table-selection-padding:var(--ibiz-spacing-base-loose);--ibiz-control-virtualized-table-row-edit-bg-color:var(--ibiz-color-fill-2);--ibiz-control-virtualized-table-row-bg-color:var(--ibiz-color-bg-1);--ibiz-control-virtualized-table-row-bg-color-2:var(--ibiz-color-bg-0);--ibiz-control-virtualized-table-row-hover-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-virtualized-table-row-select-color:var(--ibiz-color-primary-light-default);--ibiz-control-virtualized-table-row-expand-icon-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-tight);--ibiz-control-virtualized-table-now-header-height:54px;--ibiz-control-virtualized-table-scrollbar-width:4px;--ibiz-control-virtualized-table-scrollbar-bg-color:var(--ibiz-color-fill-2);--ibiz-control-virtualized-table-scrollbar-bg-hover-opacity:0.5;--ibiz-control-virtualized-table-scrollbar-bg-hover-color:var(--ibiz-color-fill-2);--ibiz-control-virtualized-table-header-text-color:var(--ibiz-color-text-2);--ibiz-control-virtualized-table-header-cell-padding:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-control-virtualized-table-header-height:auto;--ibiz-control-virtualized-table-header-min-height:54px;--ibiz-control-virtualized-table-header-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-virtualized-table-header-font-size:var(--ibiz-font-size-regular);--ibiz-control-virtualized-table-header-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-virtualized-table-content-text-color:var(--ibiz-control-virtualized-table-text-color);--ibiz-control-virtualized-table-content-row-height:48px;--ibiz-control-virtualized-table-page-text-color:var(--ibiz-color-text-2);--ibiz-control-virtualized-table-page-height:50px;--ibiz-control-virtualized-table-page-padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base-tight);--ibiz-control-virtualized-table-footer-text-color:var(--ibiz-color-text-2);--ibiz-control-virtualized-table-footer-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-virtualized-table-footer-font-size:var(--ibiz-font-size-regular);--ibiz-control-virtualized-table-footer-font-weight:var(--ibiz-font-weight-bold);position:relative;width:100%;height:100%;padding:var(--ibiz-control-virtualized-table-padding);background-color:var(--ibiz-control-virtualized-table-bg-color)}.ibiz-control-virtualized-table.is-enable-page .el-auto-resizer{height:calc(100% - var(--ibiz-control-virtualized-table-page-height))!important}.ibiz-control-virtualized-table.is-enable-page .el-table-v2__empty{height:calc(100% - var(--ibiz-control-virtualized-table-page-height))}.ibiz-control-virtualized-table__table{width:100%;height:100%}.ibiz-control-virtualized-table__table.el-table-v2{--el-table-header-bg-color:var(--ibiz-control-virtualized-table-header-bg-color);--el-table-border-color:transparent}.ibiz-control-virtualized-table__table .el-table-v2__empty{height:100%}.ibiz-control-virtualized-table__table .el-table-v2__header-row,.ibiz-control-virtualized-table__table .el-table-v2__row{border:none}.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__header-cell,.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__row-cell{padding:var(--ibiz-control-virtualized-table-cell-padding)}.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__header-cell:not(.is-selection),.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__row-cell:not(.is-selection){cursor:pointer}.ibiz-control-virtualized-table__table .el-table-v2__main{background-color:transparent}.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__body .el-table-v2__row .el-table-v2__row-cell{background:var(--ibiz-control-grid-row-bg-color)}.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__body .el-table-v2__row:nth-child(2n) .el-table-v2__row-cell{background-color:var(--ibiz-control-grid-row-bg-color-2)}.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__body .el-table-v2__row:hover .el-table-v2__row-cell{background-color:var(--ibiz-control-grid-row-hover-color)}.ibiz-control-virtualized-table__table.el-table-v2 .el-table-v2__body .el-table-v2__row.is-selected .el-table-v2__row-cell{background-color:var(--ibiz-control-virtualized-table-row-select-color)}.ibiz-control-virtualized-table__table .el-table-v2__body{color:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-0:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-1:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-2:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-3:var(--ibiz-control-grid-content-text-color);border-bottom:.1px solid var(--ibiz-color-border)}.ibiz-control-virtualized-table__header-cell{font-size:var(--ibiz-control-grid-header-font-size);font-weight:var(--ibiz-control-grid-header-font-weight);color:var(--ibiz-control-grid-header-text-color);word-break:break-word;white-space:pre-wrap}.ibiz-control-virtualized-table__caret-wrapper{display:inline-flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;width:24px;height:14px;overflow:initial;line-height:23px;vertical-align:middle;cursor:pointer}.ibiz-control-virtualized-table__caret-wrapper--sort-caret{width:0;height:0;border:solid 5px transparent;opacity:.6}.ibiz-control-virtualized-table__caret-wrapper--asc{border-bottom-color:var(--ibiz-color-text-2)}.ibiz-control-virtualized-table__caret-wrapper--asc.is-active{border-bottom-color:var(--ibiz-color-primary)}.ibiz-control-virtualized-table__caret-wrapper--desc{border-top-color:var(--ibiz-color-text-2)}.ibiz-control-virtualized-table__caret-wrapper--desc.is-active{border-top-color:var(--ibiz-color-primary)}.ibiz-control-virtualized-table__quick-toolbar{justify-content:center}.ibiz-control-virtualized-table__batch-toolbar{position:absolute;top:0;left:54px;z-index:99;display:none;width:calc(100% - 54px);height:var(--ibiz-control-virtualized-table-now-header-height);font-size:var(--ibiz-font-size-regular);font-weight:var(--ibiz-font-weight-regular);background-color:var(--ibiz-control-virtualized-table-header-bg-color)}.ibiz-control-virtualized-table__batch-toolbar.is-show{display:flex;align-items:center;justify-content:flex-start}.ibiz-control-virtualized-table__batch-toolbar--separator{padding:0 var(--ibiz-spacing-base-tight)}.ibiz-control-virtualized-table__batch-toolbar--content{height:100%;display:flex;align-items:center;justify-content:flex-start}.ibiz-control-virtualized-table.is-enable-customized .ibiz-control-virtualized-table__setting-box{display:flex;align-items:center;justify-content:flex-start;position:absolute;top:0;right:0;z-index:1;height:var(--ibiz-control-virtualized-table-now-header-height);padding-right:var(--ibiz-spacing-extra-tight);background-color:var(--ibiz-control-virtualized-table-header-bg-color)}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { VNode, PropType } from 'vue';
|
|
2
|
+
import { IDEGrid } from '@ibiz/model-core';
|
|
3
|
+
import { ControlVO, GridController, IControlProvider } from '@ibiz-template/runtime';
|
|
4
|
+
import { IColumn } from './virtualized-table.util';
|
|
5
|
+
import './virtualized-table.scss';
|
|
6
|
+
export declare const VirtualizedTableControl: import("vue").DefineComponent<{
|
|
7
|
+
/**
|
|
8
|
+
* @description 表格模型数据
|
|
9
|
+
*/
|
|
10
|
+
modelData: {
|
|
11
|
+
type: PropType<IDEGrid>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description 应用上下文对象
|
|
16
|
+
*/
|
|
17
|
+
context: {
|
|
18
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* @description 视图参数对象
|
|
23
|
+
* @default {}
|
|
24
|
+
*/
|
|
25
|
+
params: {
|
|
26
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @description 部件适配器
|
|
31
|
+
*/
|
|
32
|
+
provider: {
|
|
33
|
+
type: PropType<IControlProvider>;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* @description 部件行数据默认激活模式,值为0:不激活,值为1:单击激活,值为2:双击激活
|
|
37
|
+
*/
|
|
38
|
+
mdctrlActiveMode: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: undefined;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* @description 是否单选
|
|
44
|
+
*/
|
|
45
|
+
singleSelect: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: undefined;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @description 是否启用行编辑
|
|
51
|
+
*/
|
|
52
|
+
rowEditOpen: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* @description 是否是简单模式,即直接传入数据,不加载数据
|
|
58
|
+
*/
|
|
59
|
+
isSimple: {
|
|
60
|
+
type: BooleanConstructor;
|
|
61
|
+
required: false;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* @description 简单模式下传入的数据
|
|
65
|
+
*/
|
|
66
|
+
data: {
|
|
67
|
+
type: {
|
|
68
|
+
(arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
69
|
+
(...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
70
|
+
new (arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
71
|
+
new (...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
72
|
+
isArray(arg: any): arg is any[];
|
|
73
|
+
readonly prototype: any[];
|
|
74
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
75
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
76
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
77
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
78
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
79
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
80
|
+
};
|
|
81
|
+
required: false;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @description 是否默认加载数据
|
|
85
|
+
* @default true
|
|
86
|
+
*/
|
|
87
|
+
loadDefault: {
|
|
88
|
+
type: BooleanConstructor;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
c: GridController<IDEGrid, import("@ibiz-template/runtime").IGridState, import("@ibiz-template/runtime").IGridEvent>;
|
|
93
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
94
|
+
tableRef: import("vue").Ref<any>;
|
|
95
|
+
tableData: import("vue").ComputedRef<ControlVO[]>;
|
|
96
|
+
columnModel: import("vue").ComputedRef<IColumn[]>;
|
|
97
|
+
onPageChange: (page: number) => void;
|
|
98
|
+
onPageRefresh: () => void;
|
|
99
|
+
onPageSizeChange: (size: number) => void;
|
|
100
|
+
renderNoData: () => VNode | null;
|
|
101
|
+
calcRowClass: (params: IParams) => string;
|
|
102
|
+
renderBodyCell: (params: IParams) => JSX.Element;
|
|
103
|
+
handleRowClick: (event: MouseEvent, data: ControlVO) => Promise<void>;
|
|
104
|
+
calcColumnWidth: (_columns: IColumn[], bodyWidth: number) => IColumn[];
|
|
105
|
+
handleDbRowClick: (event: MouseEvent, data: ControlVO) => Promise<void>;
|
|
106
|
+
renderHeaderCell: (params: IParams) => JSX.Element;
|
|
107
|
+
renderBatchToolBar: () => VNode | undefined;
|
|
108
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
+
/**
|
|
110
|
+
* @description 表格模型数据
|
|
111
|
+
*/
|
|
112
|
+
modelData: {
|
|
113
|
+
type: PropType<IDEGrid>;
|
|
114
|
+
required: true;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* @description 应用上下文对象
|
|
118
|
+
*/
|
|
119
|
+
context: {
|
|
120
|
+
type: PropType<import("@ibiz-template/core").IApiContext>;
|
|
121
|
+
required: true;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* @description 视图参数对象
|
|
125
|
+
* @default {}
|
|
126
|
+
*/
|
|
127
|
+
params: {
|
|
128
|
+
type: PropType<import("@ibiz-template/core").IApiParams>;
|
|
129
|
+
default: () => {};
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* @description 部件适配器
|
|
133
|
+
*/
|
|
134
|
+
provider: {
|
|
135
|
+
type: PropType<IControlProvider>;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* @description 部件行数据默认激活模式,值为0:不激活,值为1:单击激活,值为2:双击激活
|
|
139
|
+
*/
|
|
140
|
+
mdctrlActiveMode: {
|
|
141
|
+
type: NumberConstructor;
|
|
142
|
+
default: undefined;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* @description 是否单选
|
|
146
|
+
*/
|
|
147
|
+
singleSelect: {
|
|
148
|
+
type: BooleanConstructor;
|
|
149
|
+
default: undefined;
|
|
150
|
+
};
|
|
151
|
+
/**
|
|
152
|
+
* @description 是否启用行编辑
|
|
153
|
+
*/
|
|
154
|
+
rowEditOpen: {
|
|
155
|
+
type: BooleanConstructor;
|
|
156
|
+
default: undefined;
|
|
157
|
+
};
|
|
158
|
+
/**
|
|
159
|
+
* @description 是否是简单模式,即直接传入数据,不加载数据
|
|
160
|
+
*/
|
|
161
|
+
isSimple: {
|
|
162
|
+
type: BooleanConstructor;
|
|
163
|
+
required: false;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* @description 简单模式下传入的数据
|
|
167
|
+
*/
|
|
168
|
+
data: {
|
|
169
|
+
type: {
|
|
170
|
+
(arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
171
|
+
(...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
172
|
+
new (arrayLength: number): import("@ibiz-template/core").IApiData[];
|
|
173
|
+
new (...items: import("@ibiz-template/core").IApiData[]): import("@ibiz-template/core").IApiData[];
|
|
174
|
+
isArray(arg: any): arg is any[];
|
|
175
|
+
readonly prototype: any[];
|
|
176
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
177
|
+
from<T_1, U>(arrayLike: ArrayLike<T_1>, mapfn: (v: T_1, k: number) => U, thisArg?: any): U[];
|
|
178
|
+
from<T_2>(iterable: Iterable<T_2> | ArrayLike<T_2>): T_2[];
|
|
179
|
+
from<T_3, U_1>(iterable: Iterable<T_3> | ArrayLike<T_3>, mapfn: (v: T_3, k: number) => U_1, thisArg?: any): U_1[];
|
|
180
|
+
of<T_4>(...items: T_4[]): T_4[];
|
|
181
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
182
|
+
};
|
|
183
|
+
required: false;
|
|
184
|
+
};
|
|
185
|
+
/**
|
|
186
|
+
* @description 是否默认加载数据
|
|
187
|
+
* @default true
|
|
188
|
+
*/
|
|
189
|
+
loadDefault: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
}>>, {
|
|
194
|
+
params: import("@ibiz-template/core").IApiParams;
|
|
195
|
+
singleSelect: boolean;
|
|
196
|
+
mdctrlActiveMode: number;
|
|
197
|
+
rowEditOpen: boolean;
|
|
198
|
+
isSimple: boolean;
|
|
199
|
+
loadDefault: boolean;
|
|
200
|
+
}, {}>;
|