@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.
- package/CHANGELOG.md +20 -0
- package/build/changelog.html +15 -1
- package/build/js/components/truncator.ts +5 -1
- package/build/projects/bachelor-applications/style.css +1 -1
- package/build/projects/bachelor-applications/style.css.map +1 -1
- package/build/projects/brightspace/style.css +1 -1
- package/build/projects/brightspace/style.css.map +1 -1
- package/build/projects/course-catalogue/style.css +1 -1
- package/build/projects/course-catalogue/style.css.map +1 -1
- package/build/projects/medarbejdere/style.css +1 -1
- package/build/projects/medarbejdere/style.css.map +2 -1
- package/build/projects/mitstudie/style.css +1 -1
- package/build/projects/mitstudie/style.css.map +1 -1
- package/build/projects/typo3/js/app.js +1 -1
- package/build/projects/typo3/js/app.js.map +1 -1
- package/build/projects/typo3/style.css +1 -1
- package/build/projects/typo3/style.css.map +1 -1
- package/build/style.css +1 -1
- package/build/style.css.map +1 -1
- package/package.json +1 -1
- package/source/js/components/truncator.ts +5 -1
- package/source/markup/components/list-navigator.pug +11 -0
- package/source/markup/components/switch.pug +43 -11
- package/source/markup/components/truncator.pug +0 -3
- package/source/markup/form-file-upload.pug +42 -0
- package/source/markup/partials/mixins/_switch.pug +43 -5
- package/source/markup/partials/mixins-demo/_nav-form.pug +1 -12
- package/source/projects/medarbejdere/index.pug +2 -0
- package/source/projects/medarbejdere/markup/_pure-profile-editor.pug +41 -18
- package/source/projects/medarbejdere/pure-profile-editor-cv.pug +26 -0
- package/source/projects/medarbejdere/style/_pure-profile-editor.scss +151 -45
- package/source/projects/medarbejdere/style/mixins/_typo3-breakpoint.scss +19 -0
- package/source/projects/medarbejdere/style.scss +1 -0
- package/source/projects/typo3/employee-profiles/mixins/_person-profile.pug +2 -2
- package/source/projects/typo3/employee-profiles/mixins/_profile-header.pug +1 -1
- package/source/style/base/_accessibility.scss +2 -1
- package/source/style/base/_forms.scss +17 -6
- package/source/style/module/_switch.scss +92 -8
- 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
|
package/build/changelog.html
CHANGED
|
@@ -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.
|
|
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 "Skip to content"-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
|
-
|
|
36
|
+
if (overflowsY(f as HTMLElement)) {
|
|
37
|
+
buttonElement.removeAttribute('hidden');
|
|
38
|
+
truncator.classList.add('truncator--no-truncation');
|
|
39
|
+
}
|
|
36
40
|
});
|
|
37
41
|
});
|
|
38
42
|
}
|