@nextcloud/vue
Version:
Nextcloud vue components
1 lines • 1.82 kB
Source Map (JSON)
{"version":3,"file":"clickOutsideOptions.mjs","sources":["../../src/mixins/clickOutsideOptions/index.js"],"sourcesContent":["/**\n * @copyright Copyright (c) 2020 Georg Ehrke <georg-nextcloud@ehrke.email>\n *\n * @author Georg Ehrke <georg-nextcloud@ehrke.email>\n *\n * @license AGPL-3.0-or-later\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */\n\nexport default {\n\tprops: {\n\t\t/**\n\t\t * A query-selector or an array of query-selectors\n\t\t * to be ignored when clicking outside an element\n\t\t */\n\t\texcludeClickOutsideSelectors: {\n\t\t\ttype: [String, Array],\n\t\t\tdefault: () => [],\n\t\t},\n\t},\n\tcomputed: {\n\t\tclickOutsideOptions() {\n\t\t\tconst excludedQuerySelectors = Array.isArray(this.excludeClickOutsideSelectors)\n\t\t\t\t? this.excludeClickOutsideSelectors\n\t\t\t\t: [this.excludeClickOutsideSelectors]\n\n\t\t\treturn { ignore: excludedQuerySelectors }\n\t\t},\n\t},\n}\n"],"names":["clickOutsideOptions"],"mappings":"AAsBA,MAAeA,IAAA,EACd,OAAO,EAKN,8BAA8B,EAC7B,MAAM,CAAC,QAAQ,KAAK,GACpB,SAAS,MAAM,CAAE,EACjB,EACD,GACD,UAAU,EACT,sBAAsB;AAKrB,SAAO,EAAE,QAJsB,MAAM,QAAQ,KAAK,4BAA4B,IAC3E,KAAK,+BACL,CAAC,KAAK,4BAA4B,EAEI;AACzC,EACD,EACF;"}