@fewangsit/wangsvue 1.5.219-alpha.0 → 1.5.219-alpha.2
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/animation/index.es.js +54 -37
- package/assets/lottiejs/loading-page.es.js +14 -9
- package/assets/lottiejs/loading-plane.es.js +2 -2
- package/assets/lottiejs/loading-table.es.js +14 -9
- package/assets/lottiejs/no-data.es.js +14 -9
- package/backgroundimagecropper/index.es.js +61 -37
- package/badge/index.es.js +77 -67
- package/badgegroup/index.es.js +62 -50
- package/basecalendar/index.es.js +1258 -735
- package/basetree/index.es.js +213 -113
- package/breadcrumb/index.es.js +46 -38
- package/button/index.es.js +60 -54
- package/buttonbulkaction/index.es.js +168 -117
- package/buttoncopy/index.es.js +25 -22
- package/buttondownload/index.es.js +125 -76
- package/buttonfilter/index.es.js +21 -15
- package/buttonradio/index.es.js +91 -67
- package/buttonsearch/index.es.js +62 -46
- package/buttonselecttree/index.es.js +233 -172
- package/buttontoggle/index.es.js +8 -6
- package/calendar/index.es.js +113 -58
- package/card/index.es.js +44 -42
- package/checkbox/index.es.js +105 -74
- package/codesnippet/index.es.js +91 -71
- package/codesnippetadapter/index.es.js +25 -21
- package/columnlist/index.es.js +249 -171
- package/components.d.ts +0 -21
- package/config/defaultProps.es.js +9 -9
- package/config/index.es.js +11 -10
- package/config/locale.es.js +2 -2
- package/customcolumn/index.es.js +95 -78
- package/datatable/index.es.js +1071 -732
- package/dialog/index.es.js +54 -54
- package/dialogconfirm/index.es.js +90 -75
- package/dialogform/index.es.js +170 -133
- package/dialogselecttree/index.es.js +242 -194
- package/directives/focus.es.js +13 -8
- package/dropdown/index.es.js +250 -196
- package/editor/index.es.js +694 -498
- package/editorbutton/index.es.js +21 -19
- package/event-bus/index.es.js +3 -3
- package/event-bus/mitt.es.js +37 -20
- package/fieldwrapper/index.es.js +30 -25
- package/fileupload/index.es.js +230 -140
- package/filtercontainer/index.es.js +299 -222
- package/form/index.es.js +176 -126
- package/gallerypreview/index.es.js +138 -101
- package/icon/index.es.js +38 -36
- package/image/index.es.js +161 -108
- package/imagecompressor/index.es.js +616 -449
- package/imageinputinfo/index.es.js +26 -22
- package/inlinemessage/index.es.js +77 -65
- package/inputbadge/index.es.js +230 -156
- package/inputcurrency/index.es.js +146 -109
- package/inputemail/index.es.js +18 -16
- package/inputgroup/index.es.js +19 -16
- package/inputnumber/index.es.js +252 -182
- package/inputpassword/index.es.js +120 -94
- package/inputphonenumber/index.es.js +1017 -550
- package/inputrangenumber/index.es.js +129 -98
- package/inputtext/index.es.js +264 -189
- package/inputurl/index.es.js +31 -29
- package/invisiblefield/index.es.js +24 -16
- package/litedropdown/index.es.js +87 -81
- package/loading/index.es.js +21 -19
- package/loading-page-BXZ4fLOS.js +8 -0
- package/loading-page-BuLpsb_1.js +8 -0
- package/loading-page-CNqVBg__.js +4 -0
- package/loading-page-DbhhZih2.js +4 -0
- package/loading-page-DjfWXoOy.js +8 -0
- package/loading-page-S-KRY5zm.js +4 -0
- package/loading-plane-C1mi7Whv.js +4 -0
- package/loading-plane-CWq1hz_l.js +8 -0
- package/loading-table-B7LAXzAp.js +4 -0
- package/loading-table-BLmgKUsR.js +4 -0
- package/loading-table-CG7-cuhv.js +8 -0
- package/loading-table-CUPS49ta.js +4 -0
- package/loading-table-CuWWrTbv.js +8 -0
- package/loading-table-DbBzVwaZ.js +8 -0
- package/mentionlist/index.es.js +77 -44
- package/mentionsection/index.es.js +53 -43
- package/menu/index.es.js +65 -51
- package/menuitem/index.es.js +39 -37
- package/multirow/index.es.js +29 -28
- package/multiselect/index.es.js +184 -152
- package/no-data-B781skt3.js +4 -0
- package/no-data-CAksOnDl.js +4 -0
- package/no-data-DCsjBXQR.js +4 -0
- package/no-data-Dz0QOe7Q.js +8 -0
- package/no-data-_Huxiv9q.js +8 -0
- package/no-data-ybRQontJ.js +8 -0
- package/overlaypanel/index.es.js +49 -36
- package/package.json +1 -1
- package/paginator/index.es.js +36 -33
- package/plugins/WangsVue.es.js +63 -45
- package/plugins/formValidation.es.js +15 -11
- package/progressbar/index.es.js +39 -32
- package/quickfilter/index.es.js +94 -81
- package/stats.html +1 -1
- package/style.css +2 -2
- package/tabmenu/index.es.js +18 -16
- package/textarea/index.es.js +94 -72
- package/timeline/index.es.js +124 -102
- package/timelinecontentbytype/index.es.js +114 -92
- package/toast/index.es.js +67 -54
- package/toggleswitch/index.es.js +83 -66
- package/tree/index.es.js +306 -198
- package/treenode/index.es.js +464 -339
- package/treesearchinput/index.es.js +32 -26
- package/usergroup/index.es.js +83 -67
- package/username/index.es.js +99 -85
- package/utils/addAttachment.util.es.js +47 -21
- package/utils/baseToast.util.es.js +41 -33
- package/utils/convertJsonImage.util.es.js +24 -24
- package/utils/date.util.es.js +131 -106
- package/utils/exportToExcel.util.es.js +81 -47
- package/utils/filterOptions.util.es.js +8 -2
- package/utils/genPlaceholder.util.es.js +30 -16
- package/utils/getProjectPermission.util.es.js +15 -12
- package/utils/getSalesRole.util.es.js +4 -4
- package/utils/getUser.util.es.js +2 -2
- package/utils/getUserType.util.es.js +13 -8
- package/utils/isIntersect.es.js +4 -2
- package/utils/mergePropsWithDefaults.util.es.js +7 -6
- package/utils/object.util.es.js +88 -54
- package/utils/queryParamsStringfy.util.es.js +19 -11
- package/utils/role.util.es.js +5 -4
- package/utils/statusSeverity.util.es.js +20 -5
- package/utils/textFormatter.util.es.js +28 -50
- package/utils/toast.util.es.js +8 -5
- package/utils/xlsx.util.es.js +12 -6
- package/validatormessage/index.es.js +9 -9
- package/vendor/@popperjs/core/lib/createPopper.es.js +110 -83
- package/vendor/@popperjs/core/lib/dom-utils/contains.es.js +14 -13
- package/vendor/@popperjs/core/lib/dom-utils/getBoundingClientRect.es.js +33 -18
- package/vendor/@popperjs/core/lib/dom-utils/getClippingRect.es.js +55 -31
- package/vendor/@popperjs/core/lib/dom-utils/getCompositeRect.es.js +43 -22
- package/vendor/@popperjs/core/lib/dom-utils/getComputedStyle.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentElement.es.js +5 -5
- package/vendor/@popperjs/core/lib/dom-utils/getDocumentRect.es.js +23 -13
- package/vendor/@popperjs/core/lib/dom-utils/getHTMLElementScroll.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/getLayoutRect.es.js +17 -9
- package/vendor/@popperjs/core/lib/dom-utils/getNodeName.es.js +3 -3
- package/vendor/@popperjs/core/lib/dom-utils/getNodeScroll.es.js +11 -7
- package/vendor/@popperjs/core/lib/dom-utils/getOffsetParent.es.js +42 -26
- package/vendor/@popperjs/core/lib/dom-utils/getParentNode.es.js +13 -10
- package/vendor/@popperjs/core/lib/dom-utils/getScrollParent.es.js +13 -7
- package/vendor/@popperjs/core/lib/dom-utils/getViewportRect.es.js +25 -15
- package/vendor/@popperjs/core/lib/dom-utils/getWindow.es.js +8 -7
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScroll.es.js +8 -6
- package/vendor/@popperjs/core/lib/dom-utils/getWindowScrollBarX.es.js +6 -6
- package/vendor/@popperjs/core/lib/dom-utils/instanceOf.es.js +16 -15
- package/vendor/@popperjs/core/lib/dom-utils/isLayoutViewport.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/isScrollParent.es.js +5 -5
- package/vendor/@popperjs/core/lib/dom-utils/isTableElement.es.js +4 -4
- package/vendor/@popperjs/core/lib/dom-utils/listScrollParents.es.js +17 -11
- package/vendor/@popperjs/core/lib/enums.es.js +43 -20
- package/vendor/@popperjs/core/lib/modifiers/applyStyles.es.js +49 -25
- package/vendor/@popperjs/core/lib/modifiers/arrow.es.js +61 -26
- package/vendor/@popperjs/core/lib/modifiers/computeStyles.es.js +101 -69
- package/vendor/@popperjs/core/lib/modifiers/eventListeners.es.js +30 -16
- package/vendor/@popperjs/core/lib/modifiers/flip.es.js +99 -60
- package/vendor/@popperjs/core/lib/modifiers/hide.es.js +44 -31
- package/vendor/@popperjs/core/lib/modifiers/offset.es.js +32 -20
- package/vendor/@popperjs/core/lib/modifiers/popperOffsets.es.js +11 -11
- package/vendor/@popperjs/core/lib/modifiers/preventOverflow.es.js +91 -40
- package/vendor/@popperjs/core/lib/popper.es.js +14 -13
- package/vendor/@popperjs/core/lib/utils/computeAutoPlacement.es.js +29 -21
- package/vendor/@popperjs/core/lib/utils/computeOffsets.es.js +41 -36
- package/vendor/@popperjs/core/lib/utils/debounce.es.js +11 -7
- package/vendor/@popperjs/core/lib/utils/detectOverflow.es.js +42 -28
- package/vendor/@popperjs/core/lib/utils/expandToHashMap.es.js +5 -4
- package/vendor/@popperjs/core/lib/utils/getAltAxis.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getBasePlacement.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getFreshSideObject.es.js +2 -2
- package/vendor/@popperjs/core/lib/utils/getMainAxisFromPlacement.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/getOppositePlacement.es.js +5 -5
- package/vendor/@popperjs/core/lib/utils/getOppositeVariationPlacement.es.js +5 -5
- package/vendor/@popperjs/core/lib/utils/getVariation.es.js +3 -3
- package/vendor/@popperjs/core/lib/utils/math.es.js +6 -4
- package/vendor/@popperjs/core/lib/utils/mergeByName.es.js +11 -10
- package/vendor/@popperjs/core/lib/utils/mergePaddingObject.es.js +4 -4
- package/vendor/@popperjs/core/lib/utils/orderModifiers.es.js +30 -22
- package/vendor/@popperjs/core/lib/utils/rectToClientRect.es.js +7 -7
- package/vendor/@popperjs/core/lib/utils/userAgent.es.js +9 -6
- package/vendor/@popperjs/core/lib/utils/within.es.js +8 -8
- package/vendor/@tiptap/core/dist/index.es.js +3494 -2000
- package/vendor/@tiptap/extension-bold/dist/index.es.js +29 -19
- package/vendor/@tiptap/extension-bubble-menu/dist/index.es.js +145 -71
- package/vendor/@tiptap/extension-bullet-list/dist/index.es.js +32 -19
- package/vendor/@tiptap/extension-code/dist/index.es.js +22 -14
- package/vendor/@tiptap/extension-document/dist/index.es.js +4 -4
- package/vendor/@tiptap/extension-floating-menu/dist/index.es.js +106 -51
- package/vendor/@tiptap/extension-heading/dist/index.es.js +38 -22
- package/vendor/@tiptap/extension-history/dist/index.es.js +11 -7
- package/vendor/@tiptap/extension-image/dist/index.es.js +20 -17
- package/vendor/@tiptap/extension-italic/dist/index.es.js +28 -18
- package/vendor/@tiptap/extension-link/dist/index.es.js +236 -147
- package/vendor/@tiptap/extension-list-item/dist/index.es.js +6 -6
- package/vendor/@tiptap/extension-mention/dist/index.es.js +98 -63
- package/vendor/@tiptap/extension-ordered-list/dist/index.es.js +38 -25
- package/vendor/@tiptap/extension-paragraph/dist/index.es.js +8 -6
- package/vendor/@tiptap/extension-placeholder/dist/index.es.js +34 -27
- package/vendor/@tiptap/extension-text/dist/index.es.js +3 -3
- package/vendor/@tiptap/extension-underline/dist/index.es.js +16 -10
- package/vendor/@tiptap/suggestion/dist/index.es.js +174 -90
- package/vendor/@tiptap/vue-3/dist/index.es.js +287 -188
- package/vendor/@wangs-ui/core/components/p-BU8h34na.es.js +17 -14
- package/vendor/@wangs-ui/core/components/p-C5lMEBcj.es.js +69 -55
- package/vendor/@wangs-ui/core/components/p-CKYwZoTo.es.js +26 -22
- package/vendor/@wangs-ui/core/components/p-CsoK-EWG.es.js +147 -102
- package/vendor/@wangs-ui/core/components/p-DPHEi31J.es.js +102 -77
- package/vendor/@wangs-ui/core/components/p-DTTCzifR.es.js +1298 -551
- package/vendor/@wangs-ui/core/components/p-Duri5p90.es.js +60 -49
- package/vendor/@wangs-ui/core/components/wangs-button.es.js +19 -15
- package/vendor/@wangs-ui/core/components/wangs-icon.es.js +3 -3
- package/vendor/@wangs-ui/core/components/wangs-input-otp.es.js +3 -3
- package/vendor/@wangs-ui/core/components/wangs-tab-menu.es.js +3 -3
- package/vendor/@wangs-ui/core/dist/esm/index-DCkh3cGv.es.js +116 -102
- package/vendor/@wangs-ui/vue/dist/index.es.js +77 -77
- package/vendor/base64toblob/base64toblob.es.js +31 -15
- package/vendor/highlight.js/es/core.es.js +5 -5
- package/vendor/highlight.js/es/languages/javascript.es.js +237 -193
- package/vendor/highlight.js/es/languages/json.es.js +18 -15
- package/vendor/highlight.js/es/languages/typescript.es.js +288 -228
- package/vendor/highlight.js/es/languages/vbscript-html.es.js +2 -2
- package/vendor/highlight.js/lib/core.es.js +1144 -666
- package/vendor/linkifyjs/dist/linkify.es.es.js +858 -405
- package/vendor/lodash/_Symbol.es.js +11 -8
- package/vendor/lodash/_baseGetTag.es.js +19 -12
- package/vendor/lodash/_baseTrim.es.js +13 -10
- package/vendor/lodash/_freeGlobal.es.js +10 -8
- package/vendor/lodash/_getRawTag.es.js +28 -15
- package/vendor/lodash/_objectToString.es.js +12 -9
- package/vendor/lodash/_root.es.js +12 -8
- package/vendor/lodash/_trimmedEndIndex.es.js +14 -11
- package/vendor/lodash/debounce.es.js +92 -54
- package/vendor/lodash/isObject.es.js +11 -9
- package/vendor/lodash/isObjectLike.es.js +10 -8
- package/vendor/lodash/isSymbol.es.js +14 -11
- package/vendor/lodash/now.es.js +12 -9
- package/vendor/lodash/throttle.es.js +25 -17
- package/vendor/lodash/toNumber.es.js +33 -23
- package/vendor/lodash-es/_DataView.es.js +4 -4
- package/vendor/lodash-es/_Hash.es.js +17 -16
- package/vendor/lodash-es/_ListCache.es.js +17 -16
- package/vendor/lodash-es/_Map.es.js +4 -4
- package/vendor/lodash-es/_MapCache.es.js +17 -16
- package/vendor/lodash-es/_Promise.es.js +4 -4
- package/vendor/lodash-es/_Set.es.js +4 -4
- package/vendor/lodash-es/_SetCache.es.js +12 -10
- package/vendor/lodash-es/_Stack.es.js +15 -15
- package/vendor/lodash-es/_Symbol.es.js +3 -3
- package/vendor/lodash-es/_Uint8Array.es.js +3 -3
- package/vendor/lodash-es/_WeakMap.es.js +4 -4
- package/vendor/lodash-es/_arrayEach.es.js +9 -5
- package/vendor/lodash-es/_arrayFilter.es.js +9 -6
- package/vendor/lodash-es/_arrayLikeKeys.es.js +21 -17
- package/vendor/lodash-es/_arrayPush.es.js +7 -5
- package/vendor/lodash-es/_arraySome.es.js +9 -6
- package/vendor/lodash-es/_assignValue.es.js +10 -7
- package/vendor/lodash-es/_assocIndexOf.es.js +9 -6
- package/vendor/lodash-es/_baseAssignValue.es.js +13 -9
- package/vendor/lodash-es/_baseClone.es.js +67 -49
- package/vendor/lodash-es/_baseCreate.es.js +15 -11
- package/vendor/lodash-es/_baseGetAllKeys.es.js +6 -6
- package/vendor/lodash-es/_baseGetTag.es.js +11 -7
- package/vendor/lodash-es/_baseIsArguments.es.js +6 -6
- package/vendor/lodash-es/_baseIsEqual.es.js +11 -5
- package/vendor/lodash-es/_baseIsEqualDeep.es.js +39 -26
- package/vendor/lodash-es/_baseIsMap.es.js +6 -6
- package/vendor/lodash-es/_baseIsNative.es.js +18 -12
- package/vendor/lodash-es/_baseIsSet.es.js +6 -6
- package/vendor/lodash-es/_baseIsTypedArray.es.js +11 -9
- package/vendor/lodash-es/_baseKeys.es.js +16 -11
- package/vendor/lodash-es/_baseTimes.es.js +7 -5
- package/vendor/lodash-es/_baseTrim.es.js +5 -5
- package/vendor/lodash-es/_baseUnary.es.js +4 -4
- package/vendor/lodash-es/_cacheHas.es.js +3 -3
- package/vendor/lodash-es/_cloneArrayBuffer.es.js +6 -5
- package/vendor/lodash-es/_cloneBuffer.es.js +11 -6
- package/vendor/lodash-es/_cloneDataView.es.js +5 -5
- package/vendor/lodash-es/_cloneRegExp.es.js +6 -5
- package/vendor/lodash-es/_cloneSymbol.es.js +5 -5
- package/vendor/lodash-es/_cloneTypedArray.es.js +5 -5
- package/vendor/lodash-es/_coreJsData.es.js +3 -3
- package/vendor/lodash-es/_defineProperty.es.js +7 -6
- package/vendor/lodash-es/_equalArrays.es.js +38 -28
- package/vendor/lodash-es/_equalByTag.es.js +55 -41
- package/vendor/lodash-es/_equalObjects.es.js +42 -28
- package/vendor/lodash-es/_freeGlobal.es.js +2 -2
- package/vendor/lodash-es/_getAllKeys.es.js +6 -6
- package/vendor/lodash-es/_getMapData.es.js +5 -5
- package/vendor/lodash-es/_getNative.es.js +6 -6
- package/vendor/lodash-es/_getPrototype.es.js +3 -3
- package/vendor/lodash-es/_getRawTag.es.js +20 -10
- package/vendor/lodash-es/_getSymbols.es.js +15 -8
- package/vendor/lodash-es/_getTag.es.js +31 -25
- package/vendor/lodash-es/_getValue.es.js +3 -3
- package/vendor/lodash-es/_hashClear.es.js +5 -4
- package/vendor/lodash-es/_hashDelete.es.js +5 -4
- package/vendor/lodash-es/_hashGet.es.js +11 -9
- package/vendor/lodash-es/_hashHas.es.js +7 -6
- package/vendor/lodash-es/_hashSet.es.js +8 -6
- package/vendor/lodash-es/_initCloneArray.es.js +10 -5
- package/vendor/lodash-es/_initCloneByTag.es.js +39 -38
- package/vendor/lodash-es/_initCloneObject.es.js +6 -6
- package/vendor/lodash-es/_isIndex.es.js +7 -5
- package/vendor/lodash-es/_isKeyable.es.js +4 -4
- package/vendor/lodash-es/_isMasked.es.js +7 -7
- package/vendor/lodash-es/_isPrototype.es.js +5 -5
- package/vendor/lodash-es/_listCacheClear.es.js +4 -3
- package/vendor/lodash-es/_listCacheDelete.es.js +17 -9
- package/vendor/lodash-es/_listCacheGet.es.js +5 -5
- package/vendor/lodash-es/_listCacheHas.es.js +4 -4
- package/vendor/lodash-es/_listCacheSet.es.js +11 -5
- package/vendor/lodash-es/_mapCacheClear.es.js +10 -9
- package/vendor/lodash-es/_mapCacheDelete.es.js +6 -5
- package/vendor/lodash-es/_mapCacheGet.es.js +4 -4
- package/vendor/lodash-es/_mapCacheHas.es.js +4 -4
- package/vendor/lodash-es/_mapCacheSet.es.js +7 -5
- package/vendor/lodash-es/_mapToArray.es.js +7 -6
- package/vendor/lodash-es/_nativeCreate.es.js +3 -3
- package/vendor/lodash-es/_nativeKeys.es.js +3 -3
- package/vendor/lodash-es/_nodeUtil.es.js +13 -6
- package/vendor/lodash-es/_objectToString.es.js +5 -4
- package/vendor/lodash-es/_overArg.es.js +4 -4
- package/vendor/lodash-es/_root.es.js +4 -3
- package/vendor/lodash-es/_setCacheAdd.es.js +5 -4
- package/vendor/lodash-es/_setCacheHas.es.js +3 -3
- package/vendor/lodash-es/_setToArray.es.js +7 -6
- package/vendor/lodash-es/_stackClear.es.js +5 -4
- package/vendor/lodash-es/_stackDelete.es.js +5 -4
- package/vendor/lodash-es/_stackGet.es.js +3 -3
- package/vendor/lodash-es/_stackHas.es.js +3 -3
- package/vendor/lodash-es/_stackSet.es.js +18 -13
- package/vendor/lodash-es/_toSource.es.js +9 -8
- package/vendor/lodash-es/_trimmedEndIndex.es.js +7 -6
- package/vendor/lodash-es/cloneDeep.es.js +5 -5
- package/vendor/lodash-es/debounce.es.js +84 -49
- package/vendor/lodash-es/eq.es.js +3 -3
- package/vendor/lodash-es/isArguments.es.js +9 -6
- package/vendor/lodash-es/isArray.es.js +2 -2
- package/vendor/lodash-es/isArrayLike.es.js +5 -5
- package/vendor/lodash-es/isBuffer.es.js +9 -4
- package/vendor/lodash-es/isEqual.es.js +4 -4
- package/vendor/lodash-es/isFunction.es.js +10 -9
- package/vendor/lodash-es/isLength.es.js +4 -4
- package/vendor/lodash-es/isMap.es.js +6 -5
- package/vendor/lodash-es/isObject.es.js +4 -4
- package/vendor/lodash-es/isObjectLike.es.js +3 -3
- package/vendor/lodash-es/isSet.es.js +6 -5
- package/vendor/lodash-es/isSymbol.es.js +6 -6
- package/vendor/lodash-es/isTypedArray.es.js +6 -5
- package/vendor/lodash-es/keys.es.js +6 -6
- package/vendor/lodash-es/now.es.js +4 -4
- package/vendor/lodash-es/stubArray.es.js +2 -2
- package/vendor/lodash-es/stubFalse.es.js +3 -3
- package/vendor/lodash-es/toNumber.es.js +25 -18
- package/vendor/lodash-es/toString.es.js +2 -2
- package/vendor/lodash-es/uniqueId.es.js +6 -6
- package/vendor/orderedmap/dist/index.es.js +65 -49
- package/vendor/primevue/api/api.esm.es.js +214 -121
- package/vendor/primevue/avatar/avatar.esm.es.js +44 -41
- package/vendor/primevue/avatar/style/avatarstyle.esm.es.js +12 -11
- package/vendor/primevue/avatargroup/avatargroup.esm.es.js +17 -16
- package/vendor/primevue/avatargroup/style/avatargroupstyle.esm.es.js +6 -5
- package/vendor/primevue/badge/badge.esm.es.js +21 -20
- package/vendor/primevue/badge/style/badgestyle.esm.es.js +19 -18
- package/vendor/primevue/base/style/basestyle.esm.es.js +88 -99
- package/vendor/primevue/basecomponent/basecomponent.esm.es.js +327 -261
- package/vendor/primevue/basedirective/basedirective.esm.es.js +257 -186
- package/vendor/primevue/baseicon/baseicon.esm.es.js +55 -49
- package/vendor/primevue/baseicon/style/baseiconstyle.esm.es.js +5 -35
- package/vendor/primevue/button/button.esm.es.js +76 -72
- package/vendor/primevue/button/style/buttonstyle.esm.es.js +46 -39
- package/vendor/primevue/card/card.esm.es.js +30 -29
- package/vendor/primevue/card/style/cardstyle.esm.es.js +6 -5
- package/vendor/primevue/checkbox/checkbox.esm.es.js +109 -101
- package/vendor/primevue/checkbox/style/checkboxstyle.esm.es.js +12 -11
- package/vendor/primevue/config/config.esm.es.js +76 -58
- package/vendor/primevue/dialog/dialog.esm.es.js +421 -281
- package/vendor/primevue/dialog/style/dialogstyle.esm.es.js +26 -22
- package/vendor/primevue/dropdown/dropdown.esm.es.js +956 -742
- package/vendor/primevue/dropdown/style/dropdownstyle.esm.es.js +33 -31
- package/vendor/primevue/fileupload/fileupload.esm.es.js +559 -450
- package/vendor/primevue/fileupload/style/fileuploadstyle.esm.es.js +14 -13
- package/vendor/primevue/focustrap/focustrap.esm.es.js +128 -90
- package/vendor/primevue/focustrap/style/focustrapstyle.esm.es.js +2 -2
- package/vendor/primevue/icons/angledoubleleft/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angledoubleright/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angledown/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleleft/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleright/index.esm.es.js +13 -11
- package/vendor/primevue/icons/angleup/index.esm.es.js +13 -11
- package/vendor/primevue/icons/blank/index.esm.es.js +13 -11
- package/vendor/primevue/icons/check/index.esm.es.js +13 -11
- package/vendor/primevue/icons/chevrondown/index.esm.es.js +13 -11
- package/vendor/primevue/icons/exclamationtriangle/index.esm.es.js +17 -13
- package/vendor/primevue/icons/eye/index.esm.es.js +13 -11
- package/vendor/primevue/icons/eyeslash/index.esm.es.js +13 -11
- package/vendor/primevue/icons/infocircle/index.esm.es.js +13 -11
- package/vendor/primevue/icons/plus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/refresh/index.esm.es.js +13 -11
- package/vendor/primevue/icons/search/index.esm.es.js +13 -11
- package/vendor/primevue/icons/searchminus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/searchplus/index.esm.es.js +13 -11
- package/vendor/primevue/icons/spinner/index.esm.es.js +13 -11
- package/vendor/primevue/icons/times/index.esm.es.js +13 -11
- package/vendor/primevue/icons/timescircle/index.esm.es.js +13 -11
- package/vendor/primevue/icons/undo/index.esm.es.js +13 -11
- package/vendor/primevue/icons/upload/index.esm.es.js +13 -11
- package/vendor/primevue/icons/windowmaximize/index.esm.es.js +13 -11
- package/vendor/primevue/icons/windowminimize/index.esm.es.js +13 -11
- package/vendor/primevue/image/image.esm.es.js +280 -235
- package/vendor/primevue/image/style/imagestyle.esm.es.js +18 -17
- package/vendor/primevue/inputgroup/inputgroup.esm.es.js +17 -16
- package/vendor/primevue/inputgroup/style/inputgroupstyle.esm.es.js +6 -5
- package/vendor/primevue/inputgroupaddon/inputgroupaddon.esm.es.js +17 -16
- package/vendor/primevue/inputgroupaddon/style/inputgroupaddonstyle.esm.es.js +6 -5
- package/vendor/primevue/inputnumber/inputnumber.esm.es.js +834 -566
- package/vendor/primevue/inputnumber/style/inputnumberstyle.esm.es.js +23 -22
- package/vendor/primevue/inputtext/inputtext.esm.es.js +32 -30
- package/vendor/primevue/inputtext/style/inputtextstyle.esm.es.js +13 -12
- package/vendor/primevue/menu/menu.esm.es.js +402 -304
- package/vendor/primevue/menu/style/menustyle.esm.es.js +14 -13
- package/vendor/primevue/message/message.esm.es.js +126 -112
- package/vendor/primevue/message/style/messagestyle.esm.es.js +9 -8
- package/vendor/primevue/multiselect/multiselect.esm.es.js +1083 -835
- package/vendor/primevue/multiselect/style/multiselectstyle.esm.es.js +38 -36
- package/vendor/primevue/overlayeventbus/overlayeventbus.esm.es.js +3 -3
- package/vendor/primevue/overlaypanel/overlaypanel.esm.es.js +275 -169
- package/vendor/primevue/overlaypanel/style/overlaypanelstyle.esm.es.js +9 -8
- package/vendor/primevue/paginator/paginator.esm.es.js +513 -469
- package/vendor/primevue/paginator/style/paginatorstyle.esm.es.js +50 -43
- package/vendor/primevue/password/password.esm.es.js +306 -233
- package/vendor/primevue/password/style/passwordstyle.esm.es.js +26 -24
- package/vendor/primevue/portal/portal.esm.es.js +17 -17
- package/vendor/primevue/progressbar/progressbar.esm.es.js +37 -35
- package/vendor/primevue/progressbar/style/progressbarstyle.esm.es.js +10 -9
- package/vendor/primevue/ripple/ripple.esm.es.js +90 -62
- package/vendor/primevue/ripple/style/ripplestyle.esm.es.js +6 -5
- package/vendor/primevue/selectbutton/selectbutton.esm.es.js +213 -167
- package/vendor/primevue/selectbutton/style/selectbuttonstyle.esm.es.js +14 -13
- package/vendor/primevue/skeleton/skeleton.esm.es.js +28 -26
- package/vendor/primevue/skeleton/style/skeletonstyle.esm.es.js +13 -11
- package/vendor/primevue/textarea/style/textareastyle.esm.es.js +12 -11
- package/vendor/primevue/textarea/textarea.esm.es.js +49 -33
- package/vendor/primevue/timeline/style/timelinestyle.esm.es.js +9 -8
- package/vendor/primevue/timeline/timeline.esm.es.js +53 -52
- package/vendor/primevue/toast/style/toaststyle.esm.es.js +54 -46
- package/vendor/primevue/toast/toast.esm.es.js +309 -260
- package/vendor/primevue/toasteventbus/toasteventbus.esm.es.js +3 -3
- package/vendor/primevue/toastservice/toastservice.esm.es.js +16 -15
- package/vendor/primevue/tooltip/style/tooltipstyle.esm.es.js +6 -5
- package/vendor/primevue/tooltip/tooltip.esm.es.js +383 -186
- package/vendor/primevue/usestyle/usestyle.esm.es.js +94 -64
- package/vendor/primevue/usetoast/usetoast.esm.es.js +9 -8
- package/vendor/primevue/utils/utils.esm.es.js +1078 -772
- package/vendor/primevue/virtualscroller/style/virtualscrollerstyle.esm.es.js +5 -67
- package/vendor/primevue/virtualscroller/virtualscroller.esm.es.js +655 -428
- package/vendor/prosemirror-commands/dist/index.es.js +454 -316
- package/vendor/prosemirror-history/dist/index.es.js +286 -178
- package/vendor/prosemirror-keymap/dist/index.es.js +68 -48
- package/vendor/prosemirror-model/dist/index.es.js +1905 -1436
- package/vendor/prosemirror-schema-list/dist/index.es.js +115 -73
- package/vendor/prosemirror-state/dist/index.es.js +467 -353
- package/vendor/prosemirror-transform/dist/index.es.js +1146 -829
- package/vendor/prosemirror-view/dist/index.es.js +4127 -2719
- package/vendor/rope-sequence/dist/index.es.js +165 -82
- package/vendor/simplebar-core/dist/index.es.js +670 -242
- package/vendor/simplebar-vue/dist/simplebar-vue.esm.es.js +73 -60
- package/vendor/single-spa/lib/es2015/esm/single-spa.min.es.js +511 -510
- package/vendor/tippy.js/dist/tippy.esm.es.js +971 -525
- package/vendor/vee-validate/dist/vee-validate.esm.es.js +1830 -1097
- package/vendor/vue-advanced-cropper/dist/index.esm-bundler.es.js +740 -738
- package/vendor/w3c-keyname/index.es.js +25 -13
- package/wangsvue.es.js +167 -208
- package/wangsvue.esm.browser.js +49417 -48026
- package/wangsvue.system.js +67600 -234
- package/api/index.es.js +0 -149
- package/apiitem/index.es.js +0 -611
- package/assignmember/index.es.js +0 -434
- package/attachment/index.es.js +0 -118
- package/attachmentchangelog/index.es.js +0 -79
- package/attachmentitem/index.es.js +0 -231
- package/attachmentthumbnail/index.es.js +0 -83
- package/changelog/index.d.ts +0 -164
- package/changelog/index.es.js +0 -85
- package/changelogfilter/index.es.js +0 -113
- package/changelogpage/index.d.ts +0 -184
- package/changelogpage/index.es.js +0 -176
- package/checklist/index.es.js +0 -571
- package/checklistchangelog/index.es.js +0 -85
- package/comment/index.d.ts +0 -187
- package/comment/index.es.js +0 -267
- package/commentblock/index.es.js +0 -337
- package/confirmdeploy/index.es.js +0 -64
- package/dependencycol/index.es.js +0 -32
- package/description/index.es.js +0 -135
- package/descriptiontab/index.es.js +0 -30
- package/detailmember/index.d.ts +0 -77
- package/detailmember/index.es.js +0 -32
- package/detailmemberadmin/index.es.js +0 -210
- package/detailmemberleader/index.es.js +0 -164
- package/detailmemberlog/index.es.js +0 -117
- package/detailsprint/index.d.ts +0 -86
- package/detailsprint/index.es.js +0 -414
- package/dialogaddattachment/index.es.js +0 -273
- package/dialogaddchecklist/index.es.js +0 -120
- package/dialogaddeditapi/index.es.js +0 -87
- package/dialogaddpbi/index.es.js +0 -197
- package/dialogadjustmenttask/index.es.js +0 -484
- package/dialogadjustmenttaskheader/index.es.js +0 -193
- package/dialogapichangelog/index.es.js +0 -83
- package/dialogassignmember/index.es.js +0 -171
- package/dialogconfirmapproval/index.es.js +0 -54
- package/dialogconfirmchecklist/index.es.js +0 -189
- package/dialogconfirmdeletetask/index.es.js +0 -70
- package/dialogconfirmdeletetaskpermanently/index.es.js +0 -50
- package/dialogconfirmedit/index.es.js +0 -50
- package/dialogconfirmfinishtask/index.es.js +0 -50
- package/dialogconfirmrestoretask/index.es.js +0 -46
- package/dialogconfirmsprint/index.es.js +0 -42
- package/dialogcopyapi/index.es.js +0 -130
- package/dialogcustomdependency/index.es.js +0 -55
- package/dialogdetailchecklisttemplate/index.es.js +0 -214
- package/dialogdetailcomponent/index.es.js +0 -121
- package/dialogdetailpbi/index.es.js +0 -192
- package/dialogfinishreview/index.es.js +0 -126
- package/dialogimprovementtask/index.es.js +0 -191
- package/dialogmemberadmin/index.es.js +0 -93
- package/dialogpreparepbi/index.es.js +0 -93
- package/dialogpriorityvalue/index.es.js +0 -85
- package/dialogreportbug/index.es.js +0 -207
- package/dialogreviewleader/index.es.js +0 -280
- package/dialogsavechecklisttemplate/index.es.js +0 -127
- package/dialogselectproject/index.es.js +0 -69
- package/dialogsetduration/index.es.js +0 -109
- package/dialogsettasklink/index.es.js +0 -153
- package/dialogtestapi/index.es.js +0 -389
- package/eventlogtab/index.es.js +0 -50
- package/infotasktab/index.es.js +0 -186
- package/inputadditional/index.es.js +0 -62
- package/inputinitialname/index.d.ts +0 -118
- package/inputinitialname/index.es.js +0 -95
- package/inputrepositoryname/index.d.ts +0 -86
- package/inputrepositoryname/index.es.js +0 -41
- package/isrequiredtext/index.es.js +0 -16
- package/legend/index.es.js +0 -727
- package/legendlist/index.es.js +0 -33
- package/loading-page-BrQattYE.js +0 -1
- package/loading-page-CgfbWppy.js +0 -1
- package/loading-page-CoC9UhfC.js +0 -4
- package/loading-page-CoXtqoc9.js +0 -4
- package/loading-page-DbLuqCHa.js +0 -1
- package/loading-page-f8D03l3G.js +0 -4
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-plane-CoXtqoc9.js +0 -4
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-ByUoWqUo.js +0 -4
- package/loading-table-BygEMzFM.js +0 -4
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-D9bw9OcI.js +0 -4
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-CTKux8RI.js +0 -4
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-DLHO1L_u.js +0 -4
- package/no-data-Dep79CBh.js +0 -1
- package/no-data-g0dJCy2p.js +0 -4
- package/no-data-y1X5WtcQ.js +0 -1
- package/notificationitem/index.d.ts +0 -107
- package/notificationitem/index.es.js +0 -333
- package/reviewitem/index.es.js +0 -65
- package/reviewtab/index.es.js +0 -44
- package/services/calendar.service.es.js +0 -32
- package/sonarqubesummary/index.es.js +0 -234
- package/sprintsummary/index.es.js +0 -73
- package/summaryaccordion/index.d.ts +0 -121
- package/summaryaccordion/index.es.js +0 -365
- package/taskdependency/index.es.js +0 -686
- package/taskdetail/index.d.ts +0 -82
- package/taskdetail/index.es.js +0 -491
- package/taskdetailpbi/index.d.ts +0 -35
- package/taskdetailpbi/index.es.js +0 -172
- package/taskdetailunassignedpbi/index.es.js +0 -261
- package/tasklink/index.es.js +0 -257
- package/tasklinkchangelog/index.es.js +0 -93
- package/tasklist/index.es.js +0 -92
- package/taskmore/index.es.js +0 -52
- package/taskstatusbadge/index.es.js +0 -18
- package/tasktable/index.d.ts +0 -87
- package/tasktable/index.es.js +0 -832
- package/ticket/index.es.js +0 -151
- package/tooltipspan/index.es.js +0 -30
- package/utils/updateSprintStatus.util.es.js +0 -17
- package/valueformdatainput/index.es.js +0 -70
- package/workcalendar/index.es.js +0 -351
|
@@ -1,177 +1,183 @@
|
|
|
1
|
-
import { s as
|
|
2
|
-
import { D as
|
|
3
|
-
import { s as
|
|
4
|
-
import { V as
|
|
5
|
-
import { resolveComponent
|
|
6
|
-
var $ = {
|
|
1
|
+
import { s as script$2 } from "../icons/spinner/index.esm.es.js";
|
|
2
|
+
import { D as DomHandler } from "../utils/utils.esm.es.js";
|
|
3
|
+
import { s as script$3 } from "../basecomponent/basecomponent.esm.es.js";
|
|
4
|
+
import { V as VirtualScrollerStyle } from "./style/virtualscrollerstyle.esm.es.js";
|
|
5
|
+
import { resolveComponent, createElementBlock, openBlock, mergeProps, renderSlot, createCommentVNode, createElementVNode, Fragment, renderList, createVNode } from "vue";
|
|
6
|
+
var script$1 = {
|
|
7
7
|
name: "BaseVirtualScroller",
|
|
8
|
-
extends:
|
|
8
|
+
"extends": script$3,
|
|
9
9
|
props: {
|
|
10
10
|
id: {
|
|
11
11
|
type: String,
|
|
12
|
-
default: null
|
|
12
|
+
"default": null
|
|
13
13
|
},
|
|
14
14
|
style: null,
|
|
15
|
-
class: null,
|
|
15
|
+
"class": null,
|
|
16
16
|
items: {
|
|
17
17
|
type: Array,
|
|
18
|
-
default: null
|
|
18
|
+
"default": null
|
|
19
19
|
},
|
|
20
20
|
itemSize: {
|
|
21
21
|
type: [Number, Array],
|
|
22
|
-
default: 0
|
|
22
|
+
"default": 0
|
|
23
23
|
},
|
|
24
24
|
scrollHeight: null,
|
|
25
25
|
scrollWidth: null,
|
|
26
26
|
orientation: {
|
|
27
27
|
type: String,
|
|
28
|
-
default: "vertical"
|
|
28
|
+
"default": "vertical"
|
|
29
29
|
},
|
|
30
30
|
numToleratedItems: {
|
|
31
31
|
type: Number,
|
|
32
|
-
default: null
|
|
32
|
+
"default": null
|
|
33
33
|
},
|
|
34
34
|
delay: {
|
|
35
35
|
type: Number,
|
|
36
|
-
default: 0
|
|
36
|
+
"default": 0
|
|
37
37
|
},
|
|
38
38
|
resizeDelay: {
|
|
39
39
|
type: Number,
|
|
40
|
-
default: 10
|
|
40
|
+
"default": 10
|
|
41
41
|
},
|
|
42
42
|
lazy: {
|
|
43
43
|
type: Boolean,
|
|
44
|
-
default:
|
|
44
|
+
"default": false
|
|
45
45
|
},
|
|
46
46
|
disabled: {
|
|
47
47
|
type: Boolean,
|
|
48
|
-
default:
|
|
48
|
+
"default": false
|
|
49
49
|
},
|
|
50
50
|
loaderDisabled: {
|
|
51
51
|
type: Boolean,
|
|
52
|
-
default:
|
|
52
|
+
"default": false
|
|
53
53
|
},
|
|
54
54
|
columns: {
|
|
55
55
|
type: Array,
|
|
56
|
-
default: null
|
|
56
|
+
"default": null
|
|
57
57
|
},
|
|
58
58
|
loading: {
|
|
59
59
|
type: Boolean,
|
|
60
|
-
default:
|
|
60
|
+
"default": false
|
|
61
61
|
},
|
|
62
62
|
showSpacer: {
|
|
63
63
|
type: Boolean,
|
|
64
|
-
default:
|
|
64
|
+
"default": true
|
|
65
65
|
},
|
|
66
66
|
showLoader: {
|
|
67
67
|
type: Boolean,
|
|
68
|
-
default:
|
|
68
|
+
"default": false
|
|
69
69
|
},
|
|
70
70
|
tabindex: {
|
|
71
71
|
type: Number,
|
|
72
|
-
default: 0
|
|
72
|
+
"default": 0
|
|
73
73
|
},
|
|
74
74
|
inline: {
|
|
75
75
|
type: Boolean,
|
|
76
|
-
default:
|
|
76
|
+
"default": false
|
|
77
77
|
},
|
|
78
78
|
step: {
|
|
79
79
|
type: Number,
|
|
80
|
-
default: 0
|
|
80
|
+
"default": 0
|
|
81
81
|
},
|
|
82
82
|
appendOnly: {
|
|
83
83
|
type: Boolean,
|
|
84
|
-
default:
|
|
84
|
+
"default": false
|
|
85
85
|
},
|
|
86
86
|
autoSize: {
|
|
87
87
|
type: Boolean,
|
|
88
|
-
default:
|
|
88
|
+
"default": false
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
|
-
style:
|
|
92
|
-
provide: function() {
|
|
91
|
+
style: VirtualScrollerStyle,
|
|
92
|
+
provide: function provide() {
|
|
93
93
|
return {
|
|
94
94
|
$parentInstance: this
|
|
95
95
|
};
|
|
96
96
|
},
|
|
97
|
-
beforeMount: function() {
|
|
98
|
-
var
|
|
99
|
-
|
|
100
|
-
nonce: (
|
|
97
|
+
beforeMount: function beforeMount() {
|
|
98
|
+
var _this$$primevueConfig;
|
|
99
|
+
VirtualScrollerStyle.loadStyle({
|
|
100
|
+
nonce: (_this$$primevueConfig = this.$primevueConfig) === null || _this$$primevueConfig === void 0 || (_this$$primevueConfig = _this$$primevueConfig.csp) === null || _this$$primevueConfig === void 0 ? void 0 : _this$$primevueConfig.nonce
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
function
|
|
104
|
+
function _typeof(o) {
|
|
105
105
|
"@babel/helpers - typeof";
|
|
106
|
-
return
|
|
107
|
-
return typeof
|
|
108
|
-
} : function(
|
|
109
|
-
return
|
|
110
|
-
},
|
|
106
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
107
|
+
return typeof o2;
|
|
108
|
+
} : function(o2) {
|
|
109
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
110
|
+
}, _typeof(o);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
var
|
|
112
|
+
function ownKeys(e, r) {
|
|
113
|
+
var t = Object.keys(e);
|
|
114
114
|
if (Object.getOwnPropertySymbols) {
|
|
115
|
-
var
|
|
116
|
-
|
|
117
|
-
return Object.getOwnPropertyDescriptor(e,
|
|
118
|
-
})),
|
|
115
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
116
|
+
r && (o = o.filter(function(r2) {
|
|
117
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
118
|
+
})), t.push.apply(t, o);
|
|
119
119
|
}
|
|
120
|
-
return
|
|
120
|
+
return t;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
for (var
|
|
124
|
-
var
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(
|
|
128
|
-
Object.defineProperty(e,
|
|
122
|
+
function _objectSpread(e) {
|
|
123
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
124
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
125
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
126
|
+
_defineProperty(e, r2, t[r2]);
|
|
127
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
128
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
129
129
|
});
|
|
130
130
|
}
|
|
131
131
|
return e;
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
|
|
133
|
+
function _defineProperty(obj, key, value) {
|
|
134
|
+
key = _toPropertyKey(key);
|
|
135
|
+
if (key in obj) {
|
|
136
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
137
|
+
} else {
|
|
138
|
+
obj[key] = value;
|
|
139
|
+
}
|
|
140
|
+
return obj;
|
|
135
141
|
}
|
|
136
|
-
function
|
|
137
|
-
var
|
|
138
|
-
return
|
|
142
|
+
function _toPropertyKey(t) {
|
|
143
|
+
var i = _toPrimitive(t, "string");
|
|
144
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
139
145
|
}
|
|
140
|
-
function
|
|
141
|
-
if (
|
|
142
|
-
var
|
|
143
|
-
if (
|
|
144
|
-
var
|
|
145
|
-
if (
|
|
146
|
+
function _toPrimitive(t, r) {
|
|
147
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
148
|
+
var e = t[Symbol.toPrimitive];
|
|
149
|
+
if (void 0 !== e) {
|
|
150
|
+
var i = e.call(t, r);
|
|
151
|
+
if ("object" != _typeof(i)) return i;
|
|
146
152
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
147
153
|
}
|
|
148
|
-
return (
|
|
154
|
+
return ("string" === r ? String : Number)(t);
|
|
149
155
|
}
|
|
150
|
-
var
|
|
156
|
+
var script = {
|
|
151
157
|
name: "VirtualScroller",
|
|
152
|
-
extends:
|
|
153
|
-
inheritAttrs:
|
|
158
|
+
"extends": script$1,
|
|
159
|
+
inheritAttrs: false,
|
|
154
160
|
emits: ["update:numToleratedItems", "scroll", "scroll-index-change", "lazy-load"],
|
|
155
|
-
data: function() {
|
|
156
|
-
var
|
|
161
|
+
data: function data() {
|
|
162
|
+
var both = this.isBoth();
|
|
157
163
|
return {
|
|
158
|
-
first:
|
|
164
|
+
first: both ? {
|
|
159
165
|
rows: 0,
|
|
160
166
|
cols: 0
|
|
161
167
|
} : 0,
|
|
162
|
-
last:
|
|
168
|
+
last: both ? {
|
|
163
169
|
rows: 0,
|
|
164
170
|
cols: 0
|
|
165
171
|
} : 0,
|
|
166
|
-
page:
|
|
172
|
+
page: both ? {
|
|
167
173
|
rows: 0,
|
|
168
174
|
cols: 0
|
|
169
175
|
} : 0,
|
|
170
|
-
numItemsInViewport:
|
|
176
|
+
numItemsInViewport: both ? {
|
|
171
177
|
rows: 0,
|
|
172
178
|
cols: 0
|
|
173
179
|
} : 0,
|
|
174
|
-
lastScrollPos:
|
|
180
|
+
lastScrollPos: both ? {
|
|
175
181
|
top: 0,
|
|
176
182
|
left: 0
|
|
177
183
|
} : 0,
|
|
@@ -191,222 +197,340 @@ var et = {
|
|
|
191
197
|
defaultHeight: 0,
|
|
192
198
|
defaultContentWidth: 0,
|
|
193
199
|
defaultContentHeight: 0,
|
|
194
|
-
isRangeChanged:
|
|
200
|
+
isRangeChanged: false,
|
|
195
201
|
lazyLoadState: {},
|
|
196
202
|
resizeListener: null,
|
|
197
|
-
initialized:
|
|
203
|
+
initialized: false,
|
|
198
204
|
watch: {
|
|
199
|
-
numToleratedItems: function(
|
|
200
|
-
this.d_numToleratedItems =
|
|
205
|
+
numToleratedItems: function numToleratedItems(newValue) {
|
|
206
|
+
this.d_numToleratedItems = newValue;
|
|
201
207
|
},
|
|
202
|
-
loading: function(
|
|
203
|
-
this.lazy &&
|
|
208
|
+
loading: function loading(newValue, oldValue) {
|
|
209
|
+
if (this.lazy && newValue !== oldValue && newValue !== this.d_loading) {
|
|
210
|
+
this.d_loading = newValue;
|
|
211
|
+
}
|
|
204
212
|
},
|
|
205
|
-
items: function(
|
|
206
|
-
(!
|
|
213
|
+
items: function items(newValue, oldValue) {
|
|
214
|
+
if (!oldValue || oldValue.length !== (newValue || []).length) {
|
|
215
|
+
this.init();
|
|
216
|
+
this.calculateAutoSize();
|
|
217
|
+
}
|
|
207
218
|
},
|
|
208
|
-
itemSize: function() {
|
|
209
|
-
this.init()
|
|
219
|
+
itemSize: function itemSize() {
|
|
220
|
+
this.init();
|
|
221
|
+
this.calculateAutoSize();
|
|
210
222
|
},
|
|
211
|
-
orientation: function() {
|
|
223
|
+
orientation: function orientation() {
|
|
212
224
|
this.lastScrollPos = this.isBoth() ? {
|
|
213
225
|
top: 0,
|
|
214
226
|
left: 0
|
|
215
227
|
} : 0;
|
|
216
228
|
},
|
|
217
|
-
scrollHeight: function() {
|
|
218
|
-
this.init()
|
|
229
|
+
scrollHeight: function scrollHeight() {
|
|
230
|
+
this.init();
|
|
231
|
+
this.calculateAutoSize();
|
|
219
232
|
},
|
|
220
|
-
scrollWidth: function() {
|
|
221
|
-
this.init()
|
|
233
|
+
scrollWidth: function scrollWidth() {
|
|
234
|
+
this.init();
|
|
235
|
+
this.calculateAutoSize();
|
|
222
236
|
}
|
|
223
237
|
},
|
|
224
|
-
mounted: function() {
|
|
225
|
-
this.viewInit()
|
|
238
|
+
mounted: function mounted() {
|
|
239
|
+
this.viewInit();
|
|
240
|
+
this.lastScrollPos = this.isBoth() ? {
|
|
226
241
|
top: 0,
|
|
227
242
|
left: 0
|
|
228
|
-
} : 0
|
|
243
|
+
} : 0;
|
|
244
|
+
this.lazyLoadState = this.lazyLoadState || {};
|
|
229
245
|
},
|
|
230
|
-
updated: function() {
|
|
246
|
+
updated: function updated() {
|
|
231
247
|
!this.initialized && this.viewInit();
|
|
232
248
|
},
|
|
233
|
-
unmounted: function() {
|
|
234
|
-
this.unbindResizeListener()
|
|
249
|
+
unmounted: function unmounted() {
|
|
250
|
+
this.unbindResizeListener();
|
|
251
|
+
this.initialized = false;
|
|
235
252
|
},
|
|
236
253
|
methods: {
|
|
237
|
-
viewInit: function() {
|
|
238
|
-
|
|
254
|
+
viewInit: function viewInit() {
|
|
255
|
+
if (DomHandler.isVisible(this.element)) {
|
|
256
|
+
this.setContentEl(this.content);
|
|
257
|
+
this.init();
|
|
258
|
+
this.calculateAutoSize();
|
|
259
|
+
this.bindResizeListener();
|
|
260
|
+
this.defaultWidth = DomHandler.getWidth(this.element);
|
|
261
|
+
this.defaultHeight = DomHandler.getHeight(this.element);
|
|
262
|
+
this.defaultContentWidth = DomHandler.getWidth(this.content);
|
|
263
|
+
this.defaultContentHeight = DomHandler.getHeight(this.content);
|
|
264
|
+
this.initialized = true;
|
|
265
|
+
}
|
|
239
266
|
},
|
|
240
|
-
init: function() {
|
|
241
|
-
|
|
267
|
+
init: function init() {
|
|
268
|
+
if (!this.disabled) {
|
|
269
|
+
this.setSize();
|
|
270
|
+
this.calculateOptions();
|
|
271
|
+
this.setSpacerSize();
|
|
272
|
+
}
|
|
242
273
|
},
|
|
243
|
-
isVertical: function() {
|
|
274
|
+
isVertical: function isVertical() {
|
|
244
275
|
return this.orientation === "vertical";
|
|
245
276
|
},
|
|
246
|
-
isHorizontal: function() {
|
|
277
|
+
isHorizontal: function isHorizontal() {
|
|
247
278
|
return this.orientation === "horizontal";
|
|
248
279
|
},
|
|
249
|
-
isBoth: function() {
|
|
280
|
+
isBoth: function isBoth() {
|
|
250
281
|
return this.orientation === "both";
|
|
251
282
|
},
|
|
252
|
-
scrollTo: function(
|
|
253
|
-
this.element && this.element.scrollTo(
|
|
254
|
-
},
|
|
255
|
-
scrollToIndex: function(
|
|
256
|
-
var
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
283
|
+
scrollTo: function scrollTo(options) {
|
|
284
|
+
this.element && this.element.scrollTo(options);
|
|
285
|
+
},
|
|
286
|
+
scrollToIndex: function scrollToIndex(index) {
|
|
287
|
+
var _this = this;
|
|
288
|
+
var behavior = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "auto";
|
|
289
|
+
var both = this.isBoth();
|
|
290
|
+
var horizontal = this.isHorizontal();
|
|
291
|
+
var valid = both ? index.every(function(i) {
|
|
292
|
+
return i > -1;
|
|
293
|
+
}) : index > -1;
|
|
294
|
+
if (valid) {
|
|
295
|
+
var first = this.first;
|
|
296
|
+
var _this$element = this.element, _this$element$scrollT = _this$element.scrollTop, scrollTop = _this$element$scrollT === void 0 ? 0 : _this$element$scrollT, _this$element$scrollL = _this$element.scrollLeft, scrollLeft = _this$element$scrollL === void 0 ? 0 : _this$element$scrollL;
|
|
297
|
+
var _this$calculateNumIte = this.calculateNumItems(), numToleratedItems2 = _this$calculateNumIte.numToleratedItems;
|
|
298
|
+
var contentPos = this.getContentPosition();
|
|
299
|
+
var itemSize2 = this.itemSize;
|
|
300
|
+
var calculateFirst = function calculateFirst2() {
|
|
301
|
+
var _index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
302
|
+
var _numT = arguments.length > 1 ? arguments[1] : void 0;
|
|
303
|
+
return _index <= _numT ? 0 : _index;
|
|
304
|
+
};
|
|
305
|
+
var calculateCoord = function calculateCoord2(_first, _size, _cpos) {
|
|
306
|
+
return _first * _size + _cpos;
|
|
307
|
+
};
|
|
308
|
+
var scrollTo2 = function scrollTo3() {
|
|
309
|
+
var left = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
310
|
+
var top = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
311
|
+
return _this.scrollTo({
|
|
312
|
+
left,
|
|
313
|
+
top,
|
|
314
|
+
behavior
|
|
271
315
|
});
|
|
272
|
-
}
|
|
316
|
+
};
|
|
317
|
+
var newFirst = both ? {
|
|
273
318
|
rows: 0,
|
|
274
319
|
cols: 0
|
|
275
|
-
} : 0
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
320
|
+
} : 0;
|
|
321
|
+
var isRangeChanged = false, isScrollChanged = false;
|
|
322
|
+
if (both) {
|
|
323
|
+
newFirst = {
|
|
324
|
+
rows: calculateFirst(index[0], numToleratedItems2[0]),
|
|
325
|
+
cols: calculateFirst(index[1], numToleratedItems2[1])
|
|
326
|
+
};
|
|
327
|
+
scrollTo2(calculateCoord(newFirst.cols, itemSize2[1], contentPos.left), calculateCoord(newFirst.rows, itemSize2[0], contentPos.top));
|
|
328
|
+
isScrollChanged = this.lastScrollPos.top !== scrollTop || this.lastScrollPos.left !== scrollLeft;
|
|
329
|
+
isRangeChanged = newFirst.rows !== first.rows || newFirst.cols !== first.cols;
|
|
330
|
+
} else {
|
|
331
|
+
newFirst = calculateFirst(index, numToleratedItems2);
|
|
332
|
+
horizontal ? scrollTo2(calculateCoord(newFirst, itemSize2, contentPos.left), scrollTop) : scrollTo2(scrollLeft, calculateCoord(newFirst, itemSize2, contentPos.top));
|
|
333
|
+
isScrollChanged = this.lastScrollPos !== (horizontal ? scrollLeft : scrollTop);
|
|
334
|
+
isRangeChanged = newFirst !== first;
|
|
335
|
+
}
|
|
336
|
+
this.isRangeChanged = isRangeChanged;
|
|
337
|
+
isScrollChanged && (this.first = newFirst);
|
|
280
338
|
}
|
|
281
339
|
},
|
|
282
|
-
scrollInView: function(
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
340
|
+
scrollInView: function scrollInView(index, to) {
|
|
341
|
+
var _this2 = this;
|
|
342
|
+
var behavior = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "auto";
|
|
343
|
+
if (to) {
|
|
344
|
+
var both = this.isBoth();
|
|
345
|
+
var horizontal = this.isHorizontal();
|
|
346
|
+
var valid = both ? index.every(function(i) {
|
|
347
|
+
return i > -1;
|
|
348
|
+
}) : index > -1;
|
|
349
|
+
if (valid) {
|
|
350
|
+
var _this$getRenderedRang = this.getRenderedRange(), first = _this$getRenderedRang.first, viewport = _this$getRenderedRang.viewport;
|
|
351
|
+
var scrollTo2 = function scrollTo3() {
|
|
352
|
+
var left = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
353
|
+
var top = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
354
|
+
return _this2.scrollTo({
|
|
355
|
+
left,
|
|
356
|
+
top,
|
|
357
|
+
behavior
|
|
295
358
|
});
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
359
|
+
};
|
|
360
|
+
var isToStart = to === "to-start";
|
|
361
|
+
var isToEnd = to === "to-end";
|
|
362
|
+
if (isToStart) {
|
|
363
|
+
if (both) {
|
|
364
|
+
if (viewport.first.rows - first.rows > index[0]) {
|
|
365
|
+
scrollTo2(viewport.first.cols * this.itemSize[1], (viewport.first.rows - 1) * this.itemSize[0]);
|
|
366
|
+
} else if (viewport.first.cols - first.cols > index[1]) {
|
|
367
|
+
scrollTo2((viewport.first.cols - 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
|
|
368
|
+
}
|
|
369
|
+
} else {
|
|
370
|
+
if (viewport.first - first > index) {
|
|
371
|
+
var pos = (viewport.first - 1) * this.itemSize;
|
|
372
|
+
horizontal ? scrollTo2(pos, 0) : scrollTo2(0, pos);
|
|
373
|
+
}
|
|
303
374
|
}
|
|
304
|
-
} else if (
|
|
305
|
-
if (
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
375
|
+
} else if (isToEnd) {
|
|
376
|
+
if (both) {
|
|
377
|
+
if (viewport.last.rows - first.rows <= index[0] + 1) {
|
|
378
|
+
scrollTo2(viewport.first.cols * this.itemSize[1], (viewport.first.rows + 1) * this.itemSize[0]);
|
|
379
|
+
} else if (viewport.last.cols - first.cols <= index[1] + 1) {
|
|
380
|
+
scrollTo2((viewport.first.cols + 1) * this.itemSize[1], viewport.first.rows * this.itemSize[0]);
|
|
381
|
+
}
|
|
382
|
+
} else {
|
|
383
|
+
if (viewport.last - first <= index + 1) {
|
|
384
|
+
var _pos2 = (viewport.first + 1) * this.itemSize;
|
|
385
|
+
horizontal ? scrollTo2(_pos2, 0) : scrollTo2(0, _pos2);
|
|
386
|
+
}
|
|
310
387
|
}
|
|
311
388
|
}
|
|
312
389
|
}
|
|
313
|
-
} else
|
|
314
|
-
this.scrollToIndex(
|
|
390
|
+
} else {
|
|
391
|
+
this.scrollToIndex(index, behavior);
|
|
392
|
+
}
|
|
315
393
|
},
|
|
316
|
-
getRenderedRange: function() {
|
|
317
|
-
var
|
|
318
|
-
return Math.floor(
|
|
319
|
-
}
|
|
394
|
+
getRenderedRange: function getRenderedRange() {
|
|
395
|
+
var calculateFirstInViewport = function calculateFirstInViewport2(_pos, _size) {
|
|
396
|
+
return Math.floor(_pos / (_size || _pos));
|
|
397
|
+
};
|
|
398
|
+
var firstInViewport = this.first;
|
|
399
|
+
var lastInViewport = 0;
|
|
320
400
|
if (this.element) {
|
|
321
|
-
var
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
401
|
+
var both = this.isBoth();
|
|
402
|
+
var horizontal = this.isHorizontal();
|
|
403
|
+
var _this$element2 = this.element, scrollTop = _this$element2.scrollTop, scrollLeft = _this$element2.scrollLeft;
|
|
404
|
+
if (both) {
|
|
405
|
+
firstInViewport = {
|
|
406
|
+
rows: calculateFirstInViewport(scrollTop, this.itemSize[0]),
|
|
407
|
+
cols: calculateFirstInViewport(scrollLeft, this.itemSize[1])
|
|
408
|
+
};
|
|
409
|
+
lastInViewport = {
|
|
410
|
+
rows: firstInViewport.rows + this.numItemsInViewport.rows,
|
|
411
|
+
cols: firstInViewport.cols + this.numItemsInViewport.cols
|
|
329
412
|
};
|
|
330
|
-
else {
|
|
331
|
-
var
|
|
332
|
-
|
|
413
|
+
} else {
|
|
414
|
+
var scrollPos = horizontal ? scrollLeft : scrollTop;
|
|
415
|
+
firstInViewport = calculateFirstInViewport(scrollPos, this.itemSize);
|
|
416
|
+
lastInViewport = firstInViewport + this.numItemsInViewport;
|
|
333
417
|
}
|
|
334
418
|
}
|
|
335
419
|
return {
|
|
336
420
|
first: this.first,
|
|
337
421
|
last: this.last,
|
|
338
422
|
viewport: {
|
|
339
|
-
first:
|
|
340
|
-
last:
|
|
423
|
+
first: firstInViewport,
|
|
424
|
+
last: lastInViewport
|
|
341
425
|
}
|
|
342
426
|
};
|
|
343
427
|
},
|
|
344
|
-
calculateNumItems: function() {
|
|
345
|
-
var
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
428
|
+
calculateNumItems: function calculateNumItems() {
|
|
429
|
+
var both = this.isBoth();
|
|
430
|
+
var horizontal = this.isHorizontal();
|
|
431
|
+
var itemSize2 = this.itemSize;
|
|
432
|
+
var contentPos = this.getContentPosition();
|
|
433
|
+
var contentWidth = this.element ? this.element.offsetWidth - contentPos.left : 0;
|
|
434
|
+
var contentHeight = this.element ? this.element.offsetHeight - contentPos.top : 0;
|
|
435
|
+
var calculateNumItemsInViewport = function calculateNumItemsInViewport2(_contentSize, _itemSize) {
|
|
436
|
+
return Math.ceil(_contentSize / (_itemSize || _contentSize));
|
|
437
|
+
};
|
|
438
|
+
var calculateNumToleratedItems = function calculateNumToleratedItems2(_numItems) {
|
|
439
|
+
return Math.ceil(_numItems / 2);
|
|
440
|
+
};
|
|
441
|
+
var numItemsInViewport = both ? {
|
|
442
|
+
rows: calculateNumItemsInViewport(contentHeight, itemSize2[0]),
|
|
443
|
+
cols: calculateNumItemsInViewport(contentWidth, itemSize2[1])
|
|
444
|
+
} : calculateNumItemsInViewport(horizontal ? contentWidth : contentHeight, itemSize2);
|
|
445
|
+
var numToleratedItems2 = this.d_numToleratedItems || (both ? [calculateNumToleratedItems(numItemsInViewport.rows), calculateNumToleratedItems(numItemsInViewport.cols)] : calculateNumToleratedItems(numItemsInViewport));
|
|
353
446
|
return {
|
|
354
|
-
numItemsInViewport
|
|
355
|
-
numToleratedItems:
|
|
447
|
+
numItemsInViewport,
|
|
448
|
+
numToleratedItems: numToleratedItems2
|
|
356
449
|
};
|
|
357
450
|
},
|
|
358
|
-
calculateOptions: function() {
|
|
359
|
-
var
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
451
|
+
calculateOptions: function calculateOptions() {
|
|
452
|
+
var _this3 = this;
|
|
453
|
+
var both = this.isBoth();
|
|
454
|
+
var first = this.first;
|
|
455
|
+
var _this$calculateNumIte2 = this.calculateNumItems(), numItemsInViewport = _this$calculateNumIte2.numItemsInViewport, numToleratedItems2 = _this$calculateNumIte2.numToleratedItems;
|
|
456
|
+
var calculateLast = function calculateLast2(_first, _num, _numT) {
|
|
457
|
+
var _isCols = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
458
|
+
return _this3.getLast(_first + _num + (_first < _numT ? 2 : 3) * _numT, _isCols);
|
|
459
|
+
};
|
|
460
|
+
var last = both ? {
|
|
461
|
+
rows: calculateLast(first.rows, numItemsInViewport.rows, numToleratedItems2[0]),
|
|
462
|
+
cols: calculateLast(first.cols, numItemsInViewport.cols, numToleratedItems2[1], true)
|
|
463
|
+
} : calculateLast(first, numItemsInViewport, numToleratedItems2);
|
|
464
|
+
this.last = last;
|
|
465
|
+
this.numItemsInViewport = numItemsInViewport;
|
|
466
|
+
this.d_numToleratedItems = numToleratedItems2;
|
|
467
|
+
this.$emit("update:numToleratedItems", this.d_numToleratedItems);
|
|
468
|
+
if (this.showLoader) {
|
|
469
|
+
this.loaderArr = both ? Array.from({
|
|
470
|
+
length: numItemsInViewport.rows
|
|
471
|
+
}).map(function() {
|
|
472
|
+
return Array.from({
|
|
473
|
+
length: numItemsInViewport.cols
|
|
474
|
+
});
|
|
475
|
+
}) : Array.from({
|
|
476
|
+
length: numItemsInViewport
|
|
371
477
|
});
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
478
|
+
}
|
|
479
|
+
if (this.lazy) {
|
|
480
|
+
Promise.resolve().then(function() {
|
|
481
|
+
var _this3$items;
|
|
482
|
+
_this3.lazyLoadState = {
|
|
483
|
+
first: _this3.step ? both ? {
|
|
484
|
+
rows: 0,
|
|
485
|
+
cols: first.cols
|
|
486
|
+
} : 0 : first,
|
|
487
|
+
last: Math.min(_this3.step ? _this3.step : last, ((_this3$items = _this3.items) === null || _this3$items === void 0 ? void 0 : _this3$items.length) || 0)
|
|
488
|
+
};
|
|
489
|
+
_this3.$emit("lazy-load", _this3.lazyLoadState);
|
|
490
|
+
});
|
|
491
|
+
}
|
|
384
492
|
},
|
|
385
|
-
calculateAutoSize: function() {
|
|
386
|
-
var
|
|
387
|
-
this.autoSize && !this.d_loading
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
493
|
+
calculateAutoSize: function calculateAutoSize() {
|
|
494
|
+
var _this4 = this;
|
|
495
|
+
if (this.autoSize && !this.d_loading) {
|
|
496
|
+
Promise.resolve().then(function() {
|
|
497
|
+
if (_this4.content) {
|
|
498
|
+
var both = _this4.isBoth();
|
|
499
|
+
var horizontal = _this4.isHorizontal();
|
|
500
|
+
var vertical = _this4.isVertical();
|
|
501
|
+
_this4.content.style.minHeight = _this4.content.style.minWidth = "auto";
|
|
502
|
+
_this4.content.style.position = "relative";
|
|
503
|
+
_this4.element.style.contain = "none";
|
|
504
|
+
var _ref = [DomHandler.getWidth(_this4.element), DomHandler.getHeight(_this4.element)], width = _ref[0], height = _ref[1];
|
|
505
|
+
(both || horizontal) && (_this4.element.style.width = width < _this4.defaultWidth ? width + "px" : _this4.scrollWidth || _this4.defaultWidth + "px");
|
|
506
|
+
(both || vertical) && (_this4.element.style.height = height < _this4.defaultHeight ? height + "px" : _this4.scrollHeight || _this4.defaultHeight + "px");
|
|
507
|
+
_this4.content.style.minHeight = _this4.content.style.minWidth = "";
|
|
508
|
+
_this4.content.style.position = "";
|
|
509
|
+
_this4.element.style.contain = "";
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
}
|
|
395
513
|
},
|
|
396
|
-
getLast: function() {
|
|
397
|
-
var
|
|
398
|
-
|
|
514
|
+
getLast: function getLast() {
|
|
515
|
+
var _ref2, _this$items;
|
|
516
|
+
var last = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
517
|
+
var isCols = arguments.length > 1 ? arguments[1] : void 0;
|
|
518
|
+
return this.items ? Math.min(isCols ? ((_ref2 = this.columns || this.items[0]) === null || _ref2 === void 0 ? void 0 : _ref2.length) || 0 : ((_this$items = this.items) === null || _this$items === void 0 ? void 0 : _this$items.length) || 0, last) : 0;
|
|
399
519
|
},
|
|
400
|
-
getContentPosition: function() {
|
|
520
|
+
getContentPosition: function getContentPosition() {
|
|
401
521
|
if (this.content) {
|
|
402
|
-
var
|
|
522
|
+
var style = getComputedStyle(this.content);
|
|
523
|
+
var left = parseFloat(style.paddingLeft) + Math.max(parseFloat(style.left) || 0, 0);
|
|
524
|
+
var right = parseFloat(style.paddingRight) + Math.max(parseFloat(style.right) || 0, 0);
|
|
525
|
+
var top = parseFloat(style.paddingTop) + Math.max(parseFloat(style.top) || 0, 0);
|
|
526
|
+
var bottom = parseFloat(style.paddingBottom) + Math.max(parseFloat(style.bottom) || 0, 0);
|
|
403
527
|
return {
|
|
404
|
-
left
|
|
405
|
-
right
|
|
406
|
-
top
|
|
407
|
-
bottom
|
|
408
|
-
x:
|
|
409
|
-
y:
|
|
528
|
+
left,
|
|
529
|
+
right,
|
|
530
|
+
top,
|
|
531
|
+
bottom,
|
|
532
|
+
x: left + right,
|
|
533
|
+
y: top + bottom
|
|
410
534
|
};
|
|
411
535
|
}
|
|
412
536
|
return {
|
|
@@ -418,287 +542,390 @@ var et = {
|
|
|
418
542
|
y: 0
|
|
419
543
|
};
|
|
420
544
|
},
|
|
421
|
-
setSize: function() {
|
|
422
|
-
var
|
|
545
|
+
setSize: function setSize() {
|
|
546
|
+
var _this5 = this;
|
|
423
547
|
if (this.element) {
|
|
424
|
-
var
|
|
425
|
-
|
|
548
|
+
var both = this.isBoth();
|
|
549
|
+
var horizontal = this.isHorizontal();
|
|
550
|
+
var parentElement = this.element.parentElement;
|
|
551
|
+
var width = this.scrollWidth || "".concat(this.element.offsetWidth || parentElement.offsetWidth, "px");
|
|
552
|
+
var height = this.scrollHeight || "".concat(this.element.offsetHeight || parentElement.offsetHeight, "px");
|
|
553
|
+
var setProp = function setProp2(_name, _value) {
|
|
554
|
+
return _this5.element.style[_name] = _value;
|
|
426
555
|
};
|
|
427
|
-
|
|
556
|
+
if (both || horizontal) {
|
|
557
|
+
setProp("height", height);
|
|
558
|
+
setProp("width", width);
|
|
559
|
+
} else {
|
|
560
|
+
setProp("height", height);
|
|
561
|
+
}
|
|
428
562
|
}
|
|
429
563
|
},
|
|
430
|
-
setSpacerSize: function() {
|
|
431
|
-
var
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
564
|
+
setSpacerSize: function setSpacerSize() {
|
|
565
|
+
var _this6 = this;
|
|
566
|
+
var items2 = this.items;
|
|
567
|
+
if (items2) {
|
|
568
|
+
var both = this.isBoth();
|
|
569
|
+
var horizontal = this.isHorizontal();
|
|
570
|
+
var contentPos = this.getContentPosition();
|
|
571
|
+
var setProp = function setProp2(_name, _value, _size) {
|
|
572
|
+
var _cpos = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 0;
|
|
573
|
+
return _this6.spacerStyle = _objectSpread(_objectSpread({}, _this6.spacerStyle), _defineProperty({}, "".concat(_name), (_value || []).length * _size + _cpos + "px"));
|
|
436
574
|
};
|
|
437
|
-
|
|
575
|
+
if (both) {
|
|
576
|
+
setProp("height", items2, this.itemSize[0], contentPos.y);
|
|
577
|
+
setProp("width", this.columns || items2[1], this.itemSize[1], contentPos.x);
|
|
578
|
+
} else {
|
|
579
|
+
horizontal ? setProp("width", this.columns || items2, this.itemSize, contentPos.x) : setProp("height", items2, this.itemSize, contentPos.y);
|
|
580
|
+
}
|
|
438
581
|
}
|
|
439
582
|
},
|
|
440
|
-
setContentPosition: function(
|
|
441
|
-
var
|
|
583
|
+
setContentPosition: function setContentPosition(pos) {
|
|
584
|
+
var _this7 = this;
|
|
442
585
|
if (this.content && !this.appendOnly) {
|
|
443
|
-
var
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
return
|
|
448
|
-
|
|
586
|
+
var both = this.isBoth();
|
|
587
|
+
var horizontal = this.isHorizontal();
|
|
588
|
+
var first = pos ? pos.first : this.first;
|
|
589
|
+
var calculateTranslateVal = function calculateTranslateVal2(_first, _size) {
|
|
590
|
+
return _first * _size;
|
|
591
|
+
};
|
|
592
|
+
var setTransform = function setTransform2() {
|
|
593
|
+
var _x = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
594
|
+
var _y = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
595
|
+
return _this7.contentStyle = _objectSpread(_objectSpread({}, _this7.contentStyle), {
|
|
596
|
+
transform: "translate3d(".concat(_x, "px, ").concat(_y, "px, 0)")
|
|
449
597
|
});
|
|
450
598
|
};
|
|
451
|
-
if (
|
|
452
|
-
|
|
453
|
-
else {
|
|
454
|
-
var
|
|
455
|
-
|
|
599
|
+
if (both) {
|
|
600
|
+
setTransform(calculateTranslateVal(first.cols, this.itemSize[1]), calculateTranslateVal(first.rows, this.itemSize[0]));
|
|
601
|
+
} else {
|
|
602
|
+
var translateVal = calculateTranslateVal(first, this.itemSize);
|
|
603
|
+
horizontal ? setTransform(translateVal, 0) : setTransform(0, translateVal);
|
|
456
604
|
}
|
|
457
605
|
}
|
|
458
606
|
},
|
|
459
|
-
onScrollPositionChange: function(
|
|
460
|
-
var
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
607
|
+
onScrollPositionChange: function onScrollPositionChange(event) {
|
|
608
|
+
var _this8 = this;
|
|
609
|
+
var target = event.target;
|
|
610
|
+
var both = this.isBoth();
|
|
611
|
+
var horizontal = this.isHorizontal();
|
|
612
|
+
var contentPos = this.getContentPosition();
|
|
613
|
+
var calculateScrollPos = function calculateScrollPos2(_pos, _cpos) {
|
|
614
|
+
return _pos ? _pos > _cpos ? _pos - _cpos : _pos : 0;
|
|
615
|
+
};
|
|
616
|
+
var calculateCurrentIndex = function calculateCurrentIndex2(_pos, _size) {
|
|
617
|
+
return Math.floor(_pos / (_size || _pos));
|
|
618
|
+
};
|
|
619
|
+
var calculateTriggerIndex = function calculateTriggerIndex2(_currentIndex, _first, _last, _num, _numT, _isScrollDownOrRight) {
|
|
620
|
+
return _currentIndex <= _numT ? _numT : _isScrollDownOrRight ? _last - _num - _numT : _first + _numT - 1;
|
|
621
|
+
};
|
|
622
|
+
var calculateFirst = function calculateFirst2(_currentIndex, _triggerIndex, _first, _last, _num, _numT, _isScrollDownOrRight) {
|
|
623
|
+
if (_currentIndex <= _numT) return 0;
|
|
624
|
+
else return Math.max(0, _isScrollDownOrRight ? _currentIndex < _triggerIndex ? _first : _currentIndex - _numT : _currentIndex > _triggerIndex ? _first : _currentIndex - 2 * _numT);
|
|
625
|
+
};
|
|
626
|
+
var calculateLast = function calculateLast2(_currentIndex, _first, _last, _num, _numT, _isCols) {
|
|
627
|
+
var lastValue = _first + _num + 2 * _numT;
|
|
628
|
+
if (_currentIndex >= _numT) {
|
|
629
|
+
lastValue += _numT + 1;
|
|
630
|
+
}
|
|
631
|
+
return _this8.getLast(lastValue, _isCols);
|
|
632
|
+
};
|
|
633
|
+
var scrollTop = calculateScrollPos(target.scrollTop, contentPos.top);
|
|
634
|
+
var scrollLeft = calculateScrollPos(target.scrollLeft, contentPos.left);
|
|
635
|
+
var newFirst = both ? {
|
|
472
636
|
rows: 0,
|
|
473
637
|
cols: 0
|
|
474
|
-
} : 0
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
638
|
+
} : 0;
|
|
639
|
+
var newLast = this.last;
|
|
640
|
+
var isRangeChanged = false;
|
|
641
|
+
var newScrollPos = this.lastScrollPos;
|
|
642
|
+
if (both) {
|
|
643
|
+
var isScrollDown = this.lastScrollPos.top <= scrollTop;
|
|
644
|
+
var isScrollRight = this.lastScrollPos.left <= scrollLeft;
|
|
645
|
+
if (!this.appendOnly || this.appendOnly && (isScrollDown || isScrollRight)) {
|
|
646
|
+
var currentIndex = {
|
|
647
|
+
rows: calculateCurrentIndex(scrollTop, this.itemSize[0]),
|
|
648
|
+
cols: calculateCurrentIndex(scrollLeft, this.itemSize[1])
|
|
649
|
+
};
|
|
650
|
+
var triggerIndex = {
|
|
651
|
+
rows: calculateTriggerIndex(currentIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
|
|
652
|
+
cols: calculateTriggerIndex(currentIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
|
|
653
|
+
};
|
|
654
|
+
newFirst = {
|
|
655
|
+
rows: calculateFirst(currentIndex.rows, triggerIndex.rows, this.first.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0], isScrollDown),
|
|
656
|
+
cols: calculateFirst(currentIndex.cols, triggerIndex.cols, this.first.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], isScrollRight)
|
|
484
657
|
};
|
|
485
|
-
|
|
486
|
-
rows:
|
|
487
|
-
cols:
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
left: y
|
|
658
|
+
newLast = {
|
|
659
|
+
rows: calculateLast(currentIndex.rows, newFirst.rows, this.last.rows, this.numItemsInViewport.rows, this.d_numToleratedItems[0]),
|
|
660
|
+
cols: calculateLast(currentIndex.cols, newFirst.cols, this.last.cols, this.numItemsInViewport.cols, this.d_numToleratedItems[1], true)
|
|
661
|
+
};
|
|
662
|
+
isRangeChanged = newFirst.rows !== this.first.rows || newLast.rows !== this.last.rows || newFirst.cols !== this.first.cols || newLast.cols !== this.last.cols || this.isRangeChanged;
|
|
663
|
+
newScrollPos = {
|
|
664
|
+
top: scrollTop,
|
|
665
|
+
left: scrollLeft
|
|
494
666
|
};
|
|
495
667
|
}
|
|
496
668
|
} else {
|
|
497
|
-
var
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
669
|
+
var scrollPos = horizontal ? scrollLeft : scrollTop;
|
|
670
|
+
var isScrollDownOrRight = this.lastScrollPos <= scrollPos;
|
|
671
|
+
if (!this.appendOnly || this.appendOnly && isScrollDownOrRight) {
|
|
672
|
+
var _currentIndex2 = calculateCurrentIndex(scrollPos, this.itemSize);
|
|
673
|
+
var _triggerIndex2 = calculateTriggerIndex(_currentIndex2, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
|
|
674
|
+
newFirst = calculateFirst(_currentIndex2, _triggerIndex2, this.first, this.last, this.numItemsInViewport, this.d_numToleratedItems, isScrollDownOrRight);
|
|
675
|
+
newLast = calculateLast(_currentIndex2, newFirst, this.last, this.numItemsInViewport, this.d_numToleratedItems);
|
|
676
|
+
isRangeChanged = newFirst !== this.first || newLast !== this.last || this.isRangeChanged;
|
|
677
|
+
newScrollPos = scrollPos;
|
|
501
678
|
}
|
|
502
679
|
}
|
|
503
680
|
return {
|
|
504
|
-
first:
|
|
505
|
-
last:
|
|
506
|
-
isRangeChanged
|
|
507
|
-
scrollPos:
|
|
681
|
+
first: newFirst,
|
|
682
|
+
last: newLast,
|
|
683
|
+
isRangeChanged,
|
|
684
|
+
scrollPos: newScrollPos
|
|
508
685
|
};
|
|
509
686
|
},
|
|
510
|
-
onScrollChange: function(
|
|
511
|
-
var
|
|
512
|
-
if (
|
|
513
|
-
var
|
|
514
|
-
first
|
|
515
|
-
last
|
|
687
|
+
onScrollChange: function onScrollChange(event) {
|
|
688
|
+
var _this$onScrollPositio = this.onScrollPositionChange(event), first = _this$onScrollPositio.first, last = _this$onScrollPositio.last, isRangeChanged = _this$onScrollPositio.isRangeChanged, scrollPos = _this$onScrollPositio.scrollPos;
|
|
689
|
+
if (isRangeChanged) {
|
|
690
|
+
var newState = {
|
|
691
|
+
first,
|
|
692
|
+
last
|
|
516
693
|
};
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
694
|
+
this.setContentPosition(newState);
|
|
695
|
+
this.first = first;
|
|
696
|
+
this.last = last;
|
|
697
|
+
this.lastScrollPos = scrollPos;
|
|
698
|
+
this.$emit("scroll-index-change", newState);
|
|
699
|
+
if (this.lazy && this.isPageChanged(first)) {
|
|
700
|
+
var _this$items2, _this$items3;
|
|
701
|
+
var lazyLoadState = {
|
|
702
|
+
first: this.step ? Math.min(this.getPageByFirst(first) * this.step, (((_this$items2 = this.items) === null || _this$items2 === void 0 ? void 0 : _this$items2.length) || 0) - this.step) : first,
|
|
703
|
+
last: Math.min(this.step ? (this.getPageByFirst(first) + 1) * this.step : last, ((_this$items3 = this.items) === null || _this$items3 === void 0 ? void 0 : _this$items3.length) || 0)
|
|
704
|
+
};
|
|
705
|
+
var isLazyStateChanged = this.lazyLoadState.first !== lazyLoadState.first || this.lazyLoadState.last !== lazyLoadState.last;
|
|
706
|
+
isLazyStateChanged && this.$emit("lazy-load", lazyLoadState);
|
|
707
|
+
this.lazyLoadState = lazyLoadState;
|
|
523
708
|
}
|
|
524
709
|
}
|
|
525
710
|
},
|
|
526
|
-
onScroll: function(
|
|
527
|
-
var
|
|
528
|
-
|
|
529
|
-
|
|
711
|
+
onScroll: function onScroll(event) {
|
|
712
|
+
var _this9 = this;
|
|
713
|
+
this.$emit("scroll", event);
|
|
714
|
+
if (this.delay) {
|
|
715
|
+
if (this.scrollTimeout) {
|
|
716
|
+
clearTimeout(this.scrollTimeout);
|
|
717
|
+
}
|
|
718
|
+
if (this.isPageChanged()) {
|
|
530
719
|
if (!this.d_loading && this.showLoader) {
|
|
531
|
-
var
|
|
532
|
-
|
|
720
|
+
var _this$onScrollPositio2 = this.onScrollPositionChange(event), isRangeChanged = _this$onScrollPositio2.isRangeChanged;
|
|
721
|
+
var changed = isRangeChanged || (this.step ? this.isPageChanged() : false);
|
|
722
|
+
changed && (this.d_loading = true);
|
|
533
723
|
}
|
|
534
724
|
this.scrollTimeout = setTimeout(function() {
|
|
535
|
-
|
|
725
|
+
_this9.onScrollChange(event);
|
|
726
|
+
if (_this9.d_loading && _this9.showLoader && (!_this9.lazy || _this9.loading === void 0)) {
|
|
727
|
+
_this9.d_loading = false;
|
|
728
|
+
_this9.page = _this9.getPageByFirst();
|
|
729
|
+
}
|
|
536
730
|
}, this.delay);
|
|
537
731
|
}
|
|
538
|
-
} else
|
|
539
|
-
this.onScrollChange(
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
732
|
+
} else {
|
|
733
|
+
this.onScrollChange(event);
|
|
734
|
+
}
|
|
735
|
+
},
|
|
736
|
+
onResize: function onResize() {
|
|
737
|
+
var _this10 = this;
|
|
738
|
+
if (this.resizeTimeout) {
|
|
739
|
+
clearTimeout(this.resizeTimeout);
|
|
740
|
+
}
|
|
741
|
+
this.resizeTimeout = setTimeout(function() {
|
|
742
|
+
if (DomHandler.isVisible(_this10.element)) {
|
|
743
|
+
var both = _this10.isBoth();
|
|
744
|
+
var vertical = _this10.isVertical();
|
|
745
|
+
var horizontal = _this10.isHorizontal();
|
|
746
|
+
var _ref3 = [DomHandler.getWidth(_this10.element), DomHandler.getHeight(_this10.element)], width = _ref3[0], height = _ref3[1];
|
|
747
|
+
var isDiffWidth = width !== _this10.defaultWidth, isDiffHeight = height !== _this10.defaultHeight;
|
|
748
|
+
var reinit = both ? isDiffWidth || isDiffHeight : horizontal ? isDiffWidth : vertical ? isDiffHeight : false;
|
|
749
|
+
if (reinit) {
|
|
750
|
+
_this10.d_numToleratedItems = _this10.numToleratedItems;
|
|
751
|
+
_this10.defaultWidth = width;
|
|
752
|
+
_this10.defaultHeight = height;
|
|
753
|
+
_this10.defaultContentWidth = DomHandler.getWidth(_this10.content);
|
|
754
|
+
_this10.defaultContentHeight = DomHandler.getHeight(_this10.content);
|
|
755
|
+
_this10.init();
|
|
756
|
+
}
|
|
547
757
|
}
|
|
548
758
|
}, this.resizeDelay);
|
|
549
759
|
},
|
|
550
|
-
bindResizeListener: function() {
|
|
551
|
-
|
|
760
|
+
bindResizeListener: function bindResizeListener() {
|
|
761
|
+
if (!this.resizeListener) {
|
|
762
|
+
this.resizeListener = this.onResize.bind(this);
|
|
763
|
+
window.addEventListener("resize", this.resizeListener);
|
|
764
|
+
window.addEventListener("orientationchange", this.resizeListener);
|
|
765
|
+
}
|
|
552
766
|
},
|
|
553
|
-
unbindResizeListener: function() {
|
|
554
|
-
|
|
767
|
+
unbindResizeListener: function unbindResizeListener() {
|
|
768
|
+
if (this.resizeListener) {
|
|
769
|
+
window.removeEventListener("resize", this.resizeListener);
|
|
770
|
+
window.removeEventListener("orientationchange", this.resizeListener);
|
|
771
|
+
this.resizeListener = null;
|
|
772
|
+
}
|
|
555
773
|
},
|
|
556
|
-
getOptions: function(
|
|
557
|
-
var
|
|
774
|
+
getOptions: function getOptions(renderedIndex) {
|
|
775
|
+
var count = (this.items || []).length;
|
|
776
|
+
var index = this.isBoth() ? this.first.rows + renderedIndex : this.first + renderedIndex;
|
|
558
777
|
return {
|
|
559
|
-
index
|
|
560
|
-
count
|
|
561
|
-
first:
|
|
562
|
-
last:
|
|
563
|
-
even:
|
|
564
|
-
odd:
|
|
778
|
+
index,
|
|
779
|
+
count,
|
|
780
|
+
first: index === 0,
|
|
781
|
+
last: index === count - 1,
|
|
782
|
+
even: index % 2 === 0,
|
|
783
|
+
odd: index % 2 !== 0
|
|
565
784
|
};
|
|
566
785
|
},
|
|
567
|
-
getLoaderOptions: function(
|
|
568
|
-
var
|
|
569
|
-
return
|
|
570
|
-
index
|
|
571
|
-
count
|
|
572
|
-
first:
|
|
573
|
-
last:
|
|
574
|
-
even:
|
|
575
|
-
odd:
|
|
576
|
-
},
|
|
786
|
+
getLoaderOptions: function getLoaderOptions(index, extOptions) {
|
|
787
|
+
var count = this.loaderArr.length;
|
|
788
|
+
return _objectSpread({
|
|
789
|
+
index,
|
|
790
|
+
count,
|
|
791
|
+
first: index === 0,
|
|
792
|
+
last: index === count - 1,
|
|
793
|
+
even: index % 2 === 0,
|
|
794
|
+
odd: index % 2 !== 0
|
|
795
|
+
}, extOptions);
|
|
577
796
|
},
|
|
578
|
-
getPageByFirst: function(
|
|
579
|
-
return Math.floor(((
|
|
797
|
+
getPageByFirst: function getPageByFirst(first) {
|
|
798
|
+
return Math.floor(((first !== null && first !== void 0 ? first : this.first) + this.d_numToleratedItems * 4) / (this.step || 1));
|
|
580
799
|
},
|
|
581
|
-
isPageChanged: function(
|
|
582
|
-
return this.step ? this.page !== this.getPageByFirst(
|
|
800
|
+
isPageChanged: function isPageChanged(first) {
|
|
801
|
+
return this.step ? this.page !== this.getPageByFirst(first !== null && first !== void 0 ? first : this.first) : true;
|
|
583
802
|
},
|
|
584
|
-
setContentEl: function(
|
|
585
|
-
this.content =
|
|
803
|
+
setContentEl: function setContentEl(el) {
|
|
804
|
+
this.content = el || this.content || DomHandler.findSingle(this.element, '[data-pc-section="content"]');
|
|
586
805
|
},
|
|
587
|
-
elementRef: function(
|
|
588
|
-
this.element =
|
|
806
|
+
elementRef: function elementRef(el) {
|
|
807
|
+
this.element = el;
|
|
589
808
|
},
|
|
590
|
-
contentRef: function(
|
|
591
|
-
this.content =
|
|
809
|
+
contentRef: function contentRef(el) {
|
|
810
|
+
this.content = el;
|
|
592
811
|
}
|
|
593
812
|
},
|
|
594
813
|
computed: {
|
|
595
|
-
containerClass: function() {
|
|
596
|
-
return ["p-virtualscroller", this
|
|
814
|
+
containerClass: function containerClass() {
|
|
815
|
+
return ["p-virtualscroller", this["class"], {
|
|
597
816
|
"p-virtualscroller-inline": this.inline,
|
|
598
817
|
"p-virtualscroller-both p-both-scroll": this.isBoth(),
|
|
599
818
|
"p-virtualscroller-horizontal p-horizontal-scroll": this.isHorizontal()
|
|
600
819
|
}];
|
|
601
820
|
},
|
|
602
|
-
contentClass: function() {
|
|
821
|
+
contentClass: function contentClass() {
|
|
603
822
|
return ["p-virtualscroller-content", {
|
|
604
823
|
"p-virtualscroller-loading": this.d_loading
|
|
605
824
|
}];
|
|
606
825
|
},
|
|
607
|
-
loaderClass: function() {
|
|
826
|
+
loaderClass: function loaderClass() {
|
|
608
827
|
return ["p-virtualscroller-loader", {
|
|
609
828
|
"p-component-overlay": !this.$slots.loader
|
|
610
829
|
}];
|
|
611
830
|
},
|
|
612
|
-
loadedItems: function() {
|
|
613
|
-
var
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
831
|
+
loadedItems: function loadedItems() {
|
|
832
|
+
var _this11 = this;
|
|
833
|
+
if (this.items && !this.d_loading) {
|
|
834
|
+
if (this.isBoth()) return this.items.slice(this.appendOnly ? 0 : this.first.rows, this.last.rows).map(function(item) {
|
|
835
|
+
return _this11.columns ? item : item.slice(_this11.appendOnly ? 0 : _this11.first.cols, _this11.last.cols);
|
|
836
|
+
});
|
|
837
|
+
else if (this.isHorizontal() && this.columns) return this.items;
|
|
838
|
+
else return this.items.slice(this.appendOnly ? 0 : this.first, this.last);
|
|
839
|
+
}
|
|
840
|
+
return [];
|
|
617
841
|
},
|
|
618
|
-
loadedRows: function() {
|
|
842
|
+
loadedRows: function loadedRows() {
|
|
619
843
|
return this.d_loading ? this.loaderDisabled ? this.loaderArr : [] : this.loadedItems;
|
|
620
844
|
},
|
|
621
|
-
loadedColumns: function() {
|
|
845
|
+
loadedColumns: function loadedColumns() {
|
|
622
846
|
if (this.columns) {
|
|
623
|
-
var
|
|
624
|
-
|
|
625
|
-
|
|
847
|
+
var both = this.isBoth();
|
|
848
|
+
var horizontal = this.isHorizontal();
|
|
849
|
+
if (both || horizontal) {
|
|
850
|
+
return this.d_loading && this.loaderDisabled ? both ? this.loaderArr[0] : this.loaderArr : this.columns.slice(both ? this.first.cols : this.first, both ? this.last.cols : this.last);
|
|
851
|
+
}
|
|
626
852
|
}
|
|
627
853
|
return this.columns;
|
|
628
854
|
}
|
|
629
855
|
},
|
|
630
856
|
components: {
|
|
631
|
-
SpinnerIcon:
|
|
857
|
+
SpinnerIcon: script$2
|
|
632
858
|
}
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
}, [A(e.$slots, "default"), A(e.$slots, "content", {
|
|
639
|
-
items: e.items,
|
|
640
|
-
rows: e.items,
|
|
641
|
-
columns: s.loadedColumns
|
|
642
|
-
})], 64)) : (W(), R("div", M({
|
|
859
|
+
};
|
|
860
|
+
var _hoisted_1 = ["tabindex"];
|
|
861
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
862
|
+
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
863
|
+
return !_ctx.disabled ? (openBlock(), createElementBlock("div", mergeProps({
|
|
643
864
|
key: 0,
|
|
644
|
-
ref:
|
|
645
|
-
class:
|
|
646
|
-
tabindex:
|
|
647
|
-
style:
|
|
648
|
-
onScroll:
|
|
649
|
-
return
|
|
865
|
+
ref: $options.elementRef,
|
|
866
|
+
"class": $options.containerClass,
|
|
867
|
+
tabindex: _ctx.tabindex,
|
|
868
|
+
style: _ctx.style,
|
|
869
|
+
onScroll: _cache[0] || (_cache[0] = function() {
|
|
870
|
+
return $options.onScroll && $options.onScroll.apply($options, arguments);
|
|
650
871
|
})
|
|
651
|
-
},
|
|
652
|
-
styleClass:
|
|
653
|
-
items:
|
|
654
|
-
getItemOptions:
|
|
655
|
-
loading:
|
|
656
|
-
getLoaderOptions:
|
|
657
|
-
itemSize:
|
|
658
|
-
rows:
|
|
659
|
-
columns:
|
|
660
|
-
contentRef:
|
|
661
|
-
spacerStyle:
|
|
662
|
-
contentStyle:
|
|
663
|
-
vertical:
|
|
664
|
-
horizontal:
|
|
665
|
-
both:
|
|
872
|
+
}, _ctx.ptmi("root")), [renderSlot(_ctx.$slots, "content", {
|
|
873
|
+
styleClass: $options.contentClass,
|
|
874
|
+
items: $options.loadedItems,
|
|
875
|
+
getItemOptions: $options.getOptions,
|
|
876
|
+
loading: $data.d_loading,
|
|
877
|
+
getLoaderOptions: $options.getLoaderOptions,
|
|
878
|
+
itemSize: _ctx.itemSize,
|
|
879
|
+
rows: $options.loadedRows,
|
|
880
|
+
columns: $options.loadedColumns,
|
|
881
|
+
contentRef: $options.contentRef,
|
|
882
|
+
spacerStyle: $data.spacerStyle,
|
|
883
|
+
contentStyle: $data.contentStyle,
|
|
884
|
+
vertical: $options.isVertical(),
|
|
885
|
+
horizontal: $options.isHorizontal(),
|
|
886
|
+
both: $options.isBoth()
|
|
666
887
|
}, function() {
|
|
667
|
-
return [
|
|
668
|
-
ref:
|
|
669
|
-
class:
|
|
670
|
-
style:
|
|
671
|
-
},
|
|
672
|
-
return
|
|
673
|
-
key:
|
|
674
|
-
item
|
|
675
|
-
options:
|
|
888
|
+
return [createElementVNode("div", mergeProps({
|
|
889
|
+
ref: $options.contentRef,
|
|
890
|
+
"class": $options.contentClass,
|
|
891
|
+
style: $data.contentStyle
|
|
892
|
+
}, _ctx.ptm("content")), [(openBlock(true), createElementBlock(Fragment, null, renderList($options.loadedItems, function(item, index) {
|
|
893
|
+
return renderSlot(_ctx.$slots, "item", {
|
|
894
|
+
key: index,
|
|
895
|
+
item,
|
|
896
|
+
options: $options.getOptions(index)
|
|
676
897
|
});
|
|
677
898
|
}), 128))], 16)];
|
|
678
|
-
}),
|
|
899
|
+
}), _ctx.showSpacer ? (openBlock(), createElementBlock("div", mergeProps({
|
|
679
900
|
key: 0,
|
|
680
|
-
class: "p-virtualscroller-spacer",
|
|
681
|
-
style:
|
|
682
|
-
},
|
|
901
|
+
"class": "p-virtualscroller-spacer",
|
|
902
|
+
style: $data.spacerStyle
|
|
903
|
+
}, _ctx.ptm("spacer")), null, 16)) : createCommentVNode("", true), !_ctx.loaderDisabled && _ctx.showLoader && $data.d_loading ? (openBlock(), createElementBlock("div", mergeProps({
|
|
683
904
|
key: 1,
|
|
684
|
-
class:
|
|
685
|
-
},
|
|
905
|
+
"class": $options.loaderClass
|
|
906
|
+
}, _ctx.ptm("loader")), [_ctx.$slots && _ctx.$slots.loader ? (openBlock(true), createElementBlock(Fragment, {
|
|
686
907
|
key: 0
|
|
687
|
-
},
|
|
688
|
-
return
|
|
689
|
-
key:
|
|
690
|
-
options:
|
|
691
|
-
numCols:
|
|
908
|
+
}, renderList($data.loaderArr, function(_, index) {
|
|
909
|
+
return renderSlot(_ctx.$slots, "loader", {
|
|
910
|
+
key: index,
|
|
911
|
+
options: $options.getLoaderOptions(index, $options.isBoth() && {
|
|
912
|
+
numCols: _ctx.d_numItemsInViewport.cols
|
|
692
913
|
})
|
|
693
914
|
});
|
|
694
|
-
}), 128)) :
|
|
695
|
-
return [
|
|
915
|
+
}), 128)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "loadingicon", {}, function() {
|
|
916
|
+
return [createVNode(_component_SpinnerIcon, mergeProps({
|
|
696
917
|
spin: "",
|
|
697
|
-
class: "p-virtualscroller-loading-icon"
|
|
698
|
-
},
|
|
699
|
-
})], 16)) :
|
|
918
|
+
"class": "p-virtualscroller-loading-icon"
|
|
919
|
+
}, _ctx.ptm("loadingIcon")), null, 16)];
|
|
920
|
+
})], 16)) : createCommentVNode("", true)], 16, _hoisted_1)) : (openBlock(), createElementBlock(Fragment, {
|
|
921
|
+
key: 1
|
|
922
|
+
}, [renderSlot(_ctx.$slots, "default"), renderSlot(_ctx.$slots, "content", {
|
|
923
|
+
items: _ctx.items,
|
|
924
|
+
rows: _ctx.items,
|
|
925
|
+
columns: $options.loadedColumns
|
|
926
|
+
})], 64));
|
|
700
927
|
}
|
|
701
|
-
|
|
928
|
+
script.render = render;
|
|
702
929
|
export {
|
|
703
|
-
|
|
930
|
+
script as s
|
|
704
931
|
};
|