@saooti/octopus-sdk 32.0.0 → 32.0.1

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
@@ -640,3 +640,4 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
640
640
 
641
641
 
642
642
  * 32.0.0 Passage en 32
643
+ * 32.0.1 Navigation clavier
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "32.0.0",
3
+ "version": "32.0.1",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -8,6 +8,7 @@
8
8
  />
9
9
  <template v-else>
10
10
  <input
11
+ ref="focusElement"
11
12
  v-model="temporaryName"
12
13
  class="form-input"
13
14
  type="text"
@@ -135,7 +136,7 @@ import { Podcast } from '@/store/class/general/podcast';
135
136
  import { Conference } from '@/store/class/conference/conference';
136
137
  import CommentBasicView from './CommentBasicView.vue';
137
138
  import Constants from '../../../../public/config';
138
- import { defineComponent, defineAsyncComponent } from 'vue';
139
+ import { defineComponent, defineAsyncComponent, nextTick } from 'vue';
139
140
  const CommentInput = defineAsyncComponent(() => import('./CommentInput.vue'));
140
141
  const CommentParentInfo = defineAsyncComponent(() => import('./CommentParentInfo.vue'));
141
142
  const EditCommentBox = defineAsyncComponent(() => import('@/components/display/edit/EditCommentBox.vue'));
@@ -250,6 +251,9 @@ export default defineComponent({
250
251
  this.temporaryName = this.comment.name && null !== this.comment.name ? this.comment.name : '';
251
252
  this.temporaryContent = this.comment.content && null !== this.comment.content ? this.comment.content : '';
252
253
  this.isEditing = true;
254
+ this.$nextTick(() => {
255
+ (this.$refs.focusElement as HTMLElement)?.focus();
256
+ });
253
257
  },
254
258
  validEdit(): void {
255
259
  const comment = this.comment;
@@ -45,7 +45,7 @@ export default defineComponent({
45
45
  {name:'applePodcast', icon:'saooti-apple', url : this.getUrl('applePodcast')},
46
46
  {name:'deezer', icon:'saooti-deezer', url : this.getUrl('deezer')},
47
47
  {name:'googlePodcasts', icon:"saooti-google-podcasts", url : this.getUrl('googlePodcasts')},
48
- {name:'playerFm', icon: 'saooti-saooti-playerfm', url : this.getUrl('playerFm')},
48
+ {name:'playerFm', icon: 'saooti-playerfm', url : this.getUrl('playerFm')},
49
49
  {name:'pocketCasts', icon:'saooti-pocket-casts', url : this.getUrl('pocketCasts')},
50
50
  {name:'podcastAddict', icon: 'saooti-podcast-addict', url : this.getUrl('podcastAddict')},
51
51
  {name:'radioline', icon:'saooti-radioline', url : this.getUrl('radioline')},
@@ -8,6 +8,7 @@
8
8
  {{ $t('RSS Link') }}
9
9
  </div>
10
10
  <button
11
+ ref="focusElement"
11
12
  type="button"
12
13
  class="btn-close btn-close-white"
13
14
  title="Close"
@@ -53,6 +54,9 @@ export default defineComponent({
53
54
  emission: { default: undefined, type: Object as ()=> Emission},
54
55
  },
55
56
  emits: ['close', 'copy'],
57
+ mounted(){
58
+ (this.$refs.focusElement as HTMLElement)?.focus();
59
+ },
56
60
 
57
61
  methods: {
58
62
  closePopup(): void {
@@ -12,6 +12,7 @@
12
12
  </h5>
13
13
  <button
14
14
  v-if="closable"
15
+ :ref="closable?'focusElement':''"
15
16
  type="button"
16
17
  class="btn-close btn-close-white"
17
18
  title="Close"
@@ -32,6 +33,7 @@
32
33
  >
33
34
  <button
34
35
  v-if="canceltext"
36
+ :ref="!closable && canceltext?'focusElement':''"
35
37
  class="btn m-1"
36
38
  @click="onCancel"
37
39
  >
@@ -46,6 +48,7 @@
46
48
  </button>
47
49
  <button
48
50
  class="btn btn-primary m-1"
51
+ :ref="!closable && !canceltext?'focusElement':''"
49
52
  @click="onValid"
50
53
  >
51
54
  {{ validatetext }}
@@ -70,6 +73,9 @@ export default defineComponent({
70
73
  thirdText: { default: undefined, type: String},
71
74
  },
72
75
  emits: ['close', 'validate', 'cancel', 'thirdEvent'],
76
+ mounted(){
77
+ (this.$refs.focusElement as HTMLElement)?.focus();
78
+ },
73
79
  methods: {
74
80
  closePopup(): void {
75
81
  this.$emit('close');
@@ -11,6 +11,7 @@
11
11
  {{ $t('Share QR Code') }}
12
12
  </h5>
13
13
  <button
14
+ ref="focusElement"
14
15
  type="button"
15
16
  class="btn-close btn-close-white"
16
17
  title="Close"
@@ -45,6 +46,9 @@ export default defineComponent({
45
46
  urlPage: { default: undefined, type: String},
46
47
  },
47
48
  emits: ['close'],
49
+ mounted(){
50
+ (this.$refs.focusElement as HTMLElement)?.focus();
51
+ },
48
52
  methods:{
49
53
  closePopup(): void {
50
54
  this.$emit('close');
@@ -12,6 +12,7 @@
12
12
  {{ $t('Share the player') }}
13
13
  </h5>
14
14
  <button
15
+ ref="focusElement"
15
16
  type="button"
16
17
  class="btn-close btn-close-white"
17
18
  title="Close"
@@ -126,6 +127,9 @@ export default defineComponent({
126
127
  return [this.$t('Embed link'),this.$t('Embedly link')];
127
128
  }
128
129
  },
130
+ mounted(){
131
+ (this.$refs.focusElement as HTMLElement)?.focus();
132
+ },
129
133
  methods: {
130
134
  closePopup(event: { preventDefault: () => void }): void {
131
135
  event.preventDefault();
@@ -6,9 +6,9 @@
6
6
  to="/main/priv/edit/playlist"
7
7
  class="d-flex justify-content-center my-3"
8
8
  >
9
- <button class="btn btn-primary">
9
+ <div class="btn btn-primary">
10
10
  {{ $t('Create playlist') }}
11
- </button>
11
+ </div>
12
12
  </router-link>
13
13
  <ProductorSearch
14
14
  v-if="isProductorSearch"