@total_onion/onion-library 2.0.24 → 2.0.26
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/block-block-interactions-v3/group_687e1575ba23d.json +9 -2
- package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.js +10 -5
- package/components/block-carousel-multi-layout-v3/carousel-multi-layout-v3.scss +1 -1
- package/components/block-carousel-multi-layout-v3/group_686bd42e551d6.json +2 -5
- package/components/block-post-info-v3/post-info-v3/post-link.twig +1 -1
- package/components/component-content-box-settings-v3/content-box-settings-v3.scss +4 -2
- package/package.json +1 -1
|
@@ -554,14 +554,21 @@
|
|
|
554
554
|
"class": "",
|
|
555
555
|
"id": ""
|
|
556
556
|
},
|
|
557
|
+
"hide_field": "",
|
|
558
|
+
"hide_label": "",
|
|
559
|
+
"hide_instructions": "",
|
|
560
|
+
"hide_required": "",
|
|
557
561
|
"wpml_cf_preferences": 3,
|
|
558
562
|
"clone": [
|
|
559
|
-
"
|
|
563
|
+
"group_689f66f3e26df"
|
|
560
564
|
],
|
|
561
565
|
"display": "seamless",
|
|
562
566
|
"layout": "block",
|
|
563
567
|
"prefix_label": 0,
|
|
564
568
|
"prefix_name": 0,
|
|
569
|
+
"acfe_settings": "",
|
|
570
|
+
"instruction_placement": "",
|
|
571
|
+
"acfe_permissions": "",
|
|
565
572
|
"acfe_seamless_style": 0,
|
|
566
573
|
"acfe_clone_modal": 0,
|
|
567
574
|
"acfe_clone_modal_close": 0,
|
|
@@ -682,5 +689,5 @@
|
|
|
682
689
|
"acfe_permissions": "",
|
|
683
690
|
"acfe_meta": "",
|
|
684
691
|
"acfe_note": "",
|
|
685
|
-
"modified":
|
|
692
|
+
"modified": 1759416263
|
|
686
693
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {getSwiperAssetsV2} from '@total_onion/onion-utils/onion-utils.mjs';
|
|
2
|
-
import {
|
|
2
|
+
import {Navigation, Pagination, Autoplay} from 'swiper/modules';
|
|
3
3
|
// import Swiper and modules styles
|
|
4
4
|
import 'swiper/css';
|
|
5
5
|
import 'swiper/css/navigation';
|
|
@@ -10,9 +10,7 @@ export default function carouselmultilayoutv3Js(options = {}) {
|
|
|
10
10
|
const {block} = options;
|
|
11
11
|
const totalSlides = block.querySelectorAll('.swiper-slide').length || 1;
|
|
12
12
|
Promise.all([getSwiperAssetsV2()]).then((values) => {
|
|
13
|
-
const {
|
|
14
|
-
Swiper
|
|
15
|
-
} = values[0][0];
|
|
13
|
+
const {Swiper} = values[0][0];
|
|
16
14
|
|
|
17
15
|
const dataAttributes = block.dataset;
|
|
18
16
|
const slidesDesktop = Number(dataAttributes.desktopslides);
|
|
@@ -115,8 +113,8 @@ export default function carouselmultilayoutv3Js(options = {}) {
|
|
|
115
113
|
modules: [
|
|
116
114
|
Navigation,
|
|
117
115
|
Pagination,
|
|
116
|
+
Autoplay
|
|
118
117
|
// Lazy,
|
|
119
|
-
// Autoplay,
|
|
120
118
|
// EffectFade,
|
|
121
119
|
// EffectCoverflow,
|
|
122
120
|
// EffectCreative,
|
|
@@ -203,6 +201,13 @@ export default function carouselmultilayoutv3Js(options = {}) {
|
|
|
203
201
|
}
|
|
204
202
|
}
|
|
205
203
|
);
|
|
204
|
+
if (false) {
|
|
205
|
+
import(
|
|
206
|
+
'Assets/js/blocks/carousel-multi-layout-v3/carousel-multi-layout-v3-extra.js'
|
|
207
|
+
).then((result) => {
|
|
208
|
+
result.default();
|
|
209
|
+
});
|
|
210
|
+
}
|
|
206
211
|
});
|
|
207
212
|
} catch (error) {
|
|
208
213
|
console.error(error);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
@use '../fields-core-functions-v3/core-functions-v3';
|
|
3
3
|
@use '../component-element-positioning-v3/element-positioning-v3';
|
|
4
4
|
@use '../../breakpoints';
|
|
5
|
-
|
|
5
|
+
@use 'NodeModules/swiper/swiper-bundle.min.css';
|
|
6
6
|
|
|
7
7
|
.carousel-multi-layout-v3 {
|
|
8
8
|
display: grid;
|
|
@@ -409,11 +409,8 @@
|
|
|
409
409
|
"id": ""
|
|
410
410
|
},
|
|
411
411
|
"wpml_cf_preferences": 3,
|
|
412
|
-
"user_roles": [
|
|
413
|
-
"administrator"
|
|
414
|
-
],
|
|
415
412
|
"clone": [
|
|
416
|
-
"
|
|
413
|
+
"group_689f66f3e26df"
|
|
417
414
|
],
|
|
418
415
|
"display": "seamless",
|
|
419
416
|
"layout": "block",
|
|
@@ -574,5 +571,5 @@
|
|
|
574
571
|
"acfe_display_title": "",
|
|
575
572
|
"acfe_meta": "",
|
|
576
573
|
"acfe_note": "",
|
|
577
|
-
"modified":
|
|
574
|
+
"modified": 1759787683
|
|
578
575
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% set gridLayoutElement = include('components/grid-layout-element.twig', { fields: field, block: block }, with_context = false) %}
|
|
1
|
+
{% set gridLayoutElement = include('components/grid-layout-element-v3.twig', { fields: field, block: block }, with_context = false) %}
|
|
2
2
|
{% set postColour = '--post-colour: ' ~ post.post_colour|ru ~ ';' %}
|
|
3
3
|
{% set postTextColourStyle = '--post-text-colour-style: ' ~ post.post_text_colour_style|ru ~ ';' %}
|
|
4
4
|
{% set ctaStyle = field.cta_style|ru %}
|
|
@@ -124,8 +124,7 @@
|
|
|
124
124
|
var(--content-box-left-padding-mult)
|
|
125
125
|
);
|
|
126
126
|
margin: calc(
|
|
127
|
-
var(--global-inline-spacing) *
|
|
128
|
-
var(--content-box-top-margin)
|
|
127
|
+
var(--global-inline-spacing) * var(--content-box-top-margin)
|
|
129
128
|
)
|
|
130
129
|
calc(
|
|
131
130
|
var(--global-inline-spacing) *
|
|
@@ -143,6 +142,9 @@
|
|
|
143
142
|
|
|
144
143
|
@include box-shadow-v3.boxShadow();
|
|
145
144
|
}
|
|
145
|
+
&__content-container {
|
|
146
|
+
width: 100%;
|
|
147
|
+
}
|
|
146
148
|
&__content-box {
|
|
147
149
|
max-width: var(--wysiwyg-max-width-mobile);
|
|
148
150
|
margin-inline: auto;
|