@saooti/octopus-sdk 39.3.14 → 39.3.15

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": "39.3.14",
3
+ "version": "39.3.15",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -4,9 +4,9 @@
4
4
  ref="selectCategory"
5
5
  :option-chosen="model"
6
6
  option-label="name"
7
- :displayLabel="displayLabel"
7
+ :display-label="displayLabel"
8
8
  :label="label ?? $t('By category')"
9
- :textDanger="textDanger"
9
+ :text-danger="textDanger"
10
10
  :placeholder="$t('Type string to filter by categories')"
11
11
  :max-element="maxElement"
12
12
  :in-modal="inModal"
@@ -39,9 +39,9 @@
39
39
  <div class="mx-1">:</div>
40
40
  <RubriqueChooser
41
41
  v-if="getRubriquesLength(filter.rubriquageId)"
42
+ :id="'rubrique-chooser'+filter.rubriquageId"
42
43
  class="ms-2 multiselect-transparent multiselect-white"
43
44
  :multiple="false"
44
- :id="'rubrique-chooser'+filter.rubriquageId"
45
45
  :rubrique-selected="filter.rubriqueId"
46
46
  :all-rubriques="getRubriques(filter.rubriquageId)"
47
47
  width="auto"
@@ -26,7 +26,7 @@
26
26
  :error-text="$t('Please provide a comment')"
27
27
  :is-textarea="true"
28
28
  :is-emoji-picker="true"
29
- emoji-relative-class="octopus-modal-dialog"
29
+ emoji-relative-class="octopus-modal"
30
30
  :focus="true"
31
31
  />
32
32
  <ClassicSelect
@@ -11,6 +11,8 @@
11
11
  :label="1 === index ? $t('From the :') : $t('To the :')"
12
12
  />
13
13
  <ClassicDatePicker
14
+ :id="'date-filter-chooser'+index"
15
+ :label="1 === index ? $t('From the :') : $t('To the :')"
14
16
  :date="internDates[index - 1]"
15
17
  class="mx-2"
16
18
  @update-date="updateDate(index - 1, $event)"
@@ -1,7 +1,8 @@
1
1
  <template>
2
2
  <div class="d-flex align-items-center">
3
- <div>{{ $t("Advertising") + " :" }}</div>
3
+ <label for="monetizable-filter-select">{{ $t("Advertising") + " :" }}</label>
4
4
  <select
5
+ id="monetizable-filter-select"
5
6
  ref="select"
6
7
  v-model="monetisableForVmodel"
7
8
  :title="$t('Advertising')"
@@ -20,9 +20,9 @@
20
20
  </div>
21
21
  <RubriqueChooser
22
22
  v-if="getRubriquesLength(rubriquageId)"
23
+ :id="'rubrique-chooser'+rubriquageId"
23
24
  class="ms-2"
24
25
  :multiple="false"
25
- :id="'rubrique-chooser'+rubriquageId"
26
26
  :rubrique-selected="
27
27
  0 !== rubriqueIdSelected ? rubriqueIdSelected : undefined
28
28
  "
@@ -3,8 +3,8 @@
3
3
  :text-init="sort"
4
4
  id-radio="sort-radio"
5
5
  :options="optionsArray"
6
- :radioLabel="$t('Sort')"
7
- classLabel="text-primary mb-2"
6
+ :radio-label="$t('Sort')"
7
+ class-label="text-primary mb-2"
8
8
  @update:text-init="$emit('update:sort', $event)"
9
9
  />
10
10
  </template>
@@ -13,6 +13,7 @@
13
13
  </div>
14
14
  <PaginateParams
15
15
  v-if="!isPhone && !justSizeChosen && totalCount > 0"
16
+ :id="id"
16
17
  :rows-per-page="rowsPerPage"
17
18
  @update:rows-per-page="changeSize"
18
19
  />
@@ -21,6 +22,7 @@
21
22
  <slot name="list" />
22
23
  <PaginateSection
23
24
  v-if="!isPhone && !justSizeChosen && totalCount > 0"
25
+ :id="id"
24
26
  :style="playerResponsive ? 'bottom:' + playerHeight : ''"
25
27
  :first="first"
26
28
  :rows-per-page="rowsPerPage"
@@ -1,9 +1,9 @@
1
1
  <template>
2
2
  <div class="paginate">
3
3
  <div class="d-flex align-items-center justify-content-center">
4
- <label for="rows-per-page-select">{{ $t("Items per page :") }}</label>
4
+ <label :for="'rows-per-page-select'+ id">{{ $t("Items per page :") }}</label>
5
5
  <select
6
- id="rows-per-page-select"
6
+ :id="'rows-per-page-select'+id"
7
7
  :value="rowsPerPage"
8
8
  class="c-hand p-1 mx-2"
9
9
  @change="$emit('update:rowsPerPage', parseInt($event.target.value, 10))"
@@ -26,6 +26,7 @@ export default defineComponent({
26
26
 
27
27
  props: {
28
28
  rowsPerPage: { default: 0, type: Number },
29
+ id: { default: "", type: String },
29
30
  },
30
31
 
31
32
  emits: ["update:rowsPerPage"],
@@ -5,6 +5,7 @@
5
5
  :style="{ width: width }"
6
6
  >
7
7
  <select
8
+ id="organisation-chooser-footer"
8
9
  v-model="actual"
9
10
  :title="$t('select productor')"
10
11
  class="c-hand w-100 transparent"
@@ -4,9 +4,9 @@
4
4
  ref="selectRubrique"
5
5
  :option-chosen="model"
6
6
  option-label="name"
7
- :displayLabel="displayLabel"
7
+ :display-label="displayLabel"
8
8
  :label="label ?? $t('By rubric')"
9
- :textDanger="textDanger"
9
+ :text-danger="textDanger"
10
10
  :placeholder="$t('Type string to filter by categories')"
11
11
  :max-element="maxElement"
12
12
  :multiple="multiple"
@@ -1,6 +1,13 @@
1
1
  <template>
2
2
  <div ref="divContainer" tabindex="0">
3
+
4
+ <label
5
+ v-if="label && !range"
6
+ class="form-label"
7
+ :for="'dp-input-'+id"
8
+ :class="displayLabel ? '' : 'd-none'">{{ label }}</label>
3
9
  <VueDatePicker
10
+ :uid="id"
4
11
  :model-value="modelVal"
5
12
  :time-picker="isTimePicker"
6
13
  :time-picker-inline="isTimePicker && timePickerInline"
@@ -43,6 +50,7 @@ export default defineComponent({
43
50
  ClockOutlineIcon,
44
51
  },
45
52
  props: {
53
+ id:{ default: undefined, type: String },
46
54
  time: {
47
55
  default: undefined,
48
56
  type: Object as () => { hours: number; minutes: number; seconds: number },
@@ -72,6 +80,8 @@ export default defineComponent({
72
80
  customPosition: { default: null, type: Function },
73
81
  isInline: { default: false, type: Boolean },
74
82
  timePickerInline: { default: false, type: Boolean },
83
+ label: { default: undefined, type: String },
84
+ displayLabel: { default: false, type: Boolean },
75
85
  },
76
86
 
77
87
  emits: ["updateDate", "update:date"],
@@ -5,11 +5,18 @@
5
5
  >
6
6
  <div class="d-flex align-items-center">
7
7
  <label
8
+ v-if="!isWysiwyg"
8
9
  class="form-label"
9
10
  :for="inputId"
10
11
  :class="displayLabel ? '' : 'd-none'"
11
12
  >{{ label }}</label
12
13
  >
14
+ <div
15
+ v-else
16
+ class="form-label"
17
+ :class="displayLabel ? '' : 'd-none'"
18
+ >{{ label }}</div
19
+ >
13
20
  <template v-if="popover">
14
21
  <button
15
22
  :id="'popover' + inputId"
@@ -11,8 +11,8 @@
11
11
  label
12
12
  }}</label>
13
13
  <vSelect
14
- :id="id"
15
14
  v-model="optionSelected"
15
+ :input-id="id"
16
16
  :label="optionLabel"
17
17
  :multiple="multiple"
18
18
  :options="options"
@@ -2,12 +2,12 @@
2
2
  <div class="d-flex flex-column">
3
3
  <div v-if="radioLabel" :class="classLabel">{{ radioLabel }}</div>
4
4
  <ClassicRadio
5
- :idRadio="idRadio"
6
- :isDisabled="isDisabled"
5
+ :id-radio="idRadio"
6
+ :is-disabled="isDisabled"
7
7
  :options="options"
8
- :textInit="textInit"
9
- :isColumn="isColumn"
10
- @update:textInit="$emit('update:textInit', $event)"
8
+ :text-init="textInit"
9
+ :is-column="isColumn"
10
+ @update:text-init="$emit('update:textInit', $event)"
11
11
  />
12
12
  </div>
13
13
  </template>
@@ -17,6 +17,9 @@ import { defineComponent } from "vue";
17
17
  import ClassicRadio from "./ClassicRadio.vue";
18
18
  export default defineComponent({
19
19
  name: "ClassicRadioLabel",
20
+ components:{
21
+ ClassicRadio
22
+ },
20
23
 
21
24
  props: {
22
25
  idRadio: { default: "", type: String },
@@ -30,9 +33,6 @@ export default defineComponent({
30
33
  radioLabel: { default: undefined, type: String },
31
34
  classLabel: { default: "form-label", type: String },
32
35
  },
33
- emits: ["update:textInit"],
34
- components:{
35
- ClassicRadio
36
- }
36
+ emits: ["update:textInit"]
37
37
  });
38
38
  </script>
@@ -51,6 +51,7 @@ export default defineComponent({
51
51
  targetElement: null as HTMLElement | null,
52
52
  overPopover: false as boolean,
53
53
  isTabAction: false as boolean,
54
+ maxHeight: '80vh' as string
54
55
  };
55
56
  },
56
57
  computed: {
@@ -58,7 +59,7 @@ export default defineComponent({
58
59
  return "popover" + this.target;
59
60
  },
60
61
  positionInlineStyle(): string {
61
- return `left: ${this.posX}px; top: ${this.posY}px;`;
62
+ return `left: ${this.posX}px; top: ${this.posY}px;max-height:${this.maxHeight}`;
62
63
  },
63
64
  },
64
65
  watch: {
@@ -147,6 +148,7 @@ export default defineComponent({
147
148
  let parentRight = 0;
148
149
  let parentTop = 0;
149
150
  let parentScrollTop = 0;
151
+ let parentBottom = 0;
150
152
  if (this.relativeClass) {
151
153
  const modalBody = document.getElementsByClassName(
152
154
  this.relativeClass,
@@ -162,6 +164,7 @@ export default defineComponent({
162
164
  parentRight = modalBodyRect.right;
163
165
  parentTop = modalBodyRect.top;
164
166
  parentScrollTop = modalBody.scrollTop;
167
+ parentBottom=modalBodyRect.bottom;
165
168
  }
166
169
  const rectElement = (e.target as HTMLElement).getBoundingClientRect();
167
170
  (this.$refs.popover as HTMLElement).style.display = "block";
@@ -184,6 +187,7 @@ export default defineComponent({
184
187
  parentTop +
185
188
  (this.isFixed ? 0 : window.scrollY) +
186
189
  yGap;
190
+ this.maxHeight = this.relativeClass ? (parentBottom- this.posY -parentTop) + "px":'80vh';
187
191
  },
188
192
  clearDataBlur(e: FocusEvent) {
189
193
  if (this.isTabAction) {
@@ -253,7 +257,6 @@ export default defineComponent({
253
257
  border: 1px solid #ccc;
254
258
  border-radius: octopusVariables.$octopus-borderradius;
255
259
  position: absolute;
256
- max-height: 80vh;
257
260
  overflow: auto;
258
261
  &.popover-z-index {
259
262
  z-index: 9999;
@@ -77,6 +77,8 @@ export default defineComponent({
77
77
  &.octopus-only-header-modal::backdrop{
78
78
  opacity: 0.1;
79
79
  }
80
+ display: flex;
81
+ flex-direction: column;
80
82
  padding: 0;
81
83
  border: 0;
82
84
  border-radius: octopusVariables.$octopus-borderradius;
@@ -84,6 +86,8 @@ export default defineComponent({
84
86
  color: #353535 !important;
85
87
  margin-top: 2rem;
86
88
  width: 80vw;
89
+ max-height: 90vh;
90
+ overflow: hidden;
87
91
  @media (max-width: 500px) {
88
92
  width: 95vw;
89
93
  }