Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/ui/accessrights/v2/src/components/ |
Upload File : |
import { computed } from 'ui.vue3'; import { Column } from './section/column'; import { ColumnList } from './section/column-list'; import { Header } from './section/header'; import { TitleColumn } from './section/title-column'; import { SyncHorizontalScroll } from './util/sync-horizontal-scroll'; // @vue/component export const Section = { name: 'Section', components: { Column, SyncHorizontalScroll, TitleColumn, Header, ColumnList }, props: { userGroups: { type: Map, required: true, }, rights: { type: Map, required: true, }, code: { type: String, required: true, }, isExpanded: { type: Boolean, required: true, }, title: { type: String, required: true, }, subTitle: { type: String, }, hint: { type: String, }, icon: { /** @type AccessRightSectionIcon */ type: Object, }, action: { /** @type AccessRightSectionAction */ type: Object, }, }, provide(): Object { return { section: computed(() => { return { sectionCode: this.code, sectionTitle: this.title, sectionSubTitle: this.subTitle, sectionIcon: this.icon, sectionHint: this.hint, isExpanded: this.isExpanded, rights: this.rights, action: this.action, }; }), }; }, // data attributes are needed for e2e automated tests template: ` <div class="ui-access-rights-v2-section" :data-accessrights-section-code="code"> <Header/> <div v-if="isExpanded" class='ui-access-rights-v2-section-container'> <div class='ui-access-rights-v2-section-head'> <TitleColumn :rights="rights" /> </div> <ColumnList :rights="rights" :user-groups="userGroups"/> </div> </div> `, };