Your IP : 3.138.122.24


Current Path : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/section/dist/
Upload File :
Current File : /var/www/www-root/data/www/www.monolith-realty.ru/bitrix/js/ui/section/dist/section.bundle.js.map

{"version":3,"file":"section.bundle.js","sources":["../src/row.js","../src/section.js","../src/help-message.js","../src/separator-row.js"],"sourcesContent":["import { Tag, Dom, Text, Type } from 'main.core';\n\nexport class Row\n{\n\t#id: string;\n\t#node: HTMLElement;\n\t#content: HTMLElement;\n\t#separatorClass: string = '';\n\t#className: string;\n\t#isHidden: boolean\n\n\tconstructor(params)\n\t{\n\t\tthis.#id = Type.isNil(params.id) ? 'row_' + Text.getRandom(8) : params.id;\n\t\tthis.#content = params.content;\n\t\tthis.#separatorClass = params.separator === 'top' ? '--top-separator' : (params.separator === 'bottom' ? '--bottom-separator' : '');\n\t\tthis.#className = Type.isStringFilled(params.className) ? params.className : '';\n\t\tthis.#isHidden = params.isHidden === true;\n\t}\n\n\trender(): HTMLElement\n\t{\n\t\tif (this.#node)\n\t\t{\n\t\t\treturn this.#node;\n\t\t}\n\n\t\tthis.#node = Tag.render`\n\t\t<div class=\"ui-section__row ${this.#separatorClass} ${this.#className}\" ${this.#isHidden ? 'hidden' : ''}>\n\t\t\t\t${this.#content}\n\t\t\t</div>\n\t\t`;\n\n\t\treturn this.#node;\n\t}\n\n\tappend(content: HTMLElement)\n\t{\n\t\tDom.append(content, this.render());\n\t}\n\n\trenderTo(targetNode: HTMLElement): HTMLElement\n\t{\n\t\tif (!Type.isDomNode(targetNode))\n\t\t{\n\t\t\tthrow new Error('Target node must be HTMLElement');\n\t\t}\n\n\t\treturn Dom.append(this.render(), targetNode);\n\t}\n\n\thide()\n\t{\n\t\tDom.hide(this.render());\n\t}\n\n\tshow()\n\t{\n\t\tDom.show(this.render());\n\t}\n\n\tisHidden()\n\t{\n\t\treturn this.#isHidden;\n\t}\n\n\ttoggle()\n\t{\n\t\tDom.toggle(this.render());\n\t}\n}\n","import { Tag, Dom, Text, Type, Event } from 'main.core';\nimport { Row } from './row';\nimport type { SectionParams } from './types/sections';\n\nexport class Section\n{\n\ttitle: string;\n\tid: string;\n\tcontent: ?HTMLElement;\n\tisOpen: boolean;\n\tcanCollapse: boolean;\n\tclassName: {\n\t\ttitleIcon: String,\n\t\tarrowTop: String,\n\t\tarrowDown: String,\n\t\tarrowRight: String,\n\t\tbodyActive: String\n\t} = {\n\t\ttitleIcon: '',\n\t\tarrowTop: '--chevron-up',\n\t\tarrowDown: '--chevron-down',\n\t\tarrowRight: '--chevron-right',\n\t\tbodyActive: '--body-active ',\n\t};\n\trowsWrapper: ?HTMLElement;\n\tsectionWrapper: ?HTMLElement;\n\tisEnable: ?boolean;\n\tbannerCode: ?string;\n\tsingleLink: {\n\t\thref: String,\n\t\tisSidePanel: boolean,\n\t} = {\n\t\t\thref: '',\n\t\t\tisSidePanel: false,\n\t\t};\n\n\tconstructor(params: SectionParams)\n\t{\n\t\tthis.title = Type.isString(params.title) ? params.title : '';\n\n\t\tType.isStringFilled(params.titleIconClasses) ? (this.className.titleIcon = params.titleIconClasses) : '';\n\t\tType.isStringFilled(params.iconArrowDown) ? (this.className.arrowDown = params.iconArrowDown) : '';\n\t\tType.isStringFilled(params.iconArrowTop) ? (this.className.arrowTop = params.iconArrowTop) : '';\n\t\tType.isStringFilled(params.iconArrowRight) ? (this.className.arrowRight = params.iconArrowRight) : '';\n\n\t\tif (Type.isStringFilled(params.bodyActive))\n\t\t{\n\t\t\tthis.className.bodyActive += params.bodyActive;\n\t\t}\n\n\t\tthis.isOpen = Type.isBoolean(params.isOpen) ? params.isOpen : true;\n\t\tthis.isEnable = Type.isBoolean(params.isEnable) ? params.isEnable : true;\n\t\tthis.canCollapse = params.canCollapse !== false;\n\t\tthis.id = Type.isNil(params.id) ? 'section_' + Text.getRandom(8) : params.id;\n\t\tthis.bannerCode = Type.isStringFilled(params.bannerCode) ? params.bannerCode : null;\n\n\t\tif (params.singleLink)\n\t\t{\n\t\t\tType.isStringFilled(params.singleLink.href) ? (this.singleLink.href = params.singleLink.href) : '';\n\t\t\tType.isBoolean(params.singleLink.isSidePanel) ? (this.singleLink.isSidePanel = params.singleLink.isSidePanel) : '';\n\t\t}\n\t}\n\n\trender(): HTMLElement\n\t{\n\t\tif (this.content)\n\t\t{\n\t\t\treturn this.content;\n\t\t}\n\n\t\tthis.content = this.getContent();\n\t\tconst triggerElements = this.content.querySelectorAll('.ui-section__header');\n\t\tconst elementList = [...triggerElements];\n\n\t\tif (this.canCollapse && !this.singleLink.href)\n\t\t{\n\t\t\tfor (const element of elementList)\n\t\t\t{\n\t\t\t\tif (Type.isElementNode(element))\n\t\t\t\t{\n\t\t\t\t\telement.addEventListener('click', this.toggle.bind(this))\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (this.singleLink.href)\n\t\t{\n\t\t\tfor (const element of elementList)\n\t\t\t{\n\t\t\t\tif (Type.isElementNode(element))\n\t\t\t\t{\n\t\t\t\t\tEvent.bind(element, 'click', () => {\n\t\t\t\t\t\tif (this.singleLink.isSidePanel)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tBX.SidePanel.Instance.open(this.singleLink.href);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\twindow.open(this.singleLink.href, '_blank');\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn this.content;\n\t}\n\n\tgetId(): string\n\t{\n\t\treturn this.id;\n\t}\n\n\ttoggle(open: ?boolean, withAnimation: boolean = true): void\n\t{\n\t\tconst container = this.content;\n\t\tlet iconNode = this.render().querySelector('.ui-section__collapse-icon');\n\t\tthis.isOpen = (open === true || open === false) ? open : !this.isOpen;\n\n\t\tconst innerContainer = this.content.querySelector('.ui-section__section-body_inner');\n\n\t\tDom.removeClass(innerContainer, 'ui-section__section-toggle-animation');\n\t\tif (withAnimation !== false)\n\t\t{\n\t\t\tDom.addClass(innerContainer, 'ui-section__section-toggle-animation');\n\t\t}\n\n\t\tif (this.isOpen)\n\t\t{\n\t\t\tDom.removeClass(iconNode, this.className.arrowDown);\n\t\t\tDom.addClass(iconNode, this.className.arrowTop);\n\t\t\tDom.addClass(container, this.className.bodyActive);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tDom.addClass(iconNode, this.className.arrowDown);\n\t\t\tDom.removeClass(iconNode, this.className.arrowTop);\n\t\t\tDom.removeClass(container, this.className.bodyActive);\n\t\t}\n\t}\n\n\tgetContent(): HTMLElement\n\t{\n\t\tif (this.sectionWrapper)\n\t\t{\n\t\t\treturn this.sectionWrapper;\n\t\t}\n\n\t\tthis.sectionWrapper = Tag.render`\n\t\t\t<div id=\"${this.id}\" class=\"ui-section__wrapper ${this.isOpen ? this.className.bodyActive : ''} ${this.canCollapse || this.singleLink.href ? 'clickable' : ''}\">\n\t\t\t\t<div class=\"ui-section__header\">\n\t\t\t\t\t<span class=\"ui-section__title-icon ${this.className.titleIcon}\"></span>\n\t\t\t\t\t<span class=\"ui-section__title\">${this.title}</span>\n\t\t\t\t\t${this.isEnable ? '' : this.renderLockElement()}\n\t\t\t\t\t${this.singleLink.href ? this.#linkIconRender() : this.#collapseIconRender()}\n\t\t\t\t</div>\n\t\t\t\t<div class=\"ui-section__separator\"></div>\n\t\t\t\t<div class=\"ui-section__content ui-section__section-body_inner\">\n\t\t\t\t\t<div class=\"ui-section__section-section-body_container\">\n\t\t\t\t\t\t<div class=\"ui-section__row_box\"></div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`;\n\n\t\treturn this.sectionWrapper;\n\t}\n\n\t#linkIconRender(): HTMLElement\n\t{\n\t\treturn Tag.render`<span class=\"ui-section__collapse-icon clickable ui-icon-set ${this.className.arrowRight}\"></span>`;\n\t}\n\n\t#collapseIconRender(): HTMLElement\n\t{\n\t\tif (this.canCollapse)\n\t\t{\n\t\t\treturn Tag.render`<span class=\"ui-section__collapse-icon clickable ui-icon-set ${this.isOpen ? this.className.arrowTop : this.className.arrowDown}\"></span>`;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn Tag.render`<span class=\"ui-section__collapse-icon\"></span>`;\n\t\t}\n\t}\n\n\t#getRowsWrapper(): HTMLElement\n\t{\n\t\tif (this.rowsWrapper)\n\t\t{\n\t\t\treturn this.rowsWrapper;\n\t\t}\n\n\t\tthis.rowsWrapper = this.render().querySelector('.ui-section__row_box');\n\n\t\treturn this.rowsWrapper;\n\t}\n\n\taddRows(rows: Array<Row>): void\n\t{\n\t\trows.forEach((item) => {\n\t\t\tthis.append(item.render());\n\t\t});\n\t}\n\n\taddRow(row: Row): void\n\t{\n\t\tthis.append(row.render());\n\t}\n\n\tappend(content: HTMLElement): void\n\t{\n\t\tDom.append(content, this.#getRowsWrapper());\n\t}\n\n\tprepend(content: HTMLElement)\n\t{\n\t\tDom.prepend(content, this.#getRowsWrapper());\n\t}\n\n\trenderTo(targetNode: HTMLElement): HTMLElement\n\t{\n\t\tif (!Type.isDomNode(targetNode))\n\t\t{\n\t\t\tthrow new Error('Target node must be HTMLElement');\n\t\t}\n\n\t\treturn Dom.append(this.render(), targetNode);\n\t}\n\n\tgetBannerCode(): ?string\n\t{\n\t\treturn this.bannerCode;\n\t}\n\n\tshowBanner(): void\n\t{\n\t\tif (this.getBannerCode())\n\t\t{\n\t\t\tBX.UI.InfoHelper.show(this.getBannerCode());\n\t\t}\n\t}\n\n\trenderLockElement(): HTMLElement\n\t{\n\t\tconst lockElement = Tag.render`<span class=\"ui-section__title-icon ui-icon-set --lock field-has-lock\" onclick=\"event.stopPropagation()\"></span>`;\n\n\t\tEvent.bind(lockElement, 'click', () => {\n\t\t\tthis.showBanner();\n\t\t});\n\n\t\treturn lockElement;\n\t}\n}\n","import {Popup} from \"main.popup\";\n\nexport class HelpMessage\n{\n\t#popup: Popup\n\n\tconstructor(id: string, node: HTMLElement, message: HTMLElement)\n\t{\n\t\tthis.#popup = new Popup(id, node, {\n\t\t\tcontent: message,\n\t\t\tdarkMode: true,\n\t\t\tautoHide: true,\n\t\t\tangle: true,\n\t\t\toffsetLeft: 20,\n\t\t\tbindOptions: {\n\t\t\t\tposition: 'bottom',\n\t\t\t},\n\t\t\tcloseByEsc: true,\n\t\t});\n\t}\n\n\tgetPopup(): Popup\n\t{\n\t\treturn this.#popup;\n\t}\n\n\tshow(): void\n\t{\n\t\tthis.#popup.show();\n\t}\n}","import { Tag, Dom, Text, Type } from 'main.core';\n\nexport class SeparatorRow\n{\n\t#id: string;\n\t#isHidden: boolean;\n\t#node: HTMLElement;\n\n\tconstructor(params)\n\t{\n\t\tparams = Type.isNil(params) ? {} : params;\n\t\tthis.#isHidden = params.isHidden === true;\n\t\tthis.#id = Type.isNil(params.id) ? 'row_' + Text.getRandom(8) : params.id;\n\t}\n\n\trender(): HTMLElement\n\t{\n\t\tif (this.#node)\n\t\t{\n\t\t\treturn this.#node;\n\t\t}\n\n\t\tthis.#node = Tag.render`\n\t\t\t<div class=\"ui-section__separator-row\" ${this.#isHidden ? 'hidden' : ''}></div>\n\t\t`;\n\n\t\treturn this.#node;\n\t}\n\n\tappend(content: HTMLElement)\n\t{\n\t\tDom.append(content, this.render());\n\t}\n\n\trenderTo(targetNode: HTMLElement): HTMLElement\n\t{\n\t\tif (!Type.isDomNode(targetNode))\n\t\t{\n\t\t\tthrow new Error('Target node must be HTMLElement');\n\t\t}\n\n\t\treturn Dom.append(this.render(), targetNode);\n\t}\n\n\thide()\n\t{\n\t\tDom.hide(this.render());\n\t}\n\n\tshow()\n\t{\n\t\tDom.show(this.render());\n\t}\n\n\ttoggle()\n\t{\n\t\tDom.toggle(this.render());\n\t}\n}\n"],"names":["Row","params","Type","isNil","id","Text","getRandom","content","separator","isStringFilled","className","isHidden","Tag","render","Dom","append","targetNode","isDomNode","Error","hide","show","toggle","Section","titleIcon","arrowTop","arrowDown","arrowRight","bodyActive","href","isSidePanel","title","isString","titleIconClasses","iconArrowDown","iconArrowTop","iconArrowRight","isOpen","isBoolean","isEnable","canCollapse","bannerCode","singleLink","getContent","triggerElements","querySelectorAll","elementList","element","isElementNode","addEventListener","bind","Event","BX","SidePanel","Instance","open","window","withAnimation","container","iconNode","querySelector","innerContainer","removeClass","addClass","sectionWrapper","renderLockElement","rows","forEach","item","row","prepend","getBannerCode","UI","InfoHelper","lockElement","showBanner","rowsWrapper","HelpMessage","node","message","_classPrivateFieldInitSpec","Popup","darkMode","autoHide","angle","offsetLeft","bindOptions","position","closeByEsc","SeparatorRow"],"mappings":";;;;;;;;AAAA,CAAiD;CAAA;CAAA;CAAA;CAAA;CAAA;AAEjD,KAAaA,GAAG;GASf,aAAYC,MAAM,EAClB;KAAA;KAAA;OAAA;OAAA;;KAAA;OAAA;OAAA;;KAAA;OAAA;OAAA;;KAAA;OAAA;OAAA,OAL0B;;KAAE;OAAA;OAAA;;KAAA;OAAA;OAAA;;KAM3B,sCAAI,OAAOC,cAAI,CAACC,KAAK,CAACF,MAAM,CAACG,EAAE,CAAC,GAAG,MAAM,GAAGC,cAAI,CAACC,SAAS,CAAC,CAAC,CAAC,GAAGL,MAAM,CAACG,EAAE;KACzE,sCAAI,YAAYH,MAAM,CAACM,OAAO;KAC9B,sCAAI,mBAAmBN,MAAM,CAACO,SAAS,KAAK,KAAK,GAAG,iBAAiB,GAAIP,MAAM,CAACO,SAAS,KAAK,QAAQ,GAAG,oBAAoB,GAAG,EAAG;KACnI,sCAAI,cAAcN,cAAI,CAACO,cAAc,CAACR,MAAM,CAACS,SAAS,CAAC,GAAGT,MAAM,CAACS,SAAS,GAAG,EAAE;KAC/E,sCAAI,aAAaT,MAAM,CAACU,QAAQ,KAAK,IAAI;;GACzC;KAAA;KAAA,yBAGD;OACC,sCAAI,IAAI,UACR;SACC,yCAAO,IAAI;;OAGZ,sCAAI,SAASC,aAAG,CAACC,MAAM,0MACO,IAAI,sDAAoB,IAAI,eAAgB,sCAAI,eAAa,QAAQ,GAAG,EAAE,oCACpG,IAAI;OAIR,yC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