@asd20/ui 3.2.361 → 3.2.364
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/atoms/Asd20ThumbnailAvatar/index.vue +2 -2
- package/src/components/molecules/Asd20ListItem/index.vue +1 -1
- package/src/components/organisms/Asd20CampusHeader/index.vue +1 -42
- package/src/components/organisms/Asd20PageFooter/index.vue +1 -0
- package/src/components/organisms/Asd20SchoolHomepageVideoHeader/index.vue +2 -2
- package/src/components/organisms/Asd20VideoHeader/index.vue +2 -2
- package/src/components/templates/Asd20BasePageTemplate/index.vue +42 -50
- package/src/components/templates/Asd20DetailTemplate/index.vue +2 -14
- package/src/components/templates/Asd20LoginsTemplate/index.vue +3 -3
- package/src/components/templates/Asd20SalaryCalculatorTemplate/index.stories.js +58 -0
- package/src/components/templates/Asd20SalaryCalculatorTemplate/index.vue +733 -0
- package/src/components/templates/Asd20SchoolHomeTemplate/index.vue +1 -1
- package/src/data/page-queries/salary-calculator-page-result.json +2566 -0
- package/src/data/page-queries/school-home-page-query-result.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<figure :class="classes" class="asd20-thumbnail-avatar">
|
|
3
|
-
<img :src="thumbnail" :alt="label
|
|
3
|
+
<img :src="thumbnail" :alt="label" />
|
|
4
4
|
</figure>
|
|
5
5
|
</template>
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ export default {
|
|
|
10
10
|
props: {
|
|
11
11
|
square: { type: Boolean, default: false },
|
|
12
12
|
contain: { type: Boolean, default: false },
|
|
13
|
-
|
|
13
|
+
label: { type: String, default: 'The logo for this link.' },
|
|
14
14
|
thumbnail: {
|
|
15
15
|
type: String,
|
|
16
16
|
default: '',
|
|
@@ -5,47 +5,6 @@
|
|
|
5
5
|
:class="classes"
|
|
6
6
|
role="banner"
|
|
7
7
|
>
|
|
8
|
-
<!-- <div v-if="$slots.top" class="asd20-homepage-header__top">
|
|
9
|
-
<slot name="top" />
|
|
10
|
-
</div> -->
|
|
11
|
-
<!-- <div class="asd20-campus-header__top">
|
|
12
|
-
<asd20-district-logo
|
|
13
|
-
v-show="
|
|
14
|
-
organization.title === 'Academy District 20' &&
|
|
15
|
-
mq !== 'sm' &&
|
|
16
|
-
mq !== 'md'
|
|
17
|
-
"
|
|
18
|
-
></asd20-district-logo>
|
|
19
|
-
<client-only>
|
|
20
|
-
<asd20-logo
|
|
21
|
-
v-if="organization.title !== 'Academy District 20'"
|
|
22
|
-
:title="mapOrganizationTitle"
|
|
23
|
-
:subtitle="mapOrganizationSubtitle"
|
|
24
|
-
:image="organization.logoImageUrl"
|
|
25
|
-
:link="organization.website"
|
|
26
|
-
size="md"
|
|
27
|
-
bordered
|
|
28
|
-
wrappable
|
|
29
|
-
/>
|
|
30
|
-
<asd20-organization-picker
|
|
31
|
-
class="largePicker"
|
|
32
|
-
v-show="organization.title !== 'Academy District 20'"
|
|
33
|
-
:organization-options="organizationOptions"
|
|
34
|
-
:organization="organization"
|
|
35
|
-
></asd20-organization-picker>
|
|
36
|
-
</client-only>
|
|
37
|
-
<client-only>
|
|
38
|
-
<asd20-organization-picker
|
|
39
|
-
class="smallPicker"
|
|
40
|
-
v-show="organization.title !== 'Academy District 20'"
|
|
41
|
-
:organization-options="organizationOptions"
|
|
42
|
-
:organization="organization"
|
|
43
|
-
logoSize="xs"
|
|
44
|
-
></asd20-organization-picker>
|
|
45
|
-
</client-only>
|
|
46
|
-
<slot name="top" />
|
|
47
|
-
</div> -->
|
|
48
|
-
|
|
49
8
|
<div class="asd20-campus-header__top">
|
|
50
9
|
<asd20-district-logo
|
|
51
10
|
v-show="
|
|
@@ -182,7 +141,7 @@ export default {
|
|
|
182
141
|
flex-shrink: 0;
|
|
183
142
|
flex-direction: column;
|
|
184
143
|
box-sizing: border-box;
|
|
185
|
-
margin
|
|
144
|
+
margin: space(1);
|
|
186
145
|
.heading-container {
|
|
187
146
|
margin-bottom: space(1);
|
|
188
147
|
}
|
|
@@ -251,7 +251,7 @@ export default {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
.scroll-down-indicator {
|
|
254
|
-
position:
|
|
254
|
+
position: absolute;
|
|
255
255
|
z-index: 3;
|
|
256
256
|
text-transform: uppercase;
|
|
257
257
|
display: none;
|
|
@@ -262,7 +262,7 @@ export default {
|
|
|
262
262
|
font-weight: 400;
|
|
263
263
|
color: transparent;
|
|
264
264
|
bottom: 15vh;
|
|
265
|
-
left:
|
|
265
|
+
left: 45%;
|
|
266
266
|
&::before {
|
|
267
267
|
content: '';
|
|
268
268
|
position: absolute;
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
.scroll-down-indicator {
|
|
138
|
-
position:
|
|
138
|
+
position: absolute;
|
|
139
139
|
z-index: 3;
|
|
140
140
|
text-transform: uppercase;
|
|
141
141
|
display: none;
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
font-weight: 400;
|
|
147
147
|
color: transparent;
|
|
148
148
|
bottom: 15vh;
|
|
149
|
-
left:
|
|
149
|
+
left: 45%;
|
|
150
150
|
&::before {
|
|
151
151
|
content: '';
|
|
152
152
|
position: absolute;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="asd20-template-base">
|
|
3
3
|
<!-- Skip Nav -->
|
|
4
|
-
<asd20-skip-to
|
|
4
|
+
<asd20-skip-to />
|
|
5
5
|
|
|
6
6
|
<!-- Banner Notifications -->
|
|
7
7
|
<client-only>
|
|
@@ -26,17 +26,8 @@
|
|
|
26
26
|
:languageCode="languageCode"
|
|
27
27
|
v-on="$listeners"
|
|
28
28
|
>
|
|
29
|
+
<!-- Floating Notifications -->
|
|
29
30
|
<template slot="top">
|
|
30
|
-
<!-- Status Notifications -->
|
|
31
|
-
<client-only>
|
|
32
|
-
<asd20-notification-group
|
|
33
|
-
:notifications="activeNotificationsByType.status"
|
|
34
|
-
group-type="status"
|
|
35
|
-
@dismiss="$emit('dismiss-notification', $event)"
|
|
36
|
-
@toggle-all="$emit('toggle-all')"
|
|
37
|
-
/>
|
|
38
|
-
</client-only>
|
|
39
|
-
<!-- Floating Notifications -->
|
|
40
31
|
<client-only>
|
|
41
32
|
<asd20-notification-group
|
|
42
33
|
class="asd20-notification-group--floating"
|
|
@@ -63,30 +54,34 @@
|
|
|
63
54
|
>
|
|
64
55
|
</asd20-site-navigation>
|
|
65
56
|
|
|
57
|
+
<!-- Inline-Notifications -->
|
|
58
|
+
<client-only>
|
|
59
|
+
<asd20-notification-group
|
|
60
|
+
:notifications="activeNotificationsByType.inline"
|
|
61
|
+
group-type="inline"
|
|
62
|
+
@dismiss="$emit('dismiss-notification', $event)"
|
|
63
|
+
@toggle-all="$emit('toggle-all')"
|
|
64
|
+
></asd20-notification-group>
|
|
65
|
+
</client-only>
|
|
66
|
+
|
|
66
67
|
<!-- Page Content -->
|
|
67
68
|
<asd20-page-content
|
|
68
69
|
:primary-messages="primaryMessages"
|
|
69
70
|
:secondary-messages="secondaryMessages"
|
|
70
71
|
omit-detail-links
|
|
71
72
|
omit-calls-to-action
|
|
72
|
-
omit-body-content
|
|
73
|
-
grid
|
|
74
73
|
>
|
|
75
|
-
<!--
|
|
76
|
-
<
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
></asd20-notification-group>
|
|
84
|
-
</client-only>
|
|
85
|
-
</template>
|
|
86
|
-
|
|
87
|
-
<slot></slot>
|
|
74
|
+
<!-- Sidebar Widgets -->
|
|
75
|
+
<asd20-widgets-section
|
|
76
|
+
v-if="widgetsSectionProps.sidebar"
|
|
77
|
+
v-bind="widgetsSectionProps.sidebar"
|
|
78
|
+
@events-in-view="$emit('events-in-view')"
|
|
79
|
+
@files-in-view="$emit('files-in-view')"
|
|
80
|
+
@people-in-view="$emit('people-in-view')"
|
|
81
|
+
></asd20-widgets-section>
|
|
88
82
|
</asd20-page-content>
|
|
89
83
|
|
|
84
|
+
<!-- Feeds -->
|
|
90
85
|
<asd20-feeds-section
|
|
91
86
|
:announcements="announcements"
|
|
92
87
|
:announcements-feed-props="announcementsFeedProps"
|
|
@@ -99,27 +94,27 @@
|
|
|
99
94
|
@events-in-view="$emit('events-in-view')"
|
|
100
95
|
></asd20-feeds-section>
|
|
101
96
|
|
|
102
|
-
<!-- Widgets -->
|
|
103
|
-
<
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
</
|
|
122
|
-
</
|
|
97
|
+
<!-- Bottom Widgets -->
|
|
98
|
+
<asd20-widgets-section
|
|
99
|
+
v-if="widgetsSectionProps.footer || $slots.widgets"
|
|
100
|
+
v-bind="widgetsSectionProps.footer"
|
|
101
|
+
@events-in-view="$emit('events-in-view')"
|
|
102
|
+
@files-in-view="$emit('files-in-view')"
|
|
103
|
+
full
|
|
104
|
+
><slot name="widgets"
|
|
105
|
+
/></asd20-widgets-section>
|
|
106
|
+
|
|
107
|
+
<!-- Inline-Notifications -->
|
|
108
|
+
<template slot="before">
|
|
109
|
+
<client-only>
|
|
110
|
+
<asd20-notification-group
|
|
111
|
+
:notifications="activeNotificationsByType.inline"
|
|
112
|
+
group-type="inline"
|
|
113
|
+
@dismiss="$emit('dismiss-notification', $event)"
|
|
114
|
+
@toggle-all="$emit('toggle-all')"
|
|
115
|
+
></asd20-notification-group>
|
|
116
|
+
</client-only>
|
|
117
|
+
</template>
|
|
123
118
|
|
|
124
119
|
<slot name="before-footer" />
|
|
125
120
|
|
|
@@ -155,8 +150,6 @@ import Asd20PageFooter from '../../../components/organisms/Asd20PageFooter'
|
|
|
155
150
|
import Asd20QuicklinksMenu from '../../../components/organisms/Asd20QuicklinksMenu'
|
|
156
151
|
import Asd20NotificationGroup from '@asd20/notifications-ui/src/components/Asd20NotificationGroup'
|
|
157
152
|
|
|
158
|
-
import Intersect from 'vue-intersect'
|
|
159
|
-
|
|
160
153
|
// Mixins
|
|
161
154
|
import pageTemplateMixin from '../../../mixins/pageTemplateMixin'
|
|
162
155
|
|
|
@@ -173,7 +166,6 @@ export default {
|
|
|
173
166
|
Asd20FeedsSection,
|
|
174
167
|
Asd20NotificationGroup,
|
|
175
168
|
Asd20QuicklinksMenu,
|
|
176
|
-
Intersect,
|
|
177
169
|
},
|
|
178
170
|
}
|
|
179
171
|
</script>
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
@toggle-all="$emit('toggle-all')"
|
|
13
13
|
/>
|
|
14
14
|
</client-only>
|
|
15
|
+
|
|
15
16
|
<!-- Page Header -->
|
|
16
17
|
<asd20-page-header
|
|
17
18
|
id="page-header"
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
:organization-options="organizationOptions"
|
|
53
54
|
>
|
|
54
55
|
</asd20-site-navigation>
|
|
56
|
+
|
|
55
57
|
<!-- Inline-Notifications -->
|
|
56
58
|
<client-only>
|
|
57
59
|
<asd20-notification-group
|
|
@@ -99,20 +101,6 @@
|
|
|
99
101
|
>
|
|
100
102
|
</asd20-media-section>
|
|
101
103
|
|
|
102
|
-
<!-- Bottom Widgets -->
|
|
103
|
-
<!-- <asd20-widgets-section
|
|
104
|
-
v-if="
|
|
105
|
-
widgetsSectionProps.footer ||
|
|
106
|
-
widgetsSectionProps.sidebar ||
|
|
107
|
-
$slots.widgets
|
|
108
|
-
"
|
|
109
|
-
v-bind="{ ...widgetsSectionProps.footer, ...widgetsSectionProps.sidebar }"
|
|
110
|
-
@events-in-view="$emit('events-in-view')"
|
|
111
|
-
@files-in-view="$emit('files-in-view')"
|
|
112
|
-
full
|
|
113
|
-
><slot name="widgets"
|
|
114
|
-
/></asd20-widgets-section> -->
|
|
115
|
-
|
|
116
104
|
<!-- Bottom Widgets -->
|
|
117
105
|
<asd20-widgets-section
|
|
118
106
|
v-if="widgetsSectionProps.footer || $slots.widgets"
|
|
@@ -287,10 +287,10 @@ export default {
|
|
|
287
287
|
overflow: hidden;
|
|
288
288
|
margin-top: space(2.25);
|
|
289
289
|
.asd20-page-header::after {
|
|
290
|
-
left: 0;
|
|
290
|
+
left: 0 !important;
|
|
291
291
|
}
|
|
292
292
|
.asd20-page-header {
|
|
293
|
-
margin-bottom: space(0);
|
|
293
|
+
margin-bottom: space(0) !important;
|
|
294
294
|
}
|
|
295
295
|
.notification-group--floating {
|
|
296
296
|
position: absolute;
|
|
@@ -350,7 +350,7 @@ export default {
|
|
|
350
350
|
padding: space(3);
|
|
351
351
|
}
|
|
352
352
|
.logins-tab-bar {
|
|
353
|
-
padding: space(1) space(2) 0 space(3);
|
|
353
|
+
padding: space(1) space(2) 0 space(3) !important;
|
|
354
354
|
}
|
|
355
355
|
.logins-list {
|
|
356
356
|
padding: space(1) space(3);
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { storiesOf } from '@storybook/vue'
|
|
2
|
+
import { withKnobs, boolean } from '@storybook/addon-knobs'
|
|
3
|
+
|
|
4
|
+
import mockPageMixin from '../../../mixins/mockPageMixin'
|
|
5
|
+
|
|
6
|
+
import Asd20SalaryCalculatorTemplate from '.'
|
|
7
|
+
import pageQueryResult from '../../../data/page-queries/salary-calculator-page-result.json'
|
|
8
|
+
import notifications from '../../../data/messages/notifications'
|
|
9
|
+
|
|
10
|
+
const info = {
|
|
11
|
+
summary: 'Salary Calculator Template',
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const wrapper = {
|
|
15
|
+
mixins: [mockPageMixin],
|
|
16
|
+
components: {
|
|
17
|
+
Asd20SalaryCalculatorTemplate,
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
data: () => ({ pageQueryResult }),
|
|
21
|
+
|
|
22
|
+
computed: {
|
|
23
|
+
activeNotificationsByType() {
|
|
24
|
+
const empty = {
|
|
25
|
+
inline: [],
|
|
26
|
+
banner: [],
|
|
27
|
+
floating: [],
|
|
28
|
+
status: [],
|
|
29
|
+
}
|
|
30
|
+
return boolean('Show Notifications', false)
|
|
31
|
+
? notifications || empty
|
|
32
|
+
: empty
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
const stories = storiesOf('Templates - Asd20SalaryCalculatorTemplate', module)
|
|
38
|
+
stories.addDecorator(withKnobs)
|
|
39
|
+
|
|
40
|
+
stories.add(
|
|
41
|
+
'Default',
|
|
42
|
+
() => ({
|
|
43
|
+
...wrapper,
|
|
44
|
+
template: `
|
|
45
|
+
<Asd20SalaryCalculatorTemplate
|
|
46
|
+
v-bind="templateProps"
|
|
47
|
+
:menu-open.sync="menuOpen"
|
|
48
|
+
:search-open.sync="searchOpen"
|
|
49
|
+
|
|
50
|
+
@announcements-in-view="loadAnnouncements"
|
|
51
|
+
@stories-in-view="loadStories"
|
|
52
|
+
@events-in-view="loadEvents"
|
|
53
|
+
@files-in-view="loadFiles"
|
|
54
|
+
|
|
55
|
+
/>`,
|
|
56
|
+
}),
|
|
57
|
+
{ info }
|
|
58
|
+
)
|