@saooti/octopus-sdk 33.2.12 → 33.2.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "33.2.12",
3
+ "version": "33.2.14",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -11,6 +11,11 @@
11
11
  height: 2rem;
12
12
  padding-right: 40px;
13
13
  }
14
+ input[type="checkbox"] {
15
+ accent-color: $octopus-primary-color;
16
+ cursor: pointer;
17
+ margin-right: 5px;
18
+ }
14
19
  .form-input {
15
20
  appearance: none;
16
21
  background: #fff;
@@ -7,9 +7,9 @@
7
7
  <label for="rows-per-page-select">{{ $t('Items per page :') }}</label>
8
8
  <select
9
9
  id="rows-per-page-select"
10
- :model-value="rowsPerPage"
10
+ :value="rowsPerPage"
11
11
  class="c-hand p-1 mx-2"
12
- @update:modelValue="$emit('update:rowsPerPage',$event)"
12
+ @input="$emit('update:rowsPerPage',$event.target.value)"
13
13
  >
14
14
  <option
15
15
  v-for="option in optionsRowsPerPage"
@@ -38,21 +38,37 @@
38
38
  @click="play"
39
39
  >
40
40
  <div
41
- :title="!playingPodcast? $t('Play') : textVisible"
41
+ v-if="!isLiveToBeRecorded"
42
42
  class="icon-container"
43
- :class="{
44
- 'saooti-play text-primary': !playingPodcast,
45
- 'special-icon-play-button': !classicPodcastPlay,
46
- iconName:!classicPodcastPlay || isLiveToBeRecorded,
47
- 'bloc-paddle':playingPodcast,
48
- 'error-icon':isLiveToBeRecorded
49
- }"
50
43
  >
51
- <template v-if="playingPodcast">
44
+ <div
45
+ v-if="!playingPodcast"
46
+ :title="$t('Play')"
47
+ class="saooti-play text-primary"
48
+ />
49
+ <div
50
+ v-if="!classicPodcastPlay"
51
+ class="special-icon-play-button"
52
+ :class="iconName"
53
+ />
54
+ <div
55
+ v-if="playingPodcast"
56
+ class="bloc-paddle"
57
+ >
52
58
  <span class="paddle1" />
53
59
  <span class="paddle2" />
54
60
  <span class="paddle3" />
55
- </template>
61
+ </div>
62
+ </div>
63
+ <div
64
+ v-else
65
+ class="icon-container error-icon"
66
+ >
67
+ <div
68
+ :title="textVisible"
69
+ class="big-icon-error"
70
+ :class="iconName"
71
+ />
56
72
  </div>
57
73
  <div
58
74
  v-if="!classicPodcastPlay"
@@ -293,20 +309,6 @@ export default defineComponent({
293
309
  cursor: pointer;
294
310
  z-index: 3;
295
311
  }
296
- .special-icon-play-button {
297
- width: 30px;
298
- height: 30px;
299
- background-color: #ffd663;
300
- border-radius: 50%;
301
- position: absolute;
302
- right: 4.5rem;
303
- top: 6rem;
304
- font-size: 0.9rem;
305
- font-weight: bold;
306
- display: flex;
307
- align-items: center;
308
- justify-content: center;
309
- }
310
312
  .transparent-background {
311
313
  background-color: rgba(255, 255, 255, 0.5);
312
314
  }
@@ -344,12 +346,30 @@ export default defineComponent({
344
346
  &:hover {
345
347
  background: #00000030;
346
348
  }
347
- &.saooti-play {
349
+ .saooti-play {
348
350
  font-size: 2em;
349
351
  position: relative;
350
352
  right: -0.2rem;
351
353
  }
354
+ .big-icon-error {
355
+ font-size: 2em;
356
+ position: relative;
357
+ }
352
358
  }
353
359
  }
360
+ .special-icon-play-button {
361
+ width: 30px;
362
+ height: 30px;
363
+ background-color: #ffd663;
364
+ border-radius: 50%;
365
+ position: absolute;
366
+ right: 4.5rem;
367
+ top: 6rem;
368
+ font-size: 0.9rem;
369
+ font-weight: bold;
370
+ display: flex;
371
+ align-items: center;
372
+ justify-content: center;
373
+ }
354
374
  }
355
375
  </style>
@@ -5,12 +5,12 @@
5
5
  >
6
6
  <input
7
7
  :id="idCheckbox"
8
- :model-value="textInit"
8
+ :value="textInit"
9
9
  type="checkbox"
10
10
  :disabled="isDisabled"
11
11
  :title="displayLabel?'':label"
12
12
  :data-selenium="selenium"
13
- @update:modelValue="$emit('update:textInit',$event)"
13
+ @input="$emit('update:textInit',!textInit)"
14
14
  @click="emitClickAction"
15
15
  >
16
16
  <span
@@ -53,11 +53,6 @@ export default defineComponent({
53
53
  <style lang="scss">
54
54
  @import '@scss/_variables.scss';
55
55
  .octopus-app{
56
- input[type="checkbox"] {
57
- accent-color: $octopus-primary-color;
58
- cursor: pointer;
59
- margin-right: 5px;
60
- }
61
56
  .octopus-form-switch{
62
57
  position: relative;
63
58
  display: inline-block;
@@ -11,12 +11,12 @@
11
11
  >
12
12
  <input
13
13
  :id="idRadio + option.value"
14
- :model-value="textInit"
14
+ :checked="textInit===option.value"
15
15
  type="radio"
16
16
  :name="idRadio"
17
17
  :value="option.value"
18
18
  :disabled="isDisabled"
19
- @update:modelValue="$emit('update:textInit',$event)"
19
+ @input="$emit('update:textInit',$event.target.value)"
20
20
  >
21
21
  <label
22
22
  class="c-hand"
@@ -3,12 +3,12 @@
3
3
  <input
4
4
  :id="idSearch"
5
5
  ref="search"
6
- :model-value="textInit"
6
+ :value="textInit"
7
7
  type="text"
8
8
  class="search-input w-100 p-2 "
9
9
  :placeholder="label"
10
10
  :autofocus="autofocus"
11
- @update:modelValue="$emit('update:textInit',$event)"
11
+ @input="$emit('update:textInit',$event.target.value)"
12
12
  >
13
13
  <label
14
14
  :for="idSearch"
@@ -7,12 +7,12 @@
7
7
  >{{ label }}</label>
8
8
  <select
9
9
  :id="idSelect"
10
- :model-value="textInit"
10
+ :value="textInit"
11
11
  :disabled="isDisabled"
12
12
  class="c-hand w-100"
13
13
  :class="transparent?'transparent':''"
14
14
  :style="getFontFamily"
15
- @update:modelValue="$emit('update:textInit',$event)"
15
+ @input="$emit('update:textInit',$event.target.value)"
16
16
  >
17
17
  <option
18
18
  v-for="option in options"
@@ -14,8 +14,6 @@
14
14
  @click="onDisplayMenu(true)"
15
15
  >
16
16
  <img
17
- width="160"
18
- height="50"
19
17
  :src="!filterOrga || '' === imgUrl ? logoUrl : proxyImageUrl(imgUrl, '', '50')"
20
18
  :alt="!filterOrga || '' === imgUrl ? $t('Logo of main page') : $t('Visual', {name: $store.state.filter?.name})"
21
19
  :class="isEducation ? 'educationLogo' : ''"