{"version":3,"file":"RowFormWrapper-ClJh9lm4.chunk.mjs","sources":["../src/shared/components/ncTable/partials/rowTypePartials/RowFormWrapper.vue"],"sourcesContent":["<!--\n  - SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n  - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<template>\n\t<div class=\"row space-T\">\n\t\t<div :class=\"{ 'fix-col-3': hasHeadSlot, 'fix-col-4': !hasHeadSlot }\">\n\t\t\t<div class=\"row\">\n\t\t\t\t<div class=\"title fix-col-4\">\n\t\t\t\t\t{{ title }}<span v-if=\"mandatory\" :title=\"t('tables', 'This field is mandatory')\">*</span>\n\t\t\t\t\t<NcLoadingIcon v-if=\"loading\" />\n\t\t\t\t</div>\n\t\t\t\t<p v-if=\"description\" class=\"fix-col-4 span\">\n\t\t\t\t\t<pre>{{ description }}</pre>\n\t\t\t\t</p>\n\t\t\t</div>\n\t\t</div>\n\t\t<div v-if=\"hasHeadSlot\" class=\"fix-col-1 end\">\n\t\t\t<slot name=\"head\" />\n\t\t</div>\n\t\t<div :class=\"[ `fix-col-${width}` ]\" class=\"slot\">\n\t\t\t<slot />\n\t\t</div>\n\t</div>\n</template>\n\n<script>\nimport { NcLoadingIcon } from '@nextcloud/vue'\nimport { translate as t } from '@nextcloud/l10n'\n\nexport default {\n\n\tcomponents: {\n\t\tNcLoadingIcon,\n\t},\n\n\tprops: {\n\t\tmandatory: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\ttitle: {\n\t\t\ttype: String,\n\t\t\tdefault: '',\n\t\t},\n\t\tlength: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\tmaxLength: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\tdescription: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\twidth: {\n\t\t\ttype: Number,\n\t\t\tdefault: 4,\n\t\t},\n\t\tloading: {\n\t\t      type: Boolean,\n\t\t      default: false,\n\t\t    },\n\t},\n\n\tcomputed: {\n\t\thasHeadSlot() {\n\t\t\treturn !!this.$slots.head?.[0]\n\t\t},\n\t},\n\tmethods: {\n\t\tt,\n\t},\n}\n</script>\n<style scoped lang=\"scss\">\n\n.title {\n\tfont-weight: bold;\n\tmargin-bottom: calc(var(--default-grid-baseline) * 1);\n}\n\n.slot {\n\talign-items: baseline;\n}\n\n.material-design-icon.loading-icon {\n\tmargin-inline-start: calc(var(--default-grid-baseline) * 1);\n}\n\npre {\n\twhite-space: pre-wrap;\n\twhite-space: -moz-pre-wrap;\n\twhite-space: -pre-wrap;\n\twhite-space: -o-pre-wrap;\n\tword-wrap: break-word;\n}\n\n</style>\n"],"names":["_sfc_main","NcLoadingIcon","t"],"mappings":";qNA8BA,MAAAA,EAAA,CAEA,WAAA,CACA,cAAAC,CACA,EAEA,MAAA,CACA,UAAA,CACA,KAAA,QACA,QAAA,EACA,EACA,MAAA,CACA,KAAA,OACA,QAAA,EACA,EACA,OAAA,CACA,KAAA,OACA,QAAA,IACA,EACA,UAAA,CACA,KAAA,OACA,QAAA,IACA,EACA,YAAA,CACA,KAAA,OACA,QAAA,IACA,EACA,MAAA,CACA,KAAA,OACA,QAAA,CACA,EACA,QAAA,CACA,KAAA,QACA,QAAA,EACA,CACA,EAEA,SAAA,CACA,aAAA,CACA,MAAA,CAAA,CAAA,KAAA,OAAA,OAAA,CAAA,CACA,CACA,EACA,QAAA,CACA,EAAAC,CACA,CACA"}