@lancom/shared 0.0.138 → 0.0.141
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/asides/contact_us/contact-us.vue +3 -3
- package/components/common/postcode_select/postcode-select.vue +4 -0
- package/components/common/products_list_dropdown/products-list-dropdown.vue +3 -1
- package/components/common/shops-multiselect.vue +4 -0
- package/components/editor/editor_layers/editor_layer_forms/editor_layer_form_text/font-family_select/font-family-select.vue +4 -0
- package/components/order/order_status/order-status.vue +4 -0
- package/components/pricing/pricing_screen_printing/pricing-screen-printing.vue +3 -1
- package/components/products/products_filters/products-filters.vue +4 -0
- package/components/quotes/quote_request/quote-request.vue +3 -1
- package/components/subscribe/subscribe.vue +3 -3
- package/nuxt.config.js +5 -5
- package/package.json +1 -1
- package/plugins/vue-multiselect.js +3 -3
|
@@ -77,11 +77,15 @@
|
|
|
77
77
|
|
|
78
78
|
<script>
|
|
79
79
|
import debounce from 'lodash.debounce';
|
|
80
|
+
import Multiselect from 'vue-multiselect';
|
|
80
81
|
import api from '@lancom/shared/assets/js/api';
|
|
81
82
|
import { highlight } from '@lancom/shared/assets/js/utils/filters';
|
|
82
83
|
|
|
83
84
|
export default {
|
|
84
85
|
name: 'PostcodeSelect',
|
|
86
|
+
components: {
|
|
87
|
+
Multiselect
|
|
88
|
+
},
|
|
85
89
|
filters: { highlight },
|
|
86
90
|
props: {
|
|
87
91
|
value: {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
|
|
29
29
|
<script>
|
|
30
30
|
import { mapGetters } from 'vuex';
|
|
31
|
+
import Multiselect from 'vue-multiselect';
|
|
31
32
|
import api from '@lancom/shared/assets/js/api';
|
|
32
33
|
import { generateProductLink } from '@lancom/shared/assets/js/utils/product';
|
|
33
34
|
import ProductsListDropdownOption from './products_list_dropdown_option/products-list-dropdown-option';
|
|
@@ -35,7 +36,8 @@ import ProductsListDropdownOption from './products_list_dropdown_option/products
|
|
|
35
36
|
export default {
|
|
36
37
|
name: 'ProductsListDropdown',
|
|
37
38
|
components: {
|
|
38
|
-
ProductsListDropdownOption
|
|
39
|
+
ProductsListDropdownOption,
|
|
40
|
+
Multiselect
|
|
39
41
|
},
|
|
40
42
|
data() {
|
|
41
43
|
return {
|
|
@@ -44,10 +44,14 @@
|
|
|
44
44
|
</template>
|
|
45
45
|
|
|
46
46
|
<script>
|
|
47
|
+
import Multiselect from 'vue-multiselect';
|
|
47
48
|
import { availableFonts, FONTS_LANGS, FONTS_LANGS_LIST, loadFont } from '@lancom/shared/assets/js/utils/fonts-helper';
|
|
48
49
|
|
|
49
50
|
export default {
|
|
50
51
|
name: 'FontFamilySelect',
|
|
52
|
+
components: {
|
|
53
|
+
Multiselect
|
|
54
|
+
},
|
|
51
55
|
filters: {
|
|
52
56
|
selectedFontLabel(option) {
|
|
53
57
|
const { lang } = availableFonts.find(font => option.value === font.alias) || {};
|
|
@@ -22,11 +22,15 @@
|
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
24
|
<script>
|
|
25
|
+
import Multiselect from 'vue-multiselect';
|
|
25
26
|
import api from '@lancom/shared/assets/js/api';
|
|
26
27
|
import { ORDER_STATUSES_LIST } from '@lancom/shared/assets/js/constants/order';
|
|
27
28
|
|
|
28
29
|
export default {
|
|
29
30
|
name: 'OrderStatus',
|
|
31
|
+
components: {
|
|
32
|
+
Multiselect
|
|
33
|
+
},
|
|
30
34
|
props: {
|
|
31
35
|
order: {
|
|
32
36
|
type: Object,
|
|
@@ -225,6 +225,7 @@
|
|
|
225
225
|
</template>
|
|
226
226
|
|
|
227
227
|
<script>
|
|
228
|
+
import Multiselect from 'vue-multiselect';
|
|
228
229
|
import { PRODUCT_TYPES, PRODUCT_TYPES_LIST } from '@lancom/shared/assets/js/constants/product';
|
|
229
230
|
import productsPrice from '@lancom/shared/mixins/products-price';
|
|
230
231
|
import Range from '@lancom/shared/components/common/range/range';
|
|
@@ -235,7 +236,8 @@ export default {
|
|
|
235
236
|
name: 'PricingScreenPrintSection',
|
|
236
237
|
components: {
|
|
237
238
|
Range,
|
|
238
|
-
PostcodeSelect
|
|
239
|
+
PostcodeSelect,
|
|
240
|
+
Multiselect
|
|
239
241
|
},
|
|
240
242
|
mixins: [
|
|
241
243
|
productsPrice
|
|
@@ -34,10 +34,14 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script>
|
|
37
|
+
import Multiselect from 'vue-multiselect';
|
|
37
38
|
import { generateProductsLink } from '@lancom/shared/assets/js/utils/product';
|
|
38
39
|
|
|
39
40
|
export default {
|
|
40
41
|
name: 'ProductsFilters',
|
|
42
|
+
components: {
|
|
43
|
+
Multiselect
|
|
44
|
+
},
|
|
41
45
|
data() {
|
|
42
46
|
const sortByOptions = [{
|
|
43
47
|
value: 'price-low-high',
|
|
@@ -296,6 +296,7 @@
|
|
|
296
296
|
</template>
|
|
297
297
|
|
|
298
298
|
<script>
|
|
299
|
+
import Multiselect from 'vue-multiselect';
|
|
299
300
|
import api from '@lancom/shared/assets/js/api';
|
|
300
301
|
import { mapGetters } from 'vuex';
|
|
301
302
|
import CheckedIcon from '@lancom/shared/components/common/checked-icon';
|
|
@@ -307,7 +308,8 @@ export default {
|
|
|
307
308
|
components: {
|
|
308
309
|
CheckedIcon,
|
|
309
310
|
FileUploader,
|
|
310
|
-
PostcodeSelect
|
|
311
|
+
PostcodeSelect,
|
|
312
|
+
Multiselect
|
|
311
313
|
},
|
|
312
314
|
data() {
|
|
313
315
|
return {
|
|
@@ -100,9 +100,9 @@ export default {
|
|
|
100
100
|
computed: {
|
|
101
101
|
...mapGetters(['shop'])
|
|
102
102
|
},
|
|
103
|
-
mounted() {
|
|
104
|
-
|
|
105
|
-
},
|
|
103
|
+
// mounted() {
|
|
104
|
+
// this.preloadReCaptcha();
|
|
105
|
+
// },
|
|
106
106
|
methods: {
|
|
107
107
|
async submit() {
|
|
108
108
|
const isValid = await this.$refs.form.validate();
|
package/nuxt.config.js
CHANGED
|
@@ -43,13 +43,13 @@ module.exports = (config, axios, { raygunClient } = {}) => ({
|
|
|
43
43
|
'@/node_modules/@lancom/shared/plugins/directives',
|
|
44
44
|
'@/node_modules/@lancom/shared/plugins/vue-js-modal',
|
|
45
45
|
'@/node_modules/@lancom/shared/plugins/vee-validate',
|
|
46
|
-
{ src: '@/node_modules/@lancom/shared/plugins/vue-toastr', ssr: false },
|
|
47
|
-
{ src: '@/node_modules/@lancom/shared/plugins/vue-hummer', ssr: false },
|
|
48
|
-
'@/node_modules/@lancom/shared/plugins/vue-multiselect',
|
|
49
|
-
'@/node_modules/@lancom/shared/plugins/vue-tooltip',
|
|
46
|
+
// { src: '@/node_modules/@lancom/shared/plugins/vue-toastr', ssr: false },
|
|
47
|
+
// { src: '@/node_modules/@lancom/shared/plugins/vue-hummer', ssr: false },
|
|
48
|
+
// '@/node_modules/@lancom/shared/plugins/vue-multiselect',
|
|
49
|
+
// '@/node_modules/@lancom/shared/plugins/vue-tooltip',
|
|
50
50
|
'@/node_modules/@lancom/shared/plugins/vue-click-outside',
|
|
51
51
|
{ src: '@/node_modules/@lancom/shared/plugins/error-handler', ssr: false },
|
|
52
|
-
{ src: '@/node_modules/@lancom/shared/plugins/aos', ssr: false },
|
|
52
|
+
// { src: '@/node_modules/@lancom/shared/plugins/aos', ssr: false },
|
|
53
53
|
'@/node_modules/@lancom/shared/plugins/aos-animation',
|
|
54
54
|
{ src: '@/node_modules/@lancom/shared/plugins/vue-recaptcha', ssr: false },
|
|
55
55
|
// { src: '@/node_modules/@lancom/shared/plugins/vue-tables-2', ssr: false }
|
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Vue from 'vue';
|
|
2
|
-
import Multiselect from 'vue-multiselect';
|
|
1
|
+
// import Vue from 'vue';
|
|
2
|
+
// import Multiselect from 'vue-multiselect';
|
|
3
3
|
|
|
4
|
-
Vue.component('multiselect', Multiselect);
|
|
4
|
+
// Vue.component('multiselect', Multiselect);
|