@paris-ias/list 1.0.42 → 1.0.43
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/dist/module.json +2 -2
- package/dist/runtime/components/events/Badges.vue.d.ts +7 -0
- package/dist/runtime/components/events/DateTimePlace.vue.d.ts +7 -0
- package/dist/runtime/components/events/DenseItem.vue.d.ts +9 -0
- package/dist/runtime/components/events/ExpandedItem.vue.d.ts +12 -0
- package/dist/runtime/components/events/ListContainer.vue +2 -3
- package/dist/runtime/components/events/ListContainer.vue.d.ts +7 -0
- package/dist/runtime/components/events/RegisterModal.vue.d.ts +7 -0
- package/dist/runtime/components/events/RelatedItem.vue +3 -4
- package/dist/runtime/components/events/RelatedItem.vue.d.ts +7 -0
- package/dist/runtime/components/events/RowsItem.vue +3 -4
- package/dist/runtime/components/events/RowsItem.vue.d.ts +9 -0
- package/dist/runtime/components/events/View.vue.d.ts +9 -0
- package/dist/runtime/components/fellowships/Badges.vue.d.ts +9 -0
- package/dist/runtime/components/fellowships/DenseItem.vue.d.ts +9 -0
- package/dist/runtime/components/fellowships/ExpandedItem.vue.d.ts +2 -0
- package/dist/runtime/components/fellowships/RegisterModal.vue.d.ts +9 -0
- package/dist/runtime/components/fellowships/RowsItem.vue.d.ts +9 -0
- package/dist/runtime/components/fellowships/View.vue.d.ts +9 -0
- package/dist/runtime/components/list/atoms/FiltersMenu.vue.d.ts +7 -0
- package/dist/runtime/components/list/atoms/SearchInput.vue +6 -8
- package/dist/runtime/components/list/atoms/SearchInput.vue.d.ts +9 -0
- package/dist/runtime/components/list/atoms/SearchItem.vue.d.ts +11 -0
- package/dist/runtime/components/list/atoms/SearchString.vue.d.ts +7 -0
- package/dist/runtime/components/list/atoms/SortMenu.vue +2 -4
- package/dist/runtime/components/list/atoms/SortMenu.vue.d.ts +7 -0
- package/dist/runtime/components/list/atoms/ViewMenu.vue +2 -4
- package/dist/runtime/components/list/atoms/ViewMenu.vue.d.ts +7 -0
- package/dist/runtime/components/list/inputs/AutoComplete.vue +1 -2
- package/dist/runtime/components/list/inputs/AutoComplete.vue.d.ts +11 -0
- package/dist/runtime/components/list/inputs/BooleanSwitch.vue +2 -4
- package/dist/runtime/components/list/inputs/BooleanSwitch.vue.d.ts +11 -0
- package/dist/runtime/components/list/inputs/Checkbox.vue +2 -4
- package/dist/runtime/components/list/inputs/Checkbox.vue.d.ts +11 -0
- package/dist/runtime/components/list/inputs/Select.vue +1 -2
- package/dist/runtime/components/list/inputs/Select.vue.d.ts +11 -0
- package/dist/runtime/components/list/molecules/Filters.vue +2 -4
- package/dist/runtime/components/list/molecules/Filters.vue.d.ts +9 -0
- package/dist/runtime/components/list/molecules/Header.vue +1 -1
- package/dist/runtime/components/list/molecules/Header.vue.d.ts +7 -0
- package/dist/runtime/components/list/molecules/Pagination.vue +2 -3
- package/dist/runtime/components/list/molecules/Pagination.vue.d.ts +17 -0
- package/dist/runtime/components/list/organisms/List.vue +2 -4
- package/dist/runtime/components/list/organisms/List.vue.d.ts +17 -0
- package/dist/runtime/components/list/views/Dense.vue.d.ts +14 -0
- package/dist/runtime/components/list/views/Expanded.vue.d.ts +14 -0
- package/dist/runtime/components/list/views/Grid.vue.d.ts +28 -0
- package/dist/runtime/components/list/views/Rows.vue.d.ts +14 -0
- package/dist/runtime/components/list/views/Table.vue.d.ts +28 -0
- package/dist/runtime/components/misc/atoms/DateStamp.vue.d.ts +11 -0
- package/dist/runtime/components/misc/atoms/ImageContainer.vue.d.ts +28 -0
- package/dist/runtime/components/misc/atoms/ShareMenu.vue.d.ts +9 -0
- package/dist/runtime/components/misc/atoms/Socials.vue.d.ts +13 -0
- package/dist/runtime/components/misc/molecules/ChipContainer.vue.d.ts +7 -0
- package/dist/runtime/components/misc/molecules/Related.vue +1 -1
- package/dist/runtime/components/misc/molecules/Related.vue.d.ts +7 -0
- package/dist/runtime/components/misc/molecules/RelatedItems.vue.d.ts +9 -0
- package/dist/runtime/components/misc/molecules/SearchItem.vue +2 -3
- package/dist/runtime/components/misc/molecules/SearchItem.vue.d.ts +2 -0
- package/dist/runtime/components/news/DenseItem.vue +3 -5
- package/dist/runtime/components/news/DenseItem.vue.d.ts +9 -0
- package/dist/runtime/components/news/ExpandedItem.vue +2 -3
- package/dist/runtime/components/news/ExpandedItem.vue.d.ts +9 -0
- package/dist/runtime/components/news/Header.vue.d.ts +2 -0
- package/dist/runtime/components/news/RelatedItem.vue +3 -4
- package/dist/runtime/components/news/RelatedItem.vue.d.ts +7 -0
- package/dist/runtime/components/news/RowsItem.vue +3 -5
- package/dist/runtime/components/news/RowsItem.vue.d.ts +9 -0
- package/dist/runtime/components/news/View.vue.d.ts +9 -0
- package/dist/runtime/components/people/DenseItem.vue +2 -4
- package/dist/runtime/components/people/DenseItem.vue.d.ts +9 -0
- package/dist/runtime/components/people/ExpandedItem.vue.d.ts +12 -0
- package/dist/runtime/components/people/GroupBadges.vue +2 -3
- package/dist/runtime/components/people/GroupBadges.vue.d.ts +7 -0
- package/dist/runtime/components/people/RelatedItem.vue +3 -4
- package/dist/runtime/components/people/RelatedItem.vue.d.ts +7 -0
- package/dist/runtime/components/people/RowsItem.vue.d.ts +9 -0
- package/dist/runtime/components/people/View.vue.d.ts +9 -0
- package/dist/runtime/components/projects/ExpandedItem.vue.d.ts +12 -0
- package/dist/runtime/components/projects/RelatedItem.vue +3 -4
- package/dist/runtime/components/projects/RelatedItem.vue.d.ts +7 -0
- package/dist/runtime/components/projects/RowsItem.vue +2 -3
- package/dist/runtime/components/projects/RowsItem.vue.d.ts +7 -0
- package/dist/runtime/components/projects/View.vue.d.ts +9 -0
- package/dist/runtime/components/publications/RelatedItem.vue +3 -4
- package/dist/runtime/components/publications/RelatedItem.vue.d.ts +7 -0
- package/dist/runtime/components/publications/RowsItem.vue +0 -1
- package/dist/runtime/components/publications/RowsItem.vue.d.ts +7 -0
- package/dist/runtime/components/publications/View.vue.d.ts +9 -0
- package/dist/runtime/plugins/pinia.js +3 -0
- package/dist/runtime/stores/root.d.ts +1 -1
- package/dist/runtime/stores/root.js +1 -1
- package/package.json +5 -3
package/dist/module.json
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly item?: Record<string, any> | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly item?: Record<string, any> | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
index: number;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly index?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
item: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
required: true;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
item: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
>
|
|
10
10
|
<v-col cols="3">
|
|
11
11
|
<MiscAtomsDateStamp
|
|
12
|
-
:loading="rootStore.events.loading"
|
|
12
|
+
:loading="$rootStore.events.loading"
|
|
13
13
|
:date="[
|
|
14
14
|
new Date(event.start),
|
|
15
15
|
...(event.stop ? [new Date(event.stop)] : []),
|
|
@@ -30,10 +30,9 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<script setup>
|
|
33
|
-
import { useRootStore } from "../../stores/root";
|
|
34
33
|
import { useI18n } from "#imports";
|
|
34
|
+
const { $rootStore } = useNuxtApp();
|
|
35
35
|
const { locale } = useI18n();
|
|
36
|
-
const rootStore = useRootStore();
|
|
37
36
|
const props = defineProps({
|
|
38
37
|
events: {
|
|
39
38
|
type: Array,
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
events: unknown[];
|
|
3
|
+
$props: {
|
|
4
|
+
readonly events?: unknown[] | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly item?: Record<string, any> | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
:src="item.image"
|
|
15
15
|
:ratio="1 / 1"
|
|
16
16
|
:link="item.name"
|
|
17
|
-
:loading="rootStore.loading"
|
|
17
|
+
:loading="$rootStore.loading"
|
|
18
18
|
name="activities-events-slug"
|
|
19
19
|
/>
|
|
20
20
|
</v-col>
|
|
21
21
|
<v-col cols="12" lg="9">
|
|
22
|
-
<v-skeleton-loader v-if="rootStore.loading" type="heading, text@3" />
|
|
22
|
+
<v-skeleton-loader v-if="$rootStore.loading" type="heading, text@3" />
|
|
23
23
|
<template v-else>
|
|
24
24
|
<div class="text-h6">
|
|
25
25
|
{{ item.name }}
|
|
@@ -35,10 +35,9 @@
|
|
|
35
35
|
|
|
36
36
|
<script setup>
|
|
37
37
|
import { useDisplay } from "vuetify";
|
|
38
|
-
import { useRootStore } from "../../stores/root";
|
|
39
38
|
import { useLocalePath } from "#imports";
|
|
39
|
+
const { $rootStore } = useNuxtApp();
|
|
40
40
|
const localePath = useLocalePath();
|
|
41
|
-
const rootStore = useRootStore();
|
|
42
41
|
const { lgAndUp } = useDisplay();
|
|
43
42
|
const props = defineProps({ item: { type: Object, required: true } });
|
|
44
43
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly item?: Record<string, any> | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<v-row no-gutters>
|
|
15
15
|
<v-col cols="12" class="pr-lg-6">
|
|
16
16
|
<v-skeleton-loader
|
|
17
|
-
v-if="rootStore.loading || $stores['events'].loading"
|
|
17
|
+
v-if="$rootStore.loading || $stores['events'].loading"
|
|
18
18
|
:type="
|
|
19
19
|
[
|
|
20
20
|
'heading, subtitle, text@6,subtitle, text, ossein, button, button',
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
>
|
|
70
70
|
<v-col cols="12">
|
|
71
71
|
<v-skeleton-loader
|
|
72
|
-
v-if="rootStore.loading || $stores['events'].loading"
|
|
72
|
+
v-if="$rootStore.loading || $stores['events'].loading"
|
|
73
73
|
:type="
|
|
74
74
|
['article, heading, text, heading, text, button, button'][
|
|
75
75
|
['md'].indexOf(name || 'md')
|
|
@@ -103,8 +103,7 @@ import { useNuxtApp, useI18n, useLocalePath } from "#imports";
|
|
|
103
103
|
const { locale } = useI18n();
|
|
104
104
|
const { name, mdAndDown, lgAndUp } = useDisplay();
|
|
105
105
|
const localePath = useLocalePath();
|
|
106
|
-
const rootStore =
|
|
107
|
-
const { $stores } = useNuxtApp();
|
|
106
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
108
107
|
const props = defineProps({
|
|
109
108
|
item: {
|
|
110
109
|
type: Object,
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
index: number;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly index?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
loading: boolean;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly loading?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
view: boolean;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly view?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
index: number;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly index?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
view: boolean;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly view?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
index: number;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly index?: number | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
loading: boolean;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly item?: Record<string, any> | undefined;
|
|
6
|
+
readonly loading?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
open: boolean;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly open?: boolean | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
clearable
|
|
12
12
|
tile
|
|
13
13
|
type="search"
|
|
14
|
-
:loading="rootStore.loading"
|
|
14
|
+
:loading="$rootStore.loading"
|
|
15
15
|
>
|
|
16
16
|
<!-- :loading="$nuxt.loading || $store.state.loading" :class="{ 'mt-3':
|
|
17
17
|
$store.state.scrolled }" -->
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
style="max-height: 300px"
|
|
30
30
|
class="overflow-y-auto"
|
|
31
31
|
>
|
|
32
|
-
<div v-if="rootStore.loading" class="d-flex justify-center py-6">
|
|
32
|
+
<div v-if="$rootStore.loading" class="d-flex justify-center py-6">
|
|
33
33
|
<v-progress-circular color="black" size="64" indeterminate />
|
|
34
34
|
</div>
|
|
35
35
|
<template v-for="(item, index) in results">
|
|
@@ -66,11 +66,9 @@
|
|
|
66
66
|
|
|
67
67
|
<script setup>
|
|
68
68
|
import { useDebounceFn } from "@vueuse/core";
|
|
69
|
-
import { useRootStore } from "../../../stores/root";
|
|
70
69
|
import { useNuxtApp, useI18n, computed } from "#imports";
|
|
71
70
|
const { locale, t } = useI18n();
|
|
72
|
-
const rootStore =
|
|
73
|
-
const { $stores } = useNuxtApp();
|
|
71
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
74
72
|
const props = defineProps({
|
|
75
73
|
type: {
|
|
76
74
|
type: String,
|
|
@@ -82,7 +80,7 @@ const props = defineProps({
|
|
|
82
80
|
}
|
|
83
81
|
});
|
|
84
82
|
const results = computed(() => {
|
|
85
|
-
const storeRst = rootStore.results;
|
|
83
|
+
const storeRst = $rootStore.results;
|
|
86
84
|
const rst = Object.keys(storeRst).length && Object.keys(storeRst).sort((a, b) => {
|
|
87
85
|
return storeRst[b]?.items?.length - storeRst[a]?.items?.length;
|
|
88
86
|
}).reduce((acc, key, index) => {
|
|
@@ -111,10 +109,10 @@ const results = computed(() => {
|
|
|
111
109
|
});
|
|
112
110
|
const search = computed({
|
|
113
111
|
get() {
|
|
114
|
-
return props.type === "all" ? rootStore.search : $stores[props.type].search;
|
|
112
|
+
return props.type === "all" ? $rootStore.search : $stores[props.type].search;
|
|
115
113
|
},
|
|
116
114
|
set: await useDebounceFn(async function(v) {
|
|
117
|
-
await rootStore.updateSearch({
|
|
115
|
+
await $rootStore.updateSearch({
|
|
118
116
|
type: props.type,
|
|
119
117
|
search: v || "",
|
|
120
118
|
lang: locale.value
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
loading: boolean;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly type?: string | undefined;
|
|
6
|
+
readonly loading?: boolean | undefined;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
item: Record<string, any>;
|
|
3
|
+
type: string;
|
|
4
|
+
index: number;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly item?: Record<string, any> | undefined;
|
|
7
|
+
readonly type?: string | undefined;
|
|
8
|
+
readonly index?: number | undefined;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly type?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -45,11 +45,9 @@
|
|
|
45
45
|
<script setup>
|
|
46
46
|
import { mergeProps } from "vue";
|
|
47
47
|
import { useDisplay } from "vuetify";
|
|
48
|
-
import { useRootStore } from "../../../stores/root";
|
|
49
48
|
import { useNuxtApp, computed, ref } from "#imports";
|
|
50
|
-
const { $stores } = useNuxtApp();
|
|
49
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
51
50
|
const { xs: isXsDisplay } = useDisplay();
|
|
52
|
-
const rootStore = useRootStore();
|
|
53
51
|
const props = defineProps({
|
|
54
52
|
type: {
|
|
55
53
|
type: String,
|
|
@@ -74,6 +72,6 @@ const current = computed(() => {
|
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
const updateSort = async (value) => {
|
|
77
|
-
await rootStore.updateSort({ value, type: props.type });
|
|
75
|
+
await $rootStore.updateSort({ value, type: props.type });
|
|
78
76
|
};
|
|
79
77
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly type?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -42,9 +42,8 @@
|
|
|
42
42
|
<script setup>
|
|
43
43
|
import { mergeProps, ref } from "vue";
|
|
44
44
|
import { useDisplay } from "vuetify";
|
|
45
|
-
import { useRootStore } from "../../../stores/root";
|
|
46
45
|
import { useNuxtApp } from "#imports";
|
|
47
|
-
const { $stores } = useNuxtApp();
|
|
46
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
48
47
|
const props = defineProps({
|
|
49
48
|
type: {
|
|
50
49
|
type: String,
|
|
@@ -53,10 +52,9 @@ const props = defineProps({
|
|
|
53
52
|
}
|
|
54
53
|
});
|
|
55
54
|
const { xs: isXsDisplay } = useDisplay();
|
|
56
|
-
const rootStore = useRootStore();
|
|
57
55
|
const items = ref($stores[props.type].views);
|
|
58
56
|
const current = ref($stores[props.type].view);
|
|
59
57
|
const updateView = async (value) => {
|
|
60
|
-
await rootStore.updateView({ value, type: props.type });
|
|
58
|
+
await $rootStore.updateView({ value, type: props.type });
|
|
61
59
|
};
|
|
62
60
|
</script>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly type?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
<script setup>
|
|
10
10
|
import { useRootStore } from "../../../stores/root";
|
|
11
11
|
import { useNuxtApp, computed } from "#imports";
|
|
12
|
-
const rootStore =
|
|
13
|
-
const { $stores } = useNuxtApp();
|
|
12
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
14
13
|
const props = defineProps(["type", "items", "name"]);
|
|
15
14
|
const val = computed({
|
|
16
15
|
get() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
name?: any;
|
|
3
|
+
type?: any;
|
|
4
|
+
items?: any;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly name?: any;
|
|
7
|
+
readonly type?: any;
|
|
8
|
+
readonly items?: any;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
|
-
import { useRootStore } from "../../../stores/root";
|
|
7
6
|
import { useNuxtApp, computed } from "#imports";
|
|
8
|
-
const rootStore = useRootStore();
|
|
9
7
|
const props = defineProps(["type", "items", "name"]);
|
|
10
|
-
const { $stores } = useNuxtApp();
|
|
8
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
11
9
|
const val = computed({
|
|
12
10
|
get() {
|
|
13
11
|
return $stores[props.type].filters[props.name]?.value;
|
|
14
12
|
},
|
|
15
13
|
set(value) {
|
|
16
|
-
rootStore.updateFilter(props.name, value, props.type);
|
|
14
|
+
$rootStore.updateFilter(props.name, value, props.type);
|
|
17
15
|
}
|
|
18
16
|
});
|
|
19
17
|
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
name?: any;
|
|
3
|
+
type?: any;
|
|
4
|
+
items?: any;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly name?: any;
|
|
7
|
+
readonly type?: any;
|
|
8
|
+
readonly items?: any;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -3,17 +3,15 @@
|
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script setup>
|
|
6
|
-
import { useRootStore } from "../../../stores/root";
|
|
7
6
|
import { useNuxtApp, computed } from "#imports";
|
|
8
|
-
const rootStore = useRootStore();
|
|
9
7
|
const props = defineProps(["type", "items", "name"]);
|
|
10
|
-
const { $stores } = useNuxtApp();
|
|
8
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
11
9
|
const val = computed({
|
|
12
10
|
get() {
|
|
13
11
|
return $stores[props.type].filters[props.name]?.value;
|
|
14
12
|
},
|
|
15
13
|
set(value) {
|
|
16
|
-
rootStore.updateFilter(props.name, value, props.type);
|
|
14
|
+
$rootStore.updateFilter(props.name, value, props.type);
|
|
17
15
|
}
|
|
18
16
|
});
|
|
19
17
|
</script>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
name?: any;
|
|
3
|
+
type?: any;
|
|
4
|
+
items?: any;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly name?: any;
|
|
7
|
+
readonly type?: any;
|
|
8
|
+
readonly items?: any;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
<script setup>
|
|
10
10
|
import { useRootStore } from "../../../stores/root";
|
|
11
11
|
import { useNuxtApp, computed } from "#imports";
|
|
12
|
-
const rootStore =
|
|
13
|
-
const { $stores } = useNuxtApp();
|
|
12
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
14
13
|
const props = defineProps(["type", "items", "name"]);
|
|
15
14
|
const val = computed({
|
|
16
15
|
get() {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
name?: any;
|
|
3
|
+
type?: any;
|
|
4
|
+
items?: any;
|
|
5
|
+
$props: {
|
|
6
|
+
readonly name?: any;
|
|
7
|
+
readonly type?: any;
|
|
8
|
+
readonly items?: any;
|
|
9
|
+
};
|
|
10
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -35,14 +35,12 @@
|
|
|
35
35
|
|
|
36
36
|
<script setup>
|
|
37
37
|
import { useDisplay } from "vuetify";
|
|
38
|
-
import { useRootStore } from "../../../stores/root";
|
|
39
38
|
import { capitalize } from "../../../composables/useUtils";
|
|
40
39
|
import { useNuxtApp, onMounted, resolveComponent, useI18n } from "#imports";
|
|
41
40
|
const { smAndDown } = useDisplay();
|
|
42
41
|
const i18n = useI18n();
|
|
43
42
|
const { locale, messages } = useI18n();
|
|
44
|
-
const { $stores } = useNuxtApp();
|
|
45
|
-
const rootStore = useRootStore();
|
|
43
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
46
44
|
const props = defineProps(["type", "expanded"]);
|
|
47
45
|
const ComponentName = (name) => {
|
|
48
46
|
return resolveComponent(
|
|
@@ -65,7 +63,7 @@ const getItems = (name) => {
|
|
|
65
63
|
}));
|
|
66
64
|
};
|
|
67
65
|
onMounted(() => {
|
|
68
|
-
rootStore.loadRouteQuery(props.type);
|
|
66
|
+
$rootStore.loadRouteQuery(props.type);
|
|
69
67
|
});
|
|
70
68
|
const computeVisibility = (filterItem) => {
|
|
71
69
|
return (
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type?: any;
|
|
3
|
+
expanded?: any;
|
|
4
|
+
$props: {
|
|
5
|
+
readonly type?: any;
|
|
6
|
+
readonly expanded?: any;
|
|
7
|
+
};
|
|
8
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
$props: {
|
|
4
|
+
readonly type?: string | undefined;
|
|
5
|
+
};
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -78,10 +78,9 @@
|
|
|
78
78
|
</template>
|
|
79
79
|
|
|
80
80
|
<script setup>
|
|
81
|
-
import { useRootStore } from "../../../stores/root";
|
|
82
81
|
import { useRoute, computed, watch } from "#imports";
|
|
82
|
+
const { $rootStore } = useNuxtApp();
|
|
83
83
|
const route = useRoute();
|
|
84
|
-
const rootStore = useRootStore();
|
|
85
84
|
const props = defineProps({
|
|
86
85
|
totalPages: {
|
|
87
86
|
type: Number,
|
|
@@ -177,7 +176,7 @@ const createGap = (pageIndex) => {
|
|
|
177
176
|
};
|
|
178
177
|
};
|
|
179
178
|
const updatePage = (page) => {
|
|
180
|
-
rootStore.updatePage({ page, type: props.type });
|
|
179
|
+
$rootStore.updatePage({ page, type: props.type });
|
|
181
180
|
};
|
|
182
181
|
const getGapPage = (index) => {
|
|
183
182
|
return Math.floor(
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
type: string;
|
|
3
|
+
totalPages: number;
|
|
4
|
+
currentPage: number;
|
|
5
|
+
pagePadding: number;
|
|
6
|
+
pageGap: number;
|
|
7
|
+
hidePrevNext: boolean;
|
|
8
|
+
$props: {
|
|
9
|
+
readonly type?: string | undefined;
|
|
10
|
+
readonly totalPages?: number | undefined;
|
|
11
|
+
readonly currentPage?: number | undefined;
|
|
12
|
+
readonly pagePadding?: number | undefined;
|
|
13
|
+
readonly pageGap?: number | undefined;
|
|
14
|
+
readonly hidePrevNext?: boolean | undefined;
|
|
15
|
+
};
|
|
16
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
17
|
+
export default _default;
|
|
@@ -25,12 +25,10 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script setup>
|
|
28
|
-
import { useRootStore } from "../../../stores/root";
|
|
29
28
|
import { capitalize } from "../../../composables/useUtils";
|
|
30
29
|
import { useNuxtApp, useI18n, resolveComponent, computed } from "#imports";
|
|
31
|
-
const { $stores } = useNuxtApp();
|
|
30
|
+
const { $stores, $rootStore } = useNuxtApp();
|
|
32
31
|
const { locale } = useI18n();
|
|
33
|
-
const rootStore = useRootStore();
|
|
34
32
|
const props = defineProps({
|
|
35
33
|
addBtn: {
|
|
36
34
|
type: Boolean,
|
|
@@ -78,7 +76,7 @@ const numberOfPages = computed(() => $stores[props.type].numberOfPages);
|
|
|
78
76
|
const page = computed(() => +$stores[props.type].page);
|
|
79
77
|
const items = computed(() => $stores[props.type].items);
|
|
80
78
|
try {
|
|
81
|
-
await rootStore.update(props.type, locale.value);
|
|
79
|
+
await $rootStore.update(props.type, locale.value);
|
|
82
80
|
} catch (error) {
|
|
83
81
|
console.log("error fetching update list: ", error);
|
|
84
82
|
}
|