@ilo-org/twig 0.9.4 → 0.9.5
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.
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> @ilo-org/twig@0.9.
|
|
2
|
+
> @ilo-org/twig@0.9.5 build:lib /home/runner/work/designsystem/designsystem/packages/twig
|
|
3
3
|
> node importprefix.js && node importsvgs.js && pnpm output
|
|
4
4
|
|
|
5
5
|
theme prefix added
|
|
6
6
|
|
|
7
|
-
> @ilo-org/twig@0.9.
|
|
7
|
+
> @ilo-org/twig@0.9.5 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
8
8
|
> node outputtwigs.js
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @ilo-org/twig
|
|
2
2
|
|
|
3
|
+
## 0.9.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 897fe5766: fix click event bubbling
|
|
8
|
+
- Updated dependencies [897fe5766]
|
|
9
|
+
- Updated dependencies [897fe5766]
|
|
10
|
+
- Updated dependencies [897fe5766]
|
|
11
|
+
- @ilo-org/styles@0.9.0
|
|
12
|
+
|
|
3
13
|
## 0.9.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ilo-org/twig",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Twig components for the ILO's Design System",
|
|
6
6
|
"main": "",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@ilo-org/brand-assets": "0.1.0",
|
|
26
26
|
"@ilo-org/fonts": "0.1.0",
|
|
27
27
|
"@ilo-org/icons": "0.2.1",
|
|
28
|
-
"@ilo-org/styles": "0.
|
|
28
|
+
"@ilo-org/styles": "0.9.0",
|
|
29
29
|
"@ilo-org/themes": "0.2.0",
|
|
30
30
|
"@ilo-org/utils": "0.0.11"
|
|
31
31
|
},
|
|
@@ -180,11 +180,11 @@ export default class Navigation {
|
|
|
180
180
|
|
|
181
181
|
// languageButton
|
|
182
182
|
if (this.languageButton) {
|
|
183
|
-
this.languageButton.addEventListener(EVENTS.CLICK, () =>
|
|
184
|
-
this.languageButtonClick()
|
|
183
|
+
this.languageButton.addEventListener(EVENTS.CLICK, (e) =>
|
|
184
|
+
this.languageButtonClick(e)
|
|
185
185
|
);
|
|
186
|
-
this.languageButton.addEventListener(EVENTS.TOUCH_START, () =>
|
|
187
|
-
this.languageButtonClick()
|
|
186
|
+
this.languageButton.addEventListener(EVENTS.TOUCH_START, (e) =>
|
|
187
|
+
this.languageButtonClick(e)
|
|
188
188
|
);
|
|
189
189
|
}
|
|
190
190
|
|
|
@@ -273,7 +273,9 @@ export default class Navigation {
|
|
|
273
273
|
* @return {Object} Navigation A reference to the instance of the class
|
|
274
274
|
* @chainable
|
|
275
275
|
*/
|
|
276
|
-
handleLanguageButtonClick() {
|
|
276
|
+
handleLanguageButtonClick(e) {
|
|
277
|
+
e.preventDefault();
|
|
278
|
+
e.stopImmediatePropagation();
|
|
277
279
|
this.element.classList.toggle(`${this.prefix}--select--open`);
|
|
278
280
|
|
|
279
281
|
return this;
|
|
@@ -482,6 +484,8 @@ export default class Navigation {
|
|
|
482
484
|
* @chainable
|
|
483
485
|
*/
|
|
484
486
|
handleSubnavClick(e) {
|
|
487
|
+
e.preventDefault();
|
|
488
|
+
e.stopImmediatePropagation();
|
|
485
489
|
this.element.classList.remove(`${this.prefix}--search--open`);
|
|
486
490
|
|
|
487
491
|
if (this.element.classList.contains(`${this.prefix}--subnav--open`)) {
|