@total_onion/onion-library 2.0.216 → 2.0.217

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.
@@ -1,4 +1,4 @@
1
- {# {% set videoEnabled = fields.enable_video %}
1
+ {% set videoEnabled = fields.enable_video %}
2
2
  {% set renderDynamic = fields.child_pattern_settings.render_dynamic|default(0) %}
3
3
  {% set videoPlayingZindexClass = fields.video_playing_high_z_index ? 'video-playing--high-z-index' : '' %}
4
4
  {% if videoEnabled %}
@@ -87,4 +87,4 @@
87
87
  {% endif %}
88
88
  </div>
89
89
  </div>
90
- {% endif %} #}
90
+ {% endif %}
@@ -1,3 +1,2 @@
1
- <loadmore-trigger id="loadmore-trigger" data-posts="" class="loadmore-trigger">
2
- <button class="loadmore-trigger">Load More</button>
1
+ <loadmore-trigger id="loadmore-trigger" class="loadmore-trigger">
3
2
  </loadmore-trigger>
@@ -1,22 +1,29 @@
1
1
  export default function loadmoreTriggerJs(options = {}) {
2
2
  try {
3
- customElements.define(
4
- 'loadmore-trigger',
5
- class extends HTMLElement {
6
- // static observedAttributes = ['data-posts'];
7
- constructor() {
8
- super();
9
- }
10
- connectedCallback() {
11
- console.log('Display module added to page.');
12
- this.classList.add('loaded');
13
- }
3
+ if (!customElements.get('loadmore-trigger')) {
4
+ customElements.define(
5
+ 'loadmore-trigger',
6
+ class extends HTMLElement {
7
+ // static observedAttributes = ['data-posts'];
8
+ constructor() {
9
+ super();
10
+ this.enableLogs = this.dataset.enablelogs;
11
+ this.toggleButton = document.createElement('button');
12
+ this.toggleButton.className = 'loadmore-trigger';
13
+ this.appendChild(this.toggleButton);
14
+ this.toggleButton.innerText = this.dataset.toggletext;
15
+ }
16
+ connectedCallback() {
17
+ console.log('Display module added to page.');
18
+ this.classList.add('loaded');
19
+ }
14
20
 
15
- attributeChangedCallback(name, oldValue, newValue) {
16
- // console.log(`Attribute ${name} has changed.`);
21
+ attributeChangedCallback(name, oldValue, newValue) {
22
+ // console.log(`Attribute ${name} has changed.`);
23
+ }
17
24
  }
18
- }
19
- );
25
+ );
26
+ }
20
27
  } catch (error) {
21
28
  console.error(error);
22
29
  }
@@ -3,6 +3,7 @@ import kaiImage from './kai.webp';
3
3
  import kaiSelfie from './kai-selfie.webp';
4
4
  import kaiLounging from './kai-lounging.webp';
5
5
  import mrBusinessImage from './mr-business-doing-work.webp';
6
+ import mrBusinessOnTop from './mr-business-on-top.webp';
6
7
  import amberImage from './amber.webp';
7
8
  import blueyImage from './bluey.webp';
8
9
  import ramsesKittenImage from './ramses-kitten.webp';
@@ -15,6 +16,7 @@ import skySecurity from './sky-security.webp';
15
16
  import skyLuxury from './sky-luxury-2.webp';
16
17
  import fatGigioSleepy from './fat-gigio-sleepy.webp';
17
18
  import fatGigioKitten from './fat-gigio-kitten.webp';
19
+ import fatGigioBasket from './fat-gigio-basket-life.webp';
18
20
  import peteDinosaur from './pete-dinosaur.webp';
19
21
  import peteWork from './pete-at-work.webp';
20
22
  import vanillePartyDress from './vanille-party.webp';
@@ -23,7 +25,7 @@ import vanillePuppyFace from './vanille-puppy.webp';
23
25
  export const devContentPets = [
24
26
  {
25
27
  name: 'Ramses Big Yawn',
26
- link: '#',
28
+ link: 'https://totalonion.com',
27
29
  images: {
28
30
  post_image_src: ramsesImage
29
31
  },
@@ -31,7 +33,7 @@ export const devContentPets = [
31
33
  },
32
34
  {
33
35
  name: 'Kai sees a ghost',
34
- link: '#',
36
+ link: 'https://totalonion.com',
35
37
  images: {
36
38
  post_image_src: kaiImage
37
39
  },
@@ -40,7 +42,7 @@ export const devContentPets = [
40
42
  },
41
43
  {
42
44
  name: 'Mr Business doing Business',
43
- link: '#',
45
+ link: 'https://totalonion.com',
44
46
  images: {
45
47
  post_image_src: mrBusinessImage
46
48
  },
@@ -49,25 +51,16 @@ export const devContentPets = [
49
51
  },
50
52
  {
51
53
  name: 'Waking up Amber',
52
- link: '#',
54
+ link: 'https://totalonion.com',
53
55
  images: {
54
56
  post_image_src: amberImage
55
57
  },
56
58
 
57
59
  categories: [13, 5, 10]
58
60
  },
59
- {
60
- name: 'Bluey on the move',
61
- link: '#',
62
- images: {
63
- post_image_src: blueyImage
64
- },
65
-
66
- categories: [2, 13, 8]
67
- },
68
61
  {
69
62
  name: 'Kitten Ramses',
70
- link: '#',
63
+ link: 'https://totalonion.com',
71
64
  images: {
72
65
  post_image_src: ramsesKittenImage
73
66
  },
@@ -76,7 +69,7 @@ export const devContentPets = [
76
69
  },
77
70
  {
78
71
  name: 'Mad Face Lulu',
79
- link: '#',
72
+ link: 'https://totalonion.com',
80
73
  images: {
81
74
  post_image_src: luluMadImage
82
75
  },
@@ -85,7 +78,7 @@ export const devContentPets = [
85
78
  },
86
79
  {
87
80
  name: 'Pete having a Bath',
88
- link: '#',
81
+ link: 'https://totalonion.com',
89
82
  images: {
90
83
  post_image_src: peteBath
91
84
  },
@@ -94,7 +87,7 @@ export const devContentPets = [
94
87
  },
95
88
  {
96
89
  name: 'Sky living large',
97
- link: '#',
90
+ link: 'https://totalonion.com',
98
91
  images: {
99
92
  post_image_src: skyLivingLarge
100
93
  },
@@ -103,7 +96,7 @@ export const devContentPets = [
103
96
  },
104
97
  {
105
98
  name: 'Dinosaur Pete',
106
- link: '#',
99
+ link: 'https://totalonion.com',
107
100
  images: {
108
101
  post_image_src: peteDinosaur
109
102
  },
@@ -111,35 +104,44 @@ export const devContentPets = [
111
104
  categories: [13, 10, 4]
112
105
  },
113
106
  {
114
- name: 'Cutie Fat Gigio',
115
- link: '#',
107
+ name: 'Puppy eyes Vanille',
108
+ link: 'https://totalonion.com',
116
109
  images: {
117
- post_image_src: fatGigioSleepy
110
+ post_image_src: vanillePuppyFace
118
111
  },
119
112
 
120
- categories: [13, 10, 5]
113
+ categories: [14, 10, 5]
121
114
  },
122
115
  {
123
- name: 'Puppy eyes Vanille',
124
- link: '#',
116
+ name: 'Cutie Fat Gigio',
117
+ link: 'https://totalonion.com',
125
118
  images: {
126
- post_image_src: vanillePuppyFace
119
+ post_image_src: fatGigioSleepy
127
120
  },
128
121
 
129
- categories: [14, 10, 5]
122
+ categories: [13, 10, 5]
130
123
  },
131
124
  {
132
125
  name: 'Pete the Consultant',
133
- link: '#',
126
+ link: 'https://totalonion.com',
134
127
  images: {
135
128
  post_image_src: peteWork
136
129
  },
137
130
 
138
131
  categories: [12, 10, 4]
139
132
  },
133
+ {
134
+ name: 'Bluey on the move',
135
+ link: 'https://totalonion.com',
136
+ images: {
137
+ post_image_src: blueyImage
138
+ },
139
+
140
+ categories: [2, 13, 8]
141
+ },
140
142
  {
141
143
  name: 'Party Dress Vanille',
142
- link: '#',
144
+ link: 'https://totalonion.com',
143
145
  images: {
144
146
  post_image_src: vanillePartyDress
145
147
  },
@@ -148,7 +150,7 @@ export const devContentPets = [
148
150
  },
149
151
  {
150
152
  name: 'Fat Gigio Kitten',
151
- link: '#',
153
+ link: 'https://totalonion.com',
152
154
  images: {
153
155
  post_image_src: fatGigioKitten
154
156
  },
@@ -157,25 +159,16 @@ export const devContentPets = [
157
159
  },
158
160
  {
159
161
  name: 'Sky Security Corps',
160
- link: '#',
162
+ link: 'https://totalonion.com',
161
163
  images: {
162
164
  post_image_src: skySecurity
163
165
  },
164
166
 
165
167
  categories: [12, 10, 4]
166
168
  },
167
- {
168
- name: 'Sky Luxury',
169
- link: '#',
170
- images: {
171
- post_image_src: skyLuxury
172
- },
173
-
174
- categories: [12, 10, 4]
175
- },
176
169
  {
177
170
  name: 'Kai Selfie',
178
- link: '#',
171
+ link: 'https://totalonion.com',
179
172
  images: {
180
173
  post_image_src: kaiSelfie
181
174
  },
@@ -184,16 +177,25 @@ export const devContentPets = [
184
177
  },
185
178
  {
186
179
  name: 'Lulu gets serious',
187
- link: '#',
180
+ link: 'https://totalonion.com',
188
181
  images: {
189
182
  post_image_src: luluSerious
190
183
  },
191
184
 
192
185
  categories: [12, 10, 5]
193
186
  },
187
+ {
188
+ name: 'Sky Luxury',
189
+ link: 'https://totalonion.com',
190
+ images: {
191
+ post_image_src: skyLuxury
192
+ },
193
+
194
+ categories: [12, 10, 4]
195
+ },
194
196
  {
195
197
  name: 'Pete rules her lawn',
196
- link: '#',
198
+ link: 'https://totalonion.com',
197
199
  images: {
198
200
  post_image_src: peteLawn
199
201
  },
@@ -202,12 +204,30 @@ export const devContentPets = [
202
204
  },
203
205
  {
204
206
  name: 'Kai takes it easy',
205
- link: '#',
207
+ link: 'https://totalonion.com',
206
208
  images: {
207
209
  post_image_src: kaiLounging
208
210
  },
209
211
 
210
212
  categories: [13, 10, 4]
213
+ },
214
+ {
215
+ name: 'Fat Gigio Basket Life',
216
+ link: 'https://totalonion.com',
217
+ images: {
218
+ post_image_src: fatGigioBasket
219
+ },
220
+
221
+ categories: [13, 10, 5, 1]
222
+ },
223
+ {
224
+ name: 'Mr Business On Top',
225
+ link: 'https://totalonion.com',
226
+ images: {
227
+ post_image_src: mrBusinessOnTop
228
+ },
229
+
230
+ categories: [13, 10, 5, 1]
211
231
  }
212
232
  ];
213
233
 
@@ -215,7 +235,7 @@ export const devContentCategories = [
215
235
  {name: 'Mood', id: '6', parentid: '0'},
216
236
  {name: 'Happy', id: '1', parentid: '6'},
217
237
  {name: 'Frightened', id: '2', parentid: '6'},
218
- {name: 'Sleepy', id: '3', parentid: '6'},
238
+ {name: 'Thoughtful', id: '3', parentid: '6'},
219
239
  {name: 'Active', id: '4', parentid: '6'},
220
240
  {name: 'Chilled', id: '5', parentid: '6'},
221
241
  {name: 'Limbs', id: '7', parentid: '0'},
@@ -0,0 +1,258 @@
1
+ const ramsesImage = '../webc-post-filter-module/dev-content/ramses-tired.webp';
2
+ const kaiImage = '../webc-post-filter-module/dev-content/kai.webp';
3
+ const kaiSelfie = '../webc-post-filter-module/dev-content/kai-selfie.webp';
4
+ const kaiLounging = '../webc-post-filter-module/dev-content/kai-lounging.webp';
5
+ const mrBusinessImage =
6
+ '../webc-post-filter-module/dev-content/mr-business-doing-work.webp';
7
+ const mrBusinessOnTop =
8
+ '../webc-post-filter-module/dev-content/mr-business-on-top.webp';
9
+ const amberImage = '../webc-post-filter-module/dev-content/amber.webp';
10
+ const blueyImage = '../webc-post-filter-module/dev-content/bluey.webp';
11
+ const ramsesKittenImage =
12
+ '../webc-post-filter-module/dev-content/ramses-kitten.webp';
13
+ const luluMadImage = '../webc-post-filter-module/dev-content/lulu-mad.webp';
14
+ const luluSerious = '../webc-post-filter-module/dev-content/lulu-serious.webp';
15
+ const peteBath = '../webc-post-filter-module/dev-content/pete-bath.webp';
16
+ const peteLawn = '../webc-post-filter-module/dev-content/pete-lawn.webp';
17
+ const skyLivingLarge = '../webc-post-filter-module/dev-content/sky-field.webp';
18
+ const skySecurity = '../webc-post-filter-module/dev-content/sky-security.webp';
19
+ const skyLuxury = '../webc-post-filter-module/dev-content/sky-luxury-2.webp';
20
+ const fatGigioSleepy =
21
+ '../webc-post-filter-module/dev-content/fat-gigio-sleepy.webp';
22
+ const fatGigioKitten =
23
+ '../webc-post-filter-module/dev-content/fat-gigio-kitten.webp';
24
+ const fatGigioBasket =
25
+ '../webc-post-filter-module/dev-content/fat-gigio-basket-life.webp';
26
+ const peteDinosaur =
27
+ '../webc-post-filter-module/dev-content/pete-dinosaur.webp';
28
+ const peteWork = '../webc-post-filter-module/dev-content/pete-at-work.webp';
29
+ const vanillePartyDress =
30
+ '../webc-post-filter-module/dev-content/vanille-party.webp';
31
+ const vanillePuppyFace =
32
+ '../webc-post-filter-module/dev-content/vanille-puppy.webp';
33
+
34
+ export const devContentPets = [
35
+ {
36
+ name: 'Ramses Big Yawn',
37
+ link: 'https://totalonion.com',
38
+ images: {
39
+ post_image_src: ramsesImage
40
+ },
41
+ categories: [13, 3, 10]
42
+ },
43
+ {
44
+ name: 'Kai sees a ghost',
45
+ link: 'https://totalonion.com',
46
+ images: {
47
+ post_image_src: kaiImage
48
+ },
49
+
50
+ categories: [12, 2, 10]
51
+ },
52
+ {
53
+ name: 'Mr Business doing Business',
54
+ link: 'https://totalonion.com',
55
+ images: {
56
+ post_image_src: mrBusinessImage
57
+ },
58
+
59
+ categories: [13, 3, 9]
60
+ },
61
+ {
62
+ name: 'Waking up Amber',
63
+ link: 'https://totalonion.com',
64
+ images: {
65
+ post_image_src: amberImage
66
+ },
67
+
68
+ categories: [13, 5, 10]
69
+ },
70
+ {
71
+ name: 'Kitten Ramses',
72
+ link: 'https://totalonion.com',
73
+ images: {
74
+ post_image_src: ramsesKittenImage
75
+ },
76
+
77
+ categories: [12, 2, 10]
78
+ },
79
+ {
80
+ name: 'Mad Face Lulu',
81
+ link: 'https://totalonion.com',
82
+ images: {
83
+ post_image_src: luluMadImage
84
+ },
85
+
86
+ categories: [14, 10, 5]
87
+ },
88
+ {
89
+ name: 'Pete having a Bath',
90
+ link: 'https://totalonion.com',
91
+ images: {
92
+ post_image_src: peteBath
93
+ },
94
+
95
+ categories: [13, 10, 5]
96
+ },
97
+ {
98
+ name: 'Sky living large',
99
+ link: 'https://totalonion.com',
100
+ images: {
101
+ post_image_src: skyLivingLarge
102
+ },
103
+
104
+ categories: [13, 10, 4]
105
+ },
106
+ {
107
+ name: 'Dinosaur Pete',
108
+ link: 'https://totalonion.com',
109
+ images: {
110
+ post_image_src: peteDinosaur
111
+ },
112
+
113
+ categories: [13, 10, 4]
114
+ },
115
+ {
116
+ name: 'Puppy eyes Vanille',
117
+ link: 'https://totalonion.com',
118
+ images: {
119
+ post_image_src: vanillePuppyFace
120
+ },
121
+
122
+ categories: [14, 10, 5]
123
+ },
124
+ {
125
+ name: 'Cutie Fat Gigio',
126
+ link: 'https://totalonion.com',
127
+ images: {
128
+ post_image_src: fatGigioSleepy
129
+ },
130
+
131
+ categories: [13, 10, 5]
132
+ },
133
+ {
134
+ name: 'Pete the Consultant',
135
+ link: 'https://totalonion.com',
136
+ images: {
137
+ post_image_src: peteWork
138
+ },
139
+
140
+ categories: [12, 10, 4]
141
+ },
142
+ {
143
+ name: 'Bluey on the move',
144
+ link: 'https://totalonion.com',
145
+ images: {
146
+ post_image_src: blueyImage
147
+ },
148
+
149
+ categories: [2, 13, 8]
150
+ },
151
+ {
152
+ name: 'Party Dress Vanille',
153
+ link: 'https://totalonion.com',
154
+ images: {
155
+ post_image_src: vanillePartyDress
156
+ },
157
+
158
+ categories: [14, 10, 4]
159
+ },
160
+ {
161
+ name: 'Fat Gigio Kitten',
162
+ link: 'https://totalonion.com',
163
+ images: {
164
+ post_image_src: fatGigioKitten
165
+ },
166
+
167
+ categories: [12, 10, 5]
168
+ },
169
+ {
170
+ name: 'Sky Security Corps',
171
+ link: 'https://totalonion.com',
172
+ images: {
173
+ post_image_src: skySecurity
174
+ },
175
+
176
+ categories: [12, 10, 4]
177
+ },
178
+ {
179
+ name: 'Kai Selfie',
180
+ link: 'https://totalonion.com',
181
+ images: {
182
+ post_image_src: kaiSelfie
183
+ },
184
+
185
+ categories: [12, 10, 5]
186
+ },
187
+ {
188
+ name: 'Lulu gets serious',
189
+ link: 'https://totalonion.com',
190
+ images: {
191
+ post_image_src: luluSerious
192
+ },
193
+
194
+ categories: [12, 10, 5]
195
+ },
196
+ {
197
+ name: 'Sky Luxury',
198
+ link: 'https://totalonion.com',
199
+ images: {
200
+ post_image_src: skyLuxury
201
+ },
202
+
203
+ categories: [12, 10, 4]
204
+ },
205
+ {
206
+ name: 'Pete rules her lawn',
207
+ link: 'https://totalonion.com',
208
+ images: {
209
+ post_image_src: peteLawn
210
+ },
211
+
212
+ categories: [13, 10, 4]
213
+ },
214
+ {
215
+ name: 'Kai takes it easy',
216
+ link: 'https://totalonion.com',
217
+ images: {
218
+ post_image_src: kaiLounging
219
+ },
220
+
221
+ categories: [13, 10, 4]
222
+ },
223
+ {
224
+ name: 'Fat Gigio Basket Life',
225
+ link: 'https://totalonion.com',
226
+ images: {
227
+ post_image_src: fatGigioBasket
228
+ },
229
+
230
+ categories: [13, 10, 5, 1]
231
+ },
232
+ {
233
+ name: 'Mr Business On Top',
234
+ link: 'https://totalonion.com',
235
+ images: {
236
+ post_image_src: mrBusinessOnTop
237
+ },
238
+
239
+ categories: [13, 10, 5, 1]
240
+ }
241
+ ];
242
+
243
+ export const devContentCategories = [
244
+ {name: 'Mood', id: '6', parentid: '0'},
245
+ {name: 'Happy', id: '1', parentid: '6'},
246
+ {name: 'Frightened', id: '2', parentid: '6'},
247
+ {name: 'Thoughtful', id: '3', parentid: '6'},
248
+ {name: 'Active', id: '4', parentid: '6'},
249
+ {name: 'Chilled', id: '5', parentid: '6'},
250
+ {name: 'Limbs', id: '7', parentid: '0'},
251
+ {name: 'Two', id: '8', parentid: '7'},
252
+ {name: 'Three', id: '9', parentid: '7'},
253
+ {name: 'Four', id: '10', parentid: '7'},
254
+ {name: 'Age', id: '11', parentid: '0'},
255
+ {name: 'Baby', id: '12', parentid: '11'},
256
+ {name: 'Adult', id: '13', parentid: '11'},
257
+ {name: 'Vintage', id: '14', parentid: '11'}
258
+ ];
@@ -1,10 +1,38 @@
1
1
  post-filter-module {
2
+ position: fixed;
3
+ inset: 0;
4
+ background-color: black;
5
+ right: unset;
2
6
  display: block;
3
- background-color: aquamarine;
7
+ width: 100vw;
8
+ transform: translateX(-100%);
9
+ max-width: 414px;
10
+ z-index: 10;
11
+ transition: transform ease-in-out 0.3s;
12
+
13
+ @starting-style {
14
+ transform: translateX(-100%);
15
+ }
16
+
17
+ @media (min-width: 768px) {
18
+ max-width: unset;
19
+ width: 475px;
20
+ }
21
+
22
+ .post-filter-module__grouping-category-button {
23
+ }
24
+
4
25
  .post-filter-module__filter-category-button {
5
- border: 1px solid yellow;
26
+ appearance: none;
27
+ color: var(--theme-primary-text-colour, white);
28
+ border: 1px solid transparent;
29
+ background-color: var(--theme-primary-background-colour, black);
6
30
  }
7
31
  .post-filter-module__filter-category-button.active-cat {
8
- border: 1px solid red;
32
+ color: gold;
33
+ border: 1px solid gold;
9
34
  }
10
35
  }
36
+ post-filter-module.active {
37
+ transform: translateX(0%);
38
+ }
@@ -2,7 +2,7 @@
2
2
  id="filter-module"
3
3
  data-dataobjectid=""
4
4
  data-dev="true"
5
- data-devcontent="Pets"
5
+ data-devdatalocation="local"
6
6
  class="post-filter-module__filter"
7
7
  >
8
8
  </post-filter-module>