@saooti/octopus-sdk 37.0.26 → 37.0.28

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": "37.0.26",
3
+ "version": "37.0.28",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -74,6 +74,7 @@ export default defineComponent({
74
74
  rubriquageId: { default: () => [], type: Array as () => Array<number> },
75
75
  noRubriquageId: { default: () => [], type: Array as () => Array<number> },
76
76
  justSizeChosen: { default: false, type: Boolean },
77
+ withVideo: { default: undefined, type: Boolean },
77
78
  },
78
79
  emits: ["fetch", "emptyList"],
79
80
 
@@ -103,7 +104,8 @@ export default defineComponent({
103
104
  changed(): string {
104
105
  return `${this.first}|${this.size}|${this.organisation}|${this.emissionId}|${this.sortCriteria}|${this.sort}
105
106
  ${this.iabId}|${this.participantId}|${this.query}|${this.monetization}|${this.popularSort}|
106
- ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}`;
107
+ ${this.rubriqueId}|${this.rubriquageId}|${this.before}|${this.after}|${this.includeHidden}|${this.noRubriquageId}|${this.notValid}|
108
+ ${this.withVideo}`;
107
109
  },
108
110
  organisation(): Array<string> {
109
111
  if (this.organisationId) {
@@ -183,6 +185,7 @@ export default defineComponent({
183
185
  ? this.authProfile?.userId
184
186
  : undefined,
185
187
  includeStatus: ["READY", "PROCESSING"],
188
+ withVideo: this.withVideo
186
189
  };
187
190
  try {
188
191
  const data = await octopusApi.fetchDataWithParams<{
@@ -4,6 +4,7 @@
4
4
  :time-picker="isTimePicker"
5
5
  :input-class-name="templateClass"
6
6
  :clearable="false"
7
+ :text-input="true"
7
8
  :readonly="readonly"
8
9
  :teleport="useTeleport"
9
10
  :locale="formatLocale"
@@ -17,6 +18,7 @@
17
18
  :inline="columnNumber > 1"
18
19
  :enable-time-picker="!isTimePicker ? displayTimePicker : undefined"
19
20
  :aria-labels="ariaLabels"
21
+ :max-time="maxTime"
20
22
  @update:model-value="$emit('updateDate', $event)"
21
23
  >
22
24
  </VueDatePicker>
@@ -47,6 +49,7 @@ export default defineComponent({
47
49
  useTeleport: { default: false, type: Boolean },
48
50
  templateClass: { default: undefined, type: String },
49
51
  readonly: { default: false, type: Boolean },
52
+ maxTime:{default: null, type: Object as () => { hours?: number | string; minutes?: number | string; seconds?: number | string }}
50
53
  },
51
54
 
52
55
  emits: ["updateDate", "update:date"],
@@ -274,14 +274,16 @@ export default defineComponent({
274
274
  ${this.emissionName}${this.description}`,
275
275
  ];
276
276
  html.push(
277
- `</table>
278
- <div style="font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;background: #f3f3f3;vertical-align: middle;padding: 15px 10px;display: flex; align-items:center; flex-wrap:wrap">
279
- <a href="${this.shareUrl}">
280
- <img width="44" height="44" style="display: inline-block;vertical-align: middle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAeCAYAAAA7MK6iAAAABmJLR0QA/wD/AP+gvaeTAAAAxElEQVRIie3WMWpCURBG4Q8FSRrtbC2SPhvICmzchVuwtXQLbsE2pVUIkjqQHVgqNmIj6EvxGHhFQAIvcxt/OPVhhrlzh3sKZ4MvTLLFVYNPvJYQB294LiGucMYSw2xxcMQcj9niYIsputni4BvjEuJgjZcS4goXrDDKFgcnLDDIFgd7zNDLFgfvTUHnL23ISJuV7iS3Ooarn1VxkeeUvkDSV2b6J3FQT+pDW8Jb4vRD4Kqe1Kf/Ev4mTj32PhQ6b+9pPT+XHgysHrPM6QAAAABJRU5ErkJggg=="/>
281
- </a>
282
- <a style="color: #000;text-decoration: none; margin-right:8px" href="${this.shareUrl}">${this.shareText}</a>
277
+ `</table>
278
+ <table width='100%' style="width:100%;background:#f3f3f3;font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;">
279
+ <tr style="font-family: Arial, sans-serif;font-size: 12px;line-height: 20px;background: #f3f3f3;vertical-align: middle;padding: 15px 10px;display: flex; align-items:center; flex-wrap:wrap">
280
+ <td><a href="${this.shareUrl}">
281
+ <svg fill="#000000" height="30px" width="30px" version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 17.804 17.804" xml:space="preserve"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <g> <g id="c98_play"> <path d="M2.067,0.043C2.21-0.028,2.372-0.008,2.493,0.085l13.312,8.503c0.094,0.078,0.154,0.191,0.154,0.313 c0,0.12-0.061,0.237-0.154,0.314L2.492,17.717c-0.07,0.057-0.162,0.087-0.25,0.087l-0.176-0.04 c-0.136-0.065-0.222-0.207-0.222-0.361V0.402C1.844,0.25,1.93,0.107,2.067,0.043z"></path> </g> <g id="Capa_1_78_"> </g> </g> </g></svg>
282
+ </a></td>
283
+ <td style="margin-left:10px"><a style="color: #000;text-decoration: none; margin-right:8px" href="${this.shareUrl}">${this.shareText}</a></td>
283
284
  ${this.articleHtml}
284
- </div>${this.participantsName}`,
285
+ </tr>
286
+ </table>${this.participantsName}`
285
287
  );
286
288
  return html.join("");
287
289
  },
@@ -7,10 +7,11 @@ export default {
7
7
  }
8
8
  if (state.octopusApi.imageUrl && url.includes("http")) {
9
9
  const size = height ? "height=" + height : "width=" + width;
10
+ const encode = btoa(url).replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, '');
10
11
  return (
11
12
  state.octopusApi.imageUrl +
12
13
  "image/" +
13
- btoa(url) +
14
+ encode +
14
15
  "?" +
15
16
  size +
16
17
  "&useWebp=true"
@@ -37,6 +37,7 @@
37
37
  :rubrique-id="rubriqueId"
38
38
  :rubriquage-id="rubriquageId"
39
39
  :no-rubriquage-id="noRubriquageId"
40
+ :with-video="withVideo"
40
41
  />
41
42
  </div>
42
43
  </template>
@@ -80,7 +81,6 @@ export default defineComponent({
80
81
  noRubriquageId: [] as Array<number>,
81
82
  rubriquageId: [] as Array<number>,
82
83
  rubriqueId: [] as Array<number>,
83
- //VIDEO_WORK
84
84
  onlyVideo: false as boolean,
85
85
  };
86
86
  },
@@ -100,6 +100,9 @@ export default defineComponent({
100
100
  organisation(): string | undefined {
101
101
  return this.organisationId ? this.organisationId : this.filterOrgaId;
102
102
  },
103
+ withVideo(): boolean|undefined{
104
+ return false===this.onlyVideo ? undefined : true;
105
+ }
103
106
  },
104
107
  watch: {
105
108
  organisationId(): void {