srcdev-nuxt-components 6.1.28 → 6.1.30
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/app/components/carousel-basic/CarouselBasic.vue +22 -0
- package/app/components/deep-expanding-menu/DeepExpandingMenu.vue +1 -10
- package/app/components/display-chip/DisplayChip.vue +25 -24
- package/app/components/display-prompt/DisplayPromptCore.vue +0 -6
- package/app/components/image-galleries/SliderGallery.vue +16 -2
- package/app/components/responsive-header/ResponsiveHeader.vue +38 -1
- package/app/types/index.ts +4 -0
- package/package.json +1 -1
- package/app/types/display-toast.d.ts +0 -6
- package/app/types/gallery-data.ts +0 -13
- package/app/types/responsiveHeader.ts +0 -38
- package/app/types/types.carousel-basic.ts +0 -19
|
@@ -65,6 +65,28 @@
|
|
|
65
65
|
</section>
|
|
66
66
|
</template>
|
|
67
67
|
|
|
68
|
+
<script lang="ts">
|
|
69
|
+
export interface CarouselBasicItem {
|
|
70
|
+
id: number | string
|
|
71
|
+
url: string
|
|
72
|
+
alt: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface CarouselModifiedItem {
|
|
76
|
+
id: number | string
|
|
77
|
+
url: string
|
|
78
|
+
alt: string
|
|
79
|
+
order: number
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface ICarouselBasic {
|
|
83
|
+
items: CarouselBasicItem[] | CarouselModifiedItem[]
|
|
84
|
+
total: number
|
|
85
|
+
skip: number
|
|
86
|
+
limit: number
|
|
87
|
+
}
|
|
88
|
+
</script>
|
|
89
|
+
|
|
68
90
|
<script setup lang="ts">
|
|
69
91
|
import { useEventListener, useResizeObserver, useSwipe } from "@vueuse/core"
|
|
70
92
|
|
|
@@ -24,17 +24,8 @@
|
|
|
24
24
|
</component>
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
|
-
<script lang="ts">
|
|
28
|
-
interface ResponsiveHeaderNavItem {
|
|
29
|
-
name: string
|
|
30
|
-
path?: string
|
|
31
|
-
isExternal?: boolean
|
|
32
|
-
childLinks?: ResponsiveHeaderNavItem[]
|
|
33
|
-
childLinksTitle?: string
|
|
34
|
-
}
|
|
35
|
-
</script>
|
|
36
|
-
|
|
37
27
|
<script setup lang="ts">
|
|
28
|
+
import type { ResponsiveHeaderNavItem } from "../../types"
|
|
38
29
|
const props = defineProps({
|
|
39
30
|
tag: {
|
|
40
31
|
type: String,
|
|
@@ -4,34 +4,35 @@
|
|
|
4
4
|
</component>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
7
|
-
<script
|
|
8
|
-
|
|
9
|
-
tag: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "span",
|
|
12
|
-
validator(value: string) {
|
|
13
|
-
return ["div", "span"].includes(value)
|
|
14
|
-
},
|
|
15
|
-
},
|
|
16
|
-
shape: {
|
|
17
|
-
type: String as PropType<"circle" | "square">,
|
|
18
|
-
default: "circle",
|
|
19
|
-
validator(value: string) {
|
|
20
|
-
return ["circle", "square"].includes(value)
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
styleClassPassthrough: {
|
|
24
|
-
type: [String, Array] as PropType<string | string[]>,
|
|
25
|
-
default: () => [],
|
|
26
|
-
},
|
|
27
|
-
})
|
|
28
|
-
|
|
29
|
-
const chipConfig = defineModel<{
|
|
7
|
+
<script lang="ts">
|
|
8
|
+
export interface DisplayChipConfig {
|
|
30
9
|
size: string
|
|
31
10
|
maskWidth: string
|
|
32
11
|
offset: string
|
|
33
12
|
angle: string
|
|
34
|
-
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface DisplayChipProps {
|
|
16
|
+
tag?: "div" | "span"
|
|
17
|
+
shape?: "circle" | "square"
|
|
18
|
+
styleClassPassthrough?: string | string[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ChipSlots {
|
|
22
|
+
default(props?: {}): any
|
|
23
|
+
content(props?: {}): any
|
|
24
|
+
}
|
|
25
|
+
</script>
|
|
26
|
+
|
|
27
|
+
<script setup lang="ts">
|
|
28
|
+
const props = withDefaults(defineProps<DisplayChipProps>(), {
|
|
29
|
+
tag: "div",
|
|
30
|
+
shape: "circle",
|
|
31
|
+
styleClassPassthrough: () => [],
|
|
32
|
+
})
|
|
33
|
+
defineSlots<ChipSlots>()
|
|
34
|
+
|
|
35
|
+
const chipConfig = defineModel<DisplayChipConfig>({
|
|
35
36
|
type: Object as PropType<{
|
|
36
37
|
size: string
|
|
37
38
|
maskWidth: string
|
|
@@ -46,9 +46,6 @@ const props = defineProps({
|
|
|
46
46
|
theme: {
|
|
47
47
|
type: String,
|
|
48
48
|
default: "error",
|
|
49
|
-
validator(value: string) {
|
|
50
|
-
return ["success", "secondary", "info", "error", "warning"].includes(value)
|
|
51
|
-
},
|
|
52
49
|
},
|
|
53
50
|
styleClassPassthrough: {
|
|
54
51
|
type: [String, Array] as PropType<string | string[]>,
|
|
@@ -57,9 +54,6 @@ const props = defineProps({
|
|
|
57
54
|
iconColor: {
|
|
58
55
|
type: String as PropType<string>,
|
|
59
56
|
default: "dark-grey",
|
|
60
|
-
validator(value: string) {
|
|
61
|
-
return ["dark-grey", "white"].includes(value)
|
|
62
|
-
},
|
|
63
57
|
},
|
|
64
58
|
displayPromptIcons: {
|
|
65
59
|
type: Object as PropType<Record<string, string>>,
|
|
@@ -53,9 +53,23 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
</template>
|
|
55
55
|
|
|
56
|
-
<script
|
|
57
|
-
|
|
56
|
+
<script lang="ts">
|
|
57
|
+
export interface IGalleryData {
|
|
58
|
+
src: string
|
|
59
|
+
alt: string
|
|
60
|
+
stylist?: string
|
|
61
|
+
title?: string
|
|
62
|
+
category?: string
|
|
63
|
+
description?: string
|
|
64
|
+
thumbnail?: {
|
|
65
|
+
title: string
|
|
66
|
+
description: string
|
|
67
|
+
}
|
|
68
|
+
textBrightness: "light" | "dark"
|
|
69
|
+
}
|
|
70
|
+
</script>
|
|
58
71
|
|
|
72
|
+
<script setup lang="ts">
|
|
59
73
|
const props = defineProps({
|
|
60
74
|
autoRun: {
|
|
61
75
|
type: Boolean,
|
|
@@ -116,9 +116,46 @@
|
|
|
116
116
|
</div>
|
|
117
117
|
</template>
|
|
118
118
|
|
|
119
|
+
<script lang="ts">
|
|
120
|
+
export interface ResponsiveHeaderNavItem {
|
|
121
|
+
name: string
|
|
122
|
+
path?: string
|
|
123
|
+
isExternal?: boolean
|
|
124
|
+
childLinks?: ResponsiveHeaderNavItem[]
|
|
125
|
+
childLinksTitle?: string
|
|
126
|
+
iconName?: string
|
|
127
|
+
config?: ResponsiveHeaderItemRects
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ResponsiveHeaderProp {
|
|
131
|
+
[key: string]: ResponsiveHeaderNavItem[]
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export interface IFlooredRect {
|
|
135
|
+
left: number
|
|
136
|
+
right: number
|
|
137
|
+
top: number
|
|
138
|
+
bottom: number
|
|
139
|
+
width: number
|
|
140
|
+
height: number
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface ResponsiveHeaderItemRects {
|
|
144
|
+
left: number
|
|
145
|
+
right: number
|
|
146
|
+
width?: number
|
|
147
|
+
visible: boolean
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export interface ResponsiveHeaderState {
|
|
151
|
+
hasSecondNav: boolean
|
|
152
|
+
navListVisibility: Record<string, boolean>
|
|
153
|
+
clonedNavLinks?: ResponsiveHeaderProp
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
156
|
+
|
|
119
157
|
<script setup lang="ts">
|
|
120
158
|
import { useResizeObserver, onClickOutside } from "@vueuse/core"
|
|
121
|
-
import type { ResponsiveHeaderProp, ResponsiveHeaderState, IFlooredRect } from "@/types/responsiveHeader"
|
|
122
159
|
|
|
123
160
|
const props = defineProps({
|
|
124
161
|
responsiveNavLinks: {
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export interface ResponsiveHeaderNavItem {
|
|
2
|
-
name: string;
|
|
3
|
-
path?: string;
|
|
4
|
-
iconName?: string;
|
|
5
|
-
imageSrc?: string;
|
|
6
|
-
imageAlt?: string;
|
|
7
|
-
description?: string;
|
|
8
|
-
isActive?: boolean;
|
|
9
|
-
isExternal?: boolean;
|
|
10
|
-
childLinksTitle?: string;
|
|
11
|
-
childLinks?: ResponsiveHeaderNavItem[];
|
|
12
|
-
config?: ResponsiveHeaderItemRects;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface ResponsiveHeaderProp {
|
|
16
|
-
[key: string]: ResponsiveHeaderNavItem[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface IFlooredRect {
|
|
20
|
-
left: number;
|
|
21
|
-
right: number;
|
|
22
|
-
top: number;
|
|
23
|
-
bottom: number;
|
|
24
|
-
width: number;
|
|
25
|
-
height: number;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface ResponsiveHeaderItemRects {
|
|
29
|
-
left: number;
|
|
30
|
-
right: number;
|
|
31
|
-
width?: number;
|
|
32
|
-
visible: boolean;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
export interface ResponsiveHeaderState {
|
|
36
|
-
navListVisibility: Record<string, boolean>;
|
|
37
|
-
clonedNavLinks?: ResponsiveHeaderProp;
|
|
38
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export interface CarouselBasicItem {
|
|
2
|
-
id: number | string;
|
|
3
|
-
url: string;
|
|
4
|
-
alt: string;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export interface CarouselModifiedItem {
|
|
8
|
-
id: number | string;
|
|
9
|
-
url: string;
|
|
10
|
-
alt: string;
|
|
11
|
-
order: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface ICarouselBasic {
|
|
15
|
-
items: CarouselBasicItem[] | CarouselModifiedItem[];
|
|
16
|
-
total: number;
|
|
17
|
-
skip: number;
|
|
18
|
-
limit: number;
|
|
19
|
-
}
|