Your IP : 216.73.216.86


Current Path : /var/www/homesaver/www/bitrix/js/ui/vue3/components/rich-menu/dist/
Upload File :
Current File : /var/www/homesaver/www/bitrix/js/ui/vue3/components/rich-menu/dist/rich-menu.bundle.js.map

{"version":3,"file":"rich-menu.bundle.js","sources":["../src/rich-menu.js","../src/rich-menu-item.js","../src/rich-menu-popup.js"],"sourcesContent":["import './css/rich-menu.css';\n\n// @vue/component\nexport const RichMenu = {\n\tname: 'RichMenu',\n\ttemplate: `\n\t\t<div class=\"ui-rich-menu__container\">\n\t\t\t<slot name=\"header\"></slot>\n\t\t\t<slot></slot>\n\t\t\t<slot name=\"footer\"></slot>\n\t\t</div>\n\t`,\n};\n","import './css/rich-menu-item.css';\nimport { Hint } from 'ui.vue3.components.hint';\n\nexport const RichMenuItemIcon = Object.freeze({\n\tcheck: 'check',\n\tcopy: 'copy',\n\t'opened-eye': 'opened-eye',\n\tpencil: 'pencil',\n\t'red-lock': 'red-lock',\n\trole: 'role',\n\tsettings: 'settings',\n\t'trash-bin': 'trash-bin',\n});\n\n// @vue/component\nexport const RichMenuItem = {\n\tname: 'RichMenuItem',\n\tcomponents: { Hint },\n\tprops:\n\t\t{\n\t\t\ticon: {\n\t\t\t\ttype: String,\n\t\t\t\trequired: false,\n\t\t\t\tdefault: '',\n\t\t\t\tvalidator(value: string): boolean {\n\t\t\t\t\treturn value === '' || Object.keys(RichMenuItemIcon).includes(value);\n\t\t\t\t},\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\ttype: String,\n\t\t\t\trequired: true,\n\t\t\t},\n\t\t\tsubtitle: {\n\t\t\t\ttype: String,\n\t\t\t\trequired: false,\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\thint: {\n\t\t\t\ttype: String,\n\t\t\t\trequired: false,\n\t\t\t\tdefault: '',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\ttype: Boolean,\n\t\t\t\trequired: false,\n\t\t\t\tdefault: false,\n\t\t\t},\n\t\t\tcounter: {\n\t\t\t\ttype: Number,\n\t\t\t\trequired: false,\n\t\t\t\tdefault: 0,\n\t\t\t},\n\t\t},\n\tcomputed:\n\t\t{\n\t\t\tformattedCounter(): string\n\t\t\t{\n\t\t\t\tif (this.counter === 0)\n\t\t\t\t{\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\n\t\t\t\treturn this.counter > 99 ? '99+' : String(this.counter);\n\t\t\t},\n\t\t},\n\ttemplate: `\n\t\t<div class=\"ui-rich-menu-item__container\" :class=\"{'--disabled': disabled}\">\n\t\t\t<div class=\"ui-rich-menu-item__content\" :class=\"{'--with-icon': !!icon}\">\n\t\t\t\t<div v-if=\"icon\" class=\"ui-rich-menu-item__icon\" :class=\"'--' + icon\"></div>\n\t\t\t\t<div class=\"ui-rich-menu-item__text-content\" :class=\"{'--with-subtitle': !!subtitle}\">\n\t\t\t\t\t<div class=\"ui-rich-menu-item__title\">\n\t\t\t\t\t\t<div class=\"ui-rich-menu-item__title_text\">{{ title }}</div>\n\t\t\t\t\t\t<slot name=\"after-title\"></slot>\n\t\t\t\t\t\t<div v-if=\"counter\" class=\"ui-rich-menu-item__title_counter\">{{ formattedCounter }}</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div v-if=\"subtitle\" :title=\"subtitle\" class=\"ui-rich-menu-item__subtitle\">{{ subtitle }}</div>\n\t\t\t\t\t<slot name=\"below-content\"></slot>\n\t\t\t\t</div>\n\t\t\t\t<Hint v-if=\"hint\" :text=\"hint\"/>\n\t\t\t</div>\n\t\t</div>\n\t`,\n};\n","import { type PopupOptions } from 'main.popup';\nimport { Popup } from 'ui.vue3.components.popup';\nimport { RichMenu } from './rich-menu';\n\nconst defaultPopupOptions: PopupOptions = Object.freeze({\n\twidth: 275,\n\tpadding: 0,\n\tcloseIcon: false,\n\tautoHide: true,\n\tcloseByEsc: true,\n\tanimation: 'fading',\n\tcontentBorderRadius: '10px',\n});\n\nexport const RichMenuPopup = {\n\tname: 'RichMenuPopup',\n\temits: ['close'],\n\tcomponents: { Popup, RichMenu },\n\tprops: {\n\t\tpopupOptions: {\n\t\t\t/** @type PopupOptions */\n\t\t\ttype: Object,\n\t\t\tdefault: {},\n\t\t},\n\t},\n\tcomputed: {\n\t\tallOptions(): PopupOptions\n\t\t{\n\t\t\treturn {\n\t\t\t\t...defaultPopupOptions,\n\t\t\t\t...this.popupOptions,\n\t\t\t};\n\t\t},\n\t},\n\ttemplate: `\n\t\t<Popup @close=\"$emit('close')\" :options=\"allOptions\">\n\t\t\t<RichMenu v-bind=\"$attrs\">\n\t\t\t\t<template #header>\n\t\t\t\t\t<slot name=\"header\"></slot>\n\t\t\t\t</template>\n\t\t\t\t<slot></slot>\n\t\t\t\t<template #footer>\n\t\t\t\t\t<slot name=\"footer\"></slot>\n\t\t\t\t</template>\n\t\t\t</RichMenu>\n\t\t</Popup>\n\t`,\n};\n"],"names":["RichMenu","name","template","RichMenuItemIcon","Object","freeze","check","copy","pencil","role","settings","RichMenuItem","components","Hint","props","icon","type","String","required","default","validator","value","keys","includes","title","subtitle","hint","disabled","Boolean","counter","Number","computed","formattedCounter","defaultPopupOptions","width","padding","closeIcon","autoHide","closeByEsc","animation","contentBorderRadius","RichMenuPopup","emits","Popup","popupOptions","allOptions"],"mappings":";;;;;;;CAEA;AACA,OAAaA,QAAQ,GAAG;GACvBC,IAAI,EAAE,UAAU;GAChBC,QAAQ,EAAG;;;;;;;CAOZ,CAAC;;OCTYC,gBAAgB,GAAGC,MAAM,CAACC,MAAM,CAAC;GAC7CC,KAAK,EAAE,OAAO;GACdC,IAAI,EAAE,MAAM;GACZ,YAAY,EAAE,YAAY;GAC1BC,MAAM,EAAE,QAAQ;GAChB,UAAU,EAAE,UAAU;GACtBC,IAAI,EAAE,MAAM;GACZC,QAAQ,EAAE,UAAU;GACpB,WAAW,EAAE;CACd,CAAC,CAAC;;CAEF;AACA,OAAaC,YAAY,GAAG;GAC3BV,IAAI,EAAE,cAAc;GACpBW,UAAU,EAAE;WAAEC;IAAM;GACpBC,KAA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