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