PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 1.2.31
Booking for Appointments and Events Calendar – Amelia v1.2.31
2.4.9 2.4.8 2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / assets / views / backend / customize / formSteps / SelectPackageForm.vue
ameliabooking / assets / views / backend / customize / formSteps Last commit date
CalendarDateTimeForm.vue 4 years ago CatalogListForm.vue 4 years ago CategoryListForm.vue 4 years ago CategoryPackageForm.vue 4 years ago CategoryServiceForm.vue 4 years ago ConfirmBookingForm.vue 3 years ago CongratulationsForm.vue 4 years ago EventDetailsForm.vue 4 years ago EventFilterForm.vue 5 years ago InfoEventCalendarForm.vue 4 years ago InviteEventCalendarForm.vue 4 years ago PackageInfoForm.vue 4 years ago PackageListForm.vue 4 years ago PackageSetupForm.vue 1 year ago RecurringDatesForm.vue 4 years ago RecurringSetupForm.vue 4 years ago SelectEventCalendarForm.vue 3 years ago SelectPackageForm.vue 4 years ago SelectServiceForm.vue 4 years ago
SelectPackageForm.vue
160 lines
1 <template>
2 <div
3 class="am-select-package"
4 :class="{'editable': editable}"
5 :style="{backgroundColor: customizationForm.formBackgroundColor}"
6 >
7 <div class="am-select-package__inner">
8 <customization-form-header
9 v-if="!customization.useGlobalColors[formName]"
10 :editable="editable"
11 :customization-form="customizationForm"
12 @resetForm="resetForm"
13 @saveFormEdit="saveFormEdit"
14 ></customization-form-header>
15
16 <package-heading-form-field
17 :language-short-code="languageShortCode"
18 :customization="customization"
19 :customization-edit="customizationEditDisplay"
20 :customization-form="customizationForm"
21 :form-field="formStepData.itemsStatic.packageHeadingFormField"
22 @saveEdit="saveFormEdit"
23 ></package-heading-form-field>
24
25 <!-- Booking Form -->
26 <el-form label-position="top">
27 <package-form-field
28 :language-short-code="languageShortCode"
29 :customization="customization"
30 :customization-edit="customizationEdit"
31 :customization-form="customizationForm"
32 :form-field="formStepData.itemsStatic.packageFormField"
33 @saveEdit="saveFormEdit"
34 ></package-form-field>
35 </el-form>
36
37 <!-- Confirm Dialog Footer -->
38 <div class="dialog-footer">
39 <div
40 class="el-button el-button--primary"
41 :style="{backgroundColor: customization.globalColors.primaryColor, borderColor: customization.globalColors.primaryColor, color: customization.globalColors.textColorOnBackground}"
42 @mouseenter="mouseEnterPrimary"
43 @mouseleave="mouseLeavePrimary"
44 >
45 <span>{{ $root.labels.confirm }}</span>
46 </div>
47 </div>
48 <!-- /Confirm Dialog Footer -->
49 </div>
50 </div>
51 </template>
52
53 <script>
54 import cssColorManipulationMixin from '../../../../js/common/mixins/cssColorManipulationMixin'
55 import packageFormField from '../formFields/PackageFormField'
56 import packageHeadingFormField from '../formFields/PackageHeadingFormField'
57 import formColorsEditDialog from '../dialogs/FormColorsEditDialog'
58 import customizationFormHeader from '../parts/CustomizationFormHeader'
59
60 export default {
61 name: 'selectPackageForm',
62
63 components: {
64 packageFormField,
65 packageHeadingFormField,
66 formColorsEditDialog,
67 customizationFormHeader
68 },
69
70 mixins: [cssColorManipulationMixin],
71
72 props: {
73 formName: {
74 type: String,
75 required: true
76 },
77 editable: {
78 type: Boolean,
79 default: true
80 },
81 languageShortCode: {
82 type: String,
83 default: ''
84 },
85 customization: {
86 type: Object,
87 default: () => {
88 return {}
89 }
90 },
91 customizationForm: {
92 type: Object,
93 default: () => {
94 return {}
95 }
96 },
97 formStepData: {
98 type: Object,
99 default: () => {
100 return {}
101 }
102 },
103 resetData: {
104 type: Object,
105 default: () => {
106 return {}
107 }
108 }
109 },
110
111 data () {
112 return {
113 resetFormData: this.resetData ? this.resetData[this.$options.name] : {},
114 customizationEdit: {
115 editable: this.editable,
116 reverseBackgroundColorForm: this.oppositeColor(this.customizationForm.formBackgroundColor)
117 }
118 }
119 },
120
121 created () {},
122
123 mounted () {},
124
125 computed: {
126 customizationEditDisplay () {
127 this.customizationEdit.editable = this.editable
128 this.customizationEdit.reverseBackgroundColorForm = this.oppositeColor(this.customizationForm.formBackgroundColor)
129 return this.customizationEdit
130 }
131 },
132
133 methods: {
134 resetForm () {
135 let resetObj = {}
136 resetObj.data = this.resetFormData
137 resetObj.formStep = this.$options.name
138 this.$emit('resetForm', resetObj)
139 },
140
141 mouseEnterPrimary (a) {
142 a.target.style.backgroundColor = this.colorTransparency(this.customization.globalColors.primaryColor, 0.75)
143 a.target.style.borderColor = this.colorTransparency(this.customization.globalColors.primaryColor, 0.75)
144 },
145
146 mouseLeavePrimary (a) {
147 a.target.style.backgroundColor = this.customization.globalColors.primaryColor
148 a.target.style.borderColor = this.customization.globalColors.primaryColor
149 },
150
151 saveFormEdit (dataObj) {
152 let formObj = {}
153 formObj[this.$options.name] = JSON.parse(JSON.stringify(dataObj))
154
155 this.$emit('saveEdit', formObj)
156 }
157 }
158 }
159 </script>
160