@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 +1 -1
- package/src/components/display/categories/CategoryChooser.vue +2 -2
- package/src/components/display/categories/CategoryFilter.vue +1 -1
- package/src/components/display/comments/modal/EditCommentModal.vue +1 -1
- package/src/components/display/filter/DateFilter.vue +2 -0
- package/src/components/display/filter/MonetizableFilter.vue +2 -1
- package/src/components/display/filter/RubriqueChoice.vue +1 -1
- package/src/components/display/filter/SearchOrder.vue +2 -2
- package/src/components/display/list/ListPaginate.vue +2 -0
- package/src/components/display/list/PaginateParams.vue +3 -2
- package/src/components/display/organisation/OrganisationChooserLight.vue +1 -0
- package/src/components/display/rubriques/RubriqueChooser.vue +2 -2
- package/src/components/form/ClassicDatePicker.vue +10 -0
- package/src/components/form/ClassicInputText.vue +7 -0
- package/src/components/form/ClassicMultiselect.vue +1 -1
- package/src/components/form/ClassicRadioLabel.vue +9 -9
- package/src/components/misc/ClassicPopover.vue +5 -2
- package/src/components/misc/modal/ClassicModal.vue +4 -0
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
ref="selectCategory"
|
|
5
5
|
:option-chosen="model"
|
|
6
6
|
option-label="name"
|
|
7
|
-
:
|
|
7
|
+
:display-label="displayLabel"
|
|
8
8
|
:label="label ?? $t('By category')"
|
|
9
|
-
:
|
|
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"
|
|
@@ -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
|
-
<
|
|
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
|
"
|
|
@@ -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"],
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
ref="selectRubrique"
|
|
5
5
|
:option-chosen="model"
|
|
6
6
|
option-label="name"
|
|
7
|
-
:
|
|
7
|
+
:display-label="displayLabel"
|
|
8
8
|
:label="label ?? $t('By rubric')"
|
|
9
|
-
:
|
|
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"
|
|
@@ -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
|
-
:
|
|
6
|
-
:
|
|
5
|
+
:id-radio="idRadio"
|
|
6
|
+
:is-disabled="isDisabled"
|
|
7
7
|
:options="options"
|
|
8
|
-
:
|
|
9
|
-
:
|
|
10
|
-
@update:
|
|
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
|
}
|