TimeTrex/interface/html5/dist/dynamic-editview-primevue-dropdown.bundle.js

1 line
178 KiB
JavaScript
Raw Normal View History

2022-12-13 07:10:06 +01:00
"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["dynamic-editview-primevue-dropdown"],{6635:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval('__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6954);\n/* harmony import */ var primevue_overlayeventbus__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(590);\n/* harmony import */ var primevue_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6358);\n/* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4019);\n/* harmony import */ var primevue_virtualscroller__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(921);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(5166);\n\n\n\n\n\n\n\nvar script = {\n name: \'Dropdown\',\n emits: [\'update:modelValue\', \'before-show\', \'before-hide\', \'show\', \'hide\', \'change\', \'filter\', \'focus\', \'blur\'],\n props: {\n modelValue: null,\n options: Array,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n optionGroupLabel: null,\n optionGroupChildren: null,\n\t\tscrollHeight: {\n\t\t\ttype: String,\n\t\t\tdefault: \'200px\'\n\t\t},\n\t\tfilter: Boolean,\n filterPlaceholder: String,\n filterLocale: String,\n filterMatchMode: {\n type: String,\n default: \'contains\'\n },\n filterFields: {\n type: Array,\n default: null\n },\n\t\teditable: Boolean,\n\t\tplaceholder: String,\n\t\tdisabled: Boolean,\n dataKey: null,\n showClear: Boolean,\n inputId: String,\n tabindex: String,\n ariaLabelledBy: null,\n appendTo: {\n type: String,\n default: \'body\'\n },\n emptyFilterMessage: {\n type: String,\n default: null\n },\n emptyMessage: {\n type: String,\n default: null\n },\n panelClass: null,\n loading: {\n type: Boolean,\n default: false\n },\n loadingIcon: {\n type: String,\n default: \'pi pi-spinner pi-spin\'\n },\n virtualScrollerOptions: {\n type: Object,\n default: null\n }\n },\n data() {\n return {\n focused: false,\n filterValue: null,\n overlayVisible: false\n };\n },\n watch: {\n modelValue() {\n this.isModelValueChanged = true;\n }\n },\n outsideClickListener: null,\n scrollHandler: null,\n resizeListener: null,\n searchTimeout: null,\n currentSearchChar: null,\n previousSearchChar: null,\n searchValue: null,\n overlay: null,\n itemsWrapper: null,\n virtualScroller: null,\n isModelValueChanged: false,\n updated() {\n if (this.overlayVisible && this.isModelValueChanged) {\n this.scrollValueInView();\n }\n\n this.isModelValueChanged = false;\n },\n beforeUnmount() {\n this.unbindOutsideClickListener();\n this.unbindResizeListener();\n\n if (this.scrollHandler) {\n this.scrollHandler.destroy();\n this.scrollHandler = null;\n }\n\n this.itemsWrapper = null;\n\n if (this.overlay) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .ZIndexUtils.clear */ .P9.clear(this.overlay);\n this.overlay = null;\n }\n },\n methods: {\n getOptionIndex(index, fn) {\n return this.virtualScrollerDisabled ? index : (fn && fn(index)[\'index\']);\n },\n getOptionLabel(option) {\n return this.optionLabel ? primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .ObjectUtils.resolveFiel