403Webshell
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/section/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /home/bitrix/ext_www/ilovecveti.ru/bitrix/js/ui/accessrights/v2/src/components/section/header.js
import { Hint } from '../util/hint';
import { Icon } from './icon';
import { EventEmitter } from 'main.core.events';
import '../../css/section/header.css';

export const Header = {
	name: 'Header',
	components: { Hint, Icon },
	inject: ['section'],
	methods: {
		toggleSection(): void {
			this.$store.dispatch('accessRights/toggleSection', { sectionCode: this.section.sectionCode });
		},
		onSectionEventButtonClick(): void {
			const eventData = {
				guid: this.$store.getters['application/guid'],
				section: this.section,
			};
			EventEmitter.emit('BX.UI.AccessRights.V2:onSectionHeaderClick', eventData);
		},
	},
	template: `
		<div
			@click="toggleSection"
			class='ui-access-rights-v2-section-header'
			:class="{
				'--expanded': section.isExpanded,
			}" 
			v-memo="[section.isExpanded]"
		>
			<div class="ui-access-rights-v2-section-header-expander">
				<div class='ui-icon-set' :class="{
					'--chevron-up': section.isExpanded,
					'--chevron-down': !section.isExpanded,
				}"
				></div>
			</div>
			<Icon/>
			<span 
				class="ui-access-rights-v2-text-ellipsis ui-access-rights-v2-section-title"
				:title="section.sectionTitle"
			>{{ section.sectionTitle }}</span>
			<span
				v-if="section.sectionSubTitle"
				class="ui-access-rights-v2-text-ellipsis ui-access-rights-v2-section-subtitle"
				:title="section.sectionSubTitle"
			>
				{{ section.sectionSubTitle }}
			</span>
			<Hint v-if="section.sectionHint" :html="section.sectionHint"/>
			<span 
				v-if="section.action"
				class="ui-btn ui-btn-light-border ui-btn-xs ui-access-rights-v2-section-action"
				@click.stop="onSectionEventButtonClick"
			>{{ section.action.buttonText }}</span>
		</div>
	`,
};

Youez - 2016 - github.com/yon3zu
LinuXploit