srcdev-nuxt-components 6.1.1 → 6.1.3
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/assets/styles/extends-layer/srcdev-components/components/_expanding-panel.css +37 -0
- package/app/assets/styles/extends-layer/srcdev-components/components/index.css +2 -1
- package/app/assets/styles/setup/utility-classes/_margin.css +334 -0
- package/app/assets/styles/setup/utility-classes/_padding.css +308 -0
- package/app/assets/styles/setup/utility-classes/index.css +4 -2
- package/app/components/display-details/DisplayDetailsCore.vue +26 -207
- package/app/components/expanding-panel/ExpandingPanel.vue +5 -10
- package/app/components/responsive-header/NavigationItems.vue +98 -48
- package/app/components/responsive-header/ResponsiveHeader.vue +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
.srcdev-components-extended {
|
|
2
|
+
.expanding-panel {
|
|
3
|
+
.expanding-panel-details {
|
|
4
|
+
.expanding-panel-summary {
|
|
5
|
+
&::-webkit-details-marker,
|
|
6
|
+
&::marker {
|
|
7
|
+
display: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.label-wrapper {
|
|
11
|
+
}
|
|
12
|
+
.icon-wrapper {
|
|
13
|
+
.icon {
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[open] {
|
|
19
|
+
.expanding-panel-summary {
|
|
20
|
+
.icon-wrapper {
|
|
21
|
+
.icon {
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
+ .expanding-panel-content {
|
|
26
|
+
.inner {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.expanding-panel-content {
|
|
33
|
+
.inner {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import "./_display-prompt-core";
|
|
2
|
+
@import "./_expanding-panel";
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* Margin */
|
|
2
|
+
.mi-auto {
|
|
3
|
+
margin-inline: auto;
|
|
4
|
+
}
|
|
5
|
+
.mis-auto {
|
|
6
|
+
margin-inline-start: auto;
|
|
7
|
+
}
|
|
8
|
+
.mie-auto {
|
|
9
|
+
margin-inline-end: auto;
|
|
10
|
+
}
|
|
11
|
+
.mb-auto {
|
|
12
|
+
margin-block: auto;
|
|
13
|
+
}
|
|
14
|
+
.mbs-auto {
|
|
15
|
+
margin-block-start: auto;
|
|
16
|
+
}
|
|
17
|
+
.mbe-auto {
|
|
18
|
+
margin-block-end: auto;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.mb-0 {
|
|
22
|
+
margin-block: 0;
|
|
23
|
+
}
|
|
24
|
+
.mi-0 {
|
|
25
|
+
margin-inline: 0;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.m-0 {
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
.mbs-0 {
|
|
32
|
+
margin-block-start: 0;
|
|
33
|
+
}
|
|
34
|
+
.mbe-0 {
|
|
35
|
+
margin-block-end: 0;
|
|
36
|
+
}
|
|
37
|
+
.mis-0 {
|
|
38
|
+
margin-inline-start: 0;
|
|
39
|
+
}
|
|
40
|
+
.mie-0 {
|
|
41
|
+
margin-inline-end: 0;
|
|
42
|
+
}
|
|
43
|
+
.mi-0 {
|
|
44
|
+
margin-inline: 0;
|
|
45
|
+
}
|
|
46
|
+
.mb-0 {
|
|
47
|
+
margin-block: 0;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.m-1 {
|
|
51
|
+
margin: 0.1rem;
|
|
52
|
+
}
|
|
53
|
+
.mbs-1 {
|
|
54
|
+
margin-block-start: 0.1rem;
|
|
55
|
+
}
|
|
56
|
+
.mbe-1 {
|
|
57
|
+
margin-block-end: 0.1rem;
|
|
58
|
+
}
|
|
59
|
+
.mis-1 {
|
|
60
|
+
margin-inline-start: 0.1rem;
|
|
61
|
+
}
|
|
62
|
+
.mie-1 {
|
|
63
|
+
margin-inline-end: 0.1rem;
|
|
64
|
+
}
|
|
65
|
+
.mi-1 {
|
|
66
|
+
margin-inline: 0.1rem;
|
|
67
|
+
}
|
|
68
|
+
.mb-1 {
|
|
69
|
+
margin-block: 0.1rem;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.m-2 {
|
|
73
|
+
margin: 0.2rem;
|
|
74
|
+
}
|
|
75
|
+
.mbs-2 {
|
|
76
|
+
margin-block-start: 0.2rem;
|
|
77
|
+
}
|
|
78
|
+
.mbe-2 {
|
|
79
|
+
margin-block-end: 0.2rem;
|
|
80
|
+
}
|
|
81
|
+
.mis-2 {
|
|
82
|
+
margin-inline-start: 0.2rem;
|
|
83
|
+
}
|
|
84
|
+
.mie-2 {
|
|
85
|
+
margin-inline-end: 0.2rem;
|
|
86
|
+
}
|
|
87
|
+
.mi-2 {
|
|
88
|
+
margin-inline: 0.2rem;
|
|
89
|
+
}
|
|
90
|
+
.mb-2 {
|
|
91
|
+
margin-block: 0.2rem;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.m-4 {
|
|
95
|
+
margin: 0.4rem;
|
|
96
|
+
}
|
|
97
|
+
.mbs-4 {
|
|
98
|
+
margin-block-start: 0.4rem;
|
|
99
|
+
}
|
|
100
|
+
.mbe-4 {
|
|
101
|
+
margin-block-end: 0.4rem;
|
|
102
|
+
}
|
|
103
|
+
.mis-4 {
|
|
104
|
+
margin-inline-start: 0.4rem;
|
|
105
|
+
}
|
|
106
|
+
.mie-4 {
|
|
107
|
+
margin-inline-end: 0.4rem;
|
|
108
|
+
}
|
|
109
|
+
.mi-4 {
|
|
110
|
+
margin-inline: 0.4rem;
|
|
111
|
+
}
|
|
112
|
+
.mb-4 {
|
|
113
|
+
margin-block: 0.4rem;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.m-6 {
|
|
117
|
+
margin: 0.6rem;
|
|
118
|
+
}
|
|
119
|
+
.mbs-6 {
|
|
120
|
+
margin-block-start: 0.6rem;
|
|
121
|
+
}
|
|
122
|
+
.mbe-6 {
|
|
123
|
+
margin-block-end: 0.6rem;
|
|
124
|
+
}
|
|
125
|
+
.mis-6 {
|
|
126
|
+
margin-inline-start: 0.6rem;
|
|
127
|
+
}
|
|
128
|
+
.mie-6 {
|
|
129
|
+
margin-inline-end: 0.6rem;
|
|
130
|
+
}
|
|
131
|
+
.mi-6 {
|
|
132
|
+
margin-inline: 0.6rem;
|
|
133
|
+
}
|
|
134
|
+
.mb-6 {
|
|
135
|
+
margin-block: 0.6rem;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.m-8 {
|
|
139
|
+
margin: 0.8rem;
|
|
140
|
+
}
|
|
141
|
+
.mbs-8 {
|
|
142
|
+
margin-block-start: 0.8rem;
|
|
143
|
+
}
|
|
144
|
+
.mbe-8 {
|
|
145
|
+
margin-block-end: 0.8rem;
|
|
146
|
+
}
|
|
147
|
+
.mis-8 {
|
|
148
|
+
margin-inline-start: 0.8rem;
|
|
149
|
+
}
|
|
150
|
+
.mie-8 {
|
|
151
|
+
margin-inline-end: 0.8rem;
|
|
152
|
+
}
|
|
153
|
+
.mi-8 {
|
|
154
|
+
margin-inline: 0.8rem;
|
|
155
|
+
}
|
|
156
|
+
.mb-8 {
|
|
157
|
+
margin-block: 0.8rem;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.m-10 {
|
|
161
|
+
margin: 1rem;
|
|
162
|
+
}
|
|
163
|
+
.mbs-10 {
|
|
164
|
+
margin-block-start: 1rem;
|
|
165
|
+
}
|
|
166
|
+
.mbe-10 {
|
|
167
|
+
margin-block-end: 1rem;
|
|
168
|
+
}
|
|
169
|
+
.mis-10 {
|
|
170
|
+
margin-inline-start: 1rem;
|
|
171
|
+
}
|
|
172
|
+
.mie-10 {
|
|
173
|
+
margin-inline-end: 1rem;
|
|
174
|
+
}
|
|
175
|
+
.mi-10 {
|
|
176
|
+
margin-inline: 1rem;
|
|
177
|
+
}
|
|
178
|
+
.mb-10 {
|
|
179
|
+
margin-block: 1rem;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.m-12 {
|
|
183
|
+
margin: 1.2rem;
|
|
184
|
+
}
|
|
185
|
+
.mbs-12 {
|
|
186
|
+
margin-block-start: 1.2rem;
|
|
187
|
+
}
|
|
188
|
+
.mbe-12 {
|
|
189
|
+
margin-block-end: 1.2rem;
|
|
190
|
+
}
|
|
191
|
+
.mis-12 {
|
|
192
|
+
margin-inline-start: 1.2rem;
|
|
193
|
+
}
|
|
194
|
+
.mie-12 {
|
|
195
|
+
margin-inline-end: 1.2rem;
|
|
196
|
+
}
|
|
197
|
+
.mi-12 {
|
|
198
|
+
margin-inline: 1.2rem;
|
|
199
|
+
}
|
|
200
|
+
.mb-12 {
|
|
201
|
+
margin-block: 1.2rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.m-18 {
|
|
205
|
+
margin: 1.8rem;
|
|
206
|
+
}
|
|
207
|
+
.mbs-18 {
|
|
208
|
+
margin-block-start: 1.8rem;
|
|
209
|
+
}
|
|
210
|
+
.mbe-18 {
|
|
211
|
+
margin-block-end: 1.8rem;
|
|
212
|
+
}
|
|
213
|
+
.mis-18 {
|
|
214
|
+
margin-inline-start: 1.8rem;
|
|
215
|
+
}
|
|
216
|
+
.mie-18 {
|
|
217
|
+
margin-inline-end: 1.8rem;
|
|
218
|
+
}
|
|
219
|
+
.mi-18 {
|
|
220
|
+
margin-inline: 1.8rem;
|
|
221
|
+
}
|
|
222
|
+
.mb-18 {
|
|
223
|
+
margin-block: 1.8rem;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.m-20 {
|
|
227
|
+
margin: 2rem;
|
|
228
|
+
}
|
|
229
|
+
.mbs-20 {
|
|
230
|
+
margin-block-start: 2rem;
|
|
231
|
+
}
|
|
232
|
+
.mbe-20 {
|
|
233
|
+
margin-block-end: 2rem;
|
|
234
|
+
}
|
|
235
|
+
.mis-20 {
|
|
236
|
+
margin-inline-start: 2rem;
|
|
237
|
+
}
|
|
238
|
+
.mie-20 {
|
|
239
|
+
margin-inline-end: 2rem;
|
|
240
|
+
}
|
|
241
|
+
.mi-20 {
|
|
242
|
+
margin-inline: 2rem;
|
|
243
|
+
}
|
|
244
|
+
.mb-20 {
|
|
245
|
+
margin-block: 2rem;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.m-24 {
|
|
249
|
+
margin: 2.4rem;
|
|
250
|
+
}
|
|
251
|
+
.mbs-24 {
|
|
252
|
+
margin-block-start: 2.4rem;
|
|
253
|
+
}
|
|
254
|
+
.mbe-24 {
|
|
255
|
+
margin-block-end: 2.4rem;
|
|
256
|
+
}
|
|
257
|
+
.mis-24 {
|
|
258
|
+
margin-inline-start: 2.4rem;
|
|
259
|
+
}
|
|
260
|
+
.mie-24 {
|
|
261
|
+
margin-inline-end: 2.4rem;
|
|
262
|
+
}
|
|
263
|
+
.mi-24 {
|
|
264
|
+
margin-inline: 2.4rem;
|
|
265
|
+
}
|
|
266
|
+
.mb-24 {
|
|
267
|
+
margin-block: 2.4rem;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.m-32 {
|
|
271
|
+
margin: 3.2rem;
|
|
272
|
+
}
|
|
273
|
+
.mbs-32 {
|
|
274
|
+
margin-block-start: 3.2rem;
|
|
275
|
+
}
|
|
276
|
+
.mbe-32 {
|
|
277
|
+
margin-block-end: 3.2rem;
|
|
278
|
+
}
|
|
279
|
+
.mis-32 {
|
|
280
|
+
margin-inline-start: 3.2rem;
|
|
281
|
+
}
|
|
282
|
+
.mie-32 {
|
|
283
|
+
margin-inline-end: 3.2rem;
|
|
284
|
+
}
|
|
285
|
+
.mi-32 {
|
|
286
|
+
margin-inline: 3.2rem;
|
|
287
|
+
}
|
|
288
|
+
.mb-32 {
|
|
289
|
+
margin-block: 3.2rem;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.m-40 {
|
|
293
|
+
margin: 4rem;
|
|
294
|
+
}
|
|
295
|
+
.mbs-40 {
|
|
296
|
+
margin-block-start: 4rem;
|
|
297
|
+
}
|
|
298
|
+
.mbe-40 {
|
|
299
|
+
margin-block-end: 4rem;
|
|
300
|
+
}
|
|
301
|
+
.mis-40 {
|
|
302
|
+
margin-inline-start: 4rem;
|
|
303
|
+
}
|
|
304
|
+
.mie-40 {
|
|
305
|
+
margin-inline-end: 4rem;
|
|
306
|
+
}
|
|
307
|
+
.mi-40 {
|
|
308
|
+
margin-inline: 4rem;
|
|
309
|
+
}
|
|
310
|
+
.mb-40 {
|
|
311
|
+
margin-block: 4rem;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.m-60 {
|
|
315
|
+
margin: 6rem;
|
|
316
|
+
}
|
|
317
|
+
.mbs-60 {
|
|
318
|
+
margin-block-start: 6rem;
|
|
319
|
+
}
|
|
320
|
+
.mbe-60 {
|
|
321
|
+
margin-block-end: 6rem;
|
|
322
|
+
}
|
|
323
|
+
.mis-60 {
|
|
324
|
+
margin-inline-start: 6rem;
|
|
325
|
+
}
|
|
326
|
+
.mie-60 {
|
|
327
|
+
margin-inline-end: 6rem;
|
|
328
|
+
}
|
|
329
|
+
.mi-60 {
|
|
330
|
+
margin-inline: 6rem;
|
|
331
|
+
}
|
|
332
|
+
.mb-60 {
|
|
333
|
+
margin-block: 6rem;
|
|
334
|
+
}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
/* Padding */
|
|
2
|
+
.p-0 {
|
|
3
|
+
padding: 0;
|
|
4
|
+
}
|
|
5
|
+
.pbs-0 {
|
|
6
|
+
padding-block-start: 0;
|
|
7
|
+
}
|
|
8
|
+
.pbe-0 {
|
|
9
|
+
padding-block-end: 0;
|
|
10
|
+
}
|
|
11
|
+
.pis-0 {
|
|
12
|
+
padding-inline-start: 0;
|
|
13
|
+
}
|
|
14
|
+
.pie-0 {
|
|
15
|
+
padding-inline-end: 0;
|
|
16
|
+
}
|
|
17
|
+
.pi-0 {
|
|
18
|
+
padding-inline: 0;
|
|
19
|
+
}
|
|
20
|
+
.pb-0 {
|
|
21
|
+
padding-block: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.p-1 {
|
|
25
|
+
padding: 0.1rem;
|
|
26
|
+
}
|
|
27
|
+
.pbs-1 {
|
|
28
|
+
padding-block-start: 0.1rem;
|
|
29
|
+
}
|
|
30
|
+
.pbe-1 {
|
|
31
|
+
padding-block-end: 0.1rem;
|
|
32
|
+
}
|
|
33
|
+
.pis-1 {
|
|
34
|
+
padding-inline-start: 0.1rem;
|
|
35
|
+
}
|
|
36
|
+
.pie-1 {
|
|
37
|
+
padding-inline-end: 0.1rem;
|
|
38
|
+
}
|
|
39
|
+
.pi-1 {
|
|
40
|
+
padding-inline: 0.1rem;
|
|
41
|
+
}
|
|
42
|
+
.pb-1 {
|
|
43
|
+
padding-block: 0.1rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-2 {
|
|
47
|
+
padding: 0.2rem;
|
|
48
|
+
}
|
|
49
|
+
.pbs-2 {
|
|
50
|
+
padding-block-start: 0.2rem;
|
|
51
|
+
}
|
|
52
|
+
.pbe-2 {
|
|
53
|
+
padding-block-end: 0.2rem;
|
|
54
|
+
}
|
|
55
|
+
.pis-2 {
|
|
56
|
+
padding-inline-start: 0.2rem;
|
|
57
|
+
}
|
|
58
|
+
.pie-2 {
|
|
59
|
+
padding-inline-end: 0.2rem;
|
|
60
|
+
}
|
|
61
|
+
.pi-2 {
|
|
62
|
+
padding-inline: 0.2rem;
|
|
63
|
+
}
|
|
64
|
+
.pb-2 {
|
|
65
|
+
padding-block: 0.2rem;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.p-4 {
|
|
69
|
+
padding: 0.4rem;
|
|
70
|
+
}
|
|
71
|
+
.pbs-4 {
|
|
72
|
+
padding-block-start: 0.4rem;
|
|
73
|
+
}
|
|
74
|
+
.pbe-4 {
|
|
75
|
+
padding-block-end: 0.4rem;
|
|
76
|
+
}
|
|
77
|
+
.pis-4 {
|
|
78
|
+
padding-inline-start: 0.4rem;
|
|
79
|
+
}
|
|
80
|
+
.pie-4 {
|
|
81
|
+
padding-inline-end: 0.4rem;
|
|
82
|
+
}
|
|
83
|
+
.pi-4 {
|
|
84
|
+
padding-inline: 0.4rem;
|
|
85
|
+
}
|
|
86
|
+
.pb-4 {
|
|
87
|
+
padding-block: 0.4rem;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.p-6 {
|
|
91
|
+
padding: 0.6rem;
|
|
92
|
+
}
|
|
93
|
+
.pbs-6 {
|
|
94
|
+
padding-block-start: 0.6rem;
|
|
95
|
+
}
|
|
96
|
+
.pbe-6 {
|
|
97
|
+
padding-block-end: 0.6rem;
|
|
98
|
+
}
|
|
99
|
+
.pis-6 {
|
|
100
|
+
padding-inline-start: 0.6rem;
|
|
101
|
+
}
|
|
102
|
+
.pie-6 {
|
|
103
|
+
padding-inline-end: 0.6rem;
|
|
104
|
+
}
|
|
105
|
+
.pi-6 {
|
|
106
|
+
padding-inline: 0.6rem;
|
|
107
|
+
}
|
|
108
|
+
.pb-6 {
|
|
109
|
+
padding-block: 0.6rem;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.p-8 {
|
|
113
|
+
padding: 0.8rem;
|
|
114
|
+
}
|
|
115
|
+
.pbs-8 {
|
|
116
|
+
padding-block-start: 0.8rem;
|
|
117
|
+
}
|
|
118
|
+
.pbe-8 {
|
|
119
|
+
padding-block-end: 0.8rem;
|
|
120
|
+
}
|
|
121
|
+
.pis-8 {
|
|
122
|
+
padding-inline-start: 0.8rem;
|
|
123
|
+
}
|
|
124
|
+
.pie-8 {
|
|
125
|
+
padding-inline-end: 0.8rem;
|
|
126
|
+
}
|
|
127
|
+
.pi-8 {
|
|
128
|
+
padding-inline: 0.8rem;
|
|
129
|
+
}
|
|
130
|
+
.pb-8 {
|
|
131
|
+
padding-block: 0.8rem;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.p-10 {
|
|
135
|
+
padding: 1rem;
|
|
136
|
+
}
|
|
137
|
+
.pbs-10 {
|
|
138
|
+
padding-block-start: 1rem;
|
|
139
|
+
}
|
|
140
|
+
.pbe-10 {
|
|
141
|
+
padding-block-end: 1rem;
|
|
142
|
+
}
|
|
143
|
+
.pis-10 {
|
|
144
|
+
padding-inline-start: 1rem;
|
|
145
|
+
}
|
|
146
|
+
.pie-10 {
|
|
147
|
+
padding-inline-end: 1rem;
|
|
148
|
+
}
|
|
149
|
+
.pi-10 {
|
|
150
|
+
padding-inline: 1rem;
|
|
151
|
+
}
|
|
152
|
+
.pb-10 {
|
|
153
|
+
padding-block: 1rem;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.p-12 {
|
|
157
|
+
padding: 1.2rem;
|
|
158
|
+
}
|
|
159
|
+
.pbs-12 {
|
|
160
|
+
padding-block-start: 1.2rem;
|
|
161
|
+
}
|
|
162
|
+
.pbe-12 {
|
|
163
|
+
padding-block-end: 1.2rem;
|
|
164
|
+
}
|
|
165
|
+
.pis-12 {
|
|
166
|
+
padding-inline-start: 1.2rem;
|
|
167
|
+
}
|
|
168
|
+
.pie-12 {
|
|
169
|
+
padding-inline-end: 1.2rem;
|
|
170
|
+
}
|
|
171
|
+
.pi-12 {
|
|
172
|
+
padding-inline: 1.2rem;
|
|
173
|
+
}
|
|
174
|
+
.pb-12 {
|
|
175
|
+
padding-block: 1.2rem;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.p-18 {
|
|
179
|
+
padding: 1.8rem;
|
|
180
|
+
}
|
|
181
|
+
.pbs-18 {
|
|
182
|
+
padding-block-start: 1.8rem;
|
|
183
|
+
}
|
|
184
|
+
.pbe-18 {
|
|
185
|
+
padding-block-end: 1.8rem;
|
|
186
|
+
}
|
|
187
|
+
.pis-18 {
|
|
188
|
+
padding-inline-start: 1.8rem;
|
|
189
|
+
}
|
|
190
|
+
.pie-18 {
|
|
191
|
+
padding-inline-end: 1.8rem;
|
|
192
|
+
}
|
|
193
|
+
.pi-18 {
|
|
194
|
+
padding-inline: 1.8rem;
|
|
195
|
+
}
|
|
196
|
+
.pb-18 {
|
|
197
|
+
padding-block: 1.8rem;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.p-20 {
|
|
201
|
+
padding: 2rem;
|
|
202
|
+
}
|
|
203
|
+
.pbs-20 {
|
|
204
|
+
padding-block-start: 2rem;
|
|
205
|
+
}
|
|
206
|
+
.pbe-20 {
|
|
207
|
+
padding-block-end: 2rem;
|
|
208
|
+
}
|
|
209
|
+
.pis-20 {
|
|
210
|
+
padding-inline-start: 2rem;
|
|
211
|
+
}
|
|
212
|
+
.pie-20 {
|
|
213
|
+
padding-inline-end: 2rem;
|
|
214
|
+
}
|
|
215
|
+
.pi-20 {
|
|
216
|
+
padding-inline: 2rem;
|
|
217
|
+
}
|
|
218
|
+
.pb-20 {
|
|
219
|
+
padding-block: 2rem;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.p-24 {
|
|
223
|
+
padding: 2.4rem;
|
|
224
|
+
}
|
|
225
|
+
.pbs-24 {
|
|
226
|
+
padding-block-start: 2.4rem;
|
|
227
|
+
}
|
|
228
|
+
.pbe-24 {
|
|
229
|
+
padding-block-end: 2.4rem;
|
|
230
|
+
}
|
|
231
|
+
.pis-24 {
|
|
232
|
+
padding-inline-start: 2.4rem;
|
|
233
|
+
}
|
|
234
|
+
.pie-24 {
|
|
235
|
+
padding-inline-end: 2.4rem;
|
|
236
|
+
}
|
|
237
|
+
.pi-24 {
|
|
238
|
+
padding-inline: 2.4rem;
|
|
239
|
+
}
|
|
240
|
+
.pb-24 {
|
|
241
|
+
padding-block: 2.4rem;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.p-32 {
|
|
245
|
+
padding: 3.2rem;
|
|
246
|
+
}
|
|
247
|
+
.pbs-32 {
|
|
248
|
+
padding-block-start: 3.2rem;
|
|
249
|
+
}
|
|
250
|
+
.pbe-32 {
|
|
251
|
+
padding-block-end: 3.2rem;
|
|
252
|
+
}
|
|
253
|
+
.pis-32 {
|
|
254
|
+
padding-inline-start: 3.2rem;
|
|
255
|
+
}
|
|
256
|
+
.pie-32 {
|
|
257
|
+
padding-inline-end: 3.2rem;
|
|
258
|
+
}
|
|
259
|
+
.pi-32 {
|
|
260
|
+
padding-inline: 3.2rem;
|
|
261
|
+
}
|
|
262
|
+
.pb-32 {
|
|
263
|
+
padding-block: 3.2rem;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
.p-40 {
|
|
267
|
+
padding: 4rem;
|
|
268
|
+
}
|
|
269
|
+
.pbs-40 {
|
|
270
|
+
padding-block-start: 4rem;
|
|
271
|
+
}
|
|
272
|
+
.pbe-40 {
|
|
273
|
+
padding-block-end: 4rem;
|
|
274
|
+
}
|
|
275
|
+
.pis-40 {
|
|
276
|
+
padding-inline-start: 4rem;
|
|
277
|
+
}
|
|
278
|
+
.pie-40 {
|
|
279
|
+
padding-inline-end: 4rem;
|
|
280
|
+
}
|
|
281
|
+
.pi-40 {
|
|
282
|
+
padding-inline: 4rem;
|
|
283
|
+
}
|
|
284
|
+
.pb-40 {
|
|
285
|
+
padding-block: 4rem;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.p-60 {
|
|
289
|
+
padding: 6rem;
|
|
290
|
+
}
|
|
291
|
+
.pbs-60 {
|
|
292
|
+
padding-block-start: 6rem;
|
|
293
|
+
}
|
|
294
|
+
.pbe-60 {
|
|
295
|
+
padding-block-end: 6rem;
|
|
296
|
+
}
|
|
297
|
+
.pis-60 {
|
|
298
|
+
padding-inline-start: 6rem;
|
|
299
|
+
}
|
|
300
|
+
.pie-60 {
|
|
301
|
+
padding-inline-end: 6rem;
|
|
302
|
+
}
|
|
303
|
+
.pi-60 {
|
|
304
|
+
padding-inline: 6rem;
|
|
305
|
+
}
|
|
306
|
+
.pb-60 {
|
|
307
|
+
padding-block: 6rem;
|
|
308
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<details
|
|
2
|
+
<details :name="name" class="display-details" :class="[elementClasses]" ref="detailsRef">
|
|
3
3
|
<summary class="display-details-summary" :id="triggerId" :aria-controls="contentId" ref="summaryRef">
|
|
4
4
|
<span class="label">
|
|
5
5
|
<slot name="summary"></slot>
|
|
@@ -9,175 +9,13 @@
|
|
|
9
9
|
</slot>
|
|
10
10
|
</summary>
|
|
11
11
|
<div class="display-details-content" :aria-labelledby="triggerId" :id="contentId" role="region" ref="contentRef">
|
|
12
|
-
<
|
|
12
|
+
<div class="inner">
|
|
13
|
+
<slot name="details-content"></slot>
|
|
14
|
+
</div>
|
|
13
15
|
</div>
|
|
14
16
|
</details>
|
|
15
17
|
</template>
|
|
16
18
|
|
|
17
|
-
<script lang="ts">
|
|
18
|
-
// Create a global store to track open details elements by name
|
|
19
|
-
const openDetailsByName = reactive(new Map<string, HTMLDetailsElement>());
|
|
20
|
-
|
|
21
|
-
export const useDetailsTransition = (
|
|
22
|
-
detailsRef: Ref<HTMLDetailsElement | null>,
|
|
23
|
-
summaryRef: Ref<HTMLElement | null>,
|
|
24
|
-
contentRef: Ref<HTMLDivElement | null>,
|
|
25
|
-
name: string,
|
|
26
|
-
animationDuration: number
|
|
27
|
-
) => {
|
|
28
|
-
// State
|
|
29
|
-
const animation = ref<Animation | null>(null);
|
|
30
|
-
const isClosing = ref(false);
|
|
31
|
-
const isExpanding = ref(false);
|
|
32
|
-
|
|
33
|
-
// Check if refs are available
|
|
34
|
-
if (!detailsRef.value || !summaryRef.value || !contentRef.value) {
|
|
35
|
-
console.warn('Details, summary, or content ref is null');
|
|
36
|
-
return {
|
|
37
|
-
clickAction: () => console.warn('Component not fully initialized'),
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const closeOtherDetailsWithSameName = () => {
|
|
42
|
-
const currentDetails = detailsRef.value;
|
|
43
|
-
if (!currentDetails || !name) return;
|
|
44
|
-
|
|
45
|
-
// Get the currently open details with the same name
|
|
46
|
-
const openDetails = openDetailsByName.get(name);
|
|
47
|
-
|
|
48
|
-
// If there's an open details with the same name and it's not the current one, close it
|
|
49
|
-
if (openDetails && openDetails !== currentDetails && openDetails.open) {
|
|
50
|
-
// Simulate a click on the other details to close it with animation
|
|
51
|
-
const otherSummary = openDetails.querySelector('summary');
|
|
52
|
-
if (otherSummary) {
|
|
53
|
-
otherSummary.click();
|
|
54
|
-
} else {
|
|
55
|
-
// Fallback: close directly without animation
|
|
56
|
-
openDetails.open = false;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Update the map with the current details if it's open
|
|
61
|
-
if (currentDetails.open) {
|
|
62
|
-
openDetailsByName.set(name, currentDetails);
|
|
63
|
-
} else {
|
|
64
|
-
// If it's closed and was the one in the map, remove it
|
|
65
|
-
if (openDetailsByName.get(name) === currentDetails) {
|
|
66
|
-
openDetailsByName.delete(name);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const clickAction = () => {
|
|
72
|
-
const details = detailsRef.value;
|
|
73
|
-
const summary = summaryRef.value;
|
|
74
|
-
const content = contentRef.value;
|
|
75
|
-
|
|
76
|
-
if (!details || !summary || !content) return;
|
|
77
|
-
|
|
78
|
-
// Add overflow hidden to avoid content jumping
|
|
79
|
-
details.style.overflow = 'hidden';
|
|
80
|
-
|
|
81
|
-
if (isClosing.value || !details.open) {
|
|
82
|
-
// Close other details with the same name first
|
|
83
|
-
closeOtherDetailsWithSameName();
|
|
84
|
-
|
|
85
|
-
// Open the details
|
|
86
|
-
details.open = true;
|
|
87
|
-
isExpanding.value = true;
|
|
88
|
-
isClosing.value = false;
|
|
89
|
-
|
|
90
|
-
// Get the height of the content
|
|
91
|
-
const detailsHeight = details.offsetHeight;
|
|
92
|
-
const contentHeight = content.offsetHeight;
|
|
93
|
-
const summaryHeight = summary.offsetHeight;
|
|
94
|
-
|
|
95
|
-
const startHeight = `${detailsHeight - contentHeight}px`;
|
|
96
|
-
const endHeight = `${summaryHeight + contentHeight}px`;
|
|
97
|
-
|
|
98
|
-
// If there's an animation running, cancel it
|
|
99
|
-
if (animation.value) {
|
|
100
|
-
animation.value.cancel();
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Start animation
|
|
104
|
-
animation.value = details.animate(
|
|
105
|
-
{
|
|
106
|
-
height: [startHeight, endHeight],
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
duration: animationDuration,
|
|
110
|
-
easing: 'linear',
|
|
111
|
-
}
|
|
112
|
-
);
|
|
113
|
-
|
|
114
|
-
animation.value.onfinish = () => {
|
|
115
|
-
// Animation finished - reset everything
|
|
116
|
-
details.style.height = 'auto';
|
|
117
|
-
details.style.overflow = '';
|
|
118
|
-
isExpanding.value = false;
|
|
119
|
-
animation.value = null;
|
|
120
|
-
|
|
121
|
-
// Register this as the open details for this name
|
|
122
|
-
openDetailsByName.set(name, details);
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
animation.value.oncancel = () => {
|
|
126
|
-
isExpanding.value = false;
|
|
127
|
-
};
|
|
128
|
-
} else if (isExpanding.value || details.open) {
|
|
129
|
-
// Close the details
|
|
130
|
-
isClosing.value = true;
|
|
131
|
-
isExpanding.value = false;
|
|
132
|
-
|
|
133
|
-
// Get the height of the content
|
|
134
|
-
const startHeight = `${details.offsetHeight}px`;
|
|
135
|
-
const endHeight = `${details.offsetHeight - content.offsetHeight}px`;
|
|
136
|
-
|
|
137
|
-
// If there's an animation running, cancel it
|
|
138
|
-
if (animation.value) {
|
|
139
|
-
animation.value.cancel();
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
// Start animation
|
|
143
|
-
animation.value = details.animate(
|
|
144
|
-
{
|
|
145
|
-
height: [startHeight, endHeight],
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
duration: animationDuration,
|
|
149
|
-
easing: 'linear',
|
|
150
|
-
}
|
|
151
|
-
);
|
|
152
|
-
|
|
153
|
-
animation.value.onfinish = () => {
|
|
154
|
-
// Animation finished - reset everything
|
|
155
|
-
details.open = false;
|
|
156
|
-
details.style.height = 'auto';
|
|
157
|
-
details.style.overflow = '';
|
|
158
|
-
isClosing.value = false;
|
|
159
|
-
animation.value = null;
|
|
160
|
-
|
|
161
|
-
// Remove this from the open details map if it's there
|
|
162
|
-
if (openDetailsByName.get(name) === details) {
|
|
163
|
-
openDetailsByName.delete(name);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
|
|
167
|
-
animation.value.oncancel = () => {
|
|
168
|
-
isClosing.value = false;
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
return {
|
|
174
|
-
clickAction,
|
|
175
|
-
isClosing,
|
|
176
|
-
isExpanding,
|
|
177
|
-
};
|
|
178
|
-
};
|
|
179
|
-
</script>
|
|
180
|
-
|
|
181
19
|
<script setup lang="ts">
|
|
182
20
|
const props = defineProps({
|
|
183
21
|
name: {
|
|
@@ -188,58 +26,31 @@ const props = defineProps({
|
|
|
188
26
|
type: String,
|
|
189
27
|
required: true,
|
|
190
28
|
},
|
|
191
|
-
animationDuration: {
|
|
192
|
-
type: Number,
|
|
193
|
-
default: 400,
|
|
194
|
-
},
|
|
195
29
|
iconSize: {
|
|
196
30
|
type: String,
|
|
197
|
-
default:
|
|
31
|
+
default: "small",
|
|
198
32
|
validator(value: string) {
|
|
199
|
-
return [
|
|
33
|
+
return ["small", "medium", "large"].includes(value)
|
|
200
34
|
},
|
|
201
35
|
},
|
|
202
36
|
styleClassPassthrough: {
|
|
203
37
|
type: Array as PropType<string[]>,
|
|
204
38
|
default: () => [],
|
|
205
39
|
},
|
|
206
|
-
})
|
|
207
|
-
|
|
208
|
-
const triggerId = computed(() => `${props.id}-trigger`);
|
|
209
|
-
const contentId = computed(() => `${props.id}-content`);
|
|
40
|
+
})
|
|
210
41
|
|
|
211
|
-
const
|
|
42
|
+
const triggerId = computed(() => `${props.id}-trigger`)
|
|
43
|
+
const contentId = computed(() => `${props.id}-content`)
|
|
212
44
|
|
|
213
|
-
updateElementClasses(
|
|
45
|
+
const { elementClasses, resetElementClasses, updateElementClasses } = useStyleClassPassthrough(
|
|
46
|
+
props.styleClassPassthrough
|
|
47
|
+
)
|
|
214
48
|
|
|
215
|
-
|
|
216
|
-
const summaryRef = ref<HTMLElement | null>(null);
|
|
217
|
-
const contentRef = ref<HTMLDivElement | null>(null);
|
|
49
|
+
updateElementClasses([props.iconSize])
|
|
218
50
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
// Handle click with the current clickAction function
|
|
223
|
-
const handleClick = () => {
|
|
224
|
-
clickAction();
|
|
225
|
-
};
|
|
226
|
-
|
|
227
|
-
watch(
|
|
228
|
-
() => props.styleClassPassthrough,
|
|
229
|
-
() => {
|
|
230
|
-
resetElementClasses(props.styleClassPassthrough);
|
|
231
|
-
}
|
|
232
|
-
);
|
|
233
|
-
|
|
234
|
-
onMounted(() => {
|
|
235
|
-
// Initialize the composable once the component is mounted and refs are available
|
|
236
|
-
if (detailsRef.value && contentRef.value && summaryRef.value) {
|
|
237
|
-
const details = useDetailsTransition(detailsRef, summaryRef, contentRef, props.name, props.animationDuration);
|
|
238
|
-
clickAction = details.clickAction; // Assign the real click handler
|
|
239
|
-
} else {
|
|
240
|
-
console.error('Refs not available after mounting');
|
|
241
|
-
}
|
|
242
|
-
});
|
|
51
|
+
const detailsRef = useTemplateRef<HTMLDetailsElement>("detailsRef")
|
|
52
|
+
const summaryRef = useTemplateRef<HTMLElement | null>("summaryRef")
|
|
53
|
+
const contentRef = useTemplateRef<HTMLDivElement | null>("contentRef")
|
|
243
54
|
</script>
|
|
244
55
|
|
|
245
56
|
<style lang="css">
|
|
@@ -255,6 +66,10 @@ onMounted(() => {
|
|
|
255
66
|
transform: scaleY(-1);
|
|
256
67
|
}
|
|
257
68
|
}
|
|
69
|
+
.display-details-content {
|
|
70
|
+
grid-template-rows: 1fr;
|
|
71
|
+
overflow: hidden;
|
|
72
|
+
}
|
|
258
73
|
}
|
|
259
74
|
|
|
260
75
|
.display-details-summary {
|
|
@@ -282,7 +97,6 @@ onMounted(() => {
|
|
|
282
97
|
display: block;
|
|
283
98
|
|
|
284
99
|
transform: scaleY(1);
|
|
285
|
-
transition: transform 200ms;
|
|
286
100
|
|
|
287
101
|
font-size: 1.2rem;
|
|
288
102
|
&.medium {
|
|
@@ -295,7 +109,12 @@ onMounted(() => {
|
|
|
295
109
|
}
|
|
296
110
|
|
|
297
111
|
.display-details-content {
|
|
298
|
-
|
|
112
|
+
display: grid;
|
|
113
|
+
grid-template-rows: 0;
|
|
114
|
+
|
|
115
|
+
.inner {
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
}
|
|
299
118
|
}
|
|
300
119
|
}
|
|
301
120
|
</style>
|
|
@@ -57,17 +57,17 @@ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
|
57
57
|
align-items: center;
|
|
58
58
|
justify-content: space-between;
|
|
59
59
|
flex-direction: row;
|
|
60
|
-
gap:
|
|
60
|
+
gap: 1rem;
|
|
61
61
|
list-style: none;
|
|
62
62
|
|
|
63
|
-
padding-
|
|
63
|
+
padding-block: 0.5rem;
|
|
64
64
|
|
|
65
65
|
&::-webkit-details-marker,
|
|
66
66
|
&::marker {
|
|
67
67
|
display: none;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
overflow:
|
|
70
|
+
overflow: hidden;
|
|
71
71
|
|
|
72
72
|
.label-wrapper {
|
|
73
73
|
}
|
|
@@ -77,8 +77,6 @@ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
|
77
77
|
justify-content: space-between;
|
|
78
78
|
|
|
79
79
|
aspect-ratio: 1;
|
|
80
|
-
outline: 1px solid var(--gray-3);
|
|
81
|
-
padding: 1rem;
|
|
82
80
|
overflow: hidden;
|
|
83
81
|
|
|
84
82
|
.icon {
|
|
@@ -101,7 +99,7 @@ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
|
101
99
|
+ .expanding-panel-content {
|
|
102
100
|
grid-template-rows: 1fr;
|
|
103
101
|
.inner {
|
|
104
|
-
|
|
102
|
+
transition: all v-bind(animationDurationStr) ease-in-out;
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
105
|
}
|
|
@@ -114,10 +112,7 @@ const { elementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
|
114
112
|
|
|
115
113
|
.inner {
|
|
116
114
|
overflow: hidden;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
/* transform: scaleY(0); */
|
|
120
|
-
/* transition: transform v-bind(animationDurationStr) ease-in-out; */
|
|
115
|
+
margin-top: 0;
|
|
121
116
|
}
|
|
122
117
|
}
|
|
123
118
|
}
|
|
@@ -13,7 +13,10 @@
|
|
|
13
13
|
v-if="link.path"
|
|
14
14
|
class="overflow-navigation-item"
|
|
15
15
|
:class="{ visible: !mainNavigationState.clonedNavLinks?.[groupKey]?.[localIndex]?.config?.visible }"
|
|
16
|
-
:style="{
|
|
16
|
+
:style="{
|
|
17
|
+
'--_main-navigation-item-width':
|
|
18
|
+
mainNavigationState.clonedNavLinks?.[groupKey]?.[localIndex]?.config?.width + 'px',
|
|
19
|
+
}"
|
|
17
20
|
:data-group-key="groupKey"
|
|
18
21
|
:data-local-index="localIndex"
|
|
19
22
|
role="none"
|
|
@@ -26,28 +29,41 @@
|
|
|
26
29
|
v-else
|
|
27
30
|
class="overflow-navigation-item"
|
|
28
31
|
:class="{ visible: !mainNavigationState.clonedNavLinks?.[groupKey]?.[localIndex]?.config?.visible }"
|
|
29
|
-
:style="{
|
|
32
|
+
:style="{
|
|
33
|
+
'--_main-navigation-item-width':
|
|
34
|
+
mainNavigationState.clonedNavLinks?.[groupKey]?.[localIndex]?.config?.width + 'px',
|
|
35
|
+
}"
|
|
30
36
|
:data-group-key="groupKey"
|
|
31
37
|
:data-local-index="localIndex"
|
|
32
38
|
role="none"
|
|
33
39
|
>
|
|
34
|
-
<
|
|
35
|
-
:id="useId()"
|
|
40
|
+
<ExpandingPanel
|
|
36
41
|
name="overflow-navigation-group"
|
|
37
42
|
:animation-duration="detailsAanimationDuration"
|
|
38
43
|
icon-size="medium"
|
|
39
44
|
:style-class-passthrough="['overflow-navigation-details']"
|
|
40
45
|
>
|
|
41
46
|
<template #summary>
|
|
42
|
-
<span
|
|
47
|
+
<span
|
|
48
|
+
class="overflow-navigation-text"
|
|
49
|
+
:aria-label="`${link.childLinksTitle} submenu`"
|
|
50
|
+
role="menuitem"
|
|
51
|
+
:aria-haspopup="true"
|
|
52
|
+
>
|
|
53
|
+
{{ link.childLinksTitle }}
|
|
54
|
+
</span>
|
|
43
55
|
</template>
|
|
44
|
-
<template #
|
|
56
|
+
<template #icon>
|
|
45
57
|
<Icon name="mdi:chevron-down" class="icon" :aria-hidden="true" />
|
|
46
58
|
</template>
|
|
47
|
-
<template #
|
|
59
|
+
<template #content>
|
|
48
60
|
<div class="overflow-navigation-sub-nav-inner">
|
|
49
61
|
<ul class="overflow-navigation-sub-nav-list">
|
|
50
|
-
<li
|
|
62
|
+
<li
|
|
63
|
+
v-for="childLink in link.childLinks"
|
|
64
|
+
:key="childLink.name"
|
|
65
|
+
class="overflow-navigation-sub-nav-item"
|
|
66
|
+
>
|
|
51
67
|
<NuxtLink :to="childLink.path" class="overflow-navigation-sub-nav-link" role="menuitem">
|
|
52
68
|
<span class="overflow-navigation-sub-nav-text">{{ childLink.name }}</span>
|
|
53
69
|
</NuxtLink>
|
|
@@ -55,7 +71,7 @@
|
|
|
55
71
|
</ul>
|
|
56
72
|
</div>
|
|
57
73
|
</template>
|
|
58
|
-
</
|
|
74
|
+
</ExpandingPanel>
|
|
59
75
|
</li>
|
|
60
76
|
</template>
|
|
61
77
|
</ul>
|
|
@@ -63,7 +79,7 @@
|
|
|
63
79
|
</template>
|
|
64
80
|
|
|
65
81
|
<script setup lang="ts">
|
|
66
|
-
import type { ResponsiveHeaderState } from
|
|
82
|
+
import type { ResponsiveHeaderState } from "@/types/responsiveHeader"
|
|
67
83
|
|
|
68
84
|
const props = defineProps({
|
|
69
85
|
mainNavigationState: {
|
|
@@ -74,32 +90,35 @@ const props = defineProps({
|
|
|
74
90
|
type: Array as PropType<string[]>,
|
|
75
91
|
default: () => [],
|
|
76
92
|
},
|
|
77
|
-
})
|
|
93
|
+
})
|
|
78
94
|
|
|
79
|
-
const detailsAanimationDuration = 200
|
|
80
|
-
const detailsAanimationDurationString = `${detailsAanimationDuration}ms
|
|
95
|
+
const detailsAanimationDuration = 200
|
|
96
|
+
const detailsAanimationDurationString = `${detailsAanimationDuration}ms`
|
|
81
97
|
|
|
82
98
|
const widestNavLinkWidthInMainNavigationState = computed(() => {
|
|
83
99
|
return Object.values(props.mainNavigationState.clonedNavLinks || {}).reduce((maxWidth, group) => {
|
|
84
|
-
return Math.max(maxWidth, ...group.map((link) => link.config?.width || 0))
|
|
85
|
-
}, 0)
|
|
86
|
-
})
|
|
100
|
+
return Math.max(maxWidth, ...group.map((link) => link.config?.width || 0))
|
|
101
|
+
}, 0)
|
|
102
|
+
})
|
|
87
103
|
|
|
88
|
-
const { elementClasses, resetElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
104
|
+
const { elementClasses, resetElementClasses } = useStyleClassPassthrough(props.styleClassPassthrough)
|
|
89
105
|
|
|
90
106
|
watch(
|
|
91
107
|
() => props.styleClassPassthrough,
|
|
92
108
|
() => {
|
|
93
|
-
resetElementClasses(props.styleClassPassthrough)
|
|
109
|
+
resetElementClasses(props.styleClassPassthrough)
|
|
94
110
|
}
|
|
95
|
-
)
|
|
111
|
+
)
|
|
96
112
|
</script>
|
|
97
113
|
|
|
98
114
|
<style lang="css">
|
|
99
115
|
.overflow-navigation-wrapper {
|
|
116
|
+
--overflow-nav-padding-inline: 0.8rem;
|
|
117
|
+
--overflow-nav-items-gap: 0px;
|
|
118
|
+
--overflow-nav-items-padding-block: 0.8rem;
|
|
100
119
|
display: flex;
|
|
101
120
|
flex-direction: column;
|
|
102
|
-
gap:
|
|
121
|
+
gap: var(--overflow-nav-items-gap);
|
|
103
122
|
|
|
104
123
|
.overflow-navigation-list {
|
|
105
124
|
display: none;
|
|
@@ -107,7 +126,7 @@ watch(
|
|
|
107
126
|
&.visible {
|
|
108
127
|
display: flex;
|
|
109
128
|
flex-direction: column;
|
|
110
|
-
gap:
|
|
129
|
+
gap: var(--overflow-nav-items-gap);
|
|
111
130
|
min-width: var(--_overflow-navigation-list-min-width, auto);
|
|
112
131
|
}
|
|
113
132
|
|
|
@@ -121,41 +140,72 @@ watch(
|
|
|
121
140
|
.overflow-navigation-link {
|
|
122
141
|
text-decoration: none;
|
|
123
142
|
color: inherit;
|
|
143
|
+
padding-block: var(--overflow-nav-items-padding-block);
|
|
144
|
+
padding-inline: var(--overflow-nav-padding-inline);
|
|
145
|
+
display: flex;
|
|
146
|
+
/* background-color: red; */
|
|
147
|
+
border-bottom: 0.1rem solid #efefef75;
|
|
124
148
|
}
|
|
125
149
|
|
|
126
150
|
.overflow-navigation-details {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
&[open] {
|
|
130
|
-
--_overflow-navigation-sub-nav-list-margin-block-start: 12px;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
&.display-details {
|
|
151
|
+
&.expanding-panel {
|
|
134
152
|
margin-block-end: 0;
|
|
135
153
|
|
|
136
|
-
.
|
|
137
|
-
.
|
|
138
|
-
|
|
139
|
-
|
|
154
|
+
.expanding-panel-details {
|
|
155
|
+
.expanding-panel-summary {
|
|
156
|
+
padding-block: var(--overflow-nav-items-padding-block);
|
|
157
|
+
padding-inline: var(--overflow-nav-padding-inline);
|
|
158
|
+
gap: 1rem;
|
|
159
|
+
/* background-color: red; */
|
|
160
|
+
border-bottom: 0.1rem solid #efefef75;
|
|
161
|
+
|
|
162
|
+
.label-wrapper {
|
|
163
|
+
.overflow-navigation-text {
|
|
164
|
+
text-wrap: nowrap;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
.icon-wrapper {
|
|
168
|
+
padding: 0;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
&[open] {
|
|
173
|
+
.expanding-panel-summary {
|
|
174
|
+
border-bottom: 0.1rem solid transparent;
|
|
175
|
+
}
|
|
176
|
+
+ .expanding-panel-content {
|
|
177
|
+
border-bottom: 0.1rem solid #efefef75;
|
|
178
|
+
.inner {
|
|
179
|
+
.overflow-navigation-sub-nav-inner {
|
|
180
|
+
margin-top: var(--overflow-nav-items-gap);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
140
183
|
}
|
|
141
184
|
}
|
|
142
|
-
/* .icon {} */
|
|
143
185
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
186
|
+
|
|
187
|
+
.expanding-panel-content {
|
|
188
|
+
border-bottom: 0.1rem solid transparent;
|
|
189
|
+
|
|
190
|
+
.inner {
|
|
191
|
+
margin-top: 0;
|
|
192
|
+
|
|
193
|
+
.overflow-navigation-sub-nav-inner {
|
|
194
|
+
margin-top: 0;
|
|
195
|
+
|
|
196
|
+
.overflow-navigation-sub-nav-list {
|
|
197
|
+
display: flex;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
gap: 2px;
|
|
200
|
+
|
|
201
|
+
.overflow-navigation-sub-nav-item {
|
|
202
|
+
padding-block: var(--overflow-nav-items-padding-block);
|
|
203
|
+
padding-inline: var(--overflow-nav-padding-inline);
|
|
204
|
+
|
|
205
|
+
.overflow-navigation-sub-nav-link {
|
|
206
|
+
text-decoration: none;
|
|
207
|
+
color: inherit;
|
|
208
|
+
}
|
|
159
209
|
}
|
|
160
210
|
}
|
|
161
211
|
}
|
package/package.json
CHANGED