@aarhus-university/au-designsystem-delphinus 0.23.21 → 0.23.22
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
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.23.21 (February 14, 2022)
|
|
2
|
+
|
|
3
|
+
### Core Delphinus Updates
|
|
4
|
+
None
|
|
5
|
+
|
|
6
|
+
### Delphinus Projects Updates
|
|
7
|
+
|
|
8
|
+
#### Typo3
|
|
9
|
+
Support news using content elements in other layouts, than full width layouts.
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
1
15
|
## 0.23.20 (February 10, 2022)
|
|
2
16
|
|
|
3
17
|
### Core Delphinus Updates
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-env browser */
|
|
3
3
|
import 'wicg-inert';
|
|
4
4
|
|
|
5
|
-
const hideModal = (modal, sender, callback = () => {}) => {
|
|
5
|
+
const hideModal = (modal, sender, callback = () => { }) => {
|
|
6
6
|
const modalView = document.getElementById(modal);
|
|
7
7
|
modalView.classList.remove('modal-view--visible');
|
|
8
8
|
modalView.inert = true;
|
|
@@ -15,7 +15,7 @@ const hideModal = (modal, sender, callback = () => {}) => {
|
|
|
15
15
|
callback();
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
const showModal = (modal, sender, hideCallback = () => {}) => {
|
|
18
|
+
const showModal = (modal, sender, hideCallback = () => { }, closeable = true) => {
|
|
19
19
|
const modalView = document.getElementById(modal);
|
|
20
20
|
modalView.classList.add('modal-view--visible');
|
|
21
21
|
modalView.inert = false;
|
|
@@ -39,10 +39,12 @@ const showModal = (modal, sender, hideCallback = () => {}) => {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
if (closeable) {
|
|
43
|
+
modalView.removeEventListener('click', clickEvent);
|
|
44
|
+
modalView.addEventListener('click', clickEvent);
|
|
45
|
+
window.removeEventListener('keyup', keyEvent);
|
|
46
|
+
window.addEventListener('keyup', keyEvent);
|
|
47
|
+
}
|
|
46
48
|
};
|
|
47
49
|
|
|
48
50
|
export {
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000 fe8a42ddf3e6625b24fd5432f984a813f0cbf030 Claus Stadel <claus.stadel@au.dk> 1643362566 +0100 branch: Created from HEAD
|
|
2
|
-
fe8a42ddf3e6625b24fd5432f984a813f0cbf030 f5336dc5708bc1d6bf452d3b2df9789a30a67546 Claus Stadel <claus.stadel@au.dk> 1643362592 +0100 commit: Stuff for changelog pug markdown filter
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
0000000000000000000000000000000000000000 fe8a42ddf3e6625b24fd5432f984a813f0cbf030 Claus Stadel <claus.stadel@au.dk> 1643362569 +0100 update by push
|
|
2
|
-
fe8a42ddf3e6625b24fd5432f984a813f0cbf030 f5336dc5708bc1d6bf452d3b2df9789a30a67546 Claus Stadel <claus.stadel@au.dk> 1643362594 +0100 update by push
|