1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"version":3,"file":"vue-editor-rich.js?v=4e5cb68d95c32b9eca9f","sources":["webpack:///./apps/text/src/components/MenuBubble.vue","webpack:///./apps/text/src/components/MenuBubble.vue?d9c1","webpack:///./apps/text/src/components/MenuBubble.vue?91a6","webpack:///./apps/text/src/components/MenuBubble.vue?bf6e","webpack:///./apps/text/src/components/MenuBubble.vue?6c63","webpack:///./apps/text/src/components/MenuBubble.vue?df9c","webpack:///./apps/text/src/components/MenuBubble.vue?df8f","webpack:///./apps/text/src/components/MenuBubble.vue?d9c4"],"sourcesContent":["import { render, staticRenderFns } from \"./MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&\"\nimport script from \"./MenuBubble.vue?vue&type=script&lang=js&\"\nexport * from \"./MenuBubble.vue?vue&type=script&lang=js&\"\nimport style0 from \"./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"48157a56\",\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/user/nextcloud/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('48157a56')) {\n api.createRecord('48157a56', component.options)\n } else {\n api.reload('48157a56', component.options)\n }\n module.hot.accept(\"./MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&\", function () {\n api.rerender('48157a56', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"apps/text/src/components/MenuBubble.vue\"\nexport default component.exports","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=script&lang=js&\"","import mod from \"-!../../../../node_modules/vue-style-loader/index.js!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../node_modules/vue-style-loader/index.js!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&\"","export * from \"-!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&\"","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport { EditorMenuBubble } from 'tiptap';\nimport Tooltip from '@nextcloud/vue/dist/Directives/Tooltip';\nexport default {\n name: 'MenuBubble',\n components: {\n EditorMenuBubble: EditorMenuBubble\n },\n directives: {\n tooltip: Tooltip\n },\n props: {\n editor: {\n type: Object,\n required: false,\n default: null\n }\n },\n data: function data() {\n return {\n linkUrl: null,\n linkMenuIsActive: false\n };\n },\n methods: {\n showLinkMenu: function showLinkMenu(attrs) {\n var _this = this;\n\n this.linkUrl = attrs.href;\n this.linkMenuIsActive = true;\n this.$nextTick(function () {\n _this.$refs.linkInput.focus();\n });\n },\n hideLinkMenu: function hideLinkMenu() {\n this.linkUrl = null;\n this.linkMenuIsActive = false;\n },\n setLinkUrl: function setLinkUrl(command, url) {\n if (url && !url.match(/^[a-zA-Z]+:\\/\\//) && !url.match(/^\\//)) {\n url = 'https://' + url;\n }\n\n command({\n href: url\n });\n this.hideLinkMenu();\n }\n }\n};","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".menububble[data-v-48157a56] {\\n position: absolute;\\n display: flex;\\n z-index: 10020;\\n background: var(--color-main-background-translucent);\\n box-shadow: 0 1px 5px var(--color-box-shadow);\\n border-radius: var(--border-radius);\\n padding: 0;\\n margin-bottom: 0.4rem;\\n visibility: hidden;\\n opacity: 0;\\n transform: translateX(-50%);\\n transition: opacity 0.2s, visibility 0.2s;\\n}\\n.menububble.is-active[data-v-48157a56] {\\n opacity: 1;\\n visibility: visible;\\n}\\n.menububble__button[data-v-48157a56] {\\n display: block;\\n border: 0;\\n padding: 0.3rem 0.7rem;\\n margin: 0;\\n margin-right: 0.2rem;\\n border-radius: var(--border-radius);\\n cursor: pointer;\\n}\\n.menububble__button[data-v-48157a56]:last-child {\\n margin-right: 0;\\n}\\n.menububble__buttontext[data-v-48157a56] {\\n padding: 0.4rem;\\n padding-right: 0;\\n}\\n.menububble__form[data-v-48157a56] {\\n display: flex;\\n align-items: center;\\n}\\n.menububble__input[data-v-48157a56] {\\n font: inherit;\\n border: none;\\n background: transparent;\\n min-width: 150px;\\n}\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\"EditorMenuBubble\", {\n staticClass: \"menububble\",\n attrs: { editor: _vm.editor },\n on: { hide: _vm.hideLinkMenu },\n scopedSlots: _vm._u([\n {\n key: \"default\",\n fn: function(ref) {\n var commands = ref.commands\n var isActive = ref.isActive\n var getMarkAttrs = ref.getMarkAttrs\n var menu = ref.menu\n return [\n _c(\n \"div\",\n {\n staticClass: \"menububble\",\n class: { \"is-active\": menu.isActive },\n style:\n \"left: \" + menu.left + \"px; bottom: \" + menu.bottom + \"px;\"\n },\n [\n _vm.linkMenuIsActive\n ? _c(\n \"form\",\n {\n staticClass: \"menububble__form\",\n on: {\n submit: function($event) {\n $event.preventDefault()\n return _vm.setLinkUrl(commands.link, _vm.linkUrl)\n }\n }\n },\n [\n _c(\"input\", {\n directives: [\n {\n name: \"model\",\n rawName: \"v-model\",\n value: _vm.linkUrl,\n expression: \"linkUrl\"\n }\n ],\n ref: \"linkInput\",\n staticClass: \"menububble__input\",\n attrs: { type: \"text\", placeholder: \"https://\" },\n domProps: { value: _vm.linkUrl },\n on: {\n keydown: function($event) {\n if (\n !$event.type.indexOf(\"key\") &&\n _vm._k($event.keyCode, \"esc\", 27, $event.key, [\n \"Esc\",\n \"Escape\"\n ])\n ) {\n return null\n }\n return _vm.hideLinkMenu($event)\n },\n input: function($event) {\n if ($event.target.composing) {\n return\n }\n _vm.linkUrl = $event.target.value\n }\n }\n }),\n _vm._v(\" \"),\n _c(\"button\", {\n staticClass: \"menububble__button icon-confirm\",\n attrs: { type: \"button\" },\n on: {\n click: function($event) {\n return _vm.setLinkUrl(commands.link, _vm.linkUrl)\n }\n }\n })\n ]\n )\n : [\n _c(\n \"button\",\n {\n staticClass: \"menububble__button\",\n class: { \"is-active\": isActive.link() },\n on: {\n click: function($event) {\n _vm.showLinkMenu(getMarkAttrs(\"link\"))\n }\n }\n },\n [\n _c(\"span\", {\n directives: [\n {\n name: \"tooltip\",\n rawName: \"v-tooltip\",\n value: isActive.link()\n ? \"Update Link\"\n : \"Add Link\",\n expression:\n \"isActive.link() ? 'Update Link' : 'Add Link'\"\n }\n ],\n staticClass: \"icon-link\"\n }),\n _vm._v(\" \"),\n _c(\n \"span\",\n { staticClass: \"menububble__buttontext\" },\n [_vm._v(_vm._s(_vm.t(\"text\", \"Add link\")))]\n )\n ]\n )\n ]\n ],\n 2\n )\n ]\n }\n }\n ])\n })\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }","// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&\");\nif(typeof content === 'string') content = [[module.id, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = require(\"!../../../../node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"3f96e312\", content, false, {});\n// Hot Module Replacement\nif(module.hot) {\n // When the styles change, update the <style> tags\n if(!content.locals) {\n module.hot.accept(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&\", function() {\n var newContent = require(\"!!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&\");\n if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n update(newContent);\n });\n }\n // When the module is disposed, remove the <style> tags\n module.hot.dispose(function() { update(); });\n}"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAiBA;AACA;AACA;;;;;;;;;;;;ACvCA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;ACnGA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;ACNA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;ACpIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;A","sourceRoot":""} |