@saooti/octopus-sdk 33.1.3 → 33.2.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 +1 -0
- package/index.ts +5 -0
- package/package.json +1 -3
- package/src/App.vue +1 -1
- package/src/assets/_utilities.scss +532 -0
- package/src/assets/bootstrap.scss +231 -0
- package/src/assets/form.scss +3 -46
- package/src/assets/general.scss +10 -58
- package/src/assets/multiselect.scss +8 -3
- package/src/assets/octopus-library.scss +2 -4
- package/src/components/display/categories/CategoryChooser.vue +2 -2
- package/src/components/display/categories/CategoryFilter.vue +60 -46
- package/src/components/display/categories/CategoryList.vue +22 -19
- package/src/components/display/comments/AddCommentModal.vue +60 -67
- package/src/components/display/comments/CommentBasicView.vue +3 -4
- package/src/components/display/comments/CommentInput.vue +4 -4
- package/src/components/display/comments/CommentItem.vue +2 -2
- package/src/components/display/comments/CommentPlayer.vue +2 -2
- package/src/components/display/emission/EmissionChooser.vue +1 -1
- package/src/components/display/emission/EmissionItem.vue +2 -1
- package/src/components/display/emission/EmissionPlayerItem.vue +0 -11
- package/src/components/display/filter/AdvancedSearch.vue +2 -2
- package/src/components/display/filter/MonetizableFilter.vue +1 -1
- package/src/components/display/filter/RubriqueChoice.vue +1 -1
- package/src/components/display/organisation/OrganisationChooser.vue +1 -1
- package/src/components/display/participant/ParticipantItem.vue +2 -1
- package/src/components/display/playlist/PlaylistItem.vue +3 -2
- package/src/components/display/podcasts/ParticipantDescription.vue +2 -1
- package/src/components/display/podcasts/PodcastImage.vue +3 -3
- package/src/components/display/podcasts/PodcastInlineList.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineListClassic.vue +1 -1
- package/src/components/display/podcasts/PodcastInlineListTemplate.vue +6 -2
- package/src/components/display/podcasts/PodcastItemInfo.vue +2 -2
- package/src/components/display/podcasts/PodcastPlayBar.vue +9 -35
- package/src/components/display/podcasts/TagList.vue +0 -2
- package/src/components/display/rubriques/RubriqueChooser.vue +2 -2
- package/src/components/display/rubriques/RubriqueList.vue +25 -20
- package/src/components/display/sharing/PlayerParameters.vue +76 -99
- package/src/components/display/sharing/ShareButtons.vue +3 -5
- package/src/components/display/sharing/ShareButtonsIntern.vue +1 -1
- package/src/components/display/sharing/ShareDistribution.vue +11 -10
- package/src/components/display/sharing/SharePlayer.vue +3 -0
- package/src/components/display/sharing/SubscribeButtons.vue +1 -1
- package/src/components/form/ClassicCheckbox.vue +73 -14
- package/src/components/form/ClassicLoading.vue +5 -1
- package/src/components/form/ClassicRadio.vue +12 -3
- package/src/components/form/ClassicSelect.vue +2 -9
- package/src/components/misc/Accordion.vue +76 -0
- package/src/components/misc/ErrorMessage.vue +2 -1
- package/src/components/misc/HomeDropdown.vue +66 -63
- package/src/components/misc/Nav.vue +99 -0
- package/src/components/misc/Popover.vue +139 -98
- package/src/components/misc/ProgressBar.vue +96 -0
- package/src/components/misc/Spinner.vue +37 -0
- package/src/components/misc/TopBar.vue +1 -1
- package/src/components/misc/modal/ClassicModal.vue +140 -0
- package/src/components/misc/modal/ClipboardModal.vue +25 -40
- package/src/components/misc/modal/MessageModal.vue +45 -60
- package/src/components/misc/modal/NewsletterModal.vue +85 -94
- package/src/components/misc/modal/QrCodeModal.vue +19 -36
- package/src/components/misc/modal/ShareModalPlayer.vue +72 -133
- package/src/components/misc/player/Player.vue +0 -6
- package/src/components/misc/player/PlayerCompact.vue +5 -4
- package/src/components/misc/player/PlayerLarge.vue +13 -9
- package/src/components/misc/player/PlayerProgressBar.vue +10 -48
- package/src/components/mixins/player/playerLogic.ts +3 -3
- package/src/components/pages/Podcast.vue +1 -1
- package/src/assets/bootstrap-diff.scss +0 -195
- package/src/assets/modal.scss +0 -49
|
@@ -1,118 +1,95 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
<Accordion
|
|
3
|
+
class="mt-3"
|
|
4
|
+
:title="$t('player parameters')"
|
|
5
|
+
id-composer="playerParameters"
|
|
5
6
|
>
|
|
6
|
-
<div
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
<div
|
|
8
|
+
v-if="choseNumberEpisode"
|
|
9
|
+
class="d-flex flex-column flex-grow-1"
|
|
10
|
+
>
|
|
11
|
+
<div
|
|
12
|
+
v-if="displayChoiceAllEpisodes"
|
|
13
|
+
class="d-flex align-items-center flex-wrap mt-1"
|
|
10
14
|
>
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
aria-controls="playerParameters"
|
|
15
|
+
<input
|
|
16
|
+
v-model="episodeNumbers"
|
|
17
|
+
class="form-check-input"
|
|
18
|
+
type="radio"
|
|
19
|
+
name="episodeNumbers"
|
|
20
|
+
value="all"
|
|
18
21
|
>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
</h2>
|
|
22
|
+
<span class="flex-shrink-0">{{ $t('Show every episode') }}</span>
|
|
23
|
+
</div>
|
|
22
24
|
<div
|
|
23
|
-
|
|
24
|
-
class="
|
|
25
|
-
titleledby="labelPlayerParameter"
|
|
26
|
-
data-bs-parent="#accordionParameters"
|
|
25
|
+
class="d-flex align-items-center flex-wrap"
|
|
26
|
+
:class="displayChoiceAllEpisodes ? '' : 'mt-3'"
|
|
27
27
|
>
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
<input
|
|
51
|
-
v-if="displayChoiceAllEpisodes"
|
|
52
|
-
v-model="episodeNumbers"
|
|
53
|
-
class="form-check-input"
|
|
54
|
-
type="radio"
|
|
55
|
-
name="episodeNumbers"
|
|
56
|
-
value="number"
|
|
57
|
-
>
|
|
58
|
-
<span class="flex-shrink-0">{{ $t('Show') }}</span>
|
|
59
|
-
<input
|
|
60
|
-
id="number-input"
|
|
61
|
-
v-model="iFrameNumber"
|
|
62
|
-
type="number"
|
|
63
|
-
min="1"
|
|
64
|
-
max="50"
|
|
65
|
-
class="input-share-player text-center m-2"
|
|
66
|
-
>
|
|
67
|
-
<label
|
|
68
|
-
for="number-input"
|
|
69
|
-
:title="$t('Number of player podcasts')"
|
|
70
|
-
/>
|
|
71
|
-
<span class="flex-shrink-0">{{ $t('Last podcasts') }}</span>
|
|
72
|
-
</div>
|
|
73
|
-
<ClassicCheckbox
|
|
74
|
-
v-model:textInit="proceedReading"
|
|
75
|
-
id-checkbox="proceed-reading-checkbox"
|
|
76
|
-
:label="$t('Proceed reading')"
|
|
77
|
-
/>
|
|
78
|
-
<ClassicCheckbox
|
|
79
|
-
v-model:textInit="isVisibleTemp"
|
|
80
|
-
id-checkbox="is-visible-checkbox"
|
|
81
|
-
:label="$t('Podcasts still available')"
|
|
82
|
-
/>
|
|
83
|
-
</div>
|
|
84
|
-
<div
|
|
85
|
-
v-if="displayArticleParam"
|
|
86
|
-
class="d-flex flex-column flex-grow-1"
|
|
87
|
-
>
|
|
88
|
-
<ClassicCheckbox
|
|
89
|
-
v-model:textInit="displayArticle"
|
|
90
|
-
id-checkbox="display-article-checkbox"
|
|
91
|
-
:label="$t('Display associated article')"
|
|
92
|
-
/>
|
|
93
|
-
</div>
|
|
94
|
-
<div
|
|
95
|
-
v-if="displayTranscriptParam"
|
|
96
|
-
class="d-flex flex-column flex-grow-1"
|
|
97
|
-
>
|
|
98
|
-
<ClassicCheckbox
|
|
99
|
-
v-model:textInit="displayTranscript"
|
|
100
|
-
id-checkbox="display-transcript-checkbox"
|
|
101
|
-
:label="$t('If the transcript is available, show it')"
|
|
102
|
-
/>
|
|
103
|
-
</div>
|
|
104
|
-
</div>
|
|
28
|
+
<input
|
|
29
|
+
v-if="displayChoiceAllEpisodes"
|
|
30
|
+
v-model="episodeNumbers"
|
|
31
|
+
class="form-check-input"
|
|
32
|
+
type="radio"
|
|
33
|
+
name="episodeNumbers"
|
|
34
|
+
value="number"
|
|
35
|
+
>
|
|
36
|
+
<span class="flex-shrink-0">{{ $t('Show') }}</span>
|
|
37
|
+
<input
|
|
38
|
+
id="number-input"
|
|
39
|
+
v-model="iFrameNumber"
|
|
40
|
+
type="number"
|
|
41
|
+
min="1"
|
|
42
|
+
max="50"
|
|
43
|
+
class="input-share-player text-center m-2"
|
|
44
|
+
>
|
|
45
|
+
<label
|
|
46
|
+
for="number-input"
|
|
47
|
+
:title="$t('Number of player podcasts')"
|
|
48
|
+
/>
|
|
49
|
+
<span class="flex-shrink-0">{{ $t('Last podcasts') }}</span>
|
|
105
50
|
</div>
|
|
51
|
+
<ClassicCheckbox
|
|
52
|
+
v-model:textInit="proceedReading"
|
|
53
|
+
id-checkbox="proceed-reading-checkbox"
|
|
54
|
+
:label="$t('Proceed reading')"
|
|
55
|
+
/>
|
|
56
|
+
<ClassicCheckbox
|
|
57
|
+
v-model:textInit="isVisibleTemp"
|
|
58
|
+
id-checkbox="is-visible-checkbox"
|
|
59
|
+
:label="$t('Podcasts still available')"
|
|
60
|
+
/>
|
|
61
|
+
</div>
|
|
62
|
+
<div
|
|
63
|
+
v-if="displayArticleParam"
|
|
64
|
+
class="d-flex flex-column flex-grow-1"
|
|
65
|
+
>
|
|
66
|
+
<ClassicCheckbox
|
|
67
|
+
v-model:textInit="displayArticle"
|
|
68
|
+
id-checkbox="display-article-checkbox"
|
|
69
|
+
:label="$t('Display associated article')"
|
|
70
|
+
/>
|
|
71
|
+
</div>
|
|
72
|
+
<div
|
|
73
|
+
v-if="displayTranscriptParam"
|
|
74
|
+
class="d-flex flex-column flex-grow-1"
|
|
75
|
+
>
|
|
76
|
+
<ClassicCheckbox
|
|
77
|
+
v-model:textInit="displayTranscript"
|
|
78
|
+
id-checkbox="display-transcript-checkbox"
|
|
79
|
+
:label="$t('If the transcript is available, show it')"
|
|
80
|
+
/>
|
|
106
81
|
</div>
|
|
107
|
-
</
|
|
82
|
+
</Accordion>
|
|
108
83
|
</template>
|
|
109
84
|
|
|
110
85
|
<script lang="ts">
|
|
111
86
|
import ClassicCheckbox from '../../form/ClassicCheckbox.vue';
|
|
87
|
+
import Accordion from '../../misc/Accordion.vue';
|
|
112
88
|
import { defineComponent } from 'vue'
|
|
113
89
|
export default defineComponent({
|
|
114
90
|
components:{
|
|
115
91
|
ClassicCheckbox,
|
|
92
|
+
Accordion
|
|
116
93
|
},
|
|
117
94
|
props: {
|
|
118
95
|
isVisible: { default: false, type: Boolean},
|
|
@@ -13,15 +13,13 @@
|
|
|
13
13
|
role="button"
|
|
14
14
|
tabindex="0"
|
|
15
15
|
class="saooti-help ms-2 align-items-start"
|
|
16
|
-
:title="$t('Help')"
|
|
17
16
|
/>
|
|
18
17
|
<Popover
|
|
19
18
|
v-if="authenticated"
|
|
20
19
|
target="popover-share-help"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
</Popover>
|
|
20
|
+
:title="$t('Help')"
|
|
21
|
+
:content="$t('Share this page without edit and share blocks')"
|
|
22
|
+
/>
|
|
25
23
|
</div>
|
|
26
24
|
<div class="d-flex align-items-center">
|
|
27
25
|
<ShareButtonsIntern
|
|
@@ -3,15 +3,16 @@
|
|
|
3
3
|
<h3>{{ $t('Distribute') }}</h3>
|
|
4
4
|
<p class="sharing-distribution-container">
|
|
5
5
|
{{ $t('Rss feed:') }}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
</p><div class="text-primary hide-small-screen text-break">
|
|
7
|
+
{{ rss }}
|
|
8
|
+
</div>
|
|
9
|
+
<input
|
|
10
|
+
type="button"
|
|
11
|
+
:value="$t('Copy')"
|
|
12
|
+
class="btn btn-primary"
|
|
13
|
+
:title="$t('Copy')"
|
|
14
|
+
@click="onCopyCode(rss, afterCopy)"
|
|
15
|
+
>
|
|
15
16
|
<RssSection
|
|
16
17
|
v-if="emission"
|
|
17
18
|
:emission="emission"
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
:to="platform.url"
|
|
24
25
|
class="text-dark"
|
|
25
26
|
>
|
|
26
|
-
<span :class="platform.icon"
|
|
27
|
+
<span :class="platform.icon" />{{ platform.title }}
|
|
27
28
|
</router-link>
|
|
28
29
|
</div>
|
|
29
30
|
<Snackbar
|
|
@@ -1,20 +1,25 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
>
|
|
6
|
-
<input
|
|
7
|
-
:id="idCheckbox"
|
|
8
|
-
v-model="textValue"
|
|
9
|
-
type="checkbox"
|
|
10
|
-
class="form-check-input"
|
|
11
|
-
:disabled="isDisabled"
|
|
12
|
-
:title="displayLabel?'':label"
|
|
13
|
-
:data-selenium="selenium"
|
|
14
|
-
@click="emitClickAction"
|
|
2
|
+
<div class="d-flex octopus-form-item">
|
|
3
|
+
<div
|
|
4
|
+
:class="isSwitch?'octopus-form-switch me-2':''"
|
|
15
5
|
>
|
|
6
|
+
<input
|
|
7
|
+
:id="idCheckbox"
|
|
8
|
+
v-model="textValue"
|
|
9
|
+
type="checkbox"
|
|
10
|
+
:disabled="isDisabled"
|
|
11
|
+
:title="displayLabel?'':label"
|
|
12
|
+
:data-selenium="selenium"
|
|
13
|
+
@click="emitClickAction"
|
|
14
|
+
>
|
|
15
|
+
<span
|
|
16
|
+
v-if="isSwitch"
|
|
17
|
+
class="slider"
|
|
18
|
+
@click="textValue=!textValue;emitClickAction"
|
|
19
|
+
/>
|
|
20
|
+
</div>
|
|
16
21
|
<label
|
|
17
|
-
class="
|
|
22
|
+
class="c-hand"
|
|
18
23
|
:class="displayLabel? '': 'd-none'"
|
|
19
24
|
:for="idCheckbox"
|
|
20
25
|
>{{ label }}</label>
|
|
@@ -64,3 +69,57 @@ export default defineComponent({
|
|
|
64
69
|
}
|
|
65
70
|
});
|
|
66
71
|
</script>
|
|
72
|
+
|
|
73
|
+
<style lang="scss">
|
|
74
|
+
@import '@scss/_variables.scss';
|
|
75
|
+
.octopus-app{
|
|
76
|
+
input[type="checkbox"] {
|
|
77
|
+
accent-color: $octopus-primary-color;
|
|
78
|
+
cursor: pointer;
|
|
79
|
+
margin-right: 5px;
|
|
80
|
+
}
|
|
81
|
+
.octopus-form-switch{
|
|
82
|
+
position: relative;
|
|
83
|
+
display: inline-block;
|
|
84
|
+
width: 2rem;
|
|
85
|
+
height: 1rem;
|
|
86
|
+
input{
|
|
87
|
+
opacity: 0;
|
|
88
|
+
width: 0;
|
|
89
|
+
height: 0;
|
|
90
|
+
}
|
|
91
|
+
.slider{
|
|
92
|
+
position: absolute;
|
|
93
|
+
cursor: pointer;
|
|
94
|
+
top: 0;
|
|
95
|
+
left: 0;
|
|
96
|
+
right: 0;
|
|
97
|
+
bottom: 0;
|
|
98
|
+
background-color: #ccc;
|
|
99
|
+
transition: .4s;
|
|
100
|
+
border-radius: 1rem;
|
|
101
|
+
}
|
|
102
|
+
.slider:before {
|
|
103
|
+
position: absolute;
|
|
104
|
+
content: "";
|
|
105
|
+
height: 0.8rem;
|
|
106
|
+
width: 0.8rem;
|
|
107
|
+
left: 2px;
|
|
108
|
+
bottom: 2px;
|
|
109
|
+
background-color: white;
|
|
110
|
+
transition: .4s;
|
|
111
|
+
border-radius: 50%;
|
|
112
|
+
}
|
|
113
|
+
input:checked + .slider {
|
|
114
|
+
background-color: $octopus-primary-color;
|
|
115
|
+
}
|
|
116
|
+
input:focus + .slider {
|
|
117
|
+
box-shadow: 0 0 1px $octopus-primary-color;
|
|
118
|
+
}
|
|
119
|
+
input:checked + .slider:before {
|
|
120
|
+
transform: translateX(1rem);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
</style>
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
v-if="loadingText"
|
|
4
4
|
class="d-flex align-items-center justify-content-center"
|
|
5
5
|
>
|
|
6
|
-
<
|
|
6
|
+
<Spinner class="me-3" />
|
|
7
7
|
<div class="h3 mt-2">
|
|
8
8
|
{{ loadingText }}
|
|
9
9
|
</div>
|
|
@@ -17,9 +17,13 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<script lang="ts">
|
|
20
|
+
import Spinner from '../misc/Spinner.vue';
|
|
20
21
|
import { defineComponent } from 'vue';
|
|
21
22
|
export default defineComponent({
|
|
22
23
|
name: "ClassicLoading",
|
|
24
|
+
components:{
|
|
25
|
+
Spinner
|
|
26
|
+
},
|
|
23
27
|
props: {
|
|
24
28
|
loadingText: { default: undefined, type: String},
|
|
25
29
|
errorText: { default: undefined, type: String},
|
|
@@ -6,20 +6,19 @@
|
|
|
6
6
|
<div
|
|
7
7
|
v-for="option in options"
|
|
8
8
|
:key="option.title"
|
|
9
|
-
class="form-
|
|
9
|
+
class="octopus-form-item"
|
|
10
10
|
:class="isColumn? '':'me-2'"
|
|
11
11
|
>
|
|
12
12
|
<input
|
|
13
13
|
:id="idRadio + option.value"
|
|
14
14
|
v-model="textValue"
|
|
15
|
-
class="form-check-input"
|
|
16
15
|
type="radio"
|
|
17
16
|
:name="idRadio"
|
|
18
17
|
:value="option.value"
|
|
19
18
|
:disabled="isDisabled"
|
|
20
19
|
>
|
|
21
20
|
<label
|
|
22
|
-
class="
|
|
21
|
+
class="c-hand"
|
|
23
22
|
:for="idRadio + option.value"
|
|
24
23
|
>{{
|
|
25
24
|
option.title
|
|
@@ -64,3 +63,13 @@ export default defineComponent({
|
|
|
64
63
|
}
|
|
65
64
|
});
|
|
66
65
|
</script>
|
|
66
|
+
<style lang="scss">
|
|
67
|
+
@import '@scss/_variables.scss';
|
|
68
|
+
.octopus-app{
|
|
69
|
+
input[type="radio"] {
|
|
70
|
+
accent-color: $octopus-primary-color;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
margin-right: 5px;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
</style>
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
:id="idSelect"
|
|
10
10
|
v-model="textValue"
|
|
11
11
|
:disabled="isDisabled"
|
|
12
|
-
class="c-hand"
|
|
12
|
+
class="c-hand w-100"
|
|
13
13
|
:style="getFontFamily"
|
|
14
14
|
>
|
|
15
15
|
<option
|
|
@@ -68,11 +68,4 @@ export default defineComponent({
|
|
|
68
68
|
},
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
|
-
</script>
|
|
72
|
-
<style lang="scss">
|
|
73
|
-
.octopus-app{
|
|
74
|
-
.classic-select select{
|
|
75
|
-
width: inherit;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
</style>
|
|
71
|
+
</script>
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class="octopus-accordion my-2"
|
|
4
|
+
>
|
|
5
|
+
<button
|
|
6
|
+
:id="'accordion-'+idComposer"
|
|
7
|
+
class="btn-transparent bg-white w-100 p-2 text-start d-flex align-items-center"
|
|
8
|
+
:class="isOpen?'really-light-primary-bg':''"
|
|
9
|
+
@click="isOpen=!isOpen"
|
|
10
|
+
>
|
|
11
|
+
<span
|
|
12
|
+
v-if="icon"
|
|
13
|
+
class="img-accordion text-primary"
|
|
14
|
+
:class="icon"
|
|
15
|
+
/>
|
|
16
|
+
<img
|
|
17
|
+
v-if="imageUrl"
|
|
18
|
+
class="img-accordion"
|
|
19
|
+
:src="imageUrl"
|
|
20
|
+
:alt="title"
|
|
21
|
+
>
|
|
22
|
+
<span class="flex-grow-1">{{ title }}</span>
|
|
23
|
+
<span :class="isOpen?'saooti-up': 'saooti-down'" />
|
|
24
|
+
</button>
|
|
25
|
+
<div
|
|
26
|
+
v-show="isOpen"
|
|
27
|
+
class="body p-2"
|
|
28
|
+
>
|
|
29
|
+
<slot />
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<script lang="ts">
|
|
35
|
+
import { defineComponent } from 'vue';
|
|
36
|
+
export default defineComponent({
|
|
37
|
+
name: "Accordion",
|
|
38
|
+
props: {
|
|
39
|
+
title: { default: '', type: String },
|
|
40
|
+
idComposer: { default: '', type: String },
|
|
41
|
+
icon:{default: undefined, type: String },
|
|
42
|
+
imageUrl:{default: undefined, type: String },
|
|
43
|
+
},
|
|
44
|
+
emits:['open'],
|
|
45
|
+
data () {
|
|
46
|
+
return {
|
|
47
|
+
isOpen: false as boolean,
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
watch:{
|
|
51
|
+
isOpen(){
|
|
52
|
+
this.$emit('open');
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
</script>
|
|
57
|
+
<style lang="scss">
|
|
58
|
+
.octopus-accordion{
|
|
59
|
+
border: 1px solid #ccc;
|
|
60
|
+
>button{
|
|
61
|
+
height: 50px;
|
|
62
|
+
}
|
|
63
|
+
.img-accordion {
|
|
64
|
+
width: 30px;
|
|
65
|
+
height: 30px;
|
|
66
|
+
margin-right: 1rem;
|
|
67
|
+
font-size: 20px;
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: center;
|
|
70
|
+
align-items: center;
|
|
71
|
+
}
|
|
72
|
+
.body{
|
|
73
|
+
border-top: 1px solid #ccc;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
</style>
|