@saooti/octopus-sdk 41.0.9-SNAPSHOT → 41.0.10-SNAPSHOT

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": "41.0.9-SNAPSHOT",
3
+ "version": "41.0.10-SNAPSHOT",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -54,7 +54,7 @@ import PaginateParams from "./PaginateParams.vue";
54
54
  import PaginateSection from "./PaginateSection.vue";
55
55
  import {useResizePhone} from "../../composable/useResizePhone";
56
56
  import { useRouteUpdateParams } from "../../composable/route/useRouteUpdateParams";
57
- import { computed, ref, watch } from "vue";
57
+ import { computed, watch } from "vue";
58
58
  import { usePlayerStore } from "../../../stores/PlayerStore";
59
59
  import { useI18n } from "vue-i18n";
60
60
 
@@ -78,8 +78,6 @@ const props = defineProps({
78
78
  //Emits
79
79
  const emit = defineEmits(["update:first", "update:rowsPerPage", "update:isMobile"]);
80
80
 
81
- //Data
82
- const internSizeChange = ref(false);
83
81
 
84
82
  //Composables
85
83
  const { t } = useI18n();
@@ -100,13 +98,6 @@ const rangeSize = computed(() => {
100
98
 
101
99
  //Watch
102
100
  watch(isPhone, () => {emit("update:isMobile", isPhone.value);}, {immediate: true});
103
- watch(()=>props.first, () => {
104
- if (internSizeChange.value) {
105
- internSizeChange.value = false;
106
- return;
107
- }
108
- updateRouteParam({pr:(Math.floor(props.first / props.rowsPerPage) + 1).toString()}, props.forceUpdateParameters);
109
- });
110
101
 
111
102
  //Methods
112
103
  function fetchMore() {
@@ -115,12 +106,10 @@ function fetchMore() {
115
106
  function changeFirst(firstValue: number) {
116
107
  scrollToTop();
117
108
  emit("update:first", firstValue);
109
+ updateRouteParam({pr:(Math.floor(firstValue/ props.rowsPerPage) + 1).toString()}, props.forceUpdateParameters);
118
110
  }
119
111
  function changeSize(sizeValue: number) {
120
112
  scrollToTop();
121
- if (0 !== props.first) {
122
- internSizeChange.value = true;
123
- }
124
113
  emit("update:rowsPerPage", sizeValue);
125
114
  updatePaginateSize(sizeValue, props.forceUpdateParameters);
126
115
  }
@@ -29,7 +29,7 @@
29
29
  : undefined
30
30
  "
31
31
  :player-responsive="true"
32
- :forceUpdateParameters="true"
32
+ :force-update-parameters="true"
33
33
  >
34
34
  <template #list>
35
35
  <div class="octopus-element-list">
@@ -30,7 +30,7 @@
30
30
  :include-hidden="editRight"
31
31
  :show-count="showCount"
32
32
  :display-sort-text="false"
33
- :forceUpdateParameters="forceUpdateParameters"
33
+ :force-update-parameters="forceUpdateParameters"
34
34
  @fetch="fetch"
35
35
  />
36
36
  </section>
@@ -19,7 +19,7 @@
19
19
  "
20
20
  :just-size-chosen="justSizeChosen"
21
21
  :player-responsive="true"
22
- :forceUpdateParameters="forceUpdateParameters"
22
+ :force-update-parameters="forceUpdateParameters"
23
23
  >
24
24
  <template #list>
25
25
  <div class="octopus-element-list">
@@ -71,16 +71,16 @@
71
71
  />
72
72
  <PodcastFilterList
73
73
  v-if="isInit"
74
+ v-model:query="searchPattern"
74
75
  class="mx-2"
75
76
  :first="paginateFirst"
76
77
  :size="ps"
77
- v-model:query="searchPattern"
78
78
  :show-count="true"
79
79
  :emission-id="emissionId"
80
80
  :category-filter="false"
81
81
  :edit-right="editRight"
82
82
  :productor-id="[emission.orga.id]"
83
- :forceUpdateParameters="true"
83
+ :force-update-parameters="true"
84
84
  @fetch="podcastsFetched"
85
85
  />
86
86
  </section>
@@ -48,16 +48,16 @@
48
48
  <!-- productorId define to avoid overwrite #12817 -->
49
49
  <PodcastFilterList
50
50
  v-if="isInit"
51
+ v-model:query="searchPattern"
51
52
  :first="paginateFirst"
52
53
  :size="ps"
53
- v-model:query="searchPattern"
54
54
  :participant-id="participantId"
55
55
  :name="name"
56
56
  :category-filter="true"
57
57
  :productor-id="['']"
58
58
  :reload="reload"
59
59
  :show-count="true"
60
- :forceUpdateParameters="true"
60
+ :force-update-parameters="true"
61
61
  />
62
62
  </template>
63
63
  <ClassicLoading
@@ -43,9 +43,9 @@
43
43
  <section class="module-box">
44
44
  <PodcastList
45
45
  v-if="isInit"
46
+ v-model:query="searchPattern"
46
47
  :first="paginateFirst"
47
48
  :size="ps"
48
- v-model:query="searchPattern"
49
49
  :playlist="playlist"
50
50
  />
51
51
  </section>