@asd20/ui 3.2.802 → 3.2.804

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.802",
8
+ "version": "3.2.804",
9
9
  "private": false,
10
10
  "license": "MIT",
11
11
  "repository": {
@@ -86,13 +86,15 @@
86
86
  @input="$emit('update:keywords', $event)"
87
87
  medium
88
88
  />
89
- <!-- <asd20-multiselect-input
89
+ <asd20-multiselect-input
90
90
  label="Categories"
91
91
  :taggable="false"
92
92
  :value="selectedCategories"
93
93
  :items="categoryOptions"
94
94
  @input="$emit('update:selected-categories', $event)"
95
- /> -->
95
+ :hideLabel="true"
96
+ placeholder="Filter by Category"
97
+ />
96
98
  </div>
97
99
 
98
100
  <div v-if="cards.length < 1">
@@ -270,7 +272,7 @@ import Asd20QuicklinksMenu from '../../../components/organisms/Asd20QuicklinksMe
270
272
  import Asd20NotificationGroup from '../../../components/organisms/Asd20NotificationGroup'
271
273
 
272
274
  import Asd20SearchField from '../../../components/molecules/Asd20SearchField'
273
- // import Asd20MultiselectInput from '../../../components/atoms/Asd20MultiselectInput'
275
+ import Asd20MultiselectInput from '../../../components/atoms/Asd20MultiselectInput'
274
276
  import Asd20Card from '../../../components/molecules/Asd20Card'
275
277
  import Asd20Button from '../../../components/atoms/Asd20Button'
276
278
 
@@ -296,7 +298,7 @@ export default {
296
298
  Asd20NotificationGroup,
297
299
  Asd20QuicklinksMenu,
298
300
  Asd20SearchField,
299
- // Asd20MultiselectInput,
301
+ Asd20MultiselectInput,
300
302
  Asd20Card,
301
303
  Asd20Button,
302
304
  Intersect,
@@ -336,33 +338,33 @@ export default {
336
338
  // link: c.link.replace('/stories', '/announcements'),
337
339
  // }))
338
340
  },
339
- // categoryOptions() {
340
- // // get a unique array of categories with duplicates removed
341
- // return [
342
- // ...new Set(
343
- // this.cards.reduce((a, c) => a.concat(c.categories || []), []).sort()
344
- // ),
345
- // ]
346
- // },
347
- // computedCategoryOptions() {
348
- // // get a unique array of categories with duplicates removed
349
- // if (this.categoryOptions.length === 0) {
350
- // return [
351
- // ...new Set(
352
- // this.cards.reduce((a, c) => a.concat(c.categories || []), []).sort()
353
- // ),
354
- // ]
355
- // }
356
- // return this.categoryOptions
357
- // },
341
+ categoryOptions() {
342
+ // get a unique array of categories with duplicates removed
343
+ return [
344
+ ...new Set(
345
+ this.cards.reduce((a, c) => a.concat(c.categories || []), []).sort()
346
+ ),
347
+ ]
348
+ },
349
+ computedCategoryOptions() {
350
+ // get a unique array of categories with duplicates removed
351
+ if (this.categoryOptions.length === 0) {
352
+ return [
353
+ ...new Set(
354
+ this.cards.reduce((a, c) => a.concat(c.categories || []), []).sort()
355
+ ),
356
+ ]
357
+ }
358
+ return this.categoryOptions
359
+ },
360
+ },
361
+ watch: {
362
+ selectedCategories: function(newVal, oldVal) {
363
+ if (newVal !== oldVal) {
364
+ this.reset()
365
+ }
366
+ },
358
367
  },
359
- // watch: {
360
- // selectedCategories: function(newVal, oldVal) {
361
- // if (newVal !== oldVal) {
362
- // this.reset()
363
- // }
364
- // },
365
- // },
366
368
  methods: {
367
369
  nextSet() {
368
370
  if (
@@ -476,8 +478,15 @@ export default {
476
478
  margin: space(0) space(1) space(1) space(1);
477
479
  }
478
480
 
479
- .asd20-search-field .asd20-icon {
480
- margin-left: 0;
481
+ .asd20-search-field {
482
+ border: 2px solid var(--color__accent);
483
+ margin: space(0.5) 0;
484
+ .asd20-icon {
485
+ margin-left: space(0.5);
486
+ }
487
+ }
488
+ .asd20-multiselect-input span {
489
+ padding-left: 1rem;
481
490
  }
482
491
  }
483
492
 
@@ -542,6 +551,12 @@ export default {
542
551
  .article-digest {
543
552
  // flex-basis: 100%;
544
553
  margin: space(1) space(3) space(1) space(3);
554
+ .asd20-search-field {
555
+ border: none;
556
+ .asd20-icon {
557
+ margin-left: 0;
558
+ }
559
+ }
545
560
  }
546
561
  }
547
562
  }
@@ -97,13 +97,15 @@
97
97
  @input="$emit('update:keywords', $event)"
98
98
  medium
99
99
  />
100
- <!-- <asd20-multiselect-input
100
+ <asd20-multiselect-input
101
101
  label="Categories"
102
102
  :taggable="false"
103
103
  :value="selectedCategories"
104
104
  :items="categoryOptions"
105
105
  @input="$emit('update:selected-categories', $event)"
106
- /> -->
106
+ :hideLabel="true"
107
+ placeholder="Filter by Category"
108
+ />
107
109
  <!-- <asd20-multiselect-input
108
110
  role="listbox"
109
111
  aria-label="Choose a Category to Sort By"
@@ -314,7 +316,7 @@ import Asd20QuicklinksMenu from '../../../components/organisms/Asd20QuicklinksMe
314
316
  import Asd20NotificationGroup from '../../../components/organisms/Asd20NotificationGroup'
315
317
 
316
318
  import Asd20SearchField from '../../../components/molecules/Asd20SearchField'
317
- // import Asd20MultiselectInput from '../../../components/atoms/Asd20MultiselectInput'
319
+ import Asd20MultiselectInput from '../../../components/atoms/Asd20MultiselectInput'
318
320
  import Asd20Card from '../../../components/molecules/Asd20Card'
319
321
  import Asd20Button from '../../../components/atoms/Asd20Button'
320
322
 
@@ -340,7 +342,7 @@ export default {
340
342
  Asd20NotificationGroup,
341
343
  Asd20QuicklinksMenu,
342
344
  Asd20SearchField,
343
- // Asd20MultiselectInput,
345
+ Asd20MultiselectInput,
344
346
  Asd20Card,
345
347
  Asd20Button,
346
348
  Intersect,
@@ -373,22 +375,22 @@ export default {
373
375
  // link: c.link.replace('/stories', '/announcements'),
374
376
  // }))
375
377
  },
376
- // categoryOptions() {
377
- // // get a unique array of categories with duplicates removed
378
- // return [
379
- // ...new Set(
380
- // this.cards.reduce((a, c) => a.concat(c.categories || []), []).sort()
381
- // ),
382
- // ]
383
- // },
378
+ categoryOptions() {
379
+ // get a unique array of categories with duplicates removed
380
+ return [
381
+ ...new Set(
382
+ this.cards.reduce((a, c) => a.concat(c.categories || []), []).sort()
383
+ ),
384
+ ]
385
+ },
386
+ },
387
+ watch: {
388
+ selectedCategories: function(newVal, oldVal) {
389
+ if (newVal !== oldVal) {
390
+ this.reset()
391
+ }
392
+ },
384
393
  },
385
- // watch: {
386
- // selectedCategories: function(newVal, oldVal) {
387
- // if (newVal !== oldVal) {
388
- // this.reset()
389
- // }
390
- // },
391
- // },
392
394
  methods: {
393
395
  nextSet() {
394
396
  if (
@@ -494,7 +496,7 @@ export default {
494
496
  text-decoration: none !important;
495
497
  }
496
498
  .asd20-button {
497
- padding: 0;
499
+ padding: space(0.25);
498
500
  > .asd20-button__label {
499
501
  margin: 0;
500
502
  }
@@ -519,8 +521,15 @@ export default {
519
521
  background: rgba(200, 200, 200, 0.2);
520
522
  }
521
523
  }
522
- .asd20-search-field .asd20-icon {
523
- margin-left: 0;
524
+ .asd20-search-field {
525
+ border: 2px solid var(--color__accent);
526
+ margin: space(0.5) 0;
527
+ .asd20-icon {
528
+ margin-left: space(0.5);
529
+ }
530
+ }
531
+ .asd20-multiselect-input span {
532
+ padding-left: 1rem;
524
533
  }
525
534
  .asd20-card__content {
526
535
  padding: space(1) space(1);
@@ -577,6 +586,9 @@ export default {
577
586
  display: flex;
578
587
  flex-basis: 100%;
579
588
  justify-content: space-between;
589
+ .asd20-multiselect-input {
590
+ margin-bottom: 0;
591
+ }
580
592
  }
581
593
  .article-pagination {
582
594
  flex-direction: row;
@@ -584,6 +596,12 @@ export default {
584
596
  .article-list {
585
597
  flex-basis: 50%;
586
598
  margin: space(0) space(0) space(1) space(3);
599
+ .asd20-search-field {
600
+ border: none;
601
+ .asd20-icon {
602
+ margin-left: 0;
603
+ }
604
+ }
587
605
  }
588
606
  .asd20-card {
589
607
  margin-bottom: space(1);