@nextcloud/vue
Version:
Nextcloud vue components
1 lines • 755 B
Source Map (JSON)
{"version":3,"file":"createElementId-DhjFt1I9.mjs","sources":["../../src/utils/createElementId.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n// make sure the id is unique\nwindow._nc_vue_element_id = window._nc_vue_element_id ?? 0\n\n/**\n * Get the next element id for use with HTML / CSS\n *\n * We can not be sure that the app has a prefix setup,\n * so we can use `useId` from Vue - so we need to use our own implementation.\n */\nexport function createElementId(): string {\n\treturn `nc-vue-${window._nc_vue_element_id!++}`\n}\n"],"names":[],"mappings":"AAMA,OAAO,qBAAqB,OAAO,sBAAsB;AAQlD,SAAS,kBAA0B;AACzC,SAAO,UAAU,OAAO,oBAAqB;AAC9C;"}