@asd20/ui 3.2.566 → 3.2.568

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.566",
8
+ "version": "3.2.568",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -83,8 +83,8 @@ export default {
83
83
  margin-bottom: 0;
84
84
  min-height: space(1);
85
85
  &::v-deep .asd20-loader {
86
- height: 48px;
87
- width: 48px;
86
+ // height: 48px;
87
+ width: 36px;
88
88
  position: inherit;
89
89
  // margin-bottom: space(0.5);
90
90
  background: transparent;
@@ -308,8 +308,12 @@ export default {
308
308
  background: rgba(255, 255, 255, 0.9);
309
309
  border-radius: 3rem;
310
310
  padding: 0 0 0 0.5em;
311
- &::v-deep .asd20-select-input {
311
+ .asd20-select-input {
312
+ margin-bottom: 0;
312
313
  color: var(--website-page__foreground-color) !important;
314
+ &__select-wrapper {
315
+ flex-grow: 0;
316
+ }
313
317
  }
314
318
  }
315
319
  .asd20-language-loader {
@@ -325,9 +329,6 @@ export default {
325
329
  --line-color: currentColor !important;
326
330
  }
327
331
  }
328
- &::v-deep .asd20-select-input {
329
- margin-bottom: 0;
330
- }
331
332
  }
332
333
 
333
334
  &__top {
@@ -165,7 +165,7 @@ export default {
165
165
  margin-left: 1rem;
166
166
  }
167
167
  &::v-deep .notification-group--floating {
168
- margin-right: space(1.25);
168
+ // margin-right: space(1.25);
169
169
  .bell {
170
170
  z-index: 1000;
171
171
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
@@ -263,7 +263,7 @@ $max: 4rem;
263
263
  &__top {
264
264
  flex-direction: row;
265
265
  justify-content: flex-end;
266
- padding: space(0.25) space(1);
266
+ // padding: space(0.25) space(1);
267
267
  align-items: center !important;
268
268
  }
269
269
  }
@@ -322,7 +322,7 @@ $max: 4rem;
322
322
  &__top {
323
323
  position: relative;
324
324
  margin: 0;
325
- padding: space(1) space(3) space(1) space(3);
325
+ // padding: space(1) space(3) space(1) space(3);
326
326
  grid-column: 1/-1;
327
327
  grid-row: 1/7;
328
328
  background: transparent;
@@ -340,10 +340,10 @@ $max: 4rem;
340
340
  padding-right: 0;
341
341
  }
342
342
  &::v-deep .asd20-notification-group--floating {
343
- position: absolute;
344
- right: space(3);
345
- top: space(3.5);
346
- margin-right: 0;
343
+ // position: absolute;
344
+ // right: space(3);
345
+ // top: space(3.5);
346
+ // margin-right: 0;
347
347
  }
348
348
 
349
349
  &__content {
@@ -93,8 +93,8 @@ export default {
93
93
  object-fit: cover;
94
94
  }
95
95
  & /deep/ .notification-group--status .notifications {
96
- padding: 0.25em;
97
- border-radius: 1em;
96
+ padding: 0.375em;
97
+ border-radius: 3rem;
98
98
  background: rgba(255, 255, 255, 0.95);
99
99
  }
100
100
 
@@ -113,7 +113,7 @@ export default {
113
113
  // flex-direction: column;
114
114
 
115
115
  & /deep/ .notification-group--status {
116
- margin-left: -0.5rem;
116
+ // margin-left: -0.5rem;
117
117
  .asd20-notification {
118
118
  margin: 0;
119
119
  padding: 0 !important;
@@ -121,6 +121,7 @@ export default {
121
121
  }
122
122
 
123
123
  & /deep/ .notification-group--floating {
124
+ margin-left: 0.5rem;
124
125
  margin-right: 0;
125
126
  }
126
127
  }
@@ -163,6 +163,9 @@ export default {
163
163
  Asd20QuicklinksMenu,
164
164
  Asd20MediaSection,
165
165
  },
166
+ // props: {
167
+ // languageCode: { type: String, default: 'en' },
168
+ // },
166
169
  }
167
170
  </script>
168
171
 
@@ -89,6 +89,15 @@
89
89
  </a>
90
90
  </client-only>
91
91
 
92
+ <client-only>
93
+ <Asd20LanguageTranslation
94
+ v-if="languageCode"
95
+ reversed
96
+ :languageCode="languageCode"
97
+ v-on="$listeners"
98
+ />
99
+ </client-only>
100
+
92
101
  <client-only>
93
102
  <asd20-notification-group
94
103
  class="asd20-notification-group--floating"
@@ -241,6 +250,7 @@ import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
241
250
  import Asd20PrimaryHeader from '../../../components/organisms/Asd20PrimaryHeader'
242
251
  import Asd20SecondaryHeader from '../../../components/organisms/Asd20SecondaryHeader'
243
252
  import Asd20TertiaryHeader from '../../../components/organisms/Asd20TertiaryHeader'
253
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
244
254
 
245
255
  export default {
246
256
  name: 'Asd20DistrictHomeTemplate',
@@ -271,6 +281,10 @@ export default {
271
281
  Asd20PrimaryHeader,
272
282
  Asd20TertiaryHeader,
273
283
  Asd20SecondaryHeader,
284
+ Asd20LanguageTranslation,
285
+ },
286
+ props: {
287
+ languageCode: { type: String, default: 'en' },
274
288
  },
275
289
  }
276
290
  </script>
@@ -308,6 +322,37 @@ export default {
308
322
  .asd20-organization-picker {
309
323
  display: none;
310
324
  }
325
+ .notification-translation-container {
326
+ display: flex;
327
+ flex-direction: row;
328
+ align-items: center;
329
+ flex-wrap: wrap;
330
+ justify-content: flex-end;
331
+ margin-right: 0.25rem;
332
+ }
333
+ .asd20-language-translation {
334
+ background: rgba(255, 255, 255, 1);
335
+ border-radius: 50%;
336
+ border: 1px solid var(--website-page__alternate-background-color);
337
+ margin-left: 0.5rem;
338
+ .asd20-select-input {
339
+ padding: 0.25rem 0.25rem;
340
+ color: currentColor;
341
+ font-family: Ariel, Arial, Helvetica, sans-serif;
342
+ &__select-wrapper {
343
+ display: none;
344
+ }
345
+ }
346
+ .asd20-icon {
347
+ width: 24px !important;
348
+ height: 24px !important;
349
+ --line-color: currentColor !important;
350
+ --fill-color: var(--color__accent) !important;
351
+ }
352
+ }
353
+ .asd20-language-loader {
354
+ order: 1;
355
+ }
311
356
  & /deep/ .notification-group--status .notifications {
312
357
  padding: 0.25em;
313
358
  border-radius: 1em;
@@ -325,6 +370,7 @@ export default {
325
370
  }
326
371
 
327
372
  .notification-group--floating {
373
+ margin-left: 0.5rem;
328
374
  margin-right: 0;
329
375
  // .bell {
330
376
  // box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.125) !important;
@@ -350,8 +396,10 @@ export default {
350
396
  .double-notification-wrapper {
351
397
  display: flex;
352
398
  flex-direction: row;
353
- justify-content: space-between;
399
+ justify-content: flex-end;
354
400
  width: 100%;
401
+ align-items: center;
402
+ flex-wrap: wrap;
355
403
  }
356
404
  .asd20-header-content {
357
405
  position: absolute;
@@ -41,8 +41,9 @@
41
41
  reversed
42
42
  ></asd20-organization-picker>
43
43
  </client-only>
44
- <!-- </template>
44
+ <!-- </template>
45
45
  <template slot="top"> -->
46
+
46
47
  <div
47
48
  :class="
48
49
  activeNotificationsByType.floating.length > 0
@@ -50,19 +51,35 @@
50
51
  : 'notification-wrapper'
51
52
  "
52
53
  >
53
- <client-only>
54
- <a
55
- class="weather-link"
56
- href="https://www.asd20.org/alerts-and-communication/weather-related-communication/"
57
- >
58
- <asd20-notification-group
59
- :notifications="activeNotificationsByType.status"
60
- group-type="status"
61
- @dismiss="$emit('dismiss-notification', $event)"
62
- @toggle-all="$emit('toggle-all')"
54
+ <div class="weather-status-and-translation-container">
55
+ <client-only>
56
+ <a
57
+ class="weather-link"
58
+ href="https://www.asd20.org/alerts-and-communication/weather-related-communication/"
59
+ >
60
+ <asd20-notification-group
61
+ :notifications="activeNotificationsByType.status"
62
+ group-type="status"
63
+ @dismiss="$emit('dismiss-notification', $event)"
64
+ @toggle-all="$emit('toggle-all')"
65
+ />
66
+ </a>
67
+ </client-only>
68
+
69
+ <client-only>
70
+ <Asd20LanguageTranslation
71
+ :class="{
72
+ 'translation-button-adjust':
73
+ activeNotificationsByType.floating.length > 0 ||
74
+ activeNotificationsByType.status.length > 0,
75
+ }"
76
+ v-if="languageCode"
77
+ reversed
78
+ :languageCode="languageCode"
79
+ v-on="$listeners"
63
80
  />
64
- </a>
65
- </client-only>
81
+ </client-only>
82
+ </div>
66
83
 
67
84
  <client-only>
68
85
  <asd20-notification-group
@@ -136,6 +153,7 @@ import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
136
153
  import Asd20VideoHeader from '../../../components/organisms/Asd20VideoHeader'
137
154
  import Asd20VideoHeaderContent from '../../../components/organisms/Asd20VideoHeaderContent'
138
155
  import Asd20SecondaryHeader from '../../../components/organisms/Asd20SecondaryHeader'
156
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
139
157
 
140
158
  export default {
141
159
  name: 'Asd20DistrictVideoTemplate',
@@ -143,6 +161,9 @@ export default {
143
161
  mixins: [pageTemplateMixin],
144
162
 
145
163
  directives: { scrollTrack },
164
+ props: {
165
+ languageCode: { type: String, default: 'en' },
166
+ },
146
167
 
147
168
  computed: {
148
169
  mq() {
@@ -163,6 +184,7 @@ export default {
163
184
  Asd20VideoHeader,
164
185
  Asd20VideoHeaderContent,
165
186
  Asd20SecondaryHeader,
187
+ Asd20LanguageTranslation,
166
188
  },
167
189
  }
168
190
  </script>
@@ -186,9 +208,43 @@ export default {
186
208
  margin-top: space(2.25);
187
209
 
188
210
  .asd20-video-header {
211
+ .weather-status-and-translation-container {
212
+ display: flex;
213
+ flex-direction: row;
214
+ align-items: center;
215
+ }
216
+ .asd20-language-translation {
217
+ position: absolute;
218
+ top: 1.5rem;
219
+ right: 0.5rem;
220
+ background: rgba(255, 255, 255, 0.9);
221
+ border-radius: 3rem;
222
+ border: 1px solid var(--website-page__alternate-background-color);
223
+ .asd20-select-input {
224
+ padding: 0.25rem 0.25rem;
225
+ color: currentColor;
226
+ font-family: Ariel, Arial, Helvetica, sans-serif;
227
+ &__select-wrapper {
228
+ display: none;
229
+ }
230
+ }
231
+ .asd20-icon {
232
+ width: 24px !important;
233
+ height: 24px !important;
234
+ --line-color: currentColor !important;
235
+ --fill-color: var(--color__accent) !important;
236
+ }
237
+ }
238
+ .asd20-language-loader {
239
+ order: 1;
240
+ }
241
+
242
+ .translation-button-adjust {
243
+ top: 3.5rem;
244
+ }
189
245
  .weather-link {
190
246
  text-decoration: none;
191
- border-radius: 25%;
247
+ border-radius: 3rem;
192
248
  }
193
249
  .asd20-organization-picker {
194
250
  display: none;
@@ -201,7 +257,9 @@ export default {
201
257
  .double-notification-wrapper {
202
258
  display: flex;
203
259
  flex-direction: row;
204
- justify-content: space-between;
260
+ justify-content: flex-end;
261
+ align-items: center;
262
+ flex-wrap: wrap;
205
263
  }
206
264
  }
207
265
  // .asd20-video-header-content {
@@ -239,6 +297,23 @@ export default {
239
297
 
240
298
  @media (min-width: 667px) {
241
299
  .asd20-district-video-template {
300
+ .asd20-video-header {
301
+ .asd20-language-translation {
302
+ position: relative;
303
+ top: 0;
304
+ right: 0;
305
+ margin-left: 0.5rem;
306
+ .asd20-icon {
307
+ width: 24px !important;
308
+ height: 24px !important;
309
+ --line-color: currentColor !important;
310
+ --fill-color: var(--color__accent) !important;
311
+ }
312
+ }
313
+ .translation-button-adjust {
314
+ top: 0;
315
+ }
316
+ }
242
317
  .asd20-video-header-content {
243
318
  // position: absolute;
244
319
  top: inherit;
@@ -61,31 +61,42 @@
61
61
  </template>
62
62
 
63
63
  <template slot="top">
64
- <client-only>
65
- <a
66
- class="weather-link"
67
- href="https://www.asd20.org/alerts-and-communication/weather-related-communication/"
68
- >
64
+ <div class="notification-translation-container">
65
+ <client-only>
66
+ <a
67
+ class="weather-link"
68
+ href="https://www.asd20.org/alerts-and-communication/weather-related-communication/"
69
+ >
70
+ <asd20-notification-group
71
+ :notifications="activeNotificationsByType.status"
72
+ group-type="status"
73
+ @dismiss="$emit('dismiss-notification', $event)"
74
+ @toggle-all="$emit('toggle-all')"
75
+ />
76
+ </a>
77
+ </client-only>
78
+
79
+ <client-only>
80
+ <Asd20LanguageTranslation
81
+ v-if="languageCode"
82
+ reversed
83
+ :languageCode="languageCode"
84
+ v-on="$listeners"
85
+ />
86
+ </client-only>
87
+
88
+ <!-- Floating Notifications -->
89
+ <client-only>
69
90
  <asd20-notification-group
70
- :notifications="activeNotificationsByType.status"
71
- group-type="status"
91
+ class="asd20-notification-group--floating"
92
+ :notifications="activeNotificationsByType.floating"
93
+ :total-dismissed-notifications="totalDismissedNotifications"
94
+ group-type="floating"
72
95
  @dismiss="$emit('dismiss-notification', $event)"
73
96
  @toggle-all="$emit('toggle-all')"
74
- />
75
- </a>
76
- </client-only>
77
-
78
- <!-- Floating Notifications -->
79
- <client-only>
80
- <asd20-notification-group
81
- class="asd20-notification-group--floating"
82
- :notifications="activeNotificationsByType.floating"
83
- :total-dismissed-notifications="totalDismissedNotifications"
84
- group-type="floating"
85
- @dismiss="$emit('dismiss-notification', $event)"
86
- @toggle-all="$emit('toggle-all')"
87
- ></asd20-notification-group>
88
- </client-only>
97
+ ></asd20-notification-group>
98
+ </client-only>
99
+ </div>
89
100
  </template>
90
101
  </asd20-school-homepage-header>
91
102
 
@@ -139,6 +150,7 @@ import Asd20PageContent from '../../../components/organisms/Asd20PageContent'
139
150
  import Asd20NotificationGroup from '@asd20/notifications-ui/src/components/Asd20NotificationGroup'
140
151
  import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
141
152
  import Asd20OrganizationPicker from '../../../components/organisms/Asd20OrganizationPicker'
153
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
142
154
 
143
155
  // Helpers
144
156
  import _get from 'lodash-es/get'
@@ -160,6 +172,10 @@ export default {
160
172
  Asd20NotificationGroup,
161
173
  Asd20FeedsSection,
162
174
  Asd20OrganizationPicker,
175
+ Asd20LanguageTranslation,
176
+ },
177
+ props: {
178
+ languageCode: { type: String, default: 'en' },
163
179
  },
164
180
 
165
181
  computed: {
@@ -213,6 +229,37 @@ export default {
213
229
  text-decoration: none;
214
230
  border-radius: 50%;
215
231
  }
232
+ .notification-translation-container {
233
+ display: flex;
234
+ flex-direction: row;
235
+ align-items: center;
236
+ flex-wrap: wrap;
237
+ justify-content: flex-end;
238
+ margin-right: 0.25rem;
239
+ }
240
+ .asd20-language-translation {
241
+ background: rgba(255, 255, 255, 1);
242
+ border-radius: 50%;
243
+ border: 1px solid var(--website-page__alternate-background-color);
244
+ margin: 0 0.05rem;
245
+ .asd20-select-input {
246
+ padding: 0.25rem 0.25rem;
247
+ color: currentColor;
248
+ font-family: Ariel, Arial, Helvetica, sans-serif;
249
+ &__select-wrapper {
250
+ display: none;
251
+ }
252
+ }
253
+ .asd20-icon {
254
+ width: 24px !important;
255
+ height: 24px !important;
256
+ --line-color: currentColor !important;
257
+ --fill-color: var(--color__accent) !important;
258
+ }
259
+ }
260
+ .asd20-language-loader {
261
+ order: 1;
262
+ }
216
263
  .pickerContainer {
217
264
  display: none;
218
265
  }
@@ -255,6 +302,14 @@ export default {
255
302
  }
256
303
  }
257
304
 
305
+ @media (min-width: 667px) {
306
+ .asd20-school-home-template {
307
+ .asd20-language-translation {
308
+ margin: 0 0.5rem;
309
+ }
310
+ }
311
+ }
312
+
258
313
  @media (min-width: 1024px) {
259
314
  .asd20-school-home-template {
260
315
  display: block;
@@ -76,6 +76,15 @@
76
76
  </a>
77
77
  </client-only>
78
78
 
79
+ <client-only>
80
+ <Asd20LanguageTranslation
81
+ v-if="languageCode"
82
+ reversed
83
+ :languageCode="languageCode"
84
+ v-on="$listeners"
85
+ />
86
+ </client-only>
87
+
79
88
  <!-- Floating Notifications -->
80
89
  <client-only>
81
90
  <asd20-notification-group
@@ -140,6 +149,7 @@ import Asd20PageContent from '../../../components/organisms/Asd20PageContent'
140
149
  import Asd20NotificationGroup from '@asd20/notifications-ui/src/components/Asd20NotificationGroup'
141
150
  import Asd20FeedsSection from '../../../components/organisms/Asd20FeedsSection'
142
151
  import Asd20OrganizationPicker from '../../../components/organisms/Asd20OrganizationPicker'
152
+ import Asd20LanguageTranslation from '../../molecules/Asd20LanguageTranslation'
143
153
 
144
154
  // Helpers
145
155
  import _get from 'lodash-es/get'
@@ -161,6 +171,10 @@ export default {
161
171
  Asd20NotificationGroup,
162
172
  Asd20FeedsSection,
163
173
  Asd20OrganizationPicker,
174
+ Asd20LanguageTranslation,
175
+ },
176
+ props: {
177
+ languageCode: { type: String, default: 'en' },
164
178
  },
165
179
  }
166
180
  </script>
@@ -207,9 +221,36 @@ export default {
207
221
  margin-top: space(0);
208
222
  }
209
223
  .asd20-notification-group--status {
224
+ position: absolute;
225
+ right: space(2);
226
+ top: space(0.5) !important;
227
+ }
228
+ .asd20-language-translation {
210
229
  position: absolute;
211
230
  right: space(0.5);
212
231
  top: space(0.5) !important;
232
+ z-index: 2;
233
+ background: rgba(255, 255, 255, 1);
234
+ border-radius: 50%;
235
+ border: 1px solid var(--website-page__alternate-background-color);
236
+ margin: 0 0.05rem;
237
+ .asd20-select-input {
238
+ padding: 0.25rem 0.25rem;
239
+ color: currentColor;
240
+ font-family: Ariel, Arial, Helvetica, sans-serif;
241
+ &__select-wrapper {
242
+ display: none;
243
+ }
244
+ }
245
+ .asd20-icon {
246
+ width: 24px !important;
247
+ height: 24px !important;
248
+ --line-color: currentColor !important;
249
+ --fill-color: var(--color__accent) !important;
250
+ }
251
+ }
252
+ .asd20-language-loader {
253
+ order: 1;
213
254
  }
214
255
 
215
256
  .asd20-notification-group--floating {
@@ -240,6 +281,10 @@ export default {
240
281
  @media (min-width: 667px) {
241
282
  .asd20-school-home-video-template {
242
283
  .asd20-notification-group--status {
284
+ right: space(2.5);
285
+ top: space(0.5) !important;
286
+ }
287
+ .asd20-language-translation {
243
288
  right: space(1);
244
289
  top: space(0.5) !important;
245
290
  }
@@ -290,6 +335,10 @@ export default {
290
335
  }
291
336
  .asd20-notification-group--status {
292
337
  order: 0;
338
+ right: space(5.5) !important;
339
+ top: space(6) !important;
340
+ }
341
+ .asd20-language-translation {
293
342
  right: space(4) !important;
294
343
  top: space(6) !important;
295
344
  }