@asd20/ui 3.2.360 → 3.2.363

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  "*.scss",
6
6
  "*.vue"
7
7
  ],
8
- "version": "3.2.360",
8
+ "version": "3.2.363",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <figure :class="classes" class="asd20-thumbnail-avatar">
3
- <img :src="thumbnail" :alt="label || 'The logo for this link.'" />
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
- text: { type: String, default: '' },
13
+ label: { type: String, default: 'The logo for this link.' },
14
14
  thumbnail: {
15
15
  type: String,
16
16
  default: '',
@@ -20,7 +20,7 @@
20
20
  :thumbnail="thumbnail"
21
21
  :square="fullThumbnail"
22
22
  :contain="fullThumbnail"
23
- :alt="label"
23
+ :label="label"
24
24
  />
25
25
  <slot name="thumbnail" />
26
26
  </div>
@@ -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-top: space(1);
144
+ margin: space(1);
186
145
  .heading-container {
187
146
  margin-bottom: space(1);
188
147
  }
@@ -316,6 +316,7 @@ export default {
316
316
  width: auto;
317
317
  margin-bottom: space(2);
318
318
  top: -2.125%;
319
+ max-width: inherit;
319
320
  }
320
321
  &::v-deep .asd20-district-logo {
321
322
  position: relative;
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class="asd20-template-base">
3
3
  <!-- Skip Nav -->
4
- <asd20-skip-to></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
- <!-- Inline-Notifications -->
76
- <template slot="before">
77
- <client-only>
78
- <asd20-notification-group
79
- :notifications="activeNotificationsByType.inline"
80
- group-type="inline"
81
- @dismiss="$emit('dismiss-notification', $event)"
82
- @toggle-all="$emit('toggle-all')"
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
- <intersect
104
- @enter="
105
- $emit('files-in-view')
106
- $emit('events-in-view')
107
- "
108
- >
109
- <asd20-widgets-section
110
- :related-pages="relatedPages"
111
- :related-links="relatedLinks"
112
- :group="group"
113
- :events="events"
114
- :eventsFeedProps="eventsFeedProps"
115
- :files="files"
116
- :filesFeedProps="filesFeedProps"
117
- :people="files"
118
- :peopleFeedProps="peopleFeedProps"
119
- >
120
- <slot name="widgets" />
121
- </asd20-widgets-section>
122
- </intersect>
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"
@@ -286,6 +286,12 @@ export default {
286
286
  flex-shrink: 0;
287
287
  overflow: hidden;
288
288
  margin-top: space(2.25);
289
+ .asd20-page-header::after {
290
+ left: 0 !important;
291
+ }
292
+ .asd20-page-header {
293
+ margin-bottom: space(0) !important;
294
+ }
289
295
  .notification-group--floating {
290
296
  position: absolute;
291
297
  right: space(0.5);
@@ -301,9 +307,9 @@ export default {
301
307
  background-position-y: top;
302
308
  padding: space(1) 0;
303
309
  }
304
- .logins-tab-bar {
305
- padding: space(2) 0 0 0;
306
- }
310
+ // .logins-tab-bar {
311
+ // padding: space(2) 0 0 0;
312
+ // }
307
313
  .logins-list {
308
314
  display: flex;
309
315
  flex-direction: column;
@@ -337,12 +343,6 @@ export default {
337
343
  .notification-group--inline {
338
344
  margin: space(2) space(3) space(1) space(3);
339
345
  }
340
- .asd20-page-header {
341
- margin-bottom: space(0);
342
- }
343
- .asd20-page-header::after {
344
- left: 0;
345
- }
346
346
  .asd20-page-content {
347
347
  margin-top: space(1);
348
348
  }
@@ -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
+ )