@saooti/octopus-sdk 30.0.47 → 30.0.48

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/README.md CHANGED
@@ -543,4 +543,5 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
543
543
  * 30.0.44 ProgressBar pour le soir
544
544
  * 30.0.45 ProgressBar pour le soir
545
545
  * 30.0.46 Param pour le soir
546
- * 30.0.47 Live error
546
+ * 30.0.47 Live error
547
+ * 30.0.48 Podcastmaker ScrollOverflow PodcastInlineList
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.47",
3
+ "version": "30.0.48",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -79,7 +79,8 @@
79
79
  "no-console": "off",
80
80
  "no-debugger": "off",
81
81
  "@typescript-eslint/ban-ts-ignore": "off",
82
- "@typescript-eslint/ban-ts-comment": "off"
82
+ "@typescript-eslint/ban-ts-comment": "off",
83
+ "no-async-promise-executor":"off"
83
84
  },
84
85
  "parserOptions": {
85
86
  "parser": "@typescript-eslint/parser"
@@ -66,6 +66,25 @@
66
66
  }
67
67
  }
68
68
  }
69
+ .element-list-inline.overflowScroll {
70
+ display: flex;
71
+ flex-wrap: wrap;
72
+ -webkit-overflow-scrolling: touch;
73
+ scroll-behavior: smooth;
74
+ padding-bottom: 1rem;
75
+ width: 100%;
76
+ height: 80vh;
77
+ overflow-y: auto;
78
+ grid-gap: inherit;
79
+ @media (max-width: 960px) {
80
+ overflow-x: hidden;
81
+ flex-direction: column;
82
+ flex-wrap: nowrap;
83
+ }
84
+ .item-phone-margin {
85
+ margin: 1rem 0.5rem !important;
86
+ }
87
+ }
69
88
 
70
89
  .emission-list {
71
90
  align-self: stretch;
@@ -55,7 +55,6 @@
55
55
  />
56
56
  </transition-group>
57
57
  <router-link
58
- v-if="!overflowScroll"
59
58
  :to="href"
60
59
  class="btn btn-link align-self-center width-fit-content m-4"
61
60
  >
@@ -203,14 +202,14 @@ export default defineComponent({
203
202
  },
204
203
  handleResize(): void {
205
204
  if (!this.$el) return;
206
- if (window.innerWidth <= PHONE_WIDTH) {
207
- this.size = 10;
208
- return;
209
- }
210
205
  if (this.overflowScroll) {
211
206
  this.size = 20;
212
207
  return;
213
208
  }
209
+ if (window.innerWidth <= PHONE_WIDTH) {
210
+ this.size = 10;
211
+ return;
212
+ }
214
213
  const width = (this.$el as HTMLElement).offsetWidth;
215
214
  const sixteen = domHelper.convertRemToPixels(this.itemSize + 0.7);
216
215
  this.size = Math.floor(width / sixteen);
@@ -270,24 +269,5 @@ export default defineComponent({
270
269
  margin-bottom: 1rem;
271
270
  }
272
271
  }
273
- .element-list-inline.overflowScroll {
274
- display: flex;
275
- flex-wrap: wrap;
276
- -webkit-overflow-scrolling: touch;
277
- scroll-behavior: smooth;
278
- padding-bottom: 1rem;
279
- width: 100%;
280
- height: 80vh;
281
- overflow-y: auto;
282
- grid-gap: inherit;
283
- @media (max-width: 960px) {
284
- overflow-x: hidden;
285
- flex-direction: column;
286
- flex-wrap: nowrap;
287
- }
288
- .item-phone-margin {
289
- margin: 1rem 0.5rem !important;
290
- }
291
- }
292
272
  }
293
273
  </style>
@@ -22,7 +22,7 @@
22
22
  </button>
23
23
  </div>
24
24
  <div
25
- v-if="!isArrow"
25
+ v-if="!isArrow && !overflowScroll"
26
26
  class="hide-phone"
27
27
  >
28
28
  <button
@@ -51,7 +51,10 @@
51
51
  :name="transitionName"
52
52
  class="element-list-inline"
53
53
  tag="ul"
54
- :class="[alignLeft ? 'justify-content-start' : '']"
54
+ :class="[
55
+ alignLeft ? 'justify-content-start' : '',
56
+ overflowScroll ? 'overflowScroll' : '',
57
+ ]"
55
58
  >
56
59
  <PodcastItem
57
60
  v-for="p in podcasts"
@@ -131,6 +134,9 @@ export default defineComponent({
131
134
  sizeItem(): number {
132
135
  return state.generalParameters.podcastItem ? (state.generalParameters.podcastItem as number): 13;
133
136
  },
137
+ overflowScroll(): boolean {
138
+ return (state.emissionPage.overflowScroll as boolean);
139
+ },
134
140
  filterOrga(): string {
135
141
  return this.$store.state.filter.organisationId;
136
142
  },
@@ -249,6 +255,10 @@ export default defineComponent({
249
255
  },
250
256
  handleResize(): void {
251
257
  if (!this.$el) return;
258
+ if (this.overflowScroll) {
259
+ this.size = 20;
260
+ return;
261
+ }
252
262
  if (window.innerWidth <= PHONE_WIDTH) {
253
263
  this.size = 10;
254
264
  return;
@@ -55,7 +55,8 @@ const state:paramStore = {
55
55
  emissionPage: {
56
56
  ouestFranceStyle: false,
57
57
  rssButton: false,
58
- isDisplayPodcasts:true
58
+ isDisplayPodcasts:true,
59
+ overflowScroll:false
59
60
  },
60
61
  intervenantPage: {
61
62
  lightStyle: false,
@@ -143,7 +144,8 @@ export interface EmissionsPage{
143
144
  export interface EmissionPage{
144
145
  ouestFranceStyle?: boolean,
145
146
  rssButton?: boolean,
146
- isDisplayPodcasts?:boolean
147
+ isDisplayPodcasts?:boolean,
148
+ overflowScroll?: boolean,
147
149
  }
148
150
  export interface IntervenantPage{
149
151
  lightStyle?: boolean,