@fewangsit/wangsvue 1.5.219-alpha.1 → 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 +1 -1
- 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 +67705 -0
- 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-DbLuqCHa.js +0 -1
- package/loading-plane-CgfbWppy.js +0 -1
- package/loading-table-Bdr9ZhtP.js +0 -1
- package/loading-table-BzrSQlA0.js +0 -1
- package/loading-table-chOgXi94.js +0 -1
- package/no-data-Cgze_Rvp.js +0 -1
- package/no-data-Dep79CBh.js +0 -1
- 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,21 +1,21 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { s as
|
|
3
|
-
import { s as $ } from "../icons/check/index.esm.es.js";
|
|
4
|
-
import { s as
|
|
5
|
-
import { s as
|
|
6
|
-
import { s as
|
|
7
|
-
import { s as
|
|
8
|
-
import { O as
|
|
9
|
-
import { s as
|
|
10
|
-
import { R as
|
|
11
|
-
import { O as
|
|
12
|
-
import { s as
|
|
13
|
-
import { s as
|
|
14
|
-
import { D as
|
|
15
|
-
import { resolveComponent
|
|
16
|
-
var
|
|
1
|
+
import { a as FilterService } from "../api/api.esm.es.js";
|
|
2
|
+
import { s as script$2 } from "../icons/blank/index.esm.es.js";
|
|
3
|
+
import { s as script$3 } from "../icons/check/index.esm.es.js";
|
|
4
|
+
import { s as script$6 } from "../icons/chevrondown/index.esm.es.js";
|
|
5
|
+
import { s as script$4 } from "../icons/search/index.esm.es.js";
|
|
6
|
+
import { s as script$5 } from "../icons/spinner/index.esm.es.js";
|
|
7
|
+
import { s as script$7 } from "../icons/times/index.esm.es.js";
|
|
8
|
+
import { O as OverlayEventBus } from "../overlayeventbus/overlayeventbus.esm.es.js";
|
|
9
|
+
import { s as script$8 } from "../portal/portal.esm.es.js";
|
|
10
|
+
import { R as Ripple } from "../ripple/ripple.esm.es.js";
|
|
11
|
+
import { O as ObjectUtils, D as DomHandler, C as ConnectedOverlayScrollHandler, Z as ZIndexUtils, U as UniqueComponentId } from "../utils/utils.esm.es.js";
|
|
12
|
+
import { s as script$9 } from "../virtualscroller/virtualscroller.esm.es.js";
|
|
13
|
+
import { s as script$a } from "../basecomponent/basecomponent.esm.es.js";
|
|
14
|
+
import { D as DropdownStyle } from "./style/dropdownstyle.esm.es.js";
|
|
15
|
+
import { resolveComponent, resolveDirective, createElementBlock, openBlock, mergeProps, renderSlot, createCommentVNode, createElementVNode, createVNode, createTextVNode, toDisplayString, normalizeClass, createBlock, resolveDynamicComponent, withCtx, Transition, createSlots, Fragment, renderList, withDirectives } from "vue";
|
|
16
|
+
var script$1 = {
|
|
17
17
|
name: "BaseDropdown",
|
|
18
|
-
extends:
|
|
18
|
+
"extends": script$a,
|
|
19
19
|
props: {
|
|
20
20
|
modelValue: null,
|
|
21
21
|
options: Array,
|
|
@@ -26,253 +26,258 @@ var ye = {
|
|
|
26
26
|
optionGroupChildren: [String, Function],
|
|
27
27
|
scrollHeight: {
|
|
28
28
|
type: String,
|
|
29
|
-
default: "200px"
|
|
29
|
+
"default": "200px"
|
|
30
30
|
},
|
|
31
31
|
filter: Boolean,
|
|
32
32
|
filterPlaceholder: String,
|
|
33
33
|
filterLocale: String,
|
|
34
34
|
filterMatchMode: {
|
|
35
35
|
type: String,
|
|
36
|
-
default: "contains"
|
|
36
|
+
"default": "contains"
|
|
37
37
|
},
|
|
38
38
|
filterFields: {
|
|
39
39
|
type: Array,
|
|
40
|
-
default: null
|
|
40
|
+
"default": null
|
|
41
41
|
},
|
|
42
42
|
editable: Boolean,
|
|
43
43
|
placeholder: {
|
|
44
44
|
type: String,
|
|
45
|
-
default: null
|
|
45
|
+
"default": null
|
|
46
46
|
},
|
|
47
47
|
variant: {
|
|
48
48
|
type: String,
|
|
49
|
-
default: null
|
|
49
|
+
"default": null
|
|
50
50
|
},
|
|
51
51
|
invalid: {
|
|
52
52
|
type: Boolean,
|
|
53
|
-
default:
|
|
53
|
+
"default": false
|
|
54
54
|
},
|
|
55
55
|
disabled: {
|
|
56
56
|
type: Boolean,
|
|
57
|
-
default:
|
|
57
|
+
"default": false
|
|
58
58
|
},
|
|
59
59
|
dataKey: null,
|
|
60
60
|
showClear: {
|
|
61
61
|
type: Boolean,
|
|
62
|
-
default:
|
|
62
|
+
"default": false
|
|
63
63
|
},
|
|
64
64
|
inputId: {
|
|
65
65
|
type: String,
|
|
66
|
-
default: null
|
|
66
|
+
"default": null
|
|
67
67
|
},
|
|
68
68
|
inputClass: {
|
|
69
69
|
type: [String, Object],
|
|
70
|
-
default: null
|
|
70
|
+
"default": null
|
|
71
71
|
},
|
|
72
72
|
inputStyle: {
|
|
73
73
|
type: Object,
|
|
74
|
-
default: null
|
|
74
|
+
"default": null
|
|
75
75
|
},
|
|
76
76
|
inputProps: {
|
|
77
77
|
type: null,
|
|
78
|
-
default: null
|
|
78
|
+
"default": null
|
|
79
79
|
},
|
|
80
80
|
panelClass: {
|
|
81
81
|
type: [String, Object],
|
|
82
|
-
default: null
|
|
82
|
+
"default": null
|
|
83
83
|
},
|
|
84
84
|
panelStyle: {
|
|
85
85
|
type: Object,
|
|
86
|
-
default: null
|
|
86
|
+
"default": null
|
|
87
87
|
},
|
|
88
88
|
panelProps: {
|
|
89
89
|
type: null,
|
|
90
|
-
default: null
|
|
90
|
+
"default": null
|
|
91
91
|
},
|
|
92
92
|
filterInputProps: {
|
|
93
93
|
type: null,
|
|
94
|
-
default: null
|
|
94
|
+
"default": null
|
|
95
95
|
},
|
|
96
96
|
clearIconProps: {
|
|
97
97
|
type: null,
|
|
98
|
-
default: null
|
|
98
|
+
"default": null
|
|
99
99
|
},
|
|
100
100
|
appendTo: {
|
|
101
101
|
type: [String, Object],
|
|
102
|
-
default: "body"
|
|
102
|
+
"default": "body"
|
|
103
103
|
},
|
|
104
104
|
loading: {
|
|
105
105
|
type: Boolean,
|
|
106
|
-
default:
|
|
106
|
+
"default": false
|
|
107
107
|
},
|
|
108
108
|
clearIcon: {
|
|
109
109
|
type: String,
|
|
110
|
-
default: void 0
|
|
110
|
+
"default": void 0
|
|
111
111
|
},
|
|
112
112
|
dropdownIcon: {
|
|
113
113
|
type: String,
|
|
114
|
-
default: void 0
|
|
114
|
+
"default": void 0
|
|
115
115
|
},
|
|
116
116
|
filterIcon: {
|
|
117
117
|
type: String,
|
|
118
|
-
default: void 0
|
|
118
|
+
"default": void 0
|
|
119
119
|
},
|
|
120
120
|
loadingIcon: {
|
|
121
121
|
type: String,
|
|
122
|
-
default: void 0
|
|
122
|
+
"default": void 0
|
|
123
123
|
},
|
|
124
124
|
resetFilterOnHide: {
|
|
125
125
|
type: Boolean,
|
|
126
|
-
default:
|
|
126
|
+
"default": false
|
|
127
127
|
},
|
|
128
128
|
resetFilterOnClear: {
|
|
129
129
|
type: Boolean,
|
|
130
|
-
default:
|
|
130
|
+
"default": false
|
|
131
131
|
},
|
|
132
132
|
virtualScrollerOptions: {
|
|
133
133
|
type: Object,
|
|
134
|
-
default: null
|
|
134
|
+
"default": null
|
|
135
135
|
},
|
|
136
136
|
autoOptionFocus: {
|
|
137
137
|
type: Boolean,
|
|
138
|
-
default:
|
|
138
|
+
"default": false
|
|
139
139
|
},
|
|
140
140
|
autoFilterFocus: {
|
|
141
141
|
type: Boolean,
|
|
142
|
-
default:
|
|
142
|
+
"default": false
|
|
143
143
|
},
|
|
144
144
|
selectOnFocus: {
|
|
145
145
|
type: Boolean,
|
|
146
|
-
default:
|
|
146
|
+
"default": false
|
|
147
147
|
},
|
|
148
148
|
focusOnHover: {
|
|
149
149
|
type: Boolean,
|
|
150
|
-
default:
|
|
150
|
+
"default": true
|
|
151
151
|
},
|
|
152
152
|
highlightOnSelect: {
|
|
153
153
|
type: Boolean,
|
|
154
|
-
default:
|
|
154
|
+
"default": true
|
|
155
155
|
},
|
|
156
156
|
checkmark: {
|
|
157
157
|
type: Boolean,
|
|
158
|
-
default:
|
|
158
|
+
"default": false
|
|
159
159
|
},
|
|
160
160
|
filterMessage: {
|
|
161
161
|
type: String,
|
|
162
|
-
default: null
|
|
162
|
+
"default": null
|
|
163
163
|
},
|
|
164
164
|
selectionMessage: {
|
|
165
165
|
type: String,
|
|
166
|
-
default: null
|
|
166
|
+
"default": null
|
|
167
167
|
},
|
|
168
168
|
emptySelectionMessage: {
|
|
169
169
|
type: String,
|
|
170
|
-
default: null
|
|
170
|
+
"default": null
|
|
171
171
|
},
|
|
172
172
|
emptyFilterMessage: {
|
|
173
173
|
type: String,
|
|
174
|
-
default: null
|
|
174
|
+
"default": null
|
|
175
175
|
},
|
|
176
176
|
emptyMessage: {
|
|
177
177
|
type: String,
|
|
178
|
-
default: null
|
|
178
|
+
"default": null
|
|
179
179
|
},
|
|
180
180
|
tabindex: {
|
|
181
181
|
type: Number,
|
|
182
|
-
default: 0
|
|
182
|
+
"default": 0
|
|
183
183
|
},
|
|
184
184
|
ariaLabel: {
|
|
185
185
|
type: String,
|
|
186
|
-
default: null
|
|
186
|
+
"default": null
|
|
187
187
|
},
|
|
188
188
|
ariaLabelledby: {
|
|
189
189
|
type: String,
|
|
190
|
-
default: null
|
|
190
|
+
"default": null
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
|
-
style:
|
|
194
|
-
provide: function() {
|
|
193
|
+
style: DropdownStyle,
|
|
194
|
+
provide: function provide() {
|
|
195
195
|
return {
|
|
196
196
|
$parentInstance: this
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
|
-
function
|
|
200
|
+
function _typeof$1(o) {
|
|
201
201
|
"@babel/helpers - typeof";
|
|
202
|
-
return
|
|
203
|
-
return typeof
|
|
204
|
-
} : function(
|
|
205
|
-
return
|
|
206
|
-
},
|
|
202
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
203
|
+
return typeof o2;
|
|
204
|
+
} : function(o2) {
|
|
205
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
206
|
+
}, _typeof$1(o);
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
return
|
|
208
|
+
function _toConsumableArray(arr) {
|
|
209
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
210
210
|
}
|
|
211
|
-
function
|
|
212
|
-
throw new TypeError(
|
|
213
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
211
|
+
function _nonIterableSpread() {
|
|
212
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
214
213
|
}
|
|
215
|
-
function
|
|
216
|
-
if (
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
214
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
215
|
+
if (!o) return;
|
|
216
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
217
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
218
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
219
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
220
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
222
221
|
}
|
|
223
|
-
function
|
|
224
|
-
if (typeof Symbol
|
|
222
|
+
function _iterableToArray(iter) {
|
|
223
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
225
224
|
}
|
|
226
|
-
function
|
|
227
|
-
if (Array.isArray(
|
|
225
|
+
function _arrayWithoutHoles(arr) {
|
|
226
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
228
227
|
}
|
|
229
|
-
function
|
|
230
|
-
(
|
|
231
|
-
for (var i = 0,
|
|
232
|
-
return
|
|
228
|
+
function _arrayLikeToArray(arr, len) {
|
|
229
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
230
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
231
|
+
return arr2;
|
|
233
232
|
}
|
|
234
|
-
function
|
|
235
|
-
var
|
|
233
|
+
function ownKeys$1(e, r) {
|
|
234
|
+
var t = Object.keys(e);
|
|
236
235
|
if (Object.getOwnPropertySymbols) {
|
|
237
|
-
var
|
|
238
|
-
|
|
239
|
-
return Object.getOwnPropertyDescriptor(
|
|
240
|
-
})),
|
|
236
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
237
|
+
r && (o = o.filter(function(r2) {
|
|
238
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
239
|
+
})), t.push.apply(t, o);
|
|
241
240
|
}
|
|
242
|
-
return
|
|
241
|
+
return t;
|
|
243
242
|
}
|
|
244
|
-
function
|
|
245
|
-
for (var
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
250
|
-
Object.defineProperty(
|
|
243
|
+
function _objectSpread$1(e) {
|
|
244
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
245
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
246
|
+
r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
|
|
247
|
+
_defineProperty$1(e, r2, t[r2]);
|
|
248
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r2) {
|
|
249
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
251
250
|
});
|
|
252
251
|
}
|
|
253
|
-
return
|
|
252
|
+
return e;
|
|
254
253
|
}
|
|
255
|
-
function
|
|
256
|
-
|
|
254
|
+
function _defineProperty$1(obj, key, value) {
|
|
255
|
+
key = _toPropertyKey$1(key);
|
|
256
|
+
if (key in obj) {
|
|
257
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
258
|
+
} else {
|
|
259
|
+
obj[key] = value;
|
|
260
|
+
}
|
|
261
|
+
return obj;
|
|
257
262
|
}
|
|
258
|
-
function
|
|
259
|
-
var
|
|
260
|
-
return
|
|
263
|
+
function _toPropertyKey$1(t) {
|
|
264
|
+
var i = _toPrimitive$1(t, "string");
|
|
265
|
+
return "symbol" == _typeof$1(i) ? i : String(i);
|
|
261
266
|
}
|
|
262
|
-
function
|
|
263
|
-
if (
|
|
264
|
-
var
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
if (
|
|
267
|
+
function _toPrimitive$1(t, r) {
|
|
268
|
+
if ("object" != _typeof$1(t) || !t) return t;
|
|
269
|
+
var e = t[Symbol.toPrimitive];
|
|
270
|
+
if (void 0 !== e) {
|
|
271
|
+
var i = e.call(t, r);
|
|
272
|
+
if ("object" != _typeof$1(i)) return i;
|
|
268
273
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
269
274
|
}
|
|
270
|
-
return (
|
|
275
|
+
return ("string" === r ? String : Number)(t);
|
|
271
276
|
}
|
|
272
|
-
var
|
|
277
|
+
var script = {
|
|
273
278
|
name: "Dropdown",
|
|
274
|
-
extends:
|
|
275
|
-
inheritAttrs:
|
|
279
|
+
"extends": script$1,
|
|
280
|
+
inheritAttrs: false,
|
|
276
281
|
emits: ["update:modelValue", "change", "focus", "blur", "before-show", "before-hide", "show", "hide", "filter"],
|
|
277
282
|
outsideClickListener: null,
|
|
278
283
|
scrollHandler: null,
|
|
@@ -283,947 +288,1156 @@ var Le = {
|
|
|
283
288
|
virtualScroller: null,
|
|
284
289
|
searchTimeout: null,
|
|
285
290
|
searchValue: null,
|
|
286
|
-
isModelValueChanged:
|
|
287
|
-
data: function() {
|
|
291
|
+
isModelValueChanged: false,
|
|
292
|
+
data: function data() {
|
|
288
293
|
return {
|
|
289
294
|
id: this.$attrs.id,
|
|
290
|
-
clicked:
|
|
291
|
-
focused:
|
|
295
|
+
clicked: false,
|
|
296
|
+
focused: false,
|
|
292
297
|
focusedOptionIndex: -1,
|
|
293
298
|
filterValue: null,
|
|
294
|
-
overlayVisible:
|
|
299
|
+
overlayVisible: false
|
|
295
300
|
};
|
|
296
301
|
},
|
|
297
302
|
watch: {
|
|
298
|
-
"$attrs.id": function(
|
|
299
|
-
this.id =
|
|
303
|
+
"$attrs.id": function $attrsId(newValue) {
|
|
304
|
+
this.id = newValue || UniqueComponentId();
|
|
300
305
|
},
|
|
301
|
-
modelValue: function() {
|
|
302
|
-
this.isModelValueChanged =
|
|
306
|
+
modelValue: function modelValue() {
|
|
307
|
+
this.isModelValueChanged = true;
|
|
303
308
|
},
|
|
304
|
-
options: function() {
|
|
309
|
+
options: function options() {
|
|
305
310
|
this.autoUpdateModel();
|
|
306
311
|
}
|
|
307
312
|
},
|
|
308
|
-
mounted: function() {
|
|
309
|
-
this.id = this.id ||
|
|
313
|
+
mounted: function mounted() {
|
|
314
|
+
this.id = this.id || UniqueComponentId();
|
|
315
|
+
this.autoUpdateModel();
|
|
316
|
+
this.bindLabelClickListener();
|
|
310
317
|
},
|
|
311
|
-
updated: function() {
|
|
312
|
-
this.overlayVisible && this.isModelValueChanged
|
|
318
|
+
updated: function updated() {
|
|
319
|
+
if (this.overlayVisible && this.isModelValueChanged) {
|
|
320
|
+
this.scrollInView(this.findSelectedOptionIndex());
|
|
321
|
+
}
|
|
322
|
+
this.isModelValueChanged = false;
|
|
313
323
|
},
|
|
314
|
-
beforeUnmount: function() {
|
|
315
|
-
this.unbindOutsideClickListener()
|
|
324
|
+
beforeUnmount: function beforeUnmount() {
|
|
325
|
+
this.unbindOutsideClickListener();
|
|
326
|
+
this.unbindResizeListener();
|
|
327
|
+
this.unbindLabelClickListener();
|
|
328
|
+
if (this.scrollHandler) {
|
|
329
|
+
this.scrollHandler.destroy();
|
|
330
|
+
this.scrollHandler = null;
|
|
331
|
+
}
|
|
332
|
+
if (this.overlay) {
|
|
333
|
+
ZIndexUtils.clear(this.overlay);
|
|
334
|
+
this.overlay = null;
|
|
335
|
+
}
|
|
316
336
|
},
|
|
317
337
|
methods: {
|
|
318
|
-
getOptionIndex: function(
|
|
319
|
-
return this.virtualScrollerDisabled ?
|
|
338
|
+
getOptionIndex: function getOptionIndex(index, fn) {
|
|
339
|
+
return this.virtualScrollerDisabled ? index : fn && fn(index)["index"];
|
|
320
340
|
},
|
|
321
|
-
getOptionLabel: function(
|
|
322
|
-
return this.optionLabel ?
|
|
341
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
342
|
+
return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;
|
|
323
343
|
},
|
|
324
|
-
getOptionValue: function(
|
|
325
|
-
return this.optionValue ?
|
|
344
|
+
getOptionValue: function getOptionValue(option) {
|
|
345
|
+
return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;
|
|
326
346
|
},
|
|
327
|
-
getOptionRenderKey: function(
|
|
328
|
-
return (this.dataKey ?
|
|
347
|
+
getOptionRenderKey: function getOptionRenderKey(option, index) {
|
|
348
|
+
return (this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + "_" + index;
|
|
329
349
|
},
|
|
330
|
-
getPTItemOptions: function(
|
|
331
|
-
return this.ptm(
|
|
350
|
+
getPTItemOptions: function getPTItemOptions(option, itemOptions, index, key) {
|
|
351
|
+
return this.ptm(key, {
|
|
332
352
|
context: {
|
|
333
|
-
option
|
|
334
|
-
index
|
|
335
|
-
selected: this.isSelected(
|
|
336
|
-
focused: this.focusedOptionIndex === this.getOptionIndex(
|
|
337
|
-
disabled: this.isOptionDisabled(
|
|
353
|
+
option,
|
|
354
|
+
index,
|
|
355
|
+
selected: this.isSelected(option),
|
|
356
|
+
focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
|
|
357
|
+
disabled: this.isOptionDisabled(option)
|
|
338
358
|
}
|
|
339
359
|
});
|
|
340
360
|
},
|
|
341
|
-
isOptionDisabled: function(
|
|
342
|
-
return this.optionDisabled ?
|
|
343
|
-
},
|
|
344
|
-
isOptionGroup: function(
|
|
345
|
-
return this.optionGroupLabel &&
|
|
346
|
-
},
|
|
347
|
-
getOptionGroupLabel: function(
|
|
348
|
-
return
|
|
349
|
-
},
|
|
350
|
-
getOptionGroupChildren: function(
|
|
351
|
-
return
|
|
352
|
-
},
|
|
353
|
-
getAriaPosInset: function(
|
|
354
|
-
var
|
|
355
|
-
return (this.optionGroupLabel ?
|
|
356
|
-
return
|
|
357
|
-
}).length :
|
|
358
|
-
},
|
|
359
|
-
show: function(
|
|
360
|
-
this.$emit("before-show")
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
361
|
+
isOptionDisabled: function isOptionDisabled(option) {
|
|
362
|
+
return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
|
|
363
|
+
},
|
|
364
|
+
isOptionGroup: function isOptionGroup(option) {
|
|
365
|
+
return this.optionGroupLabel && option.optionGroup && option.group;
|
|
366
|
+
},
|
|
367
|
+
getOptionGroupLabel: function getOptionGroupLabel(optionGroup) {
|
|
368
|
+
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupLabel);
|
|
369
|
+
},
|
|
370
|
+
getOptionGroupChildren: function getOptionGroupChildren(optionGroup) {
|
|
371
|
+
return ObjectUtils.resolveFieldData(optionGroup, this.optionGroupChildren);
|
|
372
|
+
},
|
|
373
|
+
getAriaPosInset: function getAriaPosInset(index) {
|
|
374
|
+
var _this = this;
|
|
375
|
+
return (this.optionGroupLabel ? index - this.visibleOptions.slice(0, index).filter(function(option) {
|
|
376
|
+
return _this.isOptionGroup(option);
|
|
377
|
+
}).length : index) + 1;
|
|
378
|
+
},
|
|
379
|
+
show: function show(isFocus) {
|
|
380
|
+
this.$emit("before-show");
|
|
381
|
+
this.overlayVisible = true;
|
|
382
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
|
|
383
|
+
isFocus && DomHandler.focus(this.$refs.focusInput);
|
|
384
|
+
},
|
|
385
|
+
hide: function hide(isFocus) {
|
|
386
|
+
var _this2 = this;
|
|
387
|
+
var _hide = function _hide2() {
|
|
388
|
+
_this2.$emit("before-hide");
|
|
389
|
+
_this2.overlayVisible = false;
|
|
390
|
+
_this2.clicked = false;
|
|
391
|
+
_this2.focusedOptionIndex = -1;
|
|
392
|
+
_this2.searchValue = "";
|
|
393
|
+
_this2.resetFilterOnHide && (_this2.filterValue = null);
|
|
394
|
+
isFocus && DomHandler.focus(_this2.$refs.focusInput);
|
|
365
395
|
};
|
|
366
396
|
setTimeout(function() {
|
|
367
|
-
|
|
397
|
+
_hide();
|
|
368
398
|
}, 0);
|
|
369
399
|
},
|
|
370
|
-
onFocus: function(
|
|
371
|
-
|
|
400
|
+
onFocus: function onFocus(event) {
|
|
401
|
+
if (this.disabled) {
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
this.focused = true;
|
|
405
|
+
if (this.overlayVisible) {
|
|
406
|
+
this.focusedOptionIndex = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : this.editable ? -1 : this.findSelectedOptionIndex();
|
|
407
|
+
this.scrollInView(this.focusedOptionIndex);
|
|
408
|
+
}
|
|
409
|
+
this.$emit("focus", event);
|
|
372
410
|
},
|
|
373
|
-
onBlur: function(
|
|
374
|
-
this.focused =
|
|
411
|
+
onBlur: function onBlur(event) {
|
|
412
|
+
this.focused = false;
|
|
413
|
+
this.focusedOptionIndex = -1;
|
|
414
|
+
this.searchValue = "";
|
|
415
|
+
this.$emit("blur", event);
|
|
375
416
|
},
|
|
376
|
-
onKeyDown: function(
|
|
377
|
-
if (this.disabled ||
|
|
378
|
-
|
|
417
|
+
onKeyDown: function onKeyDown(event) {
|
|
418
|
+
if (this.disabled || DomHandler.isAndroid()) {
|
|
419
|
+
event.preventDefault();
|
|
379
420
|
return;
|
|
380
421
|
}
|
|
381
|
-
var
|
|
382
|
-
switch (
|
|
422
|
+
var metaKey = event.metaKey || event.ctrlKey;
|
|
423
|
+
switch (event.code) {
|
|
383
424
|
case "ArrowDown":
|
|
384
|
-
this.onArrowDownKey(
|
|
425
|
+
this.onArrowDownKey(event);
|
|
385
426
|
break;
|
|
386
427
|
case "ArrowUp":
|
|
387
|
-
this.onArrowUpKey(
|
|
428
|
+
this.onArrowUpKey(event, this.editable);
|
|
388
429
|
break;
|
|
389
430
|
case "ArrowLeft":
|
|
390
431
|
case "ArrowRight":
|
|
391
|
-
this.onArrowLeftKey(
|
|
432
|
+
this.onArrowLeftKey(event, this.editable);
|
|
392
433
|
break;
|
|
393
434
|
case "Home":
|
|
394
|
-
this.onHomeKey(
|
|
435
|
+
this.onHomeKey(event, this.editable);
|
|
395
436
|
break;
|
|
396
437
|
case "End":
|
|
397
|
-
this.onEndKey(
|
|
438
|
+
this.onEndKey(event, this.editable);
|
|
398
439
|
break;
|
|
399
440
|
case "PageDown":
|
|
400
|
-
this.onPageDownKey(
|
|
441
|
+
this.onPageDownKey(event);
|
|
401
442
|
break;
|
|
402
443
|
case "PageUp":
|
|
403
|
-
this.onPageUpKey(
|
|
444
|
+
this.onPageUpKey(event);
|
|
404
445
|
break;
|
|
405
446
|
case "Space":
|
|
406
|
-
this.onSpaceKey(
|
|
447
|
+
this.onSpaceKey(event, this.editable);
|
|
407
448
|
break;
|
|
408
449
|
case "Enter":
|
|
409
450
|
case "NumpadEnter":
|
|
410
|
-
this.onEnterKey(
|
|
451
|
+
this.onEnterKey(event);
|
|
411
452
|
break;
|
|
412
453
|
case "Escape":
|
|
413
|
-
this.onEscapeKey(
|
|
454
|
+
this.onEscapeKey(event);
|
|
414
455
|
break;
|
|
415
456
|
case "Tab":
|
|
416
|
-
this.onTabKey(
|
|
457
|
+
this.onTabKey(event);
|
|
417
458
|
break;
|
|
418
459
|
case "Backspace":
|
|
419
|
-
this.onBackspaceKey(
|
|
460
|
+
this.onBackspaceKey(event, this.editable);
|
|
420
461
|
break;
|
|
421
462
|
case "ShiftLeft":
|
|
422
463
|
case "ShiftRight":
|
|
423
464
|
break;
|
|
424
465
|
default:
|
|
425
|
-
!
|
|
466
|
+
if (!metaKey && ObjectUtils.isPrintableCharacter(event.key)) {
|
|
467
|
+
!this.overlayVisible && this.show();
|
|
468
|
+
!this.editable && this.searchOptions(event, event.key);
|
|
469
|
+
}
|
|
426
470
|
break;
|
|
427
471
|
}
|
|
428
|
-
this.clicked =
|
|
472
|
+
this.clicked = false;
|
|
429
473
|
},
|
|
430
|
-
onEditableInput: function(
|
|
431
|
-
var
|
|
474
|
+
onEditableInput: function onEditableInput(event) {
|
|
475
|
+
var value = event.target.value;
|
|
432
476
|
this.searchValue = "";
|
|
433
|
-
var
|
|
434
|
-
!
|
|
477
|
+
var matched = this.searchOptions(event, value);
|
|
478
|
+
!matched && (this.focusedOptionIndex = -1);
|
|
479
|
+
this.updateModel(event, value);
|
|
480
|
+
!this.overlayVisible && ObjectUtils.isNotEmpty(value) && this.show();
|
|
435
481
|
},
|
|
436
|
-
onContainerClick: function(
|
|
437
|
-
this.disabled || this.loading
|
|
482
|
+
onContainerClick: function onContainerClick(event) {
|
|
483
|
+
if (this.disabled || this.loading) {
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (event.target.tagName === "INPUT" || event.target.getAttribute("data-pc-section") === "clearicon" || event.target.closest('[data-pc-section="clearicon"]')) {
|
|
487
|
+
return;
|
|
488
|
+
} else if (!this.overlay || !this.overlay.contains(event.target)) {
|
|
489
|
+
this.overlayVisible ? this.hide(true) : this.show(true);
|
|
490
|
+
}
|
|
491
|
+
this.clicked = true;
|
|
438
492
|
},
|
|
439
|
-
onClearClick: function(
|
|
440
|
-
this.updateModel(
|
|
493
|
+
onClearClick: function onClearClick(event) {
|
|
494
|
+
this.updateModel(event, null);
|
|
495
|
+
this.resetFilterOnClear && (this.filterValue = null);
|
|
441
496
|
},
|
|
442
|
-
onFirstHiddenFocus: function(
|
|
443
|
-
var
|
|
444
|
-
|
|
497
|
+
onFirstHiddenFocus: function onFirstHiddenFocus(event) {
|
|
498
|
+
var focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
|
|
499
|
+
DomHandler.focus(focusableEl);
|
|
445
500
|
},
|
|
446
|
-
onLastHiddenFocus: function(
|
|
447
|
-
var
|
|
448
|
-
|
|
501
|
+
onLastHiddenFocus: function onLastHiddenFocus(event) {
|
|
502
|
+
var focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getLastFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
|
|
503
|
+
DomHandler.focus(focusableEl);
|
|
449
504
|
},
|
|
450
|
-
onOptionSelect: function(
|
|
451
|
-
var
|
|
452
|
-
|
|
505
|
+
onOptionSelect: function onOptionSelect(event, option) {
|
|
506
|
+
var isHide = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : true;
|
|
507
|
+
var value = this.getOptionValue(option);
|
|
508
|
+
this.updateModel(event, value);
|
|
509
|
+
isHide && this.hide(true);
|
|
453
510
|
},
|
|
454
|
-
onOptionMouseMove: function(
|
|
455
|
-
this.focusOnHover
|
|
511
|
+
onOptionMouseMove: function onOptionMouseMove(event, index) {
|
|
512
|
+
if (this.focusOnHover) {
|
|
513
|
+
this.changeFocusedOptionIndex(event, index);
|
|
514
|
+
}
|
|
456
515
|
},
|
|
457
|
-
onFilterChange: function(
|
|
458
|
-
var
|
|
459
|
-
this.filterValue =
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
516
|
+
onFilterChange: function onFilterChange(event) {
|
|
517
|
+
var value = event.target.value;
|
|
518
|
+
this.filterValue = value;
|
|
519
|
+
this.focusedOptionIndex = -1;
|
|
520
|
+
this.$emit("filter", {
|
|
521
|
+
originalEvent: event,
|
|
522
|
+
value
|
|
523
|
+
});
|
|
524
|
+
!this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
|
|
463
525
|
},
|
|
464
|
-
onFilterKeyDown: function(
|
|
465
|
-
switch (
|
|
526
|
+
onFilterKeyDown: function onFilterKeyDown(event) {
|
|
527
|
+
switch (event.code) {
|
|
466
528
|
case "ArrowDown":
|
|
467
|
-
this.onArrowDownKey(
|
|
529
|
+
this.onArrowDownKey(event);
|
|
468
530
|
break;
|
|
469
531
|
case "ArrowUp":
|
|
470
|
-
this.onArrowUpKey(
|
|
532
|
+
this.onArrowUpKey(event, true);
|
|
471
533
|
break;
|
|
472
534
|
case "ArrowLeft":
|
|
473
535
|
case "ArrowRight":
|
|
474
|
-
this.onArrowLeftKey(
|
|
536
|
+
this.onArrowLeftKey(event, true);
|
|
475
537
|
break;
|
|
476
538
|
case "Home":
|
|
477
|
-
this.onHomeKey(
|
|
539
|
+
this.onHomeKey(event, true);
|
|
478
540
|
break;
|
|
479
541
|
case "End":
|
|
480
|
-
this.onEndKey(
|
|
542
|
+
this.onEndKey(event, true);
|
|
481
543
|
break;
|
|
482
544
|
case "Enter":
|
|
483
545
|
case "NumpadEnter":
|
|
484
|
-
this.onEnterKey(
|
|
546
|
+
this.onEnterKey(event);
|
|
485
547
|
break;
|
|
486
548
|
case "Escape":
|
|
487
|
-
this.onEscapeKey(
|
|
549
|
+
this.onEscapeKey(event);
|
|
488
550
|
break;
|
|
489
551
|
case "Tab":
|
|
490
|
-
this.onTabKey(
|
|
552
|
+
this.onTabKey(event, true);
|
|
491
553
|
break;
|
|
492
554
|
}
|
|
493
555
|
},
|
|
494
|
-
onFilterBlur: function() {
|
|
556
|
+
onFilterBlur: function onFilterBlur() {
|
|
495
557
|
this.focusedOptionIndex = -1;
|
|
496
558
|
},
|
|
497
|
-
onFilterUpdated: function() {
|
|
498
|
-
this.overlayVisible
|
|
559
|
+
onFilterUpdated: function onFilterUpdated() {
|
|
560
|
+
if (this.overlayVisible) {
|
|
561
|
+
this.alignOverlay();
|
|
562
|
+
}
|
|
499
563
|
},
|
|
500
|
-
onOverlayClick: function(
|
|
501
|
-
|
|
502
|
-
originalEvent:
|
|
564
|
+
onOverlayClick: function onOverlayClick(event) {
|
|
565
|
+
OverlayEventBus.emit("overlay-click", {
|
|
566
|
+
originalEvent: event,
|
|
503
567
|
target: this.$el
|
|
504
568
|
});
|
|
505
569
|
},
|
|
506
|
-
onOverlayKeyDown: function(
|
|
507
|
-
switch (
|
|
570
|
+
onOverlayKeyDown: function onOverlayKeyDown(event) {
|
|
571
|
+
switch (event.code) {
|
|
508
572
|
case "Escape":
|
|
509
|
-
this.onEscapeKey(
|
|
573
|
+
this.onEscapeKey(event);
|
|
510
574
|
break;
|
|
511
575
|
}
|
|
512
576
|
},
|
|
513
|
-
onArrowDownKey: function(
|
|
514
|
-
if (!this.overlayVisible)
|
|
515
|
-
this.show()
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
this.
|
|
519
|
-
|
|
520
|
-
e.preventDefault();
|
|
521
|
-
},
|
|
522
|
-
onArrowUpKey: function(e) {
|
|
523
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
524
|
-
if (e.altKey && !i)
|
|
525
|
-
this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.overlayVisible && this.hide(), e.preventDefault();
|
|
526
|
-
else {
|
|
527
|
-
var r = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
|
|
528
|
-
this.changeFocusedOptionIndex(e, r), !this.overlayVisible && this.show(), e.preventDefault();
|
|
577
|
+
onArrowDownKey: function onArrowDownKey(event) {
|
|
578
|
+
if (!this.overlayVisible) {
|
|
579
|
+
this.show();
|
|
580
|
+
this.editable && this.changeFocusedOptionIndex(event, this.findSelectedOptionIndex());
|
|
581
|
+
} else {
|
|
582
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findFirstOptionIndex() : this.findFirstFocusedOptionIndex();
|
|
583
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
529
584
|
}
|
|
585
|
+
event.preventDefault();
|
|
530
586
|
},
|
|
531
|
-
|
|
532
|
-
var
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
537
|
-
if (i) {
|
|
538
|
-
var r = e.currentTarget;
|
|
539
|
-
e.shiftKey ? r.setSelectionRange(0, e.target.selectionStart) : (r.setSelectionRange(0, 0), this.focusedOptionIndex = -1);
|
|
540
|
-
} else
|
|
541
|
-
this.changeFocusedOptionIndex(e, this.findFirstOptionIndex()), !this.overlayVisible && this.show();
|
|
542
|
-
e.preventDefault();
|
|
543
|
-
},
|
|
544
|
-
onEndKey: function(e) {
|
|
545
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
546
|
-
if (i) {
|
|
547
|
-
var r = e.currentTarget;
|
|
548
|
-
if (e.shiftKey)
|
|
549
|
-
r.setSelectionRange(e.target.selectionStart, r.value.length);
|
|
550
|
-
else {
|
|
551
|
-
var s = r.value.length;
|
|
552
|
-
r.setSelectionRange(s, s), this.focusedOptionIndex = -1;
|
|
587
|
+
onArrowUpKey: function onArrowUpKey(event) {
|
|
588
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
589
|
+
if (event.altKey && !pressedInInputText) {
|
|
590
|
+
if (this.focusedOptionIndex !== -1) {
|
|
591
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
553
592
|
}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
this.scrollInView(this.visibleOptions.length - 1), e.preventDefault();
|
|
563
|
-
},
|
|
564
|
-
onEnterKey: function(e) {
|
|
565
|
-
this.overlayVisible ? (this.focusedOptionIndex !== -1 && this.onOptionSelect(e, this.visibleOptions[this.focusedOptionIndex]), this.hide()) : (this.focusedOptionIndex = -1, this.onArrowDownKey(e)), e.preventDefault();
|
|
566
|
-
},
|
|
567
|
-
onSpaceKey: function(e) {
|
|
568
|
-
var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
569
|
-
!i && this.onEnterKey(e);
|
|
570
|
-
},
|
|
571
|
-
onEscapeKey: function(e) {
|
|
572
|
-
this.overlayVisible && this.hide(!0), e.preventDefault(), e.stopPropagation();
|
|
593
|
+
this.overlayVisible && this.hide();
|
|
594
|
+
event.preventDefault();
|
|
595
|
+
} else {
|
|
596
|
+
var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(this.focusedOptionIndex) : this.clicked ? this.findLastOptionIndex() : this.findLastFocusedOptionIndex();
|
|
597
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
598
|
+
!this.overlayVisible && this.show();
|
|
599
|
+
event.preventDefault();
|
|
600
|
+
}
|
|
573
601
|
},
|
|
574
|
-
|
|
575
|
-
var
|
|
576
|
-
|
|
602
|
+
onArrowLeftKey: function onArrowLeftKey(event) {
|
|
603
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
604
|
+
pressedInInputText && (this.focusedOptionIndex = -1);
|
|
605
|
+
},
|
|
606
|
+
onHomeKey: function onHomeKey(event) {
|
|
607
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
608
|
+
if (pressedInInputText) {
|
|
609
|
+
var target = event.currentTarget;
|
|
610
|
+
if (event.shiftKey) {
|
|
611
|
+
target.setSelectionRange(0, event.target.selectionStart);
|
|
612
|
+
} else {
|
|
613
|
+
target.setSelectionRange(0, 0);
|
|
614
|
+
this.focusedOptionIndex = -1;
|
|
615
|
+
}
|
|
616
|
+
} else {
|
|
617
|
+
this.changeFocusedOptionIndex(event, this.findFirstOptionIndex());
|
|
618
|
+
!this.overlayVisible && this.show();
|
|
619
|
+
}
|
|
620
|
+
event.preventDefault();
|
|
621
|
+
},
|
|
622
|
+
onEndKey: function onEndKey(event) {
|
|
623
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
624
|
+
if (pressedInInputText) {
|
|
625
|
+
var target = event.currentTarget;
|
|
626
|
+
if (event.shiftKey) {
|
|
627
|
+
target.setSelectionRange(event.target.selectionStart, target.value.length);
|
|
628
|
+
} else {
|
|
629
|
+
var len = target.value.length;
|
|
630
|
+
target.setSelectionRange(len, len);
|
|
631
|
+
this.focusedOptionIndex = -1;
|
|
632
|
+
}
|
|
633
|
+
} else {
|
|
634
|
+
this.changeFocusedOptionIndex(event, this.findLastOptionIndex());
|
|
635
|
+
!this.overlayVisible && this.show();
|
|
636
|
+
}
|
|
637
|
+
event.preventDefault();
|
|
638
|
+
},
|
|
639
|
+
onPageUpKey: function onPageUpKey(event) {
|
|
640
|
+
this.scrollInView(0);
|
|
641
|
+
event.preventDefault();
|
|
642
|
+
},
|
|
643
|
+
onPageDownKey: function onPageDownKey(event) {
|
|
644
|
+
this.scrollInView(this.visibleOptions.length - 1);
|
|
645
|
+
event.preventDefault();
|
|
646
|
+
},
|
|
647
|
+
onEnterKey: function onEnterKey(event) {
|
|
648
|
+
if (!this.overlayVisible) {
|
|
649
|
+
this.focusedOptionIndex = -1;
|
|
650
|
+
this.onArrowDownKey(event);
|
|
651
|
+
} else {
|
|
652
|
+
if (this.focusedOptionIndex !== -1) {
|
|
653
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
654
|
+
}
|
|
655
|
+
this.hide();
|
|
656
|
+
}
|
|
657
|
+
event.preventDefault();
|
|
658
|
+
},
|
|
659
|
+
onSpaceKey: function onSpaceKey(event) {
|
|
660
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
661
|
+
!pressedInInputText && this.onEnterKey(event);
|
|
662
|
+
},
|
|
663
|
+
onEscapeKey: function onEscapeKey(event) {
|
|
664
|
+
this.overlayVisible && this.hide(true);
|
|
665
|
+
event.preventDefault();
|
|
666
|
+
event.stopPropagation();
|
|
667
|
+
},
|
|
668
|
+
onTabKey: function onTabKey(event) {
|
|
669
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
670
|
+
if (!pressedInInputText) {
|
|
671
|
+
if (this.overlayVisible && this.hasFocusableElements()) {
|
|
672
|
+
DomHandler.focus(this.$refs.firstHiddenFocusableElementOnOverlay);
|
|
673
|
+
event.preventDefault();
|
|
674
|
+
} else {
|
|
675
|
+
if (this.focusedOptionIndex !== -1) {
|
|
676
|
+
this.onOptionSelect(event, this.visibleOptions[this.focusedOptionIndex]);
|
|
677
|
+
}
|
|
678
|
+
this.overlayVisible && this.hide(this.filter);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
577
681
|
},
|
|
578
|
-
onBackspaceKey: function(
|
|
579
|
-
var
|
|
580
|
-
|
|
682
|
+
onBackspaceKey: function onBackspaceKey(event) {
|
|
683
|
+
var pressedInInputText = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
684
|
+
if (pressedInInputText) {
|
|
685
|
+
!this.overlayVisible && this.show();
|
|
686
|
+
}
|
|
581
687
|
},
|
|
582
|
-
onOverlayEnter: function(
|
|
583
|
-
|
|
688
|
+
onOverlayEnter: function onOverlayEnter(el) {
|
|
689
|
+
ZIndexUtils.set("overlay", el, this.$primevue.config.zIndex.overlay);
|
|
690
|
+
DomHandler.addStyles(el, {
|
|
584
691
|
position: "absolute",
|
|
585
692
|
top: "0",
|
|
586
693
|
left: "0"
|
|
587
|
-
})
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
this.
|
|
591
|
-
},
|
|
592
|
-
|
|
593
|
-
this.
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
},
|
|
598
|
-
|
|
599
|
-
this.
|
|
694
|
+
});
|
|
695
|
+
this.alignOverlay();
|
|
696
|
+
this.scrollInView();
|
|
697
|
+
this.autoFilterFocus && DomHandler.focus(this.$refs.filterInput);
|
|
698
|
+
},
|
|
699
|
+
onOverlayAfterEnter: function onOverlayAfterEnter() {
|
|
700
|
+
this.bindOutsideClickListener();
|
|
701
|
+
this.bindScrollListener();
|
|
702
|
+
this.bindResizeListener();
|
|
703
|
+
this.$emit("show");
|
|
704
|
+
},
|
|
705
|
+
onOverlayLeave: function onOverlayLeave() {
|
|
706
|
+
this.unbindOutsideClickListener();
|
|
707
|
+
this.unbindScrollListener();
|
|
708
|
+
this.unbindResizeListener();
|
|
709
|
+
this.$emit("hide");
|
|
710
|
+
this.overlay = null;
|
|
711
|
+
},
|
|
712
|
+
onOverlayAfterLeave: function onOverlayAfterLeave(el) {
|
|
713
|
+
ZIndexUtils.clear(el);
|
|
714
|
+
},
|
|
715
|
+
alignOverlay: function alignOverlay() {
|
|
716
|
+
if (this.appendTo === "self") {
|
|
717
|
+
DomHandler.relativePosition(this.overlay, this.$el);
|
|
718
|
+
} else {
|
|
719
|
+
this.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + "px";
|
|
720
|
+
DomHandler.absolutePosition(this.overlay, this.$el);
|
|
721
|
+
}
|
|
600
722
|
},
|
|
601
|
-
bindOutsideClickListener: function() {
|
|
602
|
-
var
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
723
|
+
bindOutsideClickListener: function bindOutsideClickListener() {
|
|
724
|
+
var _this3 = this;
|
|
725
|
+
if (!this.outsideClickListener) {
|
|
726
|
+
this.outsideClickListener = function(event) {
|
|
727
|
+
if (_this3.overlayVisible && _this3.overlay && !_this3.$el.contains(event.target) && !_this3.overlay.contains(event.target)) {
|
|
728
|
+
_this3.hide();
|
|
729
|
+
}
|
|
730
|
+
};
|
|
731
|
+
document.addEventListener("click", this.outsideClickListener);
|
|
732
|
+
}
|
|
606
733
|
},
|
|
607
|
-
unbindOutsideClickListener: function() {
|
|
608
|
-
|
|
734
|
+
unbindOutsideClickListener: function unbindOutsideClickListener() {
|
|
735
|
+
if (this.outsideClickListener) {
|
|
736
|
+
document.removeEventListener("click", this.outsideClickListener);
|
|
737
|
+
this.outsideClickListener = null;
|
|
738
|
+
}
|
|
609
739
|
},
|
|
610
|
-
bindScrollListener: function() {
|
|
611
|
-
var
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
740
|
+
bindScrollListener: function bindScrollListener() {
|
|
741
|
+
var _this4 = this;
|
|
742
|
+
if (!this.scrollHandler) {
|
|
743
|
+
this.scrollHandler = new ConnectedOverlayScrollHandler(this.$refs.container, function() {
|
|
744
|
+
if (_this4.overlayVisible) {
|
|
745
|
+
_this4.hide();
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
}
|
|
749
|
+
this.scrollHandler.bindScrollListener();
|
|
615
750
|
},
|
|
616
|
-
unbindScrollListener: function() {
|
|
617
|
-
|
|
751
|
+
unbindScrollListener: function unbindScrollListener() {
|
|
752
|
+
if (this.scrollHandler) {
|
|
753
|
+
this.scrollHandler.unbindScrollListener();
|
|
754
|
+
}
|
|
618
755
|
},
|
|
619
|
-
bindResizeListener: function() {
|
|
620
|
-
var
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
756
|
+
bindResizeListener: function bindResizeListener() {
|
|
757
|
+
var _this5 = this;
|
|
758
|
+
if (!this.resizeListener) {
|
|
759
|
+
this.resizeListener = function() {
|
|
760
|
+
if (_this5.overlayVisible && !DomHandler.isTouchDevice()) {
|
|
761
|
+
_this5.hide();
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
window.addEventListener("resize", this.resizeListener);
|
|
765
|
+
}
|
|
624
766
|
},
|
|
625
|
-
unbindResizeListener: function() {
|
|
626
|
-
|
|
767
|
+
unbindResizeListener: function unbindResizeListener() {
|
|
768
|
+
if (this.resizeListener) {
|
|
769
|
+
window.removeEventListener("resize", this.resizeListener);
|
|
770
|
+
this.resizeListener = null;
|
|
771
|
+
}
|
|
627
772
|
},
|
|
628
|
-
bindLabelClickListener: function() {
|
|
629
|
-
var
|
|
773
|
+
bindLabelClickListener: function bindLabelClickListener() {
|
|
774
|
+
var _this6 = this;
|
|
630
775
|
if (!this.editable && !this.labelClickListener) {
|
|
631
|
-
var
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
776
|
+
var label2 = document.querySelector('label[for="'.concat(this.inputId, '"]'));
|
|
777
|
+
if (label2 && DomHandler.isVisible(label2)) {
|
|
778
|
+
this.labelClickListener = function() {
|
|
779
|
+
DomHandler.focus(_this6.$refs.focusInput);
|
|
780
|
+
};
|
|
781
|
+
label2.addEventListener("click", this.labelClickListener);
|
|
782
|
+
}
|
|
635
783
|
}
|
|
636
784
|
},
|
|
637
|
-
unbindLabelClickListener: function() {
|
|
785
|
+
unbindLabelClickListener: function unbindLabelClickListener() {
|
|
638
786
|
if (this.labelClickListener) {
|
|
639
|
-
var
|
|
640
|
-
|
|
787
|
+
var label2 = document.querySelector('label[for="'.concat(this.inputId, '"]'));
|
|
788
|
+
if (label2 && DomHandler.isVisible(label2)) {
|
|
789
|
+
label2.removeEventListener("click", this.labelClickListener);
|
|
790
|
+
}
|
|
641
791
|
}
|
|
642
792
|
},
|
|
643
|
-
hasFocusableElements: function() {
|
|
644
|
-
return
|
|
793
|
+
hasFocusableElements: function hasFocusableElements() {
|
|
794
|
+
return DomHandler.getFocusableElements(this.overlay, ':not([data-p-hidden-focusable="true"])').length > 0;
|
|
645
795
|
},
|
|
646
|
-
isOptionMatched: function(
|
|
647
|
-
var
|
|
648
|
-
return this.isValidOption(
|
|
796
|
+
isOptionMatched: function isOptionMatched(option) {
|
|
797
|
+
var _this$getOptionLabel;
|
|
798
|
+
return this.isValidOption(option) && ((_this$getOptionLabel = this.getOptionLabel(option)) === null || _this$getOptionLabel === void 0 ? void 0 : _this$getOptionLabel.toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale)));
|
|
649
799
|
},
|
|
650
|
-
isValidOption: function(
|
|
651
|
-
return
|
|
800
|
+
isValidOption: function isValidOption(option) {
|
|
801
|
+
return ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
|
|
652
802
|
},
|
|
653
|
-
isValidSelectedOption: function(
|
|
654
|
-
return this.isValidOption(
|
|
803
|
+
isValidSelectedOption: function isValidSelectedOption(option) {
|
|
804
|
+
return this.isValidOption(option) && this.isSelected(option);
|
|
655
805
|
},
|
|
656
|
-
isSelected: function(
|
|
657
|
-
return this.isValidOption(
|
|
806
|
+
isSelected: function isSelected(option) {
|
|
807
|
+
return this.isValidOption(option) && ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
|
|
658
808
|
},
|
|
659
|
-
findFirstOptionIndex: function() {
|
|
660
|
-
var
|
|
661
|
-
return this.visibleOptions.findIndex(function(
|
|
662
|
-
return
|
|
809
|
+
findFirstOptionIndex: function findFirstOptionIndex() {
|
|
810
|
+
var _this7 = this;
|
|
811
|
+
return this.visibleOptions.findIndex(function(option) {
|
|
812
|
+
return _this7.isValidOption(option);
|
|
663
813
|
});
|
|
664
814
|
},
|
|
665
|
-
findLastOptionIndex: function() {
|
|
666
|
-
var
|
|
667
|
-
return
|
|
668
|
-
return
|
|
815
|
+
findLastOptionIndex: function findLastOptionIndex() {
|
|
816
|
+
var _this8 = this;
|
|
817
|
+
return ObjectUtils.findLastIndex(this.visibleOptions, function(option) {
|
|
818
|
+
return _this8.isValidOption(option);
|
|
669
819
|
});
|
|
670
820
|
},
|
|
671
|
-
findNextOptionIndex: function(
|
|
672
|
-
var
|
|
673
|
-
|
|
821
|
+
findNextOptionIndex: function findNextOptionIndex(index) {
|
|
822
|
+
var _this9 = this;
|
|
823
|
+
var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function(option) {
|
|
824
|
+
return _this9.isValidOption(option);
|
|
674
825
|
}) : -1;
|
|
675
|
-
return
|
|
826
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
|
|
676
827
|
},
|
|
677
|
-
findPrevOptionIndex: function(
|
|
678
|
-
var
|
|
679
|
-
|
|
828
|
+
findPrevOptionIndex: function findPrevOptionIndex(index) {
|
|
829
|
+
var _this10 = this;
|
|
830
|
+
var matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function(option) {
|
|
831
|
+
return _this10.isValidOption(option);
|
|
680
832
|
}) : -1;
|
|
681
|
-
return
|
|
833
|
+
return matchedOptionIndex > -1 ? matchedOptionIndex : index;
|
|
682
834
|
},
|
|
683
|
-
findSelectedOptionIndex: function() {
|
|
684
|
-
var
|
|
685
|
-
return this.hasSelectedOption ? this.visibleOptions.findIndex(function(
|
|
686
|
-
return
|
|
835
|
+
findSelectedOptionIndex: function findSelectedOptionIndex() {
|
|
836
|
+
var _this11 = this;
|
|
837
|
+
return this.hasSelectedOption ? this.visibleOptions.findIndex(function(option) {
|
|
838
|
+
return _this11.isValidSelectedOption(option);
|
|
687
839
|
}) : -1;
|
|
688
840
|
},
|
|
689
|
-
findFirstFocusedOptionIndex: function() {
|
|
690
|
-
var
|
|
691
|
-
return
|
|
692
|
-
},
|
|
693
|
-
findLastFocusedOptionIndex: function() {
|
|
694
|
-
var
|
|
695
|
-
return
|
|
696
|
-
},
|
|
697
|
-
searchOptions: function(
|
|
698
|
-
var
|
|
699
|
-
this.searchValue = (this.searchValue || "") +
|
|
700
|
-
var
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
841
|
+
findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
|
|
842
|
+
var selectedIndex = this.findSelectedOptionIndex();
|
|
843
|
+
return selectedIndex < 0 ? this.findFirstOptionIndex() : selectedIndex;
|
|
844
|
+
},
|
|
845
|
+
findLastFocusedOptionIndex: function findLastFocusedOptionIndex() {
|
|
846
|
+
var selectedIndex = this.findSelectedOptionIndex();
|
|
847
|
+
return selectedIndex < 0 ? this.findLastOptionIndex() : selectedIndex;
|
|
848
|
+
},
|
|
849
|
+
searchOptions: function searchOptions(event, _char) {
|
|
850
|
+
var _this12 = this;
|
|
851
|
+
this.searchValue = (this.searchValue || "") + _char;
|
|
852
|
+
var optionIndex = -1;
|
|
853
|
+
var matched = false;
|
|
854
|
+
if (ObjectUtils.isNotEmpty(this.searchValue)) {
|
|
855
|
+
if (this.focusedOptionIndex !== -1) {
|
|
856
|
+
optionIndex = this.visibleOptions.slice(this.focusedOptionIndex).findIndex(function(option) {
|
|
857
|
+
return _this12.isOptionMatched(option);
|
|
858
|
+
});
|
|
859
|
+
optionIndex = optionIndex === -1 ? this.visibleOptions.slice(0, this.focusedOptionIndex).findIndex(function(option) {
|
|
860
|
+
return _this12.isOptionMatched(option);
|
|
861
|
+
}) : optionIndex + this.focusedOptionIndex;
|
|
862
|
+
} else {
|
|
863
|
+
optionIndex = this.visibleOptions.findIndex(function(option) {
|
|
864
|
+
return _this12.isOptionMatched(option);
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
if (optionIndex !== -1) {
|
|
868
|
+
matched = true;
|
|
869
|
+
}
|
|
870
|
+
if (optionIndex === -1 && this.focusedOptionIndex === -1) {
|
|
871
|
+
optionIndex = this.findFirstFocusedOptionIndex();
|
|
872
|
+
}
|
|
873
|
+
if (optionIndex !== -1) {
|
|
874
|
+
this.changeFocusedOptionIndex(event, optionIndex);
|
|
875
|
+
}
|
|
876
|
+
}
|
|
877
|
+
if (this.searchTimeout) {
|
|
878
|
+
clearTimeout(this.searchTimeout);
|
|
879
|
+
}
|
|
880
|
+
this.searchTimeout = setTimeout(function() {
|
|
881
|
+
_this12.searchValue = "";
|
|
882
|
+
_this12.searchTimeout = null;
|
|
883
|
+
}, 500);
|
|
884
|
+
return matched;
|
|
885
|
+
},
|
|
886
|
+
changeFocusedOptionIndex: function changeFocusedOptionIndex(event, index) {
|
|
887
|
+
if (this.focusedOptionIndex !== index) {
|
|
888
|
+
this.focusedOptionIndex = index;
|
|
889
|
+
this.scrollInView();
|
|
890
|
+
if (this.selectOnFocus) {
|
|
891
|
+
this.onOptionSelect(event, this.visibleOptions[index], false);
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
},
|
|
895
|
+
scrollInView: function scrollInView() {
|
|
896
|
+
var _this13 = this;
|
|
897
|
+
var index = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : -1;
|
|
716
898
|
this.$nextTick(function() {
|
|
717
|
-
var
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
899
|
+
var id = index !== -1 ? "".concat(_this13.id, "_").concat(index) : _this13.focusedOptionId;
|
|
900
|
+
var element = DomHandler.findSingle(_this13.list, 'li[id="'.concat(id, '"]'));
|
|
901
|
+
if (element) {
|
|
902
|
+
element.scrollIntoView && element.scrollIntoView({
|
|
903
|
+
block: "nearest"
|
|
904
|
+
});
|
|
905
|
+
} else if (!_this13.virtualScrollerDisabled) {
|
|
906
|
+
_this13.virtualScroller && _this13.virtualScroller.scrollToIndex(index !== -1 ? index : _this13.focusedOptionIndex);
|
|
907
|
+
}
|
|
721
908
|
});
|
|
722
909
|
},
|
|
723
|
-
autoUpdateModel: function() {
|
|
724
|
-
this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption
|
|
910
|
+
autoUpdateModel: function autoUpdateModel() {
|
|
911
|
+
if (this.selectOnFocus && this.autoOptionFocus && !this.hasSelectedOption) {
|
|
912
|
+
this.focusedOptionIndex = this.findFirstFocusedOptionIndex();
|
|
913
|
+
this.onOptionSelect(null, this.visibleOptions[this.focusedOptionIndex], false);
|
|
914
|
+
}
|
|
725
915
|
},
|
|
726
|
-
updateModel: function(
|
|
727
|
-
this.$emit("update:modelValue",
|
|
728
|
-
|
|
729
|
-
|
|
916
|
+
updateModel: function updateModel(event, value) {
|
|
917
|
+
this.$emit("update:modelValue", value);
|
|
918
|
+
this.$emit("change", {
|
|
919
|
+
originalEvent: event,
|
|
920
|
+
value
|
|
730
921
|
});
|
|
731
922
|
},
|
|
732
|
-
flatOptions: function(
|
|
733
|
-
var
|
|
734
|
-
return (
|
|
735
|
-
|
|
736
|
-
optionGroup:
|
|
737
|
-
group:
|
|
738
|
-
index
|
|
923
|
+
flatOptions: function flatOptions(options2) {
|
|
924
|
+
var _this14 = this;
|
|
925
|
+
return (options2 || []).reduce(function(result, option, index) {
|
|
926
|
+
result.push({
|
|
927
|
+
optionGroup: option,
|
|
928
|
+
group: true,
|
|
929
|
+
index
|
|
739
930
|
});
|
|
740
|
-
var
|
|
741
|
-
|
|
742
|
-
return
|
|
743
|
-
})
|
|
931
|
+
var optionGroupChildren = _this14.getOptionGroupChildren(option);
|
|
932
|
+
optionGroupChildren && optionGroupChildren.forEach(function(o) {
|
|
933
|
+
return result.push(o);
|
|
934
|
+
});
|
|
935
|
+
return result;
|
|
744
936
|
}, []);
|
|
745
937
|
},
|
|
746
|
-
overlayRef: function(
|
|
747
|
-
this.overlay =
|
|
938
|
+
overlayRef: function overlayRef(el) {
|
|
939
|
+
this.overlay = el;
|
|
748
940
|
},
|
|
749
|
-
listRef: function(
|
|
750
|
-
this.list =
|
|
941
|
+
listRef: function listRef(el, contentRef) {
|
|
942
|
+
this.list = el;
|
|
943
|
+
contentRef && contentRef(el);
|
|
751
944
|
},
|
|
752
|
-
virtualScrollerRef: function(
|
|
753
|
-
this.virtualScroller =
|
|
945
|
+
virtualScrollerRef: function virtualScrollerRef(el) {
|
|
946
|
+
this.virtualScroller = el;
|
|
754
947
|
}
|
|
755
948
|
},
|
|
756
949
|
computed: {
|
|
757
|
-
visibleOptions: function() {
|
|
758
|
-
var
|
|
950
|
+
visibleOptions: function visibleOptions() {
|
|
951
|
+
var _this15 = this;
|
|
952
|
+
var options2 = this.optionGroupLabel ? this.flatOptions(this.options) : this.options || [];
|
|
759
953
|
if (this.filterValue) {
|
|
760
|
-
var
|
|
954
|
+
var filteredOptions = FilterService.filter(options2, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
|
|
761
955
|
if (this.optionGroupLabel) {
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
956
|
+
var optionGroups = this.options || [];
|
|
957
|
+
var filtered = [];
|
|
958
|
+
optionGroups.forEach(function(group) {
|
|
959
|
+
var groupChildren = _this15.getOptionGroupChildren(group);
|
|
960
|
+
var filteredItems = groupChildren.filter(function(item) {
|
|
961
|
+
return filteredOptions.includes(item);
|
|
766
962
|
});
|
|
767
|
-
|
|
768
|
-
})
|
|
963
|
+
if (filteredItems.length > 0) filtered.push(_objectSpread$1(_objectSpread$1({}, group), {}, _defineProperty$1({}, typeof _this15.optionGroupChildren === "string" ? _this15.optionGroupChildren : "items", _toConsumableArray(filteredItems))));
|
|
964
|
+
});
|
|
965
|
+
return this.flatOptions(filtered);
|
|
769
966
|
}
|
|
770
|
-
return
|
|
967
|
+
return filteredOptions;
|
|
771
968
|
}
|
|
772
|
-
return
|
|
969
|
+
return options2;
|
|
773
970
|
},
|
|
774
|
-
hasSelectedOption: function() {
|
|
775
|
-
return
|
|
971
|
+
hasSelectedOption: function hasSelectedOption() {
|
|
972
|
+
return ObjectUtils.isNotEmpty(this.modelValue);
|
|
776
973
|
},
|
|
777
|
-
label: function() {
|
|
778
|
-
var
|
|
779
|
-
return
|
|
974
|
+
label: function label() {
|
|
975
|
+
var selectedOptionIndex = this.findSelectedOptionIndex();
|
|
976
|
+
return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions[selectedOptionIndex]) : this.placeholder || "p-emptylabel";
|
|
780
977
|
},
|
|
781
|
-
editableInputValue: function() {
|
|
782
|
-
var
|
|
783
|
-
return
|
|
978
|
+
editableInputValue: function editableInputValue() {
|
|
979
|
+
var selectedOptionIndex = this.findSelectedOptionIndex();
|
|
980
|
+
return selectedOptionIndex !== -1 ? this.getOptionLabel(this.visibleOptions[selectedOptionIndex]) : this.modelValue || "";
|
|
784
981
|
},
|
|
785
|
-
equalityKey: function() {
|
|
982
|
+
equalityKey: function equalityKey() {
|
|
786
983
|
return this.optionValue ? null : this.dataKey;
|
|
787
984
|
},
|
|
788
|
-
searchFields: function() {
|
|
985
|
+
searchFields: function searchFields() {
|
|
789
986
|
return this.filterFields || [this.optionLabel];
|
|
790
987
|
},
|
|
791
|
-
filterResultMessageText: function() {
|
|
792
|
-
return
|
|
988
|
+
filterResultMessageText: function filterResultMessageText() {
|
|
989
|
+
return ObjectUtils.isNotEmpty(this.visibleOptions) ? this.filterMessageText.replaceAll("{0}", this.visibleOptions.length) : this.emptyFilterMessageText;
|
|
793
990
|
},
|
|
794
|
-
filterMessageText: function() {
|
|
991
|
+
filterMessageText: function filterMessageText() {
|
|
795
992
|
return this.filterMessage || this.$primevue.config.locale.searchMessage || "";
|
|
796
993
|
},
|
|
797
|
-
emptyFilterMessageText: function() {
|
|
994
|
+
emptyFilterMessageText: function emptyFilterMessageText() {
|
|
798
995
|
return this.emptyFilterMessage || this.$primevue.config.locale.emptySearchMessage || this.$primevue.config.locale.emptyFilterMessage || "";
|
|
799
996
|
},
|
|
800
|
-
emptyMessageText: function() {
|
|
997
|
+
emptyMessageText: function emptyMessageText() {
|
|
801
998
|
return this.emptyMessage || this.$primevue.config.locale.emptyMessage || "";
|
|
802
999
|
},
|
|
803
|
-
selectionMessageText: function() {
|
|
1000
|
+
selectionMessageText: function selectionMessageText() {
|
|
804
1001
|
return this.selectionMessage || this.$primevue.config.locale.selectionMessage || "";
|
|
805
1002
|
},
|
|
806
|
-
emptySelectionMessageText: function() {
|
|
1003
|
+
emptySelectionMessageText: function emptySelectionMessageText() {
|
|
807
1004
|
return this.emptySelectionMessage || this.$primevue.config.locale.emptySelectionMessage || "";
|
|
808
1005
|
},
|
|
809
|
-
selectedMessageText: function() {
|
|
1006
|
+
selectedMessageText: function selectedMessageText() {
|
|
810
1007
|
return this.hasSelectedOption ? this.selectionMessageText.replaceAll("{0}", "1") : this.emptySelectionMessageText;
|
|
811
1008
|
},
|
|
812
|
-
listAriaLabel: function() {
|
|
1009
|
+
listAriaLabel: function listAriaLabel() {
|
|
813
1010
|
return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : void 0;
|
|
814
1011
|
},
|
|
815
|
-
focusedOptionId: function() {
|
|
1012
|
+
focusedOptionId: function focusedOptionId() {
|
|
816
1013
|
return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
|
|
817
1014
|
},
|
|
818
|
-
ariaSetSize: function() {
|
|
819
|
-
var
|
|
820
|
-
return this.visibleOptions.filter(function(
|
|
821
|
-
return !
|
|
1015
|
+
ariaSetSize: function ariaSetSize() {
|
|
1016
|
+
var _this16 = this;
|
|
1017
|
+
return this.visibleOptions.filter(function(option) {
|
|
1018
|
+
return !_this16.isOptionGroup(option);
|
|
822
1019
|
}).length;
|
|
823
1020
|
},
|
|
824
|
-
virtualScrollerDisabled: function() {
|
|
1021
|
+
virtualScrollerDisabled: function virtualScrollerDisabled() {
|
|
825
1022
|
return !this.virtualScrollerOptions;
|
|
826
1023
|
}
|
|
827
1024
|
},
|
|
828
1025
|
directives: {
|
|
829
|
-
ripple:
|
|
1026
|
+
ripple: Ripple
|
|
830
1027
|
},
|
|
831
1028
|
components: {
|
|
832
|
-
VirtualScroller:
|
|
833
|
-
Portal:
|
|
834
|
-
TimesIcon:
|
|
835
|
-
ChevronDownIcon:
|
|
836
|
-
SpinnerIcon:
|
|
837
|
-
SearchIcon:
|
|
838
|
-
CheckIcon:
|
|
839
|
-
BlankIcon:
|
|
1029
|
+
VirtualScroller: script$9,
|
|
1030
|
+
Portal: script$8,
|
|
1031
|
+
TimesIcon: script$7,
|
|
1032
|
+
ChevronDownIcon: script$6,
|
|
1033
|
+
SpinnerIcon: script$5,
|
|
1034
|
+
SearchIcon: script$4,
|
|
1035
|
+
CheckIcon: script$3,
|
|
1036
|
+
BlankIcon: script$2
|
|
840
1037
|
}
|
|
841
1038
|
};
|
|
842
|
-
function
|
|
1039
|
+
function _typeof(o) {
|
|
843
1040
|
"@babel/helpers - typeof";
|
|
844
|
-
return
|
|
845
|
-
return typeof
|
|
846
|
-
} : function(
|
|
847
|
-
return
|
|
848
|
-
},
|
|
1041
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
1042
|
+
return typeof o2;
|
|
1043
|
+
} : function(o2) {
|
|
1044
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
1045
|
+
}, _typeof(o);
|
|
849
1046
|
}
|
|
850
|
-
function
|
|
851
|
-
var
|
|
1047
|
+
function ownKeys(e, r) {
|
|
1048
|
+
var t = Object.keys(e);
|
|
852
1049
|
if (Object.getOwnPropertySymbols) {
|
|
853
|
-
var
|
|
854
|
-
|
|
855
|
-
return Object.getOwnPropertyDescriptor(
|
|
856
|
-
})),
|
|
1050
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
1051
|
+
r && (o = o.filter(function(r2) {
|
|
1052
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
1053
|
+
})), t.push.apply(t, o);
|
|
857
1054
|
}
|
|
858
|
-
return
|
|
1055
|
+
return t;
|
|
859
1056
|
}
|
|
860
|
-
function
|
|
861
|
-
for (var
|
|
862
|
-
var
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
866
|
-
Object.defineProperty(
|
|
1057
|
+
function _objectSpread(e) {
|
|
1058
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
1059
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
1060
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
1061
|
+
_defineProperty(e, r2, t[r2]);
|
|
1062
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
1063
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
867
1064
|
});
|
|
868
1065
|
}
|
|
869
|
-
return
|
|
1066
|
+
return e;
|
|
870
1067
|
}
|
|
871
|
-
function
|
|
872
|
-
|
|
1068
|
+
function _defineProperty(obj, key, value) {
|
|
1069
|
+
key = _toPropertyKey(key);
|
|
1070
|
+
if (key in obj) {
|
|
1071
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
1072
|
+
} else {
|
|
1073
|
+
obj[key] = value;
|
|
1074
|
+
}
|
|
1075
|
+
return obj;
|
|
873
1076
|
}
|
|
874
|
-
function
|
|
875
|
-
var
|
|
876
|
-
return
|
|
1077
|
+
function _toPropertyKey(t) {
|
|
1078
|
+
var i = _toPrimitive(t, "string");
|
|
1079
|
+
return "symbol" == _typeof(i) ? i : String(i);
|
|
877
1080
|
}
|
|
878
|
-
function
|
|
879
|
-
if (
|
|
880
|
-
var
|
|
881
|
-
if (
|
|
882
|
-
var
|
|
883
|
-
if (
|
|
1081
|
+
function _toPrimitive(t, r) {
|
|
1082
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
1083
|
+
var e = t[Symbol.toPrimitive];
|
|
1084
|
+
if (void 0 !== e) {
|
|
1085
|
+
var i = e.call(t, r);
|
|
1086
|
+
if ("object" != _typeof(i)) return i;
|
|
884
1087
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
885
1088
|
}
|
|
886
|
-
return (
|
|
1089
|
+
return ("string" === r ? String : Number)(t);
|
|
887
1090
|
}
|
|
888
|
-
var
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
1091
|
+
var _hoisted_1 = ["id"];
|
|
1092
|
+
var _hoisted_2 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
|
|
1093
|
+
var _hoisted_3 = ["id", "tabindex", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-disabled"];
|
|
1094
|
+
var _hoisted_4 = ["value", "placeholder", "aria-owns", "aria-activedescendant"];
|
|
1095
|
+
var _hoisted_5 = ["id", "aria-label"];
|
|
1096
|
+
var _hoisted_6 = ["id"];
|
|
1097
|
+
var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focused", "data-p-disabled"];
|
|
1098
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1099
|
+
var _component_SpinnerIcon = resolveComponent("SpinnerIcon");
|
|
1100
|
+
var _component_CheckIcon = resolveComponent("CheckIcon");
|
|
1101
|
+
var _component_BlankIcon = resolveComponent("BlankIcon");
|
|
1102
|
+
var _component_VirtualScroller = resolveComponent("VirtualScroller");
|
|
1103
|
+
var _component_Portal = resolveComponent("Portal");
|
|
1104
|
+
var _directive_ripple = resolveDirective("ripple");
|
|
1105
|
+
return openBlock(), createElementBlock("div", mergeProps({
|
|
892
1106
|
ref: "container",
|
|
893
|
-
id:
|
|
894
|
-
class:
|
|
895
|
-
onClick:
|
|
896
|
-
return
|
|
1107
|
+
id: $data.id,
|
|
1108
|
+
"class": _ctx.cx("root"),
|
|
1109
|
+
onClick: _cache[16] || (_cache[16] = function() {
|
|
1110
|
+
return $options.onContainerClick && $options.onContainerClick.apply($options, arguments);
|
|
897
1111
|
})
|
|
898
|
-
},
|
|
1112
|
+
}, _ctx.ptmi("root")), [_ctx.editable ? (openBlock(), createElementBlock("input", mergeProps({
|
|
899
1113
|
key: 0,
|
|
900
1114
|
ref: "focusInput",
|
|
901
|
-
id:
|
|
1115
|
+
id: _ctx.inputId,
|
|
902
1116
|
type: "text",
|
|
903
|
-
class: [
|
|
904
|
-
style:
|
|
905
|
-
value:
|
|
906
|
-
placeholder:
|
|
907
|
-
tabindex:
|
|
908
|
-
disabled:
|
|
1117
|
+
"class": [_ctx.cx("input"), _ctx.inputClass],
|
|
1118
|
+
style: _ctx.inputStyle,
|
|
1119
|
+
value: $options.editableInputValue,
|
|
1120
|
+
placeholder: _ctx.placeholder,
|
|
1121
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
1122
|
+
disabled: _ctx.disabled,
|
|
909
1123
|
autocomplete: "off",
|
|
910
1124
|
role: "combobox",
|
|
911
|
-
"aria-label":
|
|
912
|
-
"aria-labelledby":
|
|
1125
|
+
"aria-label": _ctx.ariaLabel,
|
|
1126
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
913
1127
|
"aria-haspopup": "listbox",
|
|
914
|
-
"aria-expanded":
|
|
915
|
-
"aria-controls":
|
|
916
|
-
"aria-activedescendant":
|
|
917
|
-
"aria-invalid":
|
|
918
|
-
onFocus:
|
|
919
|
-
return
|
|
1128
|
+
"aria-expanded": $data.overlayVisible,
|
|
1129
|
+
"aria-controls": $data.id + "_list",
|
|
1130
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
|
|
1131
|
+
"aria-invalid": _ctx.invalid || void 0,
|
|
1132
|
+
onFocus: _cache[0] || (_cache[0] = function() {
|
|
1133
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
920
1134
|
}),
|
|
921
|
-
onBlur:
|
|
922
|
-
return
|
|
1135
|
+
onBlur: _cache[1] || (_cache[1] = function() {
|
|
1136
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
923
1137
|
}),
|
|
924
|
-
onKeydown:
|
|
925
|
-
return
|
|
1138
|
+
onKeydown: _cache[2] || (_cache[2] = function() {
|
|
1139
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
926
1140
|
}),
|
|
927
|
-
onInput:
|
|
928
|
-
return
|
|
1141
|
+
onInput: _cache[3] || (_cache[3] = function() {
|
|
1142
|
+
return $options.onEditableInput && $options.onEditableInput.apply($options, arguments);
|
|
929
1143
|
})
|
|
930
|
-
},
|
|
1144
|
+
}, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm("input"))), null, 16, _hoisted_2)) : (openBlock(), createElementBlock("span", mergeProps({
|
|
931
1145
|
key: 1,
|
|
932
1146
|
ref: "focusInput",
|
|
933
|
-
id:
|
|
934
|
-
class: [
|
|
935
|
-
style:
|
|
936
|
-
tabindex:
|
|
1147
|
+
id: _ctx.inputId,
|
|
1148
|
+
"class": [_ctx.cx("input"), _ctx.inputClass],
|
|
1149
|
+
style: _ctx.inputStyle,
|
|
1150
|
+
tabindex: !_ctx.disabled ? _ctx.tabindex : -1,
|
|
937
1151
|
role: "combobox",
|
|
938
|
-
"aria-label":
|
|
939
|
-
"aria-labelledby":
|
|
1152
|
+
"aria-label": _ctx.ariaLabel || ($options.label === "p-emptylabel" ? void 0 : $options.label),
|
|
1153
|
+
"aria-labelledby": _ctx.ariaLabelledby,
|
|
940
1154
|
"aria-haspopup": "listbox",
|
|
941
|
-
"aria-expanded":
|
|
942
|
-
"aria-controls":
|
|
943
|
-
"aria-activedescendant":
|
|
944
|
-
"aria-disabled":
|
|
945
|
-
onFocus:
|
|
946
|
-
return
|
|
1155
|
+
"aria-expanded": $data.overlayVisible,
|
|
1156
|
+
"aria-controls": $data.id + "_list",
|
|
1157
|
+
"aria-activedescendant": $data.focused ? $options.focusedOptionId : void 0,
|
|
1158
|
+
"aria-disabled": _ctx.disabled,
|
|
1159
|
+
onFocus: _cache[4] || (_cache[4] = function() {
|
|
1160
|
+
return $options.onFocus && $options.onFocus.apply($options, arguments);
|
|
947
1161
|
}),
|
|
948
|
-
onBlur:
|
|
949
|
-
return
|
|
1162
|
+
onBlur: _cache[5] || (_cache[5] = function() {
|
|
1163
|
+
return $options.onBlur && $options.onBlur.apply($options, arguments);
|
|
950
1164
|
}),
|
|
951
|
-
onKeydown:
|
|
952
|
-
return
|
|
1165
|
+
onKeydown: _cache[6] || (_cache[6] = function() {
|
|
1166
|
+
return $options.onKeyDown && $options.onKeyDown.apply($options, arguments);
|
|
953
1167
|
})
|
|
954
|
-
},
|
|
955
|
-
value:
|
|
956
|
-
placeholder:
|
|
1168
|
+
}, _objectSpread(_objectSpread({}, _ctx.inputProps), _ctx.ptm("input"))), [renderSlot(_ctx.$slots, "value", {
|
|
1169
|
+
value: _ctx.modelValue,
|
|
1170
|
+
placeholder: _ctx.placeholder
|
|
957
1171
|
}, function() {
|
|
958
|
-
return [
|
|
959
|
-
})], 16,
|
|
1172
|
+
return [createTextVNode(toDisplayString($options.label === "p-emptylabel" ? " " : $options.label || "empty"), 1)];
|
|
1173
|
+
})], 16, _hoisted_3)), _ctx.showClear && _ctx.modelValue != null ? renderSlot(_ctx.$slots, "clearicon", {
|
|
960
1174
|
key: 2,
|
|
961
|
-
class:
|
|
962
|
-
onClick:
|
|
963
|
-
clearCallback:
|
|
1175
|
+
"class": normalizeClass(_ctx.cx("clearIcon")),
|
|
1176
|
+
onClick: $options.onClearClick,
|
|
1177
|
+
clearCallback: $options.onClearClick
|
|
964
1178
|
}, function() {
|
|
965
|
-
return [(
|
|
1179
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.clearIcon ? "i" : "TimesIcon"), mergeProps({
|
|
966
1180
|
ref: "clearIcon",
|
|
967
|
-
class: [
|
|
968
|
-
onClick:
|
|
969
|
-
},
|
|
1181
|
+
"class": [_ctx.cx("clearIcon"), _ctx.clearIcon],
|
|
1182
|
+
onClick: $options.onClearClick
|
|
1183
|
+
}, _objectSpread(_objectSpread({}, _ctx.clearIconProps), _ctx.ptm("clearIcon")), {
|
|
970
1184
|
"data-pc-section": "clearicon"
|
|
971
1185
|
}), null, 16, ["class", "onClick"]))];
|
|
972
|
-
}) :
|
|
973
|
-
class:
|
|
974
|
-
},
|
|
1186
|
+
}) : createCommentVNode("", true), createElementVNode("div", mergeProps({
|
|
1187
|
+
"class": _ctx.cx("trigger")
|
|
1188
|
+
}, _ctx.ptm("trigger")), [_ctx.loading ? renderSlot(_ctx.$slots, "loadingicon", {
|
|
975
1189
|
key: 0,
|
|
976
|
-
class:
|
|
1190
|
+
"class": normalizeClass(_ctx.cx("loadingIcon"))
|
|
977
1191
|
}, function() {
|
|
978
|
-
return [
|
|
1192
|
+
return [_ctx.loadingIcon ? (openBlock(), createElementBlock("span", mergeProps({
|
|
979
1193
|
key: 0,
|
|
980
|
-
class: [
|
|
1194
|
+
"class": [_ctx.cx("loadingIcon"), "pi-spin", _ctx.loadingIcon],
|
|
981
1195
|
"aria-hidden": "true"
|
|
982
|
-
},
|
|
1196
|
+
}, _ctx.ptm("loadingIcon")), null, 16)) : (openBlock(), createBlock(_component_SpinnerIcon, mergeProps({
|
|
983
1197
|
key: 1,
|
|
984
|
-
class:
|
|
1198
|
+
"class": _ctx.cx("loadingIcon"),
|
|
985
1199
|
spin: "",
|
|
986
1200
|
"aria-hidden": "true"
|
|
987
|
-
},
|
|
988
|
-
}) :
|
|
1201
|
+
}, _ctx.ptm("loadingIcon")), null, 16, ["class"]))];
|
|
1202
|
+
}) : renderSlot(_ctx.$slots, "dropdownicon", {
|
|
989
1203
|
key: 1,
|
|
990
|
-
class:
|
|
1204
|
+
"class": normalizeClass(_ctx.cx("dropdownIcon"))
|
|
991
1205
|
}, function() {
|
|
992
|
-
return [(
|
|
993
|
-
class: [
|
|
1206
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon ? "span" : "ChevronDownIcon"), mergeProps({
|
|
1207
|
+
"class": [_ctx.cx("dropdownIcon"), _ctx.dropdownIcon],
|
|
994
1208
|
"aria-hidden": "true"
|
|
995
|
-
},
|
|
996
|
-
})], 16),
|
|
997
|
-
appendTo:
|
|
1209
|
+
}, _ctx.ptm("dropdownIcon")), null, 16, ["class"]))];
|
|
1210
|
+
})], 16), createVNode(_component_Portal, {
|
|
1211
|
+
appendTo: _ctx.appendTo
|
|
998
1212
|
}, {
|
|
999
|
-
default:
|
|
1000
|
-
return [
|
|
1213
|
+
"default": withCtx(function() {
|
|
1214
|
+
return [createVNode(Transition, mergeProps({
|
|
1001
1215
|
name: "p-connected-overlay",
|
|
1002
|
-
onEnter:
|
|
1003
|
-
onAfterEnter:
|
|
1004
|
-
onLeave:
|
|
1005
|
-
onAfterLeave:
|
|
1006
|
-
},
|
|
1007
|
-
default:
|
|
1008
|
-
return [
|
|
1216
|
+
onEnter: $options.onOverlayEnter,
|
|
1217
|
+
onAfterEnter: $options.onOverlayAfterEnter,
|
|
1218
|
+
onLeave: $options.onOverlayLeave,
|
|
1219
|
+
onAfterLeave: $options.onOverlayAfterLeave
|
|
1220
|
+
}, _ctx.ptm("transition")), {
|
|
1221
|
+
"default": withCtx(function() {
|
|
1222
|
+
return [$data.overlayVisible ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1009
1223
|
key: 0,
|
|
1010
|
-
ref:
|
|
1011
|
-
class: [
|
|
1012
|
-
style:
|
|
1013
|
-
onClick:
|
|
1014
|
-
return
|
|
1224
|
+
ref: $options.overlayRef,
|
|
1225
|
+
"class": [_ctx.cx("panel"), _ctx.panelClass],
|
|
1226
|
+
style: _ctx.panelStyle,
|
|
1227
|
+
onClick: _cache[14] || (_cache[14] = function() {
|
|
1228
|
+
return $options.onOverlayClick && $options.onOverlayClick.apply($options, arguments);
|
|
1015
1229
|
}),
|
|
1016
|
-
onKeydown:
|
|
1017
|
-
return
|
|
1230
|
+
onKeydown: _cache[15] || (_cache[15] = function() {
|
|
1231
|
+
return $options.onOverlayKeyDown && $options.onOverlayKeyDown.apply($options, arguments);
|
|
1018
1232
|
})
|
|
1019
|
-
},
|
|
1233
|
+
}, _objectSpread(_objectSpread({}, _ctx.panelProps), _ctx.ptm("panel"))), [createElementVNode("span", mergeProps({
|
|
1020
1234
|
ref: "firstHiddenFocusableElementOnOverlay",
|
|
1021
1235
|
role: "presentation",
|
|
1022
1236
|
"aria-hidden": "true",
|
|
1023
|
-
class: "p-hidden-accessible p-hidden-focusable",
|
|
1237
|
+
"class": "p-hidden-accessible p-hidden-focusable",
|
|
1024
1238
|
tabindex: 0,
|
|
1025
|
-
onFocus:
|
|
1026
|
-
return
|
|
1239
|
+
onFocus: _cache[7] || (_cache[7] = function() {
|
|
1240
|
+
return $options.onFirstHiddenFocus && $options.onFirstHiddenFocus.apply($options, arguments);
|
|
1027
1241
|
})
|
|
1028
|
-
},
|
|
1029
|
-
"data-p-hidden-accessible":
|
|
1030
|
-
"data-p-hidden-focusable":
|
|
1031
|
-
}), null, 16),
|
|
1032
|
-
value:
|
|
1033
|
-
options:
|
|
1034
|
-
}),
|
|
1242
|
+
}, _ctx.ptm("hiddenFirstFocusableEl"), {
|
|
1243
|
+
"data-p-hidden-accessible": true,
|
|
1244
|
+
"data-p-hidden-focusable": true
|
|
1245
|
+
}), null, 16), renderSlot(_ctx.$slots, "header", {
|
|
1246
|
+
value: _ctx.modelValue,
|
|
1247
|
+
options: $options.visibleOptions
|
|
1248
|
+
}), _ctx.filter ? (openBlock(), createElementBlock("div", mergeProps({
|
|
1035
1249
|
key: 0,
|
|
1036
|
-
class:
|
|
1037
|
-
},
|
|
1038
|
-
class:
|
|
1039
|
-
},
|
|
1250
|
+
"class": _ctx.cx("header")
|
|
1251
|
+
}, _ctx.ptm("header")), [createElementVNode("div", mergeProps({
|
|
1252
|
+
"class": _ctx.cx("filterContainer")
|
|
1253
|
+
}, _ctx.ptm("filterContainer")), [createElementVNode("input", mergeProps({
|
|
1040
1254
|
ref: "filterInput",
|
|
1041
1255
|
type: "text",
|
|
1042
|
-
value:
|
|
1043
|
-
onVnodeMounted:
|
|
1044
|
-
return
|
|
1256
|
+
value: $data.filterValue,
|
|
1257
|
+
onVnodeMounted: _cache[8] || (_cache[8] = function() {
|
|
1258
|
+
return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
|
|
1045
1259
|
}),
|
|
1046
|
-
onVnodeUpdated:
|
|
1047
|
-
return
|
|
1260
|
+
onVnodeUpdated: _cache[9] || (_cache[9] = function() {
|
|
1261
|
+
return $options.onFilterUpdated && $options.onFilterUpdated.apply($options, arguments);
|
|
1048
1262
|
}),
|
|
1049
|
-
class:
|
|
1050
|
-
placeholder:
|
|
1263
|
+
"class": _ctx.cx("filterInput"),
|
|
1264
|
+
placeholder: _ctx.filterPlaceholder,
|
|
1051
1265
|
role: "searchbox",
|
|
1052
1266
|
autocomplete: "off",
|
|
1053
|
-
"aria-owns":
|
|
1054
|
-
"aria-activedescendant":
|
|
1055
|
-
onKeydown:
|
|
1056
|
-
return
|
|
1267
|
+
"aria-owns": $data.id + "_list",
|
|
1268
|
+
"aria-activedescendant": $options.focusedOptionId,
|
|
1269
|
+
onKeydown: _cache[10] || (_cache[10] = function() {
|
|
1270
|
+
return $options.onFilterKeyDown && $options.onFilterKeyDown.apply($options, arguments);
|
|
1057
1271
|
}),
|
|
1058
|
-
onBlur:
|
|
1059
|
-
return
|
|
1272
|
+
onBlur: _cache[11] || (_cache[11] = function() {
|
|
1273
|
+
return $options.onFilterBlur && $options.onFilterBlur.apply($options, arguments);
|
|
1060
1274
|
}),
|
|
1061
|
-
onInput:
|
|
1062
|
-
return
|
|
1275
|
+
onInput: _cache[12] || (_cache[12] = function() {
|
|
1276
|
+
return $options.onFilterChange && $options.onFilterChange.apply($options, arguments);
|
|
1063
1277
|
})
|
|
1064
|
-
},
|
|
1065
|
-
class:
|
|
1278
|
+
}, _objectSpread(_objectSpread({}, _ctx.filterInputProps), _ctx.ptm("filterInput"))), null, 16, _hoisted_4), renderSlot(_ctx.$slots, "filtericon", {
|
|
1279
|
+
"class": normalizeClass(_ctx.cx("filterIcon"))
|
|
1066
1280
|
}, function() {
|
|
1067
|
-
return [(
|
|
1068
|
-
class: [
|
|
1069
|
-
},
|
|
1070
|
-
})], 16),
|
|
1281
|
+
return [(openBlock(), createBlock(resolveDynamicComponent(_ctx.filterIcon ? "span" : "SearchIcon"), mergeProps({
|
|
1282
|
+
"class": [_ctx.cx("filterIcon"), _ctx.filterIcon]
|
|
1283
|
+
}, _ctx.ptm("filterIcon")), null, 16, ["class"]))];
|
|
1284
|
+
})], 16), createElementVNode("span", mergeProps({
|
|
1071
1285
|
role: "status",
|
|
1072
1286
|
"aria-live": "polite",
|
|
1073
|
-
class: "p-hidden-accessible"
|
|
1074
|
-
},
|
|
1075
|
-
"data-p-hidden-accessible":
|
|
1076
|
-
}),
|
|
1077
|
-
class:
|
|
1287
|
+
"class": "p-hidden-accessible"
|
|
1288
|
+
}, _ctx.ptm("hiddenFilterResult"), {
|
|
1289
|
+
"data-p-hidden-accessible": true
|
|
1290
|
+
}), toDisplayString($options.filterResultMessageText), 17)], 16)) : createCommentVNode("", true), createElementVNode("div", mergeProps({
|
|
1291
|
+
"class": _ctx.cx("wrapper"),
|
|
1078
1292
|
style: {
|
|
1079
|
-
"max-height":
|
|
1293
|
+
"max-height": $options.virtualScrollerDisabled ? _ctx.scrollHeight : ""
|
|
1080
1294
|
}
|
|
1081
|
-
},
|
|
1082
|
-
ref:
|
|
1083
|
-
},
|
|
1084
|
-
items:
|
|
1295
|
+
}, _ctx.ptm("wrapper")), [createVNode(_component_VirtualScroller, mergeProps({
|
|
1296
|
+
ref: $options.virtualScrollerRef
|
|
1297
|
+
}, _ctx.virtualScrollerOptions, {
|
|
1298
|
+
items: $options.visibleOptions,
|
|
1085
1299
|
style: {
|
|
1086
|
-
height:
|
|
1300
|
+
height: _ctx.scrollHeight
|
|
1087
1301
|
},
|
|
1088
1302
|
tabindex: -1,
|
|
1089
|
-
disabled:
|
|
1090
|
-
pt:
|
|
1091
|
-
}),
|
|
1092
|
-
content:
|
|
1093
|
-
var
|
|
1094
|
-
return [
|
|
1095
|
-
ref: function(
|
|
1096
|
-
return
|
|
1303
|
+
disabled: $options.virtualScrollerDisabled,
|
|
1304
|
+
pt: _ctx.ptm("virtualScroller")
|
|
1305
|
+
}), createSlots({
|
|
1306
|
+
content: withCtx(function(_ref) {
|
|
1307
|
+
var styleClass = _ref.styleClass, contentRef = _ref.contentRef, items = _ref.items, getItemOptions = _ref.getItemOptions, contentStyle = _ref.contentStyle, itemSize = _ref.itemSize;
|
|
1308
|
+
return [createElementVNode("ul", mergeProps({
|
|
1309
|
+
ref: function ref(el) {
|
|
1310
|
+
return $options.listRef(el, contentRef);
|
|
1097
1311
|
},
|
|
1098
|
-
id:
|
|
1099
|
-
class: [
|
|
1100
|
-
style:
|
|
1312
|
+
id: $data.id + "_list",
|
|
1313
|
+
"class": [_ctx.cx("list"), styleClass],
|
|
1314
|
+
style: contentStyle,
|
|
1101
1315
|
role: "listbox",
|
|
1102
|
-
"aria-label":
|
|
1103
|
-
},
|
|
1104
|
-
return
|
|
1105
|
-
key:
|
|
1106
|
-
}, [
|
|
1316
|
+
"aria-label": $options.listAriaLabel
|
|
1317
|
+
}, _ctx.ptm("list")), [(openBlock(true), createElementBlock(Fragment, null, renderList(items, function(option, i) {
|
|
1318
|
+
return openBlock(), createElementBlock(Fragment, {
|
|
1319
|
+
key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
|
|
1320
|
+
}, [$options.isOptionGroup(option) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1107
1321
|
key: 0,
|
|
1108
|
-
id:
|
|
1322
|
+
id: $data.id + "_" + $options.getOptionIndex(i, getItemOptions),
|
|
1109
1323
|
style: {
|
|
1110
|
-
height:
|
|
1324
|
+
height: itemSize ? itemSize + "px" : void 0
|
|
1111
1325
|
},
|
|
1112
|
-
class:
|
|
1326
|
+
"class": _ctx.cx("itemGroup"),
|
|
1113
1327
|
role: "option"
|
|
1114
|
-
},
|
|
1115
|
-
option:
|
|
1116
|
-
index:
|
|
1328
|
+
}, _ctx.ptm("itemGroup")), [renderSlot(_ctx.$slots, "optiongroup", {
|
|
1329
|
+
option: option.optionGroup,
|
|
1330
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1117
1331
|
}, function() {
|
|
1118
|
-
return [
|
|
1119
|
-
class:
|
|
1120
|
-
},
|
|
1121
|
-
})], 16,
|
|
1332
|
+
return [createElementVNode("span", mergeProps({
|
|
1333
|
+
"class": _ctx.cx("itemGroupLabel")
|
|
1334
|
+
}, _ctx.ptm("itemGroupLabel")), toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 17)];
|
|
1335
|
+
})], 16, _hoisted_6)) : withDirectives((openBlock(), createElementBlock("li", mergeProps({
|
|
1122
1336
|
key: 1,
|
|
1123
|
-
id:
|
|
1124
|
-
class:
|
|
1125
|
-
option
|
|
1126
|
-
focusedOption:
|
|
1337
|
+
id: $data.id + "_" + $options.getOptionIndex(i, getItemOptions),
|
|
1338
|
+
"class": _ctx.cx("item", {
|
|
1339
|
+
option,
|
|
1340
|
+
focusedOption: $options.getOptionIndex(i, getItemOptions)
|
|
1127
1341
|
}),
|
|
1128
1342
|
style: {
|
|
1129
|
-
height:
|
|
1343
|
+
height: itemSize ? itemSize + "px" : void 0
|
|
1130
1344
|
},
|
|
1131
1345
|
role: "option",
|
|
1132
|
-
"aria-label":
|
|
1133
|
-
"aria-selected":
|
|
1134
|
-
"aria-disabled":
|
|
1135
|
-
"aria-setsize":
|
|
1136
|
-
"aria-posinset":
|
|
1137
|
-
onClick: function(
|
|
1138
|
-
return
|
|
1346
|
+
"aria-label": $options.getOptionLabel(option),
|
|
1347
|
+
"aria-selected": $options.isSelected(option),
|
|
1348
|
+
"aria-disabled": $options.isOptionDisabled(option),
|
|
1349
|
+
"aria-setsize": $options.ariaSetSize,
|
|
1350
|
+
"aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
|
|
1351
|
+
onClick: function onClick($event) {
|
|
1352
|
+
return $options.onOptionSelect($event, option);
|
|
1139
1353
|
},
|
|
1140
|
-
onMousemove: function(
|
|
1141
|
-
return
|
|
1354
|
+
onMousemove: function onMousemove($event) {
|
|
1355
|
+
return $options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions));
|
|
1142
1356
|
},
|
|
1143
|
-
"data-p-highlight":
|
|
1144
|
-
"data-p-focused":
|
|
1145
|
-
"data-p-disabled":
|
|
1146
|
-
},
|
|
1357
|
+
"data-p-highlight": $options.isSelected(option),
|
|
1358
|
+
"data-p-focused": $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions),
|
|
1359
|
+
"data-p-disabled": $options.isOptionDisabled(option)
|
|
1360
|
+
}, $options.getPTItemOptions(option, getItemOptions, i, "item")), [_ctx.checkmark ? (openBlock(), createElementBlock(Fragment, {
|
|
1147
1361
|
key: 0
|
|
1148
|
-
}, [
|
|
1362
|
+
}, [$options.isSelected(option) ? (openBlock(), createBlock(_component_CheckIcon, mergeProps({
|
|
1149
1363
|
key: 0,
|
|
1150
|
-
class:
|
|
1151
|
-
},
|
|
1364
|
+
"class": _ctx.cx("checkIcon")
|
|
1365
|
+
}, _ctx.ptm("checkIcon")), null, 16, ["class"])) : (openBlock(), createBlock(_component_BlankIcon, mergeProps({
|
|
1152
1366
|
key: 1,
|
|
1153
|
-
class:
|
|
1154
|
-
},
|
|
1155
|
-
option
|
|
1156
|
-
index:
|
|
1367
|
+
"class": _ctx.cx("blankIcon")
|
|
1368
|
+
}, _ctx.ptm("blankIcon")), null, 16, ["class"]))], 64)) : createCommentVNode("", true), renderSlot(_ctx.$slots, "option", {
|
|
1369
|
+
option,
|
|
1370
|
+
index: $options.getOptionIndex(i, getItemOptions)
|
|
1157
1371
|
}, function() {
|
|
1158
|
-
return [
|
|
1159
|
-
class:
|
|
1160
|
-
},
|
|
1161
|
-
})], 16,
|
|
1162
|
-
}), 128)),
|
|
1372
|
+
return [createElementVNode("span", mergeProps({
|
|
1373
|
+
"class": _ctx.cx("itemLabel")
|
|
1374
|
+
}, _ctx.ptm("itemLabel")), toDisplayString($options.getOptionLabel(option)), 17)];
|
|
1375
|
+
})], 16, _hoisted_7)), [[_directive_ripple]])], 64);
|
|
1376
|
+
}), 128)), $data.filterValue && (!items || items && items.length === 0) ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1163
1377
|
key: 0,
|
|
1164
|
-
class:
|
|
1378
|
+
"class": _ctx.cx("emptyMessage"),
|
|
1165
1379
|
role: "option"
|
|
1166
|
-
},
|
|
1167
|
-
"data-p-hidden-accessible":
|
|
1168
|
-
}), [
|
|
1169
|
-
return [
|
|
1170
|
-
})], 16)) : !
|
|
1380
|
+
}, _ctx.ptm("emptyMessage"), {
|
|
1381
|
+
"data-p-hidden-accessible": true
|
|
1382
|
+
}), [renderSlot(_ctx.$slots, "emptyfilter", {}, function() {
|
|
1383
|
+
return [createTextVNode(toDisplayString($options.emptyFilterMessageText), 1)];
|
|
1384
|
+
})], 16)) : !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (openBlock(), createElementBlock("li", mergeProps({
|
|
1171
1385
|
key: 1,
|
|
1172
|
-
class:
|
|
1386
|
+
"class": _ctx.cx("emptyMessage"),
|
|
1173
1387
|
role: "option"
|
|
1174
|
-
},
|
|
1175
|
-
"data-p-hidden-accessible":
|
|
1176
|
-
}), [
|
|
1177
|
-
return [
|
|
1178
|
-
})], 16)) :
|
|
1388
|
+
}, _ctx.ptm("emptyMessage"), {
|
|
1389
|
+
"data-p-hidden-accessible": true
|
|
1390
|
+
}), [renderSlot(_ctx.$slots, "empty", {}, function() {
|
|
1391
|
+
return [createTextVNode(toDisplayString($options.emptyMessageText), 1)];
|
|
1392
|
+
})], 16)) : createCommentVNode("", true)], 16, _hoisted_5)];
|
|
1179
1393
|
}),
|
|
1180
1394
|
_: 2
|
|
1181
|
-
}, [
|
|
1395
|
+
}, [_ctx.$slots.loader ? {
|
|
1182
1396
|
name: "loader",
|
|
1183
|
-
fn:
|
|
1184
|
-
var
|
|
1185
|
-
return [
|
|
1186
|
-
options:
|
|
1397
|
+
fn: withCtx(function(_ref2) {
|
|
1398
|
+
var options2 = _ref2.options;
|
|
1399
|
+
return [renderSlot(_ctx.$slots, "loader", {
|
|
1400
|
+
options: options2
|
|
1187
1401
|
})];
|
|
1188
1402
|
}),
|
|
1189
1403
|
key: "0"
|
|
1190
|
-
} : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16),
|
|
1191
|
-
value:
|
|
1192
|
-
options:
|
|
1193
|
-
}), !
|
|
1404
|
+
} : void 0]), 1040, ["items", "style", "disabled", "pt"])], 16), renderSlot(_ctx.$slots, "footer", {
|
|
1405
|
+
value: _ctx.modelValue,
|
|
1406
|
+
options: $options.visibleOptions
|
|
1407
|
+
}), !_ctx.options || _ctx.options && _ctx.options.length === 0 ? (openBlock(), createElementBlock("span", mergeProps({
|
|
1194
1408
|
key: 1,
|
|
1195
1409
|
role: "status",
|
|
1196
1410
|
"aria-live": "polite",
|
|
1197
|
-
class: "p-hidden-accessible"
|
|
1198
|
-
},
|
|
1199
|
-
"data-p-hidden-accessible":
|
|
1200
|
-
}),
|
|
1411
|
+
"class": "p-hidden-accessible"
|
|
1412
|
+
}, _ctx.ptm("hiddenEmptyMessage"), {
|
|
1413
|
+
"data-p-hidden-accessible": true
|
|
1414
|
+
}), toDisplayString($options.emptyMessageText), 17)) : createCommentVNode("", true), createElementVNode("span", mergeProps({
|
|
1201
1415
|
role: "status",
|
|
1202
1416
|
"aria-live": "polite",
|
|
1203
|
-
class: "p-hidden-accessible"
|
|
1204
|
-
},
|
|
1205
|
-
"data-p-hidden-accessible":
|
|
1206
|
-
}),
|
|
1417
|
+
"class": "p-hidden-accessible"
|
|
1418
|
+
}, _ctx.ptm("hiddenSelectedMessage"), {
|
|
1419
|
+
"data-p-hidden-accessible": true
|
|
1420
|
+
}), toDisplayString($options.selectedMessageText), 17), createElementVNode("span", mergeProps({
|
|
1207
1421
|
ref: "lastHiddenFocusableElementOnOverlay",
|
|
1208
1422
|
role: "presentation",
|
|
1209
1423
|
"aria-hidden": "true",
|
|
1210
|
-
class: "p-hidden-accessible p-hidden-focusable",
|
|
1424
|
+
"class": "p-hidden-accessible p-hidden-focusable",
|
|
1211
1425
|
tabindex: 0,
|
|
1212
|
-
onFocus:
|
|
1213
|
-
return
|
|
1426
|
+
onFocus: _cache[13] || (_cache[13] = function() {
|
|
1427
|
+
return $options.onLastHiddenFocus && $options.onLastHiddenFocus.apply($options, arguments);
|
|
1214
1428
|
})
|
|
1215
|
-
},
|
|
1216
|
-
"data-p-hidden-accessible":
|
|
1217
|
-
"data-p-hidden-focusable":
|
|
1218
|
-
}), null, 16)], 16)) :
|
|
1429
|
+
}, _ctx.ptm("hiddenLastFocusableEl"), {
|
|
1430
|
+
"data-p-hidden-accessible": true,
|
|
1431
|
+
"data-p-hidden-focusable": true
|
|
1432
|
+
}), null, 16)], 16)) : createCommentVNode("", true)];
|
|
1219
1433
|
}),
|
|
1220
1434
|
_: 3
|
|
1221
1435
|
}, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
|
|
1222
1436
|
}),
|
|
1223
1437
|
_: 3
|
|
1224
|
-
}, 8, ["appendTo"])], 16,
|
|
1438
|
+
}, 8, ["appendTo"])], 16, _hoisted_1);
|
|
1225
1439
|
}
|
|
1226
|
-
|
|
1440
|
+
script.render = render;
|
|
1227
1441
|
export {
|
|
1228
|
-
|
|
1442
|
+
script as s
|
|
1229
1443
|
};
|