@saooti/octopus-sdk 30.0.53 → 30.0.56

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
@@ -549,4 +549,7 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
549
549
  * 30.0.50 Commentaires live
550
550
  * 30.0.51 Commentaires live
551
551
  * 30.0.52 Ajout rubriqueIdFilter
552
- * 30.0.53 Commentaires live
552
+ * 30.0.53 Commentaires live
553
+ * 30.0.54 Multiselect not reload on close
554
+ * 30.0.55 Align participant img
555
+ * 30.0.56 Popover title
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saooti/octopus-sdk",
3
- "version": "30.0.53",
3
+ "version": "30.0.56",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -212,6 +212,7 @@ body{
212
212
  border-radius: 50%;
213
213
  background-size: cover;
214
214
  box-shadow: 0px 8px 26px 6px rgba(64, 163, 114, 0.3);
215
+ margin: auto;
215
216
  }
216
217
 
217
218
  .comma {
@@ -28,9 +28,8 @@
28
28
  :show-no-results="true"
29
29
  :hide-selected="true"
30
30
  :show-labels="false"
31
- @open="clearAll"
31
+ @open="onOpen"
32
32
  @search-change="onSearchCategory"
33
- @close="onClose"
34
33
  @select="onCategorySelected"
35
34
  >
36
35
  <template #singleLabel="{ option }">
@@ -169,14 +168,11 @@ export default defineComponent({
169
168
  }
170
169
  },
171
170
  methods: {
172
- clearAll(): void {
171
+ onOpen(): void {
173
172
  (this.$refs.multiselectRef as VueMultiselect).$refs.search.setAttribute(
174
173
  'autocomplete',
175
174
  'off'
176
175
  );
177
- if (undefined === this.categoryArray) {
178
- this.category = undefined;
179
- }
180
176
  if (
181
177
  undefined !== this.categorySelected ||
182
178
  undefined !== this.categoryArray ||
@@ -199,14 +195,6 @@ export default defineComponent({
199
195
  this.categories = this.totalCategories;
200
196
  }
201
197
  },
202
- onClose(): void {
203
- if (!this.category && undefined === this.categoryArray) {
204
- this.category = getDefaultCategory(this.defaultanswer);
205
- if(this.category){
206
- this.onCategorySelected(this.category);
207
- }
208
- }
209
- },
210
198
  onSearchCategory(query: string): void {
211
199
  this.isLoading = true;
212
200
  const categoryDefault = getDefaultCategory(this.defaultanswer);
@@ -29,7 +29,6 @@
29
29
  :show-labels="false"
30
30
  @search-change="onSearchEmission"
31
31
  @open="onOpen"
32
- @close="onClose"
33
32
  @select="onEmissionSelected"
34
33
  >
35
34
  <template #clear="{ props }">
@@ -152,16 +151,8 @@ export default defineComponent({
152
151
  'autocomplete',
153
152
  'off'
154
153
  );
155
- this.clearAll();
156
154
  this.onSearchEmission();
157
155
  },
158
- onClose(): void {
159
- if (this.emission) return;
160
- this.emission = this.defaultanswer
161
- ? getDefaultEmission(this.defaultanswer)
162
- : undefined;
163
- this.$emit('selected', this.emission);
164
- },
165
156
  onEmissionSelected(emission: Emission): void {
166
157
  this.$emit('selected', emission);
167
158
  },
@@ -31,7 +31,6 @@
31
31
  :class="{ 'multiselect-transparent': light }"
32
32
  @search-change="onSearchOrganisation"
33
33
  @open="onOpen"
34
- @close="onClose"
35
34
  @select="onOrganisationSelected"
36
35
  >
37
36
  <template #clear="{ props }">
@@ -207,16 +206,8 @@ export default defineComponent({
207
206
  'autocomplete',
208
207
  'off'
209
208
  );
210
- this.clearAll();
211
209
  this.onSearchOrganisation();
212
210
  },
213
- onClose(): void {
214
- if (this.organisation) return;
215
- this.organisation = this.defaultanswer
216
- ? getDefaultOrganistion(this.defaultanswer)
217
- : undefined;
218
- this.$emit('selected', this.organisation);
219
- },
220
211
  onOrganisationSelected(organisation: Organisation|undefined): void {
221
212
  this.$emit('selected', organisation);
222
213
  },
@@ -8,16 +8,12 @@
8
8
  :id="idPopover"
9
9
  tabindex="-1"
10
10
  class="saooti-help m-0"
11
- :title="$t('Help')"
11
+ :title="title"
12
12
  />
13
13
  <span class="mx-1">:</span>
14
14
  <Popover
15
15
  :target="idPopover"
16
16
  >
17
- <div class="text-center font-weight-bold">
18
- {{ title }}
19
- </div>
20
- <hr>
21
17
  <div
22
18
  v-for="participant in participants"
23
19
  :key="'desc-'+participant.participantId"
@@ -29,9 +29,8 @@
29
29
  :show-no-results="true"
30
30
  :hide-selected="true"
31
31
  :show-labels="false"
32
- @open="clearAll"
32
+ @open="onOpen"
33
33
  @search-change="onSearchRubrique"
34
- @close="onClose"
35
34
  @select="onRubriqueSelected"
36
35
  >
37
36
  <template #singleLabel="{ option }">
@@ -187,14 +186,11 @@ export default defineComponent({
187
186
  );
188
187
  }
189
188
  },
190
- clearAll(): void {
189
+ onOpen(): void {
191
190
  (this.$refs.multiselectRef as VueMultiselect).$refs.search.setAttribute(
192
191
  'autocomplete',
193
192
  'off'
194
193
  );
195
- if (undefined === this.rubriqueArray) {
196
- this.rubrique = undefined;
197
- }
198
194
  this.rubriques = this.initRubriquesArray();
199
195
  },
200
196
  onClose(): void {
@@ -109,5 +109,8 @@ export default defineComponent({
109
109
  .popover{
110
110
  max-height: 80vh;
111
111
  overflow: auto;
112
+ hr{
113
+ width: 100px;
114
+ }
112
115
  }
113
116
  </style>