@aarhus-university/au-designsystem-delphinus 0.35.0 → 0.35.2

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.
Files changed (39) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/build/changelog.html +15 -1
  3. package/build/js/components/truncator.ts +5 -1
  4. package/build/projects/bachelor-applications/style.css +1 -1
  5. package/build/projects/bachelor-applications/style.css.map +1 -1
  6. package/build/projects/brightspace/style.css +1 -1
  7. package/build/projects/brightspace/style.css.map +1 -1
  8. package/build/projects/course-catalogue/style.css +1 -1
  9. package/build/projects/course-catalogue/style.css.map +1 -1
  10. package/build/projects/medarbejdere/style.css +1 -1
  11. package/build/projects/medarbejdere/style.css.map +2 -1
  12. package/build/projects/mitstudie/style.css +1 -1
  13. package/build/projects/mitstudie/style.css.map +1 -1
  14. package/build/projects/typo3/js/app.js +1 -1
  15. package/build/projects/typo3/js/app.js.map +1 -1
  16. package/build/projects/typo3/style.css +1 -1
  17. package/build/projects/typo3/style.css.map +1 -1
  18. package/build/style.css +1 -1
  19. package/build/style.css.map +1 -1
  20. package/package.json +1 -1
  21. package/source/js/components/truncator.ts +5 -1
  22. package/source/markup/components/list-navigator.pug +11 -0
  23. package/source/markup/components/switch.pug +43 -11
  24. package/source/markup/components/truncator.pug +0 -3
  25. package/source/markup/form-file-upload.pug +42 -0
  26. package/source/markup/partials/mixins/_switch.pug +43 -5
  27. package/source/markup/partials/mixins-demo/_nav-form.pug +1 -12
  28. package/source/projects/medarbejdere/index.pug +2 -0
  29. package/source/projects/medarbejdere/markup/_pure-profile-editor.pug +41 -18
  30. package/source/projects/medarbejdere/pure-profile-editor-cv.pug +26 -0
  31. package/source/projects/medarbejdere/style/_pure-profile-editor.scss +151 -45
  32. package/source/projects/medarbejdere/style/mixins/_typo3-breakpoint.scss +19 -0
  33. package/source/projects/medarbejdere/style.scss +1 -0
  34. package/source/projects/typo3/employee-profiles/mixins/_person-profile.pug +2 -2
  35. package/source/projects/typo3/employee-profiles/mixins/_profile-header.pug +1 -1
  36. package/source/style/base/_accessibility.scss +2 -1
  37. package/source/style/base/_forms.scss +17 -6
  38. package/source/style/module/_switch.scss +92 -8
  39. package/source/style/module/_tags.scss +1 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## 0.35.2 (March 6, 2023)
2
+
3
+ ### Core Delphinus Updates
4
+ * Adds support for using [Switch component](https://delphinus.au.dk/components/switch) as radiobuttons, checkbox and toggle (button with `aria-pressed` attribute)
5
+ * Fixes positioning of "Skip to content"-button i navigation.
6
+ * Fixes auto expand of truncator, when setting focus on a link inside the truncated content.
7
+
8
+ ### Delphinus Projects Updates
9
+ None
10
+
11
+ ## 0.35.1 (February 28, 2023)
12
+
13
+ ### Core Delphinus Updates
14
+ Tweak of the truncator JS when resizing.
15
+
16
+ ### Delphinus Projects Updates
17
+ None
18
+
19
+
20
+
1
21
  ## 0.35.0 (February 28, 2023)
2
22
 
3
23
  ### Core Delphinus Updates
@@ -17,7 +17,21 @@ a(href="/components" class= active_nav_item=="components" ? "nav__item--active"
17
17
  a(href="/atom-fonts.html" class= active_nav_item=="atoms" ? "nav__item--active" : "").nav__item Atoms
18
18
  a(href="/code.html" class= active_nav_item=="code" ? "nav__item--active" : "").nav__item Code
19
19
  a(href="/projects" class= active_nav_item=="projects" ? "nav__item--active" : "").nav__item Projects
20
- a(href="/changelog.html" class= active_nav_item=="changelog" ? "nav__item--active" : "").nav__item Changelog--><!--button(title="Show full menu" aria-label="Show full menu" aria-haspopup="true" aria-expanded="false" aria-controls="nav-items-global").nav__toggle Menu--></div></nav></header><main class="page__content theme--normal" id="content"><div class="page__content__block"><h1> <strong>Changelog</strong></h1><div class="changelog"><h2>0.35.0 (February 28, 2023)</h2>
20
+ a(href="/changelog.html" class= active_nav_item=="changelog" ? "nav__item--active" : "").nav__item Changelog--><!--button(title="Show full menu" aria-label="Show full menu" aria-haspopup="true" aria-expanded="false" aria-controls="nav-items-global").nav__toggle Menu--></div></nav></header><main class="page__content theme--normal" id="content"><div class="page__content__block"><h1> <strong>Changelog</strong></h1><div class="changelog"><h2>0.35.2 (March 6, 2023)</h2>
21
+ <h3>Core Delphinus Updates</h3>
22
+ <ul>
23
+ <li>Adds support for using <a href="https://delphinus.au.dk/components/switch">Switch component</a> as radiobuttons, checkbox and toggle (button with <code>aria-pressed</code> attribute)</li>
24
+ <li>Fixes positioning of &quot;Skip to content&quot;-button i navigation.</li>
25
+ <li>Fixes auto expand of truncator, when setting focus on a link inside the truncated content.</li>
26
+ </ul>
27
+ <h3>Delphinus Projects Updates</h3>
28
+ <p>None</p>
29
+ <h2>0.35.1 (February 28, 2023)</h2>
30
+ <h3>Core Delphinus Updates</h3>
31
+ <p>Tweak of the truncator JS when resizing.</p>
32
+ <h3>Delphinus Projects Updates</h3>
33
+ <p>None</p>
34
+ <h2>0.35.0 (February 28, 2023)</h2>
21
35
  <h3>Core Delphinus Updates</h3>
22
36
  <p>JS for truncators. Better handling of content-toggles on demo site.</p>
23
37
  <h3>Delphinus Projects Updates</h3>
@@ -25,6 +25,7 @@ const setTruncate = (truncator: HTMLElement): void => {
25
25
 
26
26
  window.addEventListener('resize', () => {
27
27
  buttonElement.setAttribute('hidden', 'hidden');
28
+ truncator.classList.remove('truncator--no-truncation');
28
29
  truncate(buttonElement as HTMLElement, contentElement as HTMLElement);
29
30
  });
30
31
 
@@ -32,7 +33,10 @@ const setTruncate = (truncator: HTMLElement): void => {
32
33
  if (focusElements) {
33
34
  focusElements.forEach((f) => {
34
35
  f.addEventListener('focus', () => {
35
- truncate(buttonElement as HTMLElement, contentElement as HTMLElement);
36
+ if (overflowsY(f as HTMLElement)) {
37
+ buttonElement.removeAttribute('hidden');
38
+ truncator.classList.add('truncator--no-truncation');
39
+ }
36
40
  });
37
41
  });
38
42
  }