@ons/design-system 48.0.1 → 49.0.0
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/components/button/_button.scss +38 -1
- package/components/header/_header.scss +32 -11
- package/components/header/_macro.njk +15 -54
- package/components/modal/_macro.njk +15 -13
- package/components/modal/_modal.scss +17 -0
- package/components/modal/modal.js +15 -2
- package/components/navigation/_macro.njk +98 -0
- package/components/navigation/_navigation.scss +127 -0
- package/components/navigation/navigation.dom.js +39 -0
- package/components/{header/header-nav.js → navigation/navigation.js} +13 -13
- package/components/section-navigation/_macro.njk +1 -1
- package/css/census.css +1 -1
- package/css/main.css +1 -1
- package/js/main.js +1 -1
- package/js/timeout.js +2 -2
- package/layout/_template.njk +1 -1
- package/package.json +1 -1
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +2 -2
- package/scss/main.scss +1 -1
- package/components/header/_header-nav.scss +0 -108
- package/components/header/header-nav.dom.js +0 -31
package/js/main.js
CHANGED
|
@@ -9,7 +9,7 @@ import '../components/table-of-contents/toc.dom';
|
|
|
9
9
|
import '../components/collapsible/collapsible.dom';
|
|
10
10
|
import '../components/table/scrollable-table.dom';
|
|
11
11
|
import '../components/table/sortable-table.dom';
|
|
12
|
-
import '../components/
|
|
12
|
+
import '../components/navigation/navigation.dom';
|
|
13
13
|
import '../components/access-code/uac.dom';
|
|
14
14
|
import '../components/relationships/relationships.dom';
|
|
15
15
|
import '../components/checkboxes/checkboxes.dom';
|
package/js/timeout.js
CHANGED
|
@@ -30,7 +30,7 @@ export default class Timeout {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
async initialise() {
|
|
33
|
-
if (this.initialExpiryTime
|
|
33
|
+
if (this.initialExpiryTime) {
|
|
34
34
|
this.expiryTime = this.initialExpiryTime;
|
|
35
35
|
} else {
|
|
36
36
|
this.expiryTime = await this.setNewExpiryTime();
|
|
@@ -124,7 +124,7 @@ export default class Timeout {
|
|
|
124
124
|
let newExpiryTime;
|
|
125
125
|
if (!this.sessionExpiryEndpoint) {
|
|
126
126
|
// For demo purposes
|
|
127
|
-
const demoTime = new Date(
|
|
127
|
+
const demoTime = new Date(Date.now() + 60 * 1000);
|
|
128
128
|
newExpiryTime = new Date(demoTime).toISOString();
|
|
129
129
|
} else {
|
|
130
130
|
newExpiryTime = await this.fetchExpiryTime('PATCH');
|
package/layout/_template.njk
CHANGED
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
"wide": pageConfig.wide,
|
|
153
153
|
"language": pageConfig.language,
|
|
154
154
|
"button": pageConfig.signoutButton,
|
|
155
|
-
"
|
|
155
|
+
"toggleNavigationButton": pageConfig.toggleNavigationButton,
|
|
156
156
|
"navigation": pageConfig.navigation,
|
|
157
157
|
"phase": pageConfig.phase,
|
|
158
158
|
"assetsURL": assetsURL,
|