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

1 line
18 KiB
JavaScript
Raw Permalink Normal View History

2022-12-13 07:10:06 +01:00
"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__/* .crea