@saooti/octopus-sdk 41.0.11 → 41.0.12
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": "41.0.
|
|
3
|
+
"version": "41.0.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Javascript SDK for using octopus",
|
|
6
6
|
"author": "Saooti",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"serve": "vite preview",
|
|
9
9
|
"build": "vite build",
|
|
10
10
|
"dev": "vite",
|
|
11
|
-
"bundle":"vite-bundle-visualizer",
|
|
11
|
+
"bundle": "vite-bundle-visualizer",
|
|
12
12
|
"proxy_authentifié": "node proxy.ts",
|
|
13
13
|
"proxy_non_authentifié": "node proxy.ts false",
|
|
14
14
|
"lint": "eslint --fix src",
|
|
@@ -28,7 +28,7 @@ import ClassicDatePicker from "../../form/ClassicDatePicker.vue";
|
|
|
28
28
|
import { ref, watch } from "vue";
|
|
29
29
|
import { useI18n } from "vue-i18n";
|
|
30
30
|
|
|
31
|
-
//Props
|
|
31
|
+
//Props
|
|
32
32
|
const props = defineProps({
|
|
33
33
|
isEmission: { default: false, type: Boolean },
|
|
34
34
|
fromDate: { default: undefined, type: String },
|
|
@@ -38,7 +38,7 @@ const props = defineProps({
|
|
|
38
38
|
//Emits
|
|
39
39
|
const emit = defineEmits(["updateDates"]);
|
|
40
40
|
|
|
41
|
-
//Data
|
|
41
|
+
//Data
|
|
42
42
|
const isActive = ref([false, false]);
|
|
43
43
|
const internDates = ref([
|
|
44
44
|
dayjs().subtract(10, "days").startOf("day").toDate(),
|
|
@@ -50,6 +50,17 @@ const { t } = useI18n();
|
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
//Watch
|
|
53
|
+
watch(isActive, () => {
|
|
54
|
+
emit("updateDates", {
|
|
55
|
+
from: isActive.value[0]
|
|
56
|
+
? dayjs(internDates.value[0]).toISOString()
|
|
57
|
+
: undefined,
|
|
58
|
+
to: isActive.value[1]
|
|
59
|
+
? dayjs(internDates.value[1]).toISOString()
|
|
60
|
+
: undefined,
|
|
61
|
+
});
|
|
62
|
+
}, { deep: true });
|
|
63
|
+
|
|
53
64
|
watch(()=>props.toDate, () => {
|
|
54
65
|
isActive.value[1] = undefined !== props.toDate;
|
|
55
66
|
if (props.toDate && props.toDate !== internDates.value[1].toISOString()) {
|
|
@@ -75,6 +86,8 @@ watch(()=>props.fromDate, () => {
|
|
|
75
86
|
|
|
76
87
|
|
|
77
88
|
//Methods
|
|
89
|
+
|
|
90
|
+
|
|
78
91
|
function updateDate(index: number, value: Date): void {
|
|
79
92
|
internDates.value[index] = value;
|
|
80
93
|
if (
|