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/rospirotorg.ru/bitrix/js/ui/short-view/dist/ |
Upload File : |
/* eslint-disable */ this.BX = this.BX || {}; this.BX.UI = this.BX.UI || {}; (function (exports,main_core,main_core_events,ui_buttons,ui_switcher) { 'use strict'; class ShortView extends main_core_events.EventEmitter { constructor(params) { super(params); this.setEventNamespace('BX.UI.ShortView'); this.setShortView(params.isShortView); this.node = null; } renderTo(container) { if (!main_core.Type.isDomNode(container)) { throw new Error('UI ShortView: HTMLElement not found'); } main_core.Dom.append(this.render(), container); } render() { const checked = this.getShortView() === 'Y'; this.node = new ui_buttons.SplitButton({ text: main_core.Loc.getMessage('UI_SHORT_VIEW_LABEL'), round: true, size: ui_buttons.ButtonSize.SMALL, color: ui_buttons.ButtonColor.LIGHT_BORDER, className: 'ui-btn-themes', mainButton: { onclick: (button, event) => { event.preventDefault(); this.node.getSwitcher().toggle(); } }, switcher: { checked, color: ui_switcher.SwitcherColor.primary, handlers: { toggled: () => this.onChange() } } }); return this.node.render(); } setShortView(value) { this.shortView = value === 'Y' ? 'Y' : 'N'; } getShortView() { return this.shortView; } onChange() { this.setShortView(this.node.getSwitcher().isChecked() ? 'Y' : 'N'); this.emit('change', this.getShortView()); } } exports.ShortView = ShortView; }((this.BX.UI.ShortView = this.BX.UI.ShortView || {}),BX,BX.Event,BX.UI,BX.UI)); //# sourceMappingURL=short.view.bundle.js.map