@asd20/ui 3.2.380 → 3.2.383
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 +1 -1
- package/src/components/molecules/Asd20SearchField/index.vue +3 -2
- package/src/components/organisms/Asd20FileList/index.vue +44 -0
- package/src/components/organisms/Asd20ImageGallery/index.vue +2 -2
- package/src/components/organisms/Asd20SiteSearch/index.vue +1 -1
- package/src/components/templates/Asd20ProfileTemplate/index.vue +23 -14
- package/src/data/page-queries/filelist-page-query-result.json +1 -1
- package/src/helpers/mapPageQueryResultToPageTemplateProps.js +2 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
<label for="asd20-search">Search</label>
|
|
7
7
|
<input
|
|
8
|
-
id="asd20-search"
|
|
8
|
+
:id="`asd20-search${idTag}`"
|
|
9
9
|
:value="value"
|
|
10
10
|
type="search"
|
|
11
11
|
:placeholder="placeholder"
|
|
@@ -28,6 +28,7 @@ export default {
|
|
|
28
28
|
props: {
|
|
29
29
|
value: { type: String, default: '' },
|
|
30
30
|
extra: { type: String, default: '' },
|
|
31
|
+
idTag: { type: String, default: '' },
|
|
31
32
|
large: { type: Boolean, default: false },
|
|
32
33
|
placeholder: { type: String, default: 'Search' },
|
|
33
34
|
},
|
|
@@ -84,7 +85,7 @@ export default {
|
|
|
84
85
|
// font-size: space(0.75);
|
|
85
86
|
font-size: space(0.625);
|
|
86
87
|
line-height: 1;
|
|
87
|
-
height: space(
|
|
88
|
+
height: space(1.5);
|
|
88
89
|
background: white;
|
|
89
90
|
transition: background asd20-speed(1) ease;
|
|
90
91
|
|
|
@@ -35,6 +35,7 @@ export default {
|
|
|
35
35
|
url: { type: String, default: '' },
|
|
36
36
|
groupByOwner: { type: Boolean, default: false },
|
|
37
37
|
groupByCategory: { type: Boolean, default: false },
|
|
38
|
+
groupByCategoryDescending: { type: Boolean, default: false },
|
|
38
39
|
groupByTag: { type: Boolean, default: false },
|
|
39
40
|
groupByDate: { type: Boolean, default: false },
|
|
40
41
|
maxHeight: { type: String, default: '320px' },
|
|
@@ -63,6 +64,8 @@ export default {
|
|
|
63
64
|
return this.fileItemsGroupedByOwner
|
|
64
65
|
} else if (this.groupByTag) {
|
|
65
66
|
return this.fileItemsGroupedByTag
|
|
67
|
+
} else if (this.groupByCategoryDescending) {
|
|
68
|
+
return this.fileItemsGroupedByCategoryDescending
|
|
66
69
|
}
|
|
67
70
|
return this.fileItemsGroupedByCategory
|
|
68
71
|
},
|
|
@@ -108,6 +111,47 @@ export default {
|
|
|
108
111
|
})
|
|
109
112
|
},
|
|
110
113
|
|
|
114
|
+
fileItemsGroupedByCategoryDescending() {
|
|
115
|
+
return this.computedFiles
|
|
116
|
+
.reduce((a, c) => {
|
|
117
|
+
let categories =
|
|
118
|
+
c.categories && c.categories.length > 0
|
|
119
|
+
? c.categories
|
|
120
|
+
: ['Uncategorized']
|
|
121
|
+
for (const category of categories) {
|
|
122
|
+
if (a.indexOf(category) === -1) a.push(category)
|
|
123
|
+
}
|
|
124
|
+
return a
|
|
125
|
+
}, [])
|
|
126
|
+
.sort((a, b) => (a > b ? -1 : b > a ? 1 : 0))
|
|
127
|
+
.map(c => {
|
|
128
|
+
return {
|
|
129
|
+
name: c,
|
|
130
|
+
items: mapFilesToListItems(
|
|
131
|
+
this.computedFiles
|
|
132
|
+
.map(f => ({
|
|
133
|
+
...f,
|
|
134
|
+
categories:
|
|
135
|
+
f.categories && f.categories.length > 0
|
|
136
|
+
? f.categories
|
|
137
|
+
: ['Uncategorized'],
|
|
138
|
+
}))
|
|
139
|
+
.filter(f => f.categories.indexOf(c) > -1)
|
|
140
|
+
)
|
|
141
|
+
.sort((a, b) =>
|
|
142
|
+
a.label > b.label ? 1 : b.label > a.label ? -1 : 0
|
|
143
|
+
)
|
|
144
|
+
.map(t => ({
|
|
145
|
+
...t,
|
|
146
|
+
bordered: false,
|
|
147
|
+
alignTop: false,
|
|
148
|
+
condensed: false,
|
|
149
|
+
tags: [],
|
|
150
|
+
})),
|
|
151
|
+
}
|
|
152
|
+
})
|
|
153
|
+
},
|
|
154
|
+
|
|
111
155
|
fileItemsGroupedByTag() {
|
|
112
156
|
return this.computedFiles
|
|
113
157
|
.reduce((a, t) => {
|
|
@@ -172,7 +172,7 @@ export default {
|
|
|
172
172
|
background: rgba(50, 50, 50, 0.5);
|
|
173
173
|
bottom: 0;
|
|
174
174
|
padding: space(0.25);
|
|
175
|
-
font-size:
|
|
175
|
+
font-size: 0.8rem !important;
|
|
176
176
|
width: 100%;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -217,7 +217,7 @@ export default {
|
|
|
217
217
|
.asd20-image-gallery {
|
|
218
218
|
.image-grid {
|
|
219
219
|
.grid-overlay {
|
|
220
|
-
font-size:
|
|
220
|
+
font-size: 1rem !important;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
>
|
|
9
9
|
<div class="asd20-site-search__viewport">
|
|
10
10
|
<div class="asd20-site-search__options">
|
|
11
|
-
<asd20-search-field ref="search" v-model="keywords" />
|
|
11
|
+
<asd20-search-field idTag="-sitewide" ref="search" v-model="keywords" />
|
|
12
12
|
<asd20-checkbox
|
|
13
13
|
v-show="hasParentOrg"
|
|
14
14
|
v-model="_includeDistrictSearchResults"
|
|
@@ -172,12 +172,16 @@
|
|
|
172
172
|
<asd20-list
|
|
173
173
|
v-if="organization.awardsHonors.length > 0"
|
|
174
174
|
:items="
|
|
175
|
-
organization.awardsHonors
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
175
|
+
organization.awardsHonors
|
|
176
|
+
.map(a => ({
|
|
177
|
+
label: a,
|
|
178
|
+
alignTop: true,
|
|
179
|
+
checked: true,
|
|
180
|
+
condensed: true,
|
|
181
|
+
}))
|
|
182
|
+
.sort((a, b) =>
|
|
183
|
+
a.label > b.label ? 1 : b.label > a.label ? -1 : 0
|
|
184
|
+
)
|
|
181
185
|
"
|
|
182
186
|
class="asd20-school-details__awards-honors"
|
|
183
187
|
icon="award"
|
|
@@ -187,12 +191,16 @@
|
|
|
187
191
|
<asd20-list
|
|
188
192
|
v-if="organization.uniqueOfferings.length > 0"
|
|
189
193
|
:items="
|
|
190
|
-
organization.uniqueOfferings
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
194
|
+
organization.uniqueOfferings
|
|
195
|
+
.map(u => ({
|
|
196
|
+
label: u,
|
|
197
|
+
alignTop: true,
|
|
198
|
+
checked: true,
|
|
199
|
+
condensed: true,
|
|
200
|
+
}))
|
|
201
|
+
.sort((a, b) =>
|
|
202
|
+
a.label > b.label ? 1 : b.label > a.label ? -1 : 0
|
|
203
|
+
)
|
|
196
204
|
"
|
|
197
205
|
class="asd20-school-details__unique-offerings"
|
|
198
206
|
headline="Unique Offerings"
|
|
@@ -374,7 +382,6 @@ export default {
|
|
|
374
382
|
.map(oc => oc.category.title)
|
|
375
383
|
.includes('Academics')
|
|
376
384
|
)
|
|
377
|
-
|
|
378
385
|
.map(a => ({
|
|
379
386
|
label: a.offering.title,
|
|
380
387
|
description: a.offering.description,
|
|
@@ -383,13 +390,13 @@ export default {
|
|
|
383
390
|
condensed: true,
|
|
384
391
|
checked: true,
|
|
385
392
|
}))
|
|
393
|
+
.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0))
|
|
386
394
|
},
|
|
387
395
|
artsListItems() {
|
|
388
396
|
return this.organization.offerings
|
|
389
397
|
.filter(o =>
|
|
390
398
|
o.offering.categories.map(oc => oc.category.title).includes('Arts')
|
|
391
399
|
)
|
|
392
|
-
|
|
393
400
|
.map(a => ({
|
|
394
401
|
label: a.offering.title,
|
|
395
402
|
alignTop: true,
|
|
@@ -397,6 +404,7 @@ export default {
|
|
|
397
404
|
condensed: true,
|
|
398
405
|
checked: true,
|
|
399
406
|
}))
|
|
407
|
+
.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0))
|
|
400
408
|
},
|
|
401
409
|
athleticsListItems() {
|
|
402
410
|
return this.organization.offerings
|
|
@@ -412,6 +420,7 @@ export default {
|
|
|
412
420
|
condensed: true,
|
|
413
421
|
checked: true,
|
|
414
422
|
}))
|
|
423
|
+
.sort((a, b) => (a.label > b.label ? 1 : b.label > a.label ? -1 : 0))
|
|
415
424
|
},
|
|
416
425
|
},
|
|
417
426
|
}
|
|
@@ -1597,7 +1597,7 @@
|
|
|
1597
1597
|
"id": "55ac8326-ae3c-4b6d-912b-46231ee2132c",
|
|
1598
1598
|
"title": "File Feed",
|
|
1599
1599
|
"type": "text",
|
|
1600
|
-
"value": "[{\"title\":\"Related Files\",\"limit\":20,\"keywords\":\"\",\"owners\":[],\"categories\":[\"Food and Nutrition\"],\"tags\":[\"application,alternate application,information release\"],\"groupByDate\":false,\"groupByOwner\":false,\"groupByCategory\":true,\"groupByTag\":false}]",
|
|
1600
|
+
"value": "[{\"title\":\"Related Files\",\"limit\":20,\"keywords\":\"\",\"owners\":[],\"categories\":[\"Food and Nutrition\"],\"tags\":[\"application,alternate application,information release\"],\"groupByDate\":false,\"groupByOwner\":false,\"groupByCategory\":false,\"groupByCategoryDescending\":true,\"groupByTag\":false}]",
|
|
1601
1601
|
"validationPattern": null,
|
|
1602
1602
|
"required": false
|
|
1603
1603
|
},
|
|
@@ -126,6 +126,8 @@ export default function mapPageQueryResultToPageTemplateProps(queryResult) {
|
|
|
126
126
|
linkLabel: firstFilesFeedConfiguration.linkLabel || 'More Files',
|
|
127
127
|
groupByOwner: firstFilesFeedConfiguration.groupByOwner || false,
|
|
128
128
|
groupByCategory: firstFilesFeedConfiguration.groupByCategory || true,
|
|
129
|
+
groupByCategoryDescending:
|
|
130
|
+
firstFilesFeedConfiguration.groupByCategoryDescending || false,
|
|
129
131
|
groupByTag: firstFilesFeedConfiguration.groupByTag || false,
|
|
130
132
|
groupByDate: firstFilesFeedConfiguration.groupByDate || false,
|
|
131
133
|
}
|