@opentiny/vue-renderless 3.17.1 → 3.17.3
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/common/deps/popper.js +11 -8
- package/common/index.js +1 -1
- package/common/runtime.js +1 -1
- package/dropdown-menu/index.js +10 -4
- package/package.json +12 -12
- package/types/file-upload.type.d.ts +1 -1
- package/types/input.type.d.ts +1 -1
- package/types/popover.type.d.ts +1 -1
- package/types/transfer.type.d.ts +3 -3
- package/types/upload-dragger.type.d.ts +1 -1
- package/types/{upload-list.type-023fd6e9.d.ts → upload-list.type-02a1effb.d.ts} +3 -3
- package/types/upload-list.type.d.ts +1 -1
- package/types/upload.type.d.ts +1 -1
package/common/deps/popper.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__spreadValues
|
|
3
3
|
} from "../../chunk-G2ADBYYC.js";
|
|
4
|
-
import { on, off, isDisplayNone } from "./dom";
|
|
4
|
+
import { on, off, isDisplayNone, isServer } from "./dom";
|
|
5
5
|
import PopupManager from "./popup-manager";
|
|
6
6
|
import globalConfig from "../global";
|
|
7
7
|
import { typeOf } from "../type";
|
|
@@ -186,13 +186,16 @@ const getOffsetRect = (el) => {
|
|
|
186
186
|
const stopFn = (ev) => {
|
|
187
187
|
ev.stopPropagation();
|
|
188
188
|
};
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
189
|
+
let resizeOb;
|
|
190
|
+
if (!isServer) {
|
|
191
|
+
resizeOb = new ResizeObserver((entries) => {
|
|
192
|
+
entries.forEach((entry) => {
|
|
193
|
+
if (entry.target.popperVm && entry.contentRect.height > 50) {
|
|
194
|
+
entry.target.popperVm.update();
|
|
195
|
+
}
|
|
196
|
+
});
|
|
194
197
|
});
|
|
195
|
-
}
|
|
198
|
+
}
|
|
196
199
|
class Popper {
|
|
197
200
|
constructor(reference, popper, options) {
|
|
198
201
|
this.modifiers = {};
|
|
@@ -210,7 +213,7 @@ class Popper {
|
|
|
210
213
|
setStyle(this._popper, { position: this.state.position, top: 0 });
|
|
211
214
|
if (this._popper) {
|
|
212
215
|
this._popper.popperVm = this;
|
|
213
|
-
resizeOb.observe(this._popper);
|
|
216
|
+
resizeOb && resizeOb.observe(this._popper);
|
|
214
217
|
}
|
|
215
218
|
this.update();
|
|
216
219
|
this._setupEventListeners();
|
package/common/index.js
CHANGED
package/common/runtime.js
CHANGED
package/dropdown-menu/index.js
CHANGED
|
@@ -99,10 +99,16 @@ const useVuePopper = ({
|
|
|
99
99
|
onMounted(() => {
|
|
100
100
|
if (!dropdownVm)
|
|
101
101
|
return;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
102
|
+
if (popper.popperElm) {
|
|
103
|
+
dropdownVm.popperElm = popper.popperElm.value = vm.$el;
|
|
104
|
+
nextTick(() => {
|
|
105
|
+
if (popper.referenceElm) {
|
|
106
|
+
popper.referenceElm.value = dropdownVm.$el;
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
!props.multiStage && dropdownVm.initDomOperation();
|
|
110
|
+
}
|
|
111
|
+
if (dropdownVm.inheritWidth && popper.popperElm) {
|
|
106
112
|
dropdownVm.popperElm.style.minWidth = dropdownVm.$el.clientWidth + "px";
|
|
107
113
|
}
|
|
108
114
|
});
|
package/package.json
CHANGED
|
@@ -1,8 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-renderless",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.3",
|
|
4
4
|
"description": "An enterprise-class UI component library, support both Vue.js 2 and Vue.js 3, as well as PC and mobile.",
|
|
5
|
+
"author": "OpenTiny Team",
|
|
6
|
+
"license": "MIT",
|
|
5
7
|
"homepage": "https://opentiny.design/tiny-vue",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git@github.com:opentiny/tiny-vue.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/opentiny/tiny-vue/issues"
|
|
14
|
+
},
|
|
6
15
|
"keywords": [
|
|
7
16
|
"vue",
|
|
8
17
|
"vue3",
|
|
@@ -14,19 +23,10 @@
|
|
|
14
23
|
"renderless-components",
|
|
15
24
|
"headless-components"
|
|
16
25
|
],
|
|
17
|
-
"author": "OpenTiny Team",
|
|
18
|
-
"license": "MIT",
|
|
19
|
-
"repository": {
|
|
20
|
-
"type": "git",
|
|
21
|
-
"url": "git@github.com:opentiny/tiny-vue.git"
|
|
22
|
-
},
|
|
23
|
-
"bugs": {
|
|
24
|
-
"url": "https://github.com/opentiny/tiny-vue/issues"
|
|
25
|
-
},
|
|
26
26
|
"sideEffects": false,
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
28
|
+
"color": "4.2.3",
|
|
29
|
+
"xss": "1.0.11"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"esno": "^0.16.3",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-
|
|
2
|
+
export { C as IFileUploadAfterDownload, m as IFileUploadApi, D as IFileUploadBatchSegmentDownload, y as IFileUploadBatchSegmentUpload, a as IFileUploadConstants, w as IFileUploadDownloadFileInner, x as IFileUploadDownloadFileSingle, u as IFileUploadDownloadFileSingleInner, t as IFileUploadEdmDownload, s as IFileUploadFile, A as IFileUploadGetFormData, v as IFileUploadLargeDocumentDownload, r as IFileUploadModalVm, o as IFileUploadProps, p as IFileUploadRenderlessParamUtils, q as IFileUploadRenderlessParams, z as IFileUploadSegmentUploadInner, n as IFileUploadService, B as IFileUploadSetWriterFile, E as IFileUploadSliceDownloadChunk, l as IFileUploadState, F as IFileUploadStreamsaver, I as IFileUploadVm } from './upload-list.type-02a1effb.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/input.type.d.ts
CHANGED
|
@@ -237,7 +237,7 @@ declare const calculateNodeStyling: () => (targetElement: HTMLElement) => {
|
|
|
237
237
|
borderSize: number;
|
|
238
238
|
boxSizing: string;
|
|
239
239
|
};
|
|
240
|
-
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "
|
|
240
|
+
declare const calcTextareaHeight: ({ api, hiddenTextarea, props, state, mode, constants }: Pick<IInputRenderlessParams, "mode" | "props" | "state" | "api" | "constants"> & {
|
|
241
241
|
hiddenTextarea: HTMLTextAreaElement | null;
|
|
242
242
|
}) => (targetElement: HTMLTextAreaElement, minRows?: number, maxRows?: null) => {
|
|
243
243
|
minHeight?: string | undefined;
|
package/types/popover.type.d.ts
CHANGED
|
@@ -92,7 +92,7 @@ declare const popoverProps: {
|
|
|
92
92
|
*
|
|
93
93
|
*/
|
|
94
94
|
|
|
95
|
-
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "
|
|
95
|
+
declare const mounted: ({ api, state, constants, props, nextTick, mode }: Pick<IPopoverRenderlessParams, "mode" | "props" | "state" | "api" | "nextTick"> & {
|
|
96
96
|
constants: {
|
|
97
97
|
IDPREFIX: string;
|
|
98
98
|
};
|
package/types/transfer.type.d.ts
CHANGED
|
@@ -108,14 +108,14 @@ declare const getSourceData: ({ props, Tree }: Pick<ITransferRenderlessParams, "
|
|
|
108
108
|
Tree: string;
|
|
109
109
|
}) => () => unknown[];
|
|
110
110
|
/** 返回右边的数据项 */
|
|
111
|
-
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "
|
|
111
|
+
declare const getTargetData: ({ props, state, Tree, Table }: Pick<ITransferRenderlessParams, "props" | "state"> & {
|
|
112
112
|
Tree: string;
|
|
113
113
|
Table: string;
|
|
114
114
|
}) => () => unknown;
|
|
115
115
|
declare const onSourceCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
116
116
|
declare const onTargetCheckedChange: ({ emit, state }: Pick<ITransferRenderlessParams, 'emit' | 'state'>) => (val: string[], movedKeys: string[]) => void;
|
|
117
117
|
declare const addToLeft: ({ emit, props, state }: Pick<ITransferRenderlessParams, 'emit' | 'props' | 'state'>) => (value: undefined | 'all') => void;
|
|
118
|
-
declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "
|
|
118
|
+
declare const addToRight: ({ emit, refs, props, state, Tree }: Pick<ITransferRenderlessParams, "emit" | "props" | "state" | "refs"> & {
|
|
119
119
|
Tree: string;
|
|
120
120
|
}) => (value: undefined | 'all') => void;
|
|
121
121
|
declare const clearQuery: (refs: ITransferRenderlessParams['refs']) => (which: 'left' | 'right') => void;
|
|
@@ -126,7 +126,7 @@ declare const logicFun: ({ props, emit, state }: Pick<ITransferRenderlessParams,
|
|
|
126
126
|
pullMode?: "sort" | undefined;
|
|
127
127
|
}) => void;
|
|
128
128
|
/** 组件加载后,给左右面板初始化Sortable的功能 */
|
|
129
|
-
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "
|
|
129
|
+
declare const sortableEvent: ({ api, droppanel, props, queryDom, refs }: Pick<ITransferRenderlessParams, "props" | "api" | "refs"> & {
|
|
130
130
|
droppanel: string;
|
|
131
131
|
queryDom: string;
|
|
132
132
|
}) => () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
|
2
2
|
import { ISharedRenderlessParamUtils, ISharedRenderlessFunctionParams } from './shared.type.js';
|
|
3
|
-
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-
|
|
3
|
+
import { I as IFileUploadVm, a as IFileUploadConstants } from './upload-list.type-02a1effb.js';
|
|
4
4
|
|
|
5
5
|
declare const UploadDraggerProps: {
|
|
6
6
|
disabled: BooleanConstructor;
|
|
@@ -404,7 +404,7 @@ declare const beforeUpload: ({ props, api, Modal, constants, t, state }: Pick<IF
|
|
|
404
404
|
declare const startUpload: ({ state, constants, vm, Modal, api, t }: Pick<IFileUploadRenderlessParams, 'state' | 'constants' | 'vm' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile, isList: boolean) => void;
|
|
405
405
|
declare const properFileSize: ({ props, state, api, constants, Modal, t }: Pick<IFileUploadRenderlessParams, 'props' | 'state' | 'constants' | 'api' | 't'> & IFileUploadModalVm) => (file: IFileUploadFile) => boolean;
|
|
406
406
|
declare const addFileToList: ({ api, constants, emit, props, state, mode }: Pick<IFileUploadRenderlessParams, 'api' | 'constants' | 'emit' | 'props' | 'state' | 'mode'>) => (rawFile: IFileUploadFile, updateId: string, reUpload: boolean) => void;
|
|
407
|
-
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "
|
|
407
|
+
declare const getFileHash: ({ emit, Modal, constants, t, CryptoJS, state }: Pick<IFileUploadRenderlessParams, "emit" | "state" | "t" | "constants"> & IFileUploadModalVm & {
|
|
408
408
|
CryptoJS: object;
|
|
409
409
|
}) => ({ file, chunkSize, showTips }: {
|
|
410
410
|
file: IFileUploadFile;
|
|
@@ -484,13 +484,13 @@ declare const sliceDownloadChunk: ({ state }: Pick<IFileUploadRenderlessParams,
|
|
|
484
484
|
declare const batchSegmentDownload: ({ state, api }: Pick<IFileUploadRenderlessParams, 'state' | 'api'>) => ({ batchIndex, batches, docId, isBatch, isLessThan17G }: IFileUploadBatchSegmentDownload) => void;
|
|
485
485
|
declare const downloadFileInner: ({ api, props, state }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'state'>) => ({ batchIndex, file, range, isBatch, isChunk, isLessThan17G }: IFileUploadDownloadFileInner) => void;
|
|
486
486
|
declare const afterDownload: ({ api, state }: Pick<IFileUploadRenderlessParams, 'api' | 'state'>) => ({ batchIndex, range, data, file, isBatch, isChunk, isLessThan17G }: IFileUploadAfterDownload) => void;
|
|
487
|
-
declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "
|
|
487
|
+
declare const setWriterFile: ({ state, emit, Streamsaver }: Pick<IFileUploadRenderlessParams, "emit" | "state"> & {
|
|
488
488
|
Streamsaver: IFileUploadStreamsaver;
|
|
489
489
|
}) => ({ data, index, isLessThan17G, file }: IFileUploadSetWriterFile) => Function;
|
|
490
490
|
declare const getFormData$1: ({ constants, props, state }: Pick<IFileUploadRenderlessParams, 'constants' | 'props' | 'state'>) => ({ formData, file, type }: IFileUploadGetFormData) => IUploadFormData;
|
|
491
491
|
declare const largeDocumentUpload: ({ api, Modal, state, t, emit, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'state' | 't' | 'emit' | 'constants'> & IFileUploadModalVm) => (file: IFileUploadFile) => void;
|
|
492
492
|
declare const segmentUploadInit: ({ api, props, service, state, constants }: Pick<IFileUploadRenderlessParams, 'api' | 'props' | 'service' | 'state' | 'constants'>) => (file: IFileUploadFile) => Promise<unknown>;
|
|
493
|
-
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "
|
|
493
|
+
declare const segmentUpload: ({ api, props, service, state, emit, constants, CryptoJS }: Pick<IFileUploadRenderlessParams, "emit" | "props" | "state" | "api" | "constants" | "service"> & {
|
|
494
494
|
CryptoJS: object;
|
|
495
495
|
}) => (batchIndex: number, file: IFileUploadFile, progress: {
|
|
496
496
|
file: IFileUploadFile;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-
|
|
2
|
+
export { H as IUploadListApi, J as IUploadListProps, K as IUploadListRenderlessParamUtils, L as IUploadListRenderlessParams, G as IUploadListState, M as IUploadListVideoParam } from './upload-list.type-02a1effb.js';
|
|
3
3
|
import './shared.type.js';
|
package/types/upload.type.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import 'vue';
|
|
2
|
-
export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-
|
|
2
|
+
export { d as IUploadApi, i as IUploadFormData, k as IUploadOptionsOfHwh5, j as IUploadOptionsOfPost, e as IUploadProps, h as IUploadRenderlessOtherParams, f as IUploadRenderlessParamUtils, g as IUploadRenderlessParams, c as IUploadState, b as IUploadStateHeader } from './upload-list.type-02a1effb.js';
|
|
3
3
|
import './shared.type.js';
|