TimeTrex/interface/html5/dist/dynamic-editview-primevue-button.bundle.js

1 line
18 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self.webpackChunktimetrex=self.webpackChunktimetrex||[]).push([["dynamic-editview-primevue-button"],{4325:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var primevue_ripple__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4019);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5166);\n\n\n\nvar script = {\n name: 'Button',\n props: {\n label: {\n type: String\n },\n icon: {\n type: String\n },\n iconPos: {\n type: String,\n default: 'left'\n },\n badge: {\n type: String\n },\n badgeClass: {\n type: String,\n default: null\n },\n loading: {\n type: Boolean,\n default: false\n },\n loadingIcon: {\n type: String,\n default: 'pi pi-spinner pi-spin'\n }\n },\n computed: {\n buttonClass() {\n return {\n 'p-button p-component': true,\n 'p-button-icon-only': this.icon && !this.label,\n 'p-button-vertical': (this.iconPos === 'top' || this.iconPos === 'bottom') && this.label,\n 'p-disabled': this.$attrs.disabled || this.loading,\n 'p-button-loading': this.loading,\n 'p-button-loading-label-only': this.loading && !this.icon && this.label\n }\n },\n iconClass() {\n return [\n this.loading ? 'p-button-loading-icon ' + this.loadingIcon : this.icon,\n 'p-button-icon',\n {\n 'p-button-icon-left': this.iconPos === 'left' && this.label,\n 'p-button-icon-right': this.iconPos === 'right' && this.label,\n 'p-button-icon-top': this.iconPos === 'top' && this.label,\n 'p-button-icon-bottom': this.iconPos === 'bottom' && this.label\n }\n ]\n },\n badgeStyleClass() {\n return [\n 'p-badge p-component', this.badgeClass, {\n 'p-badge-no-gutter': this.badge && String(this.badge).length === 1\n }]\n },\n disabled() {\n return this.$attrs.disabled || this.loading;\n }\n },\n directives: {\n 'ripple': primevue_ripple__WEBPACK_IMPORTED_MODULE_0__/* [\"default\"] */ .Z\n }\n};\n\nconst _hoisted_1 = { class: \"p-button-label\" };\n\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n const _directive_ripple = (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .resolveDirective */ .Q2)(\"ripple\");\n\n return (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .withDirectives */ .wy)(((0,vue__WEBPACK_IMPORTED_MODULE_1__/* .openBlock */ .wg)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createBlock */ .j4)(\"button\", {\n class: $options.buttonClass,\n type: \"button\",\n disabled: $options.disabled\n }, [\n (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .renderSlot */ .WI)(_ctx.$slots, \"default\", {}, () => [\n ($props.loading && !$props.icon)\n ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__/* .openBlock */ .wg)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createBlock */ .j4)(\"span\", {\n key: 0,\n class: $options.iconClass\n }, null, 2))\n : (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createCommentVNode */ .kq)(\"\", true),\n ($props.icon)\n ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__/* .openBlock */ .wg)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createBlock */ .j4)(\"span\", {\n key: 1,\n class: $options.iconClass\n }, null, 2))\n : (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createCommentVNode */ .kq)(\"\", true),\n (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createVNode */ .Wm)(\"span\", _hoisted_1, (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .toDisplayString */ .zw)($props.label||' '), 1),\n ($props.badge)\n ? ((0,vue__WEBPACK_IMPORTED_MODULE_1__/* .openBlock */ .wg)(), (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createBlock */ .j4)(\"span\", {\n key: 2,\n class: $options.badgeStyleClass\n }, (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .toDisplayString */ .zw)($props.badge), 3))\n : (0,vue__WEBPACK_IMPORTED_MODULE_1__/* .createCommentVNode */ .kq)(\"\", true)\n ])\n ], 10, [\"disabled\"])), [\n [_directive_ripple]\n ])\n}\n\nscript.render = render;\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (script);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDMyNS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7QUFBcUM7QUFDd0c7O0FBRTdJO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBLFNBQVM7QUFDVDtBQUNBO0FBQ0E7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBLFNBQVM7QUFDVDtBQUNBO0FBQ0E7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0EsU0FBUztBQUNUO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsU0FBUztBQUNUO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSxTQUFTO0FBQ1Q7QUFDQTtBQUNBO0FBQ0E7QUFDQSxhQUFhO0FBQ2IsU0FBUztBQUNUO0FBQ0E7QUFDQTtBQUNBLEtBQUs7QUFDTDtBQUNBLGtCQUFrQixnRUFBTTtBQUN4QjtBQUNBOztBQUVBLHFCQUFxQjs7QUFFckI7QUFDQSw0QkFBNEIsK0RBQWdCOztBQUU1QyxTQUF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gIHR5cGU6IFN0cmluZ1xuICAgICAgICB9LFxuICAgICAgICBpY29uUG9zOiB7XG4gICAgICAgICAgICB0eXBlOiBTdHJpbmcsXG4gICAgICAgICAgICBkZWZhdWx0OiAnbGVmdCdcbiAgICAgICAgfSxcbiAgICAgICAgYmFkZ2U6IHtcbiAgICAgICAgICAgIHR5cGU6IFN0cmluZ1xuICAgICAgICB9LFxuICAgICAgICBiYWRnZUNsYXNzOiB7XG4gICAgICAgICAgICB0eXBlOiBTdHJpbmcsXG4gICAgICAgICAgICBkZWZhdWx0OiBudWxsXG4gICAgICAgIH0sXG4gICAgICAgIGxvYWRpbmc6IHtcbiAgICAgICAgICAgIHR5cGU6IEJvb2xlYW4sXG4gICAgICAgICAgICBkZWZhdWx0OiBmYWxzZVxuICAgICAgICB9LFxuICAgICAgICBsb2FkaW5nSWNvbjoge1xuICAgICAgICAgICAgdHlwZTogU3RyaW5nLFxuICAgICAgICAgICAgZGVmYXVsdDogJ3BpIHBpLXNwaW5uZXIgcGktc3BpbidcbiAgICAgICAgfVxuICAgIH0sXG4gICAgY29tcHV0ZWQ6IHtcbiAgICAgICAgYnV0dG9uQ2xhc3MoKSB7XG4gICAgICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgICAgICdwLWJ1dHRvbiBwLWNvbXBvbmVudCc6IHRydWUsXG4gICAgICAgICAgICAgICAgJ3AtYnV0dG9uLWljb24tb25seSc6IHRoaXMuaWNvbiAmJiAhdGhpcy5sYWJlbCxcbiAgICAgICAgICAgICAgICAncC1idXR0b24tdmVydGljYWwnOiAodGhpcy5pY29uUG9zID09PSAndG9wJyB8fCB0aGlzLmljb25Qb3MgPT09ICdib3R0b20nKSAmJiB0aGlzLmxhYmVsLFxuICAgICAgICAgICAgICAgICdwLWRpc2FibGVkJzogdGhpcy4kYXR0cnMuZGlzYWJsZWQgfHwgdGhpcy5sb2FkaW5nLFxuICAgICAgICAgICAgICAgICdwLWJ1dHRvbi1sb2FkaW5nJzogdGhpcy5sb2FkaW5nLFxuICAgICAgICAgICAgICAgICdwLWJ1dHRvbi1sb2FkaW5nLWxhYmVsLW9ubHknOiB0aGlzLmxvYWRpbmcgJiYgIXRoaXMuaWNvbiAmJiB0aGlzLmxhYmVsXG4gICAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIGljb25DbGFzcygpIHtcbiAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgdGhpcy5sb2FkaW5nID8gJ3AtYnV0dG9uLWxvYWRpbmctaWNvbiAnICsgdGhpcy5sb2FkaW5nSWNvbiA6IHRoaXMuaWNvbixcbiAgICAgICAgICAgICAgICAncC1idXR0b24taWNvbicsXG4gICAgICAgICAgICAgICAge1xuICAgICAgICAgICAgICAgICAgICAncC1idXR0b24taWNvbi1sZWZ0JzogdGhpcy5pY29uUG9zID09PSAnbGVmdCcgJiYgdGhpcy5sYWJlbCxcbiAgICAgICAgICAgICAgICAgICAgJ3AtYnV0dG9uLWljb24tcmlnaHQnOiB0aGlzLmljb25Qb3MgPT09ICdyaWdodCcgJiYgdGhpcy5sYWJlbCxcbiAgICAgICAgICAgICAgICAgICAgJ3AtYnV0dG9uLWljb24tdG9wJzogdGhpcy5pY29uUG9zID09PSAndG9wJyAmJiB0aGlzLmxhYmVsLFxuICAgICAgICAgICAgICAgICAgICAncC1idXR0b24taWNvbi1ib3R0b20nOiB0aGlzLmljb25Qb3MgPT09ICdib3R0b20nICYmIHRoaXMubGFiZWxcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICBdXG4gICAgICAgIH0sXG4gICAgICAgIGJhZGdlU3R5bGVDbGFzcygpIHtcbiAgICAgICAgICAgIHJldHVybiBbXG4gICAgICAgICAgICAgICAgJ3AtYmFkZ2UgcC1jb21wb25lbnQnLCB0aGlzLmJhZGdlQ2xhc3MsIHtcbiAgICAgICAgICAgICAgICAncC1iYWRnZS1uby1ndXR0ZXInOiB0aGlzLmJhZGdlICYmIFN0cmluZyh0aGlzLmJhZGdlK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PyAob3BlbkJsb2NrKCksIGNyZWF0ZUJsb2NrKFwic3BhblwiLCB7XG4gICAgICAgICAgICBrZXk6IDEsXG4gICAgICAgICAgICBjbGFzczogJG9wdGlvbnMuaWNvbkNsYXNzXG4gICAgICAgICAgfSwgbnVsbCwgMikpXG4gICAgICAgIDogY3JlYXRlQ29tbWVudFZOb2RlKFwiXCIsIHRydWUpLFxuICAgICAgY3JlYXRlVk5vZGUoXCJzcGFuXCIsIF9ob2lzdGVkXzEsIHRvRGlzcGxheVN0cmluZygkcHJvcHMubGFiZWx8fCfCoCcpLCAxKSxcbiAgICAgICgkcHJvcHMuYmFkZ2UpXG4gICAgICAgID8gKG9wZW5CbG9jaygpLCBjcmVhdGVCbG9jayhcInNwYW5cIiwge1xuICAgICAgICAgICAga2V5OiAyLFxuICAgICAgICAgICAgY2xhc3M6ICRvcHRpb25zLmJhZGdlU3R5bGVDbGFzc1xuICAgICAgICAgIH0sIHRvRGlzcGxheVN0cmluZygkcHJvcHMuYmFkZ2UpLCAzKSlcbiAgICAgICAgOiBjcmVhdGVDb21tZW50Vk5vZGUoXCJcIiwgdHJ1ZSlcbiAgICBdKVxuICBdLCAxMCwgW1wiZGlzYWJsZWRcIl0pKSwgW1xuICAgIFtfZGlyZWN0aXZlX3JpcHBsZV1cbiAgXSlcbn1cblxuc2NyaXB0LnJlbmRlciA9IHJlbmRlcjtcblxuZXhwb3J0IGRlZmF1bHQgc2NyaXB0O1xuIl0sIm5hbWVzIjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///4325\n")},4019:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{eval("/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Z\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var primevue_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6954);\n\n\nfunction bindEvents(el) {\n el.addEventListener('mousedown', onMouseDown);\n}\n\nfunction unbindEvents(el) {\n el.removeEventListener('mousedown', onMouseDown);\n}\n\nfunction create(el) {\n let ink = document.createElement('span');\n ink.className = 'p-ink';\n el.appendChild(ink);\n\n ink.addEventListener('animationend', onAnimationEnd);\n}\n\nfunction remove(el) {\n let ink = getInk(el);\n if (ink) {\n unbindEvents(el);\n ink.removeEventListener('animationend', onAnimationEnd);\n ink.remove();\n }\n}\n\nfunction onMouseDown(event) {\n let target = event.currentTarget;\n let ink = getInk(target);\n if (!ink || getComputedStyle(ink, null).display === 'none') {\n return;\n }\n\n primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.removeClass */ .p7.removeClass(ink, 'p-ink-active');\n if (!primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getHeight */ .p7.getHeight(ink) && !primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getWidth */ .p7.getWidth(ink)) {\n let d = Math.max(primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getOuterWidth */ .p7.getOuterWidth(target), primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getOuterHeight */ .p7.getOuterHeight(target));\n ink.style.height = d + 'px';\n ink.style.width = d + 'px';\n }\n\n let offset = primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getOffset */ .p7.getOffset(target);\n let x = event.pageX - offset.left + document.body.scrollTop - primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getWidth */ .p7.getWidth(ink) / 2;\n let y = event.pageY - offset.top + document.body.scrollLeft - primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.getHeight */ .p7.getHeight(ink) / 2;\n\n ink.style.top = y + 'px';\n ink.style.left = x + 'px';\n primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.addClass */ .p7.addClass(ink, 'p-ink-active');\n}\n\nfunction onAnimationEnd(event) {\n primevue_utils__WEBPACK_IMPORTED_MODULE_0__/* .DomHandler.removeClass */ .p7.removeClass(event.currentTarget, 'p-ink-active');\n}\n\nfunction getInk(el) {\n for (let i = 0; i < el.children.length; i++) {\n if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {\n return el.children[i];\n }\n }\n return null;\n}\n\nconst Ripple = {\n mounted(el, binding) {\n if (binding.instance.$primevue && binding.instance.$primevue.config && binding.instance.$primevue.config.ripple) {\n create(el);\n bindEvents(el);\n }\n },\n unmounted(el) {\n remove(el);\n }\n};\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Ripple);\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNDAxOS5qcyIsIm1hcHBpbmdzIjoiOzs7O0FBQTRDOztBQUU1QztBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUEsSUFBSSx3RkFBc0I7QUFDMUIsU0FBUyxvRkFBb0IsVUFBVSxrRkFBbUI7QUFDMUQseUJBQXlCLDRGQUF3QixVQUFVLDhGQUF5QjtBQUNwRjtBQUNBO0FBQ0E7O0FBRUEsaUJBQWlCLG9GQUFvQjtBQUNyQyxrRUFBa0Usa0ZBQW1CO0FBQ3JGLGtFQUFrRSxvRkFBb0I7O0FBRXRGO0FBQ0E7QUFDQSxJQUFJLGtGQUFtQjtBQUN2Qjs7QUFFQTtBQUNBLElBQUksd0ZBQXNCO0FBQzFCOztBQUVBO0FBQ0Esb0JBQW9CLHdCQUF3QjtBQUM1QztBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7O0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsS0FBSztBQUNMO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