@vunk/plus 1.12.2 → 1.13.1
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/components/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/components/agent-chat-provider/index.cjs +1 -0
- package/components/agent-chat-provider/index.mjs +113 -187
- package/components/agent-chat-provider/src/index.vue.d.ts +3 -2
- package/components/avatar/index.cjs +1 -0
- package/components/avatar/index.mjs +25 -31
- package/components/avatar/src/index.vue.d.ts +40 -39
- package/components/broadcasting-markdown/__tests__/const.test.d.ts +1 -0
- package/components/broadcasting-markdown/__tests__/utils.test.d.ts +1 -0
- package/components/broadcasting-markdown/index.cjs +5 -0
- package/components/broadcasting-markdown/index.mjs +346 -4376
- package/components/broadcasting-markdown/src/howler-speech.vue.d.ts +18 -24
- package/components/broadcasting-markdown/src/index.vue.d.ts +101 -51
- package/components/broadcasting-markdown/src/paragraph.vue.d.ts +17 -29
- package/components/broadcasting-markdown/src/speech-error.vue.d.ts +2 -59
- package/components/bubble-list/index.cjs +1 -0
- package/components/bubble-list/index.mjs +220 -302
- package/components/bubble-list/src/core/index.vue.d.ts +40 -885
- package/components/bubble-list/src/core/loading.vue.d.ts +3 -0
- package/components/bubble-list/src/index.vue.d.ts +29 -1321
- package/components/bubble-templates/index.cjs +1 -0
- package/components/bubble-templates/index.mjs +34 -49
- package/components/bubble-templates/src/index.vue.d.ts +3 -224
- package/components/chat-independent/index.cjs +1 -0
- package/components/chat-independent/index.mjs +105 -212
- package/components/chat-independent/src/index.vue.d.ts +20 -2712
- package/components/components.css +1 -0
- package/components/drawer/index.cjs +1 -0
- package/components/drawer/index.mjs +53 -94
- package/components/drawer/src/ctx.d.ts +22 -22
- package/components/drawer/src/index.vue.d.ts +84 -557
- package/components/index.cjs +1 -0
- package/components/index.d.ts +1 -0
- package/components/lottie-animation/index.cjs +1 -0
- package/components/lottie-animation/index.mjs +36 -55
- package/components/lottie-animation/src/index.vue.d.ts +3 -2
- package/components/metahuman-broadcasting/index.cjs +1 -0
- package/components/metahuman-broadcasting/index.mjs +89 -140
- package/components/metahuman-broadcasting/src/index.vue.d.ts +16 -718
- package/components/monaco-editor/index.cjs +1 -0
- package/components/monaco-editor/index.mjs +68 -95
- package/components/monaco-editor/src/index.vue.d.ts +3 -2
- package/components/monaco-environment/index.cjs +1 -0
- package/components/monaco-environment/index.mjs +23 -38
- package/components/monaco-environment/src/index.vue.d.ts +2 -1
- package/components/pixi-frame/index.cjs +1 -0
- package/components/pixi-frame/index.mjs +941 -1969
- package/components/pixi-frame/src/apng.vue.d.ts +17 -73
- package/components/pixi-frame/src/bitmap-generator.vue.d.ts +24 -66
- package/components/pixi-frame/src/bitmap.vue.d.ts +28 -80
- package/components/pixi-frame/src/buffer-image.vue.d.ts +29 -97
- package/components/pixi-frame/src/core.vue.d.ts +20 -75
- package/components/pixi-frame/src/index.vue.d.ts +302 -237
- package/components/pixi-frame/src/provider.vue.d.ts +12 -1
- package/components/pixi-frame/src/video.vue.d.ts +17 -71
- package/components/pixi-frame/src/view.vue.d.ts +4 -16
- package/components/recorder-button/index.cjs +1 -0
- package/components/recorder-button/index.mjs +140 -269
- package/components/recorder-button/src/index.vue.d.ts +67 -66
- package/components/routes-menu-content/index.cjs +1 -0
- package/components/routes-menu-content/index.mjs +150 -229
- package/components/routes-menu-content/src/index.vue.d.ts +27 -26
- package/components/routes-menu-content/src/item/core/index.vue.d.ts +27 -26
- package/components/routes-menu-content/src/item/index.vue.d.ts +27 -26
- package/components/scrollbar/index.cjs +1 -0
- package/components/scrollbar/index.mjs +288 -567
- package/components/scrollbar/src/bar.vue.d.ts +6 -133
- package/components/scrollbar/src/index.vue.d.ts +66 -337
- package/components/scrollbar/src/thumb.vue.d.ts +3 -80
- package/components/sender/index.cjs +1 -0
- package/components/sender/index.mjs +156 -285
- package/components/sender/src/SenderHeader.vue.d.ts +14 -221
- package/components/sender/src/index.vue.d.ts +16 -505
- package/components/speech-button/index.cjs +1 -0
- package/components/speech-button/index.mjs +98 -144
- package/components/speech-button/src/LoadingIcon.vue.d.ts +2 -1
- package/components/speech-button/src/RecordingIcon.vue.d.ts +2 -1
- package/components/speech-button/src/index.vue.d.ts +6 -5
- package/components/table-columns/index.cjs +1 -0
- package/components/table-columns/index.mjs +48 -78
- package/components/table-columns/src/ctx.d.ts +10 -10
- package/components/table-columns/src/el-ctx.d.ts +1 -1
- package/components/table-columns/src/index.vue.d.ts +24 -23
- package/components/tables-v1/index.cjs +1 -0
- package/components/tables-v1/index.mjs +99 -160
- package/components/tables-v1/src/ctx.d.ts +28 -28
- package/components/tables-v1/src/el-ctx.d.ts +2 -2
- package/components/tables-v1/src/index.vue.d.ts +88 -2243
- package/components/tables-v1-checkbox/index.cjs +98 -0
- package/components/tables-v1-checkbox/index.mjs +1594 -3735
- package/components/tables-v1-checkbox/src/ctx.d.ts +26 -26
- package/components/tables-v1-checkbox/src/index.vue.d.ts +176 -2330
- package/components/text/index.cjs +1 -0
- package/components/text/index.mjs +70 -108
- package/components/text/src/ctx.d.ts +31 -31
- package/components/text/src/index.vue.d.ts +92 -1819
- package/components/thinking/index.cjs +1 -0
- package/components/thinking/index.mjs +127 -227
- package/components/thinking/src/index.vue.d.ts +22 -2044
- package/components/typing-markdown/index.cjs +1 -0
- package/components/typing-markdown/index.mjs +61 -201
- package/components/typing-markdown/src/index.vue.d.ts +3 -2
- package/components/vditor/index.cjs +1 -0
- package/components/vditor/index.mjs +121 -195
- package/components/vditor/src/ctx.d.ts +2 -2
- package/components/vditor/src/handle-fullscreen.vue.d.ts +3 -2
- package/components/vditor/src/handle-value.vue.d.ts +3 -2
- package/components/vditor/src/index.vue.d.ts +5 -4
- package/components/xgplayer/index.cjs +1 -0
- package/components/xgplayer/index.mjs +49 -90
- package/components/xgplayer/src/core.vue.d.ts +13 -18
- package/components/xgplayer/src/index.vue.d.ts +13 -67
- package/composables/el-breakpoints/index.cjs +1 -0
- package/composables/el-breakpoints/index.d.ts +10 -10
- package/composables/el-breakpoints/index.mjs +10 -12
- package/composables/index.cjs +1 -0
- package/composables/index.d.ts +1 -0
- package/composables/recorder/index.cjs +1 -0
- package/composables/recorder/index.mjs +9172 -14803
- package/element/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/element/bubble/index.cjs +3 -0
- package/element/bubble/index.d.ts +1 -1
- package/element/bubble/index.mjs +1 -1
- package/element/bubble/src/index.vue.d.ts +22 -22
- package/element/index.css +1 -1
- package/element/thinking/index.cjs +1 -0
- package/element/thinking/index.d.ts +1 -1
- package/element/thinking/index.mjs +1 -1
- package/element/thinking/src/index.vue.d.ts +26 -26
- package/element/thinking/src/types.d.ts +10 -0
- package/icons/_plugin-vue_export-helper-BHFhmbuH.js +1 -0
- package/icons/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/icons/end/index.cjs +1 -0
- package/icons/end/index.mjs +21 -26
- package/icons/end/src/index.vue.d.ts +3 -0
- package/icons/keyboard/index.cjs +1 -0
- package/icons/keyboard/index.mjs +21 -26
- package/icons/keyboard/src/index.vue.d.ts +3 -0
- package/icons/start/index.cjs +1 -0
- package/icons/start/index.mjs +21 -26
- package/icons/start/src/index.vue.d.ts +3 -0
- package/icons/voice/index.cjs +1 -0
- package/icons/voice/index.mjs +26 -44
- package/icons/voice/src/index.vue.d.ts +2 -3
- package/index.css +2 -558
- package/index.d.ts +1 -0
- package/package.json +78 -87
- package/shared/data/index.cjs +1 -0
- package/shared/data/index.mjs +16 -22
- package/shared/types/index.cjs +1 -0
- package/shared/types/index.d.ts +1 -0
- package/components/LinkOutlined.mjs +0 -1321
- package/components/_commonjsHelpers.mjs +0 -7
- package/components/_plugin-vue_export-helper.mjs +0 -9
- package/components/bubble-list/index.css +0 -70
- package/components/bubble-templates/index.css +0 -4
- package/components/chat-independent/index.css +0 -47
- package/components/drawer/index.css +0 -124
- package/components/index2.mjs +0 -78
- package/components/lottie-animation/index.css +0 -4
- package/components/monaco-editor/index.css +0 -4
- package/components/pixi-frame/index.css +0 -4
- package/components/recorder-button/index.css +0 -69
- package/components/sender/index.css +0 -22
- package/components/speech-button/index.css +0 -10
- package/components/tables-v1/index.css +0 -7
- package/components/tables-v1-checkbox/index.css +0 -8
- package/components/thinking/index.css +0 -125
- package/components/typing-markdown/index.css +0 -31
- package/components/vditor/index.css +0 -12
- package/components/xgplayer/index.css +0 -1
- package/icons/_plugin-vue_export-helper.mjs +0 -9
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { VNode } from 'vue';
|
|
2
2
|
import type { Source } from './types';
|
|
3
|
-
declare const _default:
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
4
6
|
source: {
|
|
5
7
|
type: import("vue").PropType<Source<any>[]>;
|
|
6
8
|
default: () => never[];
|
|
@@ -22,13 +24,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
22
24
|
type: (StringConstructor | NumberConstructor)[];
|
|
23
25
|
default: string;
|
|
24
26
|
};
|
|
25
|
-
renderHeader: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["renderHeader"]>;
|
|
27
|
+
renderHeader: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["renderHeader"]>;
|
|
26
28
|
sortable: {
|
|
27
29
|
type: (BooleanConstructor | StringConstructor)[];
|
|
28
30
|
default: boolean;
|
|
29
31
|
};
|
|
30
|
-
sortMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortMethod"]>;
|
|
31
|
-
sortBy: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortBy"]>;
|
|
32
|
+
sortMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortMethod"]>;
|
|
33
|
+
sortBy: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortBy"]>;
|
|
32
34
|
resizable: {
|
|
33
35
|
type: BooleanConstructor;
|
|
34
36
|
default: boolean;
|
|
@@ -39,20 +41,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
39
41
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
40
42
|
showOverflowTooltip: BooleanConstructor;
|
|
41
43
|
fixed: (BooleanConstructor | StringConstructor)[];
|
|
42
|
-
formatter: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["formatter"]>;
|
|
43
|
-
selectable: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["selectable"]>;
|
|
44
|
+
formatter: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["formatter"]>;
|
|
45
|
+
selectable: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["selectable"]>;
|
|
44
46
|
reserveSelection: BooleanConstructor;
|
|
45
|
-
filterMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filterMethod"]>;
|
|
46
|
-
filteredValue: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filteredValue"]>;
|
|
47
|
-
filters: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filters"]>;
|
|
47
|
+
filterMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filterMethod"]>;
|
|
48
|
+
filteredValue: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filteredValue"]>;
|
|
49
|
+
filters: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filters"]>;
|
|
48
50
|
filterPlacement: StringConstructor;
|
|
49
51
|
filterMultiple: {
|
|
50
52
|
type: BooleanConstructor;
|
|
51
53
|
default: boolean;
|
|
52
54
|
};
|
|
53
|
-
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["index"]>;
|
|
55
|
+
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["index"]>;
|
|
54
56
|
sortOrders: {
|
|
55
|
-
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortOrders"]>;
|
|
57
|
+
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortOrders"]>;
|
|
56
58
|
default: () => (string | null)[];
|
|
57
59
|
validator: (val: import("element-plus").TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
58
60
|
};
|
|
@@ -80,13 +82,13 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
80
82
|
type: (StringConstructor | NumberConstructor)[];
|
|
81
83
|
default: string;
|
|
82
84
|
};
|
|
83
|
-
renderHeader: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["renderHeader"]>;
|
|
85
|
+
renderHeader: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["renderHeader"]>;
|
|
84
86
|
sortable: {
|
|
85
87
|
type: (BooleanConstructor | StringConstructor)[];
|
|
86
88
|
default: boolean;
|
|
87
89
|
};
|
|
88
|
-
sortMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortMethod"]>;
|
|
89
|
-
sortBy: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortBy"]>;
|
|
90
|
+
sortMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortMethod"]>;
|
|
91
|
+
sortBy: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortBy"]>;
|
|
90
92
|
resizable: {
|
|
91
93
|
type: BooleanConstructor;
|
|
92
94
|
default: boolean;
|
|
@@ -97,20 +99,20 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
97
99
|
showTooltipWhenOverflow: BooleanConstructor;
|
|
98
100
|
showOverflowTooltip: BooleanConstructor;
|
|
99
101
|
fixed: (BooleanConstructor | StringConstructor)[];
|
|
100
|
-
formatter: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["formatter"]>;
|
|
101
|
-
selectable: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["selectable"]>;
|
|
102
|
+
formatter: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["formatter"]>;
|
|
103
|
+
selectable: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["selectable"]>;
|
|
102
104
|
reserveSelection: BooleanConstructor;
|
|
103
|
-
filterMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filterMethod"]>;
|
|
104
|
-
filteredValue: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filteredValue"]>;
|
|
105
|
-
filters: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["filters"]>;
|
|
105
|
+
filterMethod: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filterMethod"]>;
|
|
106
|
+
filteredValue: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filteredValue"]>;
|
|
107
|
+
filters: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["filters"]>;
|
|
106
108
|
filterPlacement: StringConstructor;
|
|
107
109
|
filterMultiple: {
|
|
108
110
|
type: BooleanConstructor;
|
|
109
111
|
default: boolean;
|
|
110
112
|
};
|
|
111
|
-
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["index"]>;
|
|
113
|
+
index: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["index"]>;
|
|
112
114
|
sortOrders: {
|
|
113
|
-
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults").DefaultRow>["sortOrders"]>;
|
|
115
|
+
type: import("vue").PropType<import("element-plus").TableColumnCtx<import("element-plus/es/components/table/src/table/defaults.mjs").DefaultRow>["sortOrders"]>;
|
|
114
116
|
default: () => (string | null)[];
|
|
115
117
|
validator: (val: import("element-plus").TableColumnCtx<any>["sortOrders"]) => boolean;
|
|
116
118
|
};
|
|
@@ -124,9 +126,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
124
126
|
showOverflowTooltip: boolean;
|
|
125
127
|
reserveSelection: boolean;
|
|
126
128
|
filterMultiple: boolean;
|
|
127
|
-
sortOrders: (import("element-plus/es/components/table/src/table/defaults").TableSortOrder | null)[];
|
|
129
|
+
sortOrders: (import("element-plus/es/components/table/src/table/defaults.mjs").TableSortOrder | null)[];
|
|
128
130
|
showTooltipWhenOverflow: boolean;
|
|
129
131
|
}, {}, {
|
|
130
132
|
ElTableColumn: never;
|
|
131
133
|
}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
132
|
-
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),p=require("@vunk/plus/components/table-columns"),N=require("@vunk/plus/composables/el-breakpoints"),V=require("@vunk/core"),a=require("element-plus"),j=require("@vunk/core/shared/utils-object"),o=require("@vunk/core/shared/utils-vue"),y={data:{type:Array,default:()=>[]},size:a.useSizeProp,width:[String,Number],height:[String,Number],maxHeight:[String,Number],fit:{type:Boolean,default:!0},stripe:Boolean,border:Boolean,rowKey:[String,Function],showHeader:{type:Boolean,default:!0},showSummary:Boolean,sumText:String,summaryMethod:Function,rowClassName:[String,Function],rowStyle:[Object,Function],cellClassName:[String,Function],cellStyle:[Object,Function],headerRowClassName:[String,Function],headerRowStyle:[Object,Function],headerCellClassName:[String,Function],headerCellStyle:[Object,Function],highlightCurrentRow:Boolean,currentRowKey:[String,Number],emptyText:String,expandRowKeys:Array,defaultExpandAll:Boolean,defaultSort:Object,tooltipEffect:String,tooltipOptions:Object,spanMethod:Function,selectOnIndeterminate:{type:Boolean,default:!0},indent:{type:Number,default:16},treeProps:{type:Object,default:()=>({hasChildren:"hasChildren",children:"children",checkStrictly:!1})},lazy:Boolean,load:Function,style:{type:Object,default:()=>({})},className:{type:String,default:""},tableLayout:{type:String,default:"fixed"},scrollbarAlwaysOn:Boolean,flexible:Boolean,showOverflowTooltip:[Boolean,Object],appendFilterPanelTo:String,scrollbarTabindex:{type:[Number,String],default:void 0}};o.bindPropsFactory(y);const f={select:null,"select-all":null,"selection-change":null,"cell-mouse-enter":null,"cell-mouse-leave":null,"cell-contextmenu":null,"cell-click":null,"cell-dblclick":null,"row-click":null,"row-contextmenu":null,"row-dblclick":null,"header-click":null,"header-contextmenu":null,"sort-change":null,"filter-change":null,"current-change":null,"header-dragend":null,"expand-change":null,scroll:null},_=o.onEmitsFactory(f),S=o.bindPropsFactory(a.paginationProps),h=o.onEmitsFactory(a.paginationEmits),P=j.pickObject(y,{excludes:["style","className"]}),v=o.bindPropsFactory(P),d={...p._VkTableColumnsElCtx.tableColumnProps,...a.paginationProps,...P,border:{type:Boolean,default:!0},tableClass:{type:String,default:""},tableStyle:{type:Object,default:void 0},layout:{type:String,default:void 0},pageSize:{type:Number,default:10},currentPage:{type:Number,default:1},start:{type:Number,default:void 0},columns:{type:Array,default:()=>[]},modules:{type:Array,default:()=>["pagination"]},align:{type:String,default:"center"},headerAlign:{type:String,default:"center"},elRef:{type:Function,default:void 0},duplexFull:{type:Boolean,default:!0}},z=o.bindPropsFactory(d),g={...a.paginationEmits,...f,"update:start":u=>typeof u=="number"},M=o.onEmitsFactory(g),q=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:z,createOnEmits:M,createPaginationBindProps:S,createPaginationOnEmits:h,createTableBindProps:v,emits:g,props:d},Symbol.toStringTag,{value:"Module"})),A={key:0,class:"vk-tables-v1-pagination-x"},s=e.defineComponent({name:"VkTablesV1",__name:"index",props:d,emits:g,setup(u,{emit:k}){const l=u,i=k,x=a.ElTable,C=S(l,["layout","currentPage"]),O=h(i,["update:current-page"]),B=p._VkTableColumnsElCtx.createTableColumnBindProps(l),m=v(l),F=_(i),{isMobile:w}=N.useElBreakpoints(),E=e.computed(()=>l.modules.includes("pagination")),c=e.computed({get:()=>l.start!==void 0?Math.floor(l.start/l.pageSize)+1:l.currentPage,set:t=>{i("update:current-page",t),b({currentPage:t})}});function b(t){const r=t.currentPage??c.value,n=t.pageSize??l.pageSize;i("update:start",(r-1)*n)}const T=e.computed(()=>l.layout?l.layout:w.value?"total, prev, pager, next":"total, sizes, prev, pager, next, jumper");return(t,r)=>(e.openBlock(),e.createBlock(e.unref(V.VkDuplexCalc),{class:"vk-tables-v1","with-resize":"one",gap:"var(--vk-tables-v1-gap, 14px)",full:t.duplexFull},{one:e.withCtx(({resizeElementClientMaxHeight:n})=>[e.createVNode(e.unref(x),e.mergeProps(e.unref(m),{ref:t.elRef,style:t.tableStyle,"max-height":t.duplexFull?e.unref(m).maxHeight:n,"class-name":`vk-tables-v1-table ${t.tableClass}`},e.toHandlers(e.unref(F))),{default:e.withCtx(()=>[e.createVNode(e.unref(p.VkTableColumns),e.mergeProps(e.unref(B),{source:t.columns}),null,16,["source"])]),_:2},1040,["style","max-height","class-name"])]),default:e.withCtx(()=>[E.value?(e.openBlock(),e.createElementBlock("div",A,[e.createVNode(e.unref(a.ElPagination),e.mergeProps(e.unref(C),{"current-page":c.value,"onUpdate:currentPage":r[0]||(r[0]=n=>c.value=n),layout:T.value},e.toHandlers(e.unref(O)),{"onUpdate:pageSize":r[1]||(r[1]=n=>b({pageSize:n}))}),null,16,["current-page","layout"])])):e.createCommentVNode("",!0)]),_:1},8,["full"]))}}),R=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));s.install=u=>{u.component(s.name||"VkTablesV1",s)};exports.VkTablesV1=s;exports._VkTabelsV1Ctx=q;exports.__VkTablesV1=R;exports.default=s;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock,
|
|
2
|
-
import { _VkTableColumnsElCtx, VkTableColumns } from
|
|
3
|
-
import { useElBreakpoints } from
|
|
4
|
-
import { VkDuplexCalc } from
|
|
5
|
-
import { useSizeProp, paginationProps, paginationEmits, ElPagination, ElTable } from
|
|
6
|
-
import { pickObject } from
|
|
7
|
-
import { bindPropsFactory, onEmitsFactory } from
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const tableProps$1 = {
|
|
1
|
+
import { defineComponent as H, computed as s, createBlock as K, openBlock as h, unref as l, withCtx as c, createElementBlock as $, createCommentVNode as U, createVNode as p, mergeProps as d, toHandlers as P } from "vue";
|
|
2
|
+
import { _VkTableColumnsElCtx as v, VkTableColumns as D } from "@vunk/plus/components/table-columns";
|
|
3
|
+
import { useElBreakpoints as I } from "@vunk/plus/composables/el-breakpoints";
|
|
4
|
+
import { VkDuplexCalc as L } from "@vunk/core";
|
|
5
|
+
import { useSizeProp as q, paginationProps as x, paginationEmits as k, ElPagination as G, ElTable as J } from "element-plus";
|
|
6
|
+
import { pickObject as Q } from "@vunk/core/shared/utils-object";
|
|
7
|
+
import { bindPropsFactory as u, onEmitsFactory as g } from "@vunk/core/shared/utils-vue";
|
|
8
|
+
const O = {
|
|
11
9
|
/**
|
|
12
10
|
* @description table data
|
|
13
11
|
*/
|
|
@@ -18,7 +16,7 @@ const tableProps$1 = {
|
|
|
18
16
|
/**
|
|
19
17
|
* @description size of Table
|
|
20
18
|
*/
|
|
21
|
-
size:
|
|
19
|
+
size: q,
|
|
22
20
|
width: [String, Number],
|
|
23
21
|
/**
|
|
24
22
|
* @description table's height. By default it has an `auto` height. If its value is a number, the height is measured in pixels; if its value is a string, the value will be assigned to element's style.height, the height is affected by external styles
|
|
@@ -33,7 +31,7 @@ const tableProps$1 = {
|
|
|
33
31
|
*/
|
|
34
32
|
fit: {
|
|
35
33
|
type: Boolean,
|
|
36
|
-
default:
|
|
34
|
+
default: !0
|
|
37
35
|
},
|
|
38
36
|
/**
|
|
39
37
|
* @description whether Table is striped
|
|
@@ -52,7 +50,7 @@ const tableProps$1 = {
|
|
|
52
50
|
*/
|
|
53
51
|
showHeader: {
|
|
54
52
|
type: Boolean,
|
|
55
|
-
default:
|
|
53
|
+
default: !0
|
|
56
54
|
},
|
|
57
55
|
/**
|
|
58
56
|
* @description whether to display a summary row
|
|
@@ -139,7 +137,7 @@ const tableProps$1 = {
|
|
|
139
137
|
*/
|
|
140
138
|
selectOnIndeterminate: {
|
|
141
139
|
type: Boolean,
|
|
142
|
-
default:
|
|
140
|
+
default: !0
|
|
143
141
|
},
|
|
144
142
|
/**
|
|
145
143
|
* @description horizontal indentation of tree data
|
|
@@ -153,13 +151,11 @@ const tableProps$1 = {
|
|
|
153
151
|
*/
|
|
154
152
|
treeProps: {
|
|
155
153
|
type: Object,
|
|
156
|
-
default: () => {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
};
|
|
162
|
-
}
|
|
154
|
+
default: () => ({
|
|
155
|
+
hasChildren: "hasChildren",
|
|
156
|
+
children: "children",
|
|
157
|
+
checkStrictly: !1
|
|
158
|
+
})
|
|
163
159
|
},
|
|
164
160
|
/**
|
|
165
161
|
* @description whether to lazy loading data
|
|
@@ -202,9 +198,9 @@ const tableProps$1 = {
|
|
|
202
198
|
default: void 0
|
|
203
199
|
}
|
|
204
200
|
};
|
|
205
|
-
|
|
206
|
-
const
|
|
207
|
-
|
|
201
|
+
u(O);
|
|
202
|
+
const B = {
|
|
203
|
+
select: null,
|
|
208
204
|
"select-all": null,
|
|
209
205
|
"selection-change": null,
|
|
210
206
|
"cell-mouse-enter": null,
|
|
@@ -222,23 +218,16 @@ const tableEmits = {
|
|
|
222
218
|
"current-change": null,
|
|
223
219
|
"header-dragend": null,
|
|
224
220
|
"expand-change": null,
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
const createElTableOnEmits = onEmitsFactory(tableEmits);
|
|
228
|
-
|
|
229
|
-
const createPaginationBindProps = bindPropsFactory(paginationProps);
|
|
230
|
-
const createPaginationOnEmits = onEmitsFactory(paginationEmits);
|
|
231
|
-
const tableProps = pickObject(tableProps$1, {
|
|
221
|
+
scroll: null
|
|
222
|
+
}, W = g(B), C = u(x), w = g(k), F = Q(O, {
|
|
232
223
|
excludes: ["style", "className"]
|
|
233
|
-
})
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
...
|
|
237
|
-
...paginationProps,
|
|
238
|
-
...tableProps,
|
|
224
|
+
}), T = u(F), b = {
|
|
225
|
+
...v.tableColumnProps,
|
|
226
|
+
...x,
|
|
227
|
+
...F,
|
|
239
228
|
border: {
|
|
240
229
|
type: Boolean,
|
|
241
|
-
default:
|
|
230
|
+
default: !0
|
|
242
231
|
},
|
|
243
232
|
tableClass: {
|
|
244
233
|
type: String,
|
|
@@ -300,135 +289,85 @@ const props = {
|
|
|
300
289
|
*/
|
|
301
290
|
duplexFull: {
|
|
302
291
|
type: Boolean,
|
|
303
|
-
default:
|
|
292
|
+
default: !0
|
|
304
293
|
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
"update:start": (val) => typeof val === "number"
|
|
311
|
-
};
|
|
312
|
-
const createOnEmits = onEmitsFactory(emits);
|
|
313
|
-
|
|
314
|
-
var ctx = /*#__PURE__*/Object.freeze({
|
|
294
|
+
}, X = u(b), y = {
|
|
295
|
+
...k,
|
|
296
|
+
...B,
|
|
297
|
+
"update:start": (o) => typeof o == "number"
|
|
298
|
+
}, Y = g(y), ue = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
315
299
|
__proto__: null,
|
|
316
|
-
createBindProps:
|
|
317
|
-
createOnEmits:
|
|
318
|
-
createPaginationBindProps:
|
|
319
|
-
createPaginationOnEmits:
|
|
320
|
-
createTableBindProps:
|
|
321
|
-
emits:
|
|
322
|
-
props:
|
|
323
|
-
})
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
},
|
|
300
|
+
createBindProps: X,
|
|
301
|
+
createOnEmits: Y,
|
|
302
|
+
createPaginationBindProps: C,
|
|
303
|
+
createPaginationOnEmits: w,
|
|
304
|
+
createTableBindProps: T,
|
|
305
|
+
emits: y,
|
|
306
|
+
props: b
|
|
307
|
+
}, Symbol.toStringTag, { value: "Module" })), Z = {
|
|
308
|
+
key: 0,
|
|
309
|
+
class: "vk-tables-v1-pagination-x"
|
|
310
|
+
}, m = /* @__PURE__ */ H({
|
|
311
|
+
name: "VkTablesV1",
|
|
329
312
|
__name: "index",
|
|
330
|
-
props:
|
|
331
|
-
emits,
|
|
332
|
-
setup(
|
|
333
|
-
|
|
334
|
-
const props = __props;
|
|
335
|
-
const emit = __emit;
|
|
336
|
-
const ElTable$1 = ElTable;
|
|
337
|
-
const paginationBindProps = createPaginationBindProps(props, ["layout", "currentPage"]);
|
|
338
|
-
const paginationOnEmits = createPaginationOnEmits(emit, [
|
|
313
|
+
props: b,
|
|
314
|
+
emits: y,
|
|
315
|
+
setup(o, { emit: E }) {
|
|
316
|
+
const t = o, r = E, N = J, j = C(t, ["layout", "currentPage"]), V = w(r, [
|
|
339
317
|
"update:current-page"
|
|
340
|
-
])
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
const { isMobile } = useElBreakpoints();
|
|
345
|
-
const hasPagination = computed(() => props.modules.includes("pagination"));
|
|
346
|
-
const theCurrentPage = computed({
|
|
347
|
-
get: () => {
|
|
348
|
-
if (props.start !== void 0) {
|
|
349
|
-
return Math.floor(props.start / props.pageSize) + 1;
|
|
350
|
-
}
|
|
351
|
-
return props.currentPage;
|
|
352
|
-
},
|
|
353
|
-
set: (val) => {
|
|
354
|
-
emit("update:current-page", val);
|
|
355
|
-
updateStart({ currentPage: val });
|
|
318
|
+
]), z = v.createTableColumnBindProps(t), f = T(t), _ = W(r), { isMobile: A } = I(), R = s(() => t.modules.includes("pagination")), i = s({
|
|
319
|
+
get: () => t.start !== void 0 ? Math.floor(t.start / t.pageSize) + 1 : t.currentPage,
|
|
320
|
+
set: (e) => {
|
|
321
|
+
r("update:current-page", e), S({ currentPage: e });
|
|
356
322
|
}
|
|
357
323
|
});
|
|
358
|
-
function
|
|
359
|
-
const
|
|
360
|
-
|
|
361
|
-
emit("update:start", (currentPage - 1) * pageSize);
|
|
324
|
+
function S(e) {
|
|
325
|
+
const a = e.currentPage ?? i.value, n = e.pageSize ?? t.pageSize;
|
|
326
|
+
r("update:start", (a - 1) * n);
|
|
362
327
|
}
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
328
|
+
const M = s(() => t.layout ? t.layout : A.value ? "total, prev, pager, next" : "total, sizes, prev, pager, next, jumper");
|
|
329
|
+
return (e, a) => (h(), K(l(L), {
|
|
330
|
+
class: "vk-tables-v1",
|
|
331
|
+
"with-resize": "one",
|
|
332
|
+
gap: "var(--vk-tables-v1-gap, 14px)",
|
|
333
|
+
full: e.duplexFull
|
|
334
|
+
}, {
|
|
335
|
+
one: c(({ resizeElementClientMaxHeight: n }) => [
|
|
336
|
+
p(l(N), d(l(f), {
|
|
337
|
+
ref: e.elRef,
|
|
338
|
+
style: e.tableStyle,
|
|
339
|
+
"max-height": e.duplexFull ? l(f).maxHeight : n,
|
|
340
|
+
"class-name": `vk-tables-v1-table ${e.tableClass}`
|
|
341
|
+
}, P(l(_))), {
|
|
342
|
+
default: c(() => [
|
|
343
|
+
p(l(D), d(l(z), { source: e.columns }), null, 16, ["source"])
|
|
344
|
+
]),
|
|
345
|
+
_: 2
|
|
346
|
+
}, 1040, ["style", "max-height", "class-name"])
|
|
347
|
+
]),
|
|
348
|
+
default: c(() => [
|
|
349
|
+
R.value ? (h(), $("div", Z, [
|
|
350
|
+
p(l(G), d(l(j), {
|
|
351
|
+
"current-page": i.value,
|
|
352
|
+
"onUpdate:currentPage": a[0] || (a[0] = (n) => i.value = n),
|
|
353
|
+
layout: M.value
|
|
354
|
+
}, P(l(V)), {
|
|
355
|
+
"onUpdate:pageSize": a[1] || (a[1] = (n) => S({ pageSize: n }))
|
|
356
|
+
}), null, 16, ["current-page", "layout"])
|
|
357
|
+
])) : U("", !0)
|
|
358
|
+
]),
|
|
359
|
+
_: 1
|
|
360
|
+
}, 8, ["full"]));
|
|
381
361
|
}
|
|
382
|
-
})
|
|
383
|
-
|
|
384
|
-
const _hoisted_1 = {
|
|
385
|
-
key: 0,
|
|
386
|
-
class: "vk-tables-v1-pagination-x"
|
|
387
|
-
};
|
|
388
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
389
|
-
return openBlock(), createBlock($setup["VkDuplexCalc"], {
|
|
390
|
-
class: "vk-tables-v1",
|
|
391
|
-
"with-resize": "one",
|
|
392
|
-
gap: "var(--vk-tables-v1-gap, 14px)",
|
|
393
|
-
full: _ctx.duplexFull
|
|
394
|
-
}, {
|
|
395
|
-
one: withCtx(({ resizeElementClientMaxHeight }) => [
|
|
396
|
-
createVNode($setup["ElTable"], mergeProps($setup.tableProps, {
|
|
397
|
-
ref: _ctx.elRef,
|
|
398
|
-
style: _ctx.tableStyle,
|
|
399
|
-
"max-height": _ctx.duplexFull ? $setup.tableProps.maxHeight : resizeElementClientMaxHeight,
|
|
400
|
-
"class-name": `vk-tables-v1-table ${_ctx.tableClass}`
|
|
401
|
-
}, toHandlers($setup.tableOnEmits)), {
|
|
402
|
-
default: withCtx(() => [
|
|
403
|
-
createVNode($setup["VkTableColumns"], mergeProps($setup.columnsProps, { source: _ctx.columns }), null, 16, ["source"])
|
|
404
|
-
]),
|
|
405
|
-
_: 2
|
|
406
|
-
/* DYNAMIC */
|
|
407
|
-
}, 1040, ["style", "max-height", "class-name"])
|
|
408
|
-
]),
|
|
409
|
-
default: withCtx(() => [
|
|
410
|
-
$setup.hasPagination ? (openBlock(), createElementBlock("div", _hoisted_1, [
|
|
411
|
-
createVNode($setup["ElPagination"], mergeProps($setup.paginationBindProps, {
|
|
412
|
-
"current-page": $setup.theCurrentPage,
|
|
413
|
-
"onUpdate:currentPage": _cache[0] || (_cache[0] = ($event) => $setup.theCurrentPage = $event),
|
|
414
|
-
layout: $setup.layout
|
|
415
|
-
}, toHandlers($setup.paginationOnEmits), {
|
|
416
|
-
"onUpdate:pageSize": _cache[1] || (_cache[1] = ($event) => $setup.updateStart({ pageSize: $event }))
|
|
417
|
-
}), null, 16, ["current-page", "layout"])
|
|
418
|
-
])) : createCommentVNode("v-if", true)
|
|
419
|
-
]),
|
|
420
|
-
_: 1
|
|
421
|
-
/* STABLE */
|
|
422
|
-
}, 8, ["full"]);
|
|
423
|
-
}
|
|
424
|
-
var VkTablesV1 = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/vunk-plus/vunk-plus/packages/components/tables-v1/src/index.vue"]]);
|
|
425
|
-
|
|
426
|
-
var types = /*#__PURE__*/Object.freeze({
|
|
362
|
+
}), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
427
363
|
__proto__: null
|
|
428
|
-
});
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
364
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
365
|
+
m.install = (o) => {
|
|
366
|
+
o.component(m.name || "VkTablesV1", m);
|
|
367
|
+
};
|
|
368
|
+
export {
|
|
369
|
+
m as VkTablesV1,
|
|
370
|
+
ue as _VkTabelsV1Ctx,
|
|
371
|
+
ie as __VkTablesV1,
|
|
372
|
+
m as default
|
|
432
373
|
};
|
|
433
|
-
|
|
434
|
-
export { VkTablesV1, ctx as _VkTabelsV1Ctx, types as __VkTablesV1, VkTablesV1 as default };
|