@dative-gpi/foundation-shared-components 1.0.164-sankey → 1.0.164
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.
|
@@ -35,8 +35,6 @@
|
|
|
35
35
|
:step="$props.stepTime"
|
|
36
36
|
:min="startTimestamp"
|
|
37
37
|
:max="endTimestamp"
|
|
38
|
-
:hideHeader="true"
|
|
39
|
-
:maxWidth="null"
|
|
40
38
|
:ticks="ticks"
|
|
41
39
|
showTicks="always"
|
|
42
40
|
:modelValue="$props.modelValue"
|
|
@@ -80,7 +78,7 @@
|
|
|
80
78
|
</template>
|
|
81
79
|
|
|
82
80
|
<script lang="ts">
|
|
83
|
-
import { computed, defineComponent, ref, watch
|
|
81
|
+
import { computed, defineComponent, ref, watch } from "vue";
|
|
84
82
|
|
|
85
83
|
import { useBreakpoints, useColors } from '@dative-gpi/foundation-shared-components/composables';
|
|
86
84
|
import { useDateFormat, useDateExpression } from "@dative-gpi/foundation-shared-services/composables";
|
|
@@ -166,7 +164,7 @@ export default defineComponent({
|
|
|
166
164
|
}
|
|
167
165
|
},
|
|
168
166
|
emits: ['update:modelValue', 'update:startDate', 'update:endDate'],
|
|
169
|
-
setup(props, { emit
|
|
167
|
+
setup(props, { emit }) {
|
|
170
168
|
const { epochToShortTimeOnlyFormat, epochToShortDateFormat, epochToDayMonthShortOnly, epochToISO, epochToMonthShortTimeFormat } = useDateFormat();
|
|
171
169
|
const { convert : convertTermToEpoch } = useDateExpression();
|
|
172
170
|
const { isMobileSized, isExtraSmall } = useBreakpoints();
|
|
@@ -175,8 +173,9 @@ export default defineComponent({
|
|
|
175
173
|
const lightColors = getColors(ColorEnum.Light);
|
|
176
174
|
const playing = ref(false);
|
|
177
175
|
const playingInterval = ref();
|
|
178
|
-
|
|
179
|
-
const
|
|
176
|
+
|
|
177
|
+
const startTimestamp = computed(() => convertTermToEpoch(props.startDate));
|
|
178
|
+
const endTimestamp = computed(() => convertTermToEpoch(props.endDate));
|
|
180
179
|
|
|
181
180
|
const tickCount = computed(() => {
|
|
182
181
|
if (isExtraSmall.value) { return 3; }
|
|
@@ -199,11 +198,6 @@ export default defineComponent({
|
|
|
199
198
|
precision: tickPrecision.value
|
|
200
199
|
}));
|
|
201
200
|
|
|
202
|
-
const refresh = () => {
|
|
203
|
-
startTimestamp.value = convertTermToEpoch(props.startDate);
|
|
204
|
-
endTimestamp.value = convertTermToEpoch(props.endDate);
|
|
205
|
-
};
|
|
206
|
-
|
|
207
201
|
const onPlayingChange = (value: boolean) => {
|
|
208
202
|
playing.value = value;
|
|
209
203
|
};
|
|
@@ -222,10 +216,6 @@ export default defineComponent({
|
|
|
222
216
|
}
|
|
223
217
|
}, { immediate: true });
|
|
224
218
|
|
|
225
|
-
watch([() => props.startDate, () => props.endDate], () => {
|
|
226
|
-
refresh();
|
|
227
|
-
}, { immediate: true });
|
|
228
|
-
|
|
229
219
|
watch(playing, (value) => {
|
|
230
220
|
if(!value && playingInterval.value) {
|
|
231
221
|
clearInterval(playingInterval.value);
|
|
@@ -241,10 +231,6 @@ export default defineComponent({
|
|
|
241
231
|
}
|
|
242
232
|
});
|
|
243
233
|
|
|
244
|
-
expose({
|
|
245
|
-
refresh,
|
|
246
|
-
});
|
|
247
|
-
|
|
248
234
|
return {
|
|
249
235
|
ticks,
|
|
250
236
|
playing,
|
|
@@ -36,8 +36,6 @@
|
|
|
36
36
|
:step="$props.stepTime"
|
|
37
37
|
:min="startTimestamp"
|
|
38
38
|
:max="endTimestamp"
|
|
39
|
-
:hideHeader="true"
|
|
40
|
-
:maxWidth="null"
|
|
41
39
|
:ticks="ticks"
|
|
42
40
|
showTicks="always"
|
|
43
41
|
:modelValue="$props.modelValue"
|
|
@@ -171,7 +169,7 @@ export default defineComponent({
|
|
|
171
169
|
}
|
|
172
170
|
},
|
|
173
171
|
emits: ['update:modelValue', 'update:startDate', 'update:endDate'],
|
|
174
|
-
setup(props, { emit
|
|
172
|
+
setup(props, { emit }) {
|
|
175
173
|
const { epochToShortTimeOnlyFormat, epochToShortDateFormat, epochToDayMonthShortOnly, epochToISO, epochToMonthShortTimeFormat } = useDateFormat();
|
|
176
174
|
const { convert : convertTermToEpoch } = useDateExpression();
|
|
177
175
|
const { isMobileSized, isExtraSmall } = useBreakpoints();
|
|
@@ -180,8 +178,9 @@ export default defineComponent({
|
|
|
180
178
|
const lightColors = getColors(ColorEnum.Light);
|
|
181
179
|
const playing = ref(false);
|
|
182
180
|
const playingInterval = ref();
|
|
183
|
-
|
|
184
|
-
const
|
|
181
|
+
|
|
182
|
+
const startTimestamp = computed(() => convertTermToEpoch(props.startDate));
|
|
183
|
+
const endTimestamp = computed(() => convertTermToEpoch(props.endDate));
|
|
185
184
|
|
|
186
185
|
const tickCount = computed(() => {
|
|
187
186
|
if (isExtraSmall.value) { return 3; }
|
|
@@ -204,11 +203,6 @@ export default defineComponent({
|
|
|
204
203
|
precision: tickPrecision.value
|
|
205
204
|
}));
|
|
206
205
|
|
|
207
|
-
const refresh = () => {
|
|
208
|
-
startTimestamp.value = convertTermToEpoch(props.startDate);
|
|
209
|
-
endTimestamp.value = convertTermToEpoch(props.endDate);
|
|
210
|
-
};
|
|
211
|
-
|
|
212
206
|
const onPlayingChange = (value: boolean) => {
|
|
213
207
|
playing.value = value;
|
|
214
208
|
};
|
|
@@ -229,10 +223,6 @@ export default defineComponent({
|
|
|
229
223
|
}
|
|
230
224
|
}, { immediate: true });
|
|
231
225
|
|
|
232
|
-
watch([() => props.startDate, () => props.endDate], () => {
|
|
233
|
-
refresh();
|
|
234
|
-
}, { immediate: true });
|
|
235
|
-
|
|
236
226
|
watch(playing, (value) => {
|
|
237
227
|
if(!value && playingInterval.value) {
|
|
238
228
|
clearInterval(playingInterval.value);
|
|
@@ -248,10 +238,6 @@ export default defineComponent({
|
|
|
248
238
|
}, props.playingStepDuration);
|
|
249
239
|
});
|
|
250
240
|
|
|
251
|
-
expose({
|
|
252
|
-
refresh,
|
|
253
|
-
});
|
|
254
|
-
|
|
255
241
|
return {
|
|
256
242
|
ticks,
|
|
257
243
|
playing,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "1.0.164
|
|
4
|
+
"version": "1.0.164",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "1.0.164
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.164
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.164",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.164"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"sass": "1.71.1",
|
|
36
36
|
"sass-loader": "13.3.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "b7ada7cfa0089e86a46fe34dae932e04289b62d5"
|
|
39
39
|
}
|