@ilo-org/twig 0.14.3 → 0.14.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.14.3 build:lib /home/runner/work/designsystem/designsystem/packages/twig
2
+ > @ilo-org/twig@0.14.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.14.3 output /home/runner/work/designsystem/designsystem/packages/twig
7
+ > @ilo-org/twig@0.14.5 output /home/runner/work/designsystem/designsystem/packages/twig
8
8
  > node outputtwigs.js
9
9
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # @ilo-org/twig
2
2
 
3
+ ## 0.14.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [dcb36eeef]
8
+ - @ilo-org/brand-assets@0.3.0
9
+
10
+ ## 0.14.4
11
+
12
+ ### Patch Changes
13
+
14
+ - f557eb372: breadcrumbs: added check for context items
15
+
3
16
  ## 0.14.3
4
17
 
5
18
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ilo-org/twig",
3
- "version": "0.14.3",
3
+ "version": "0.14.5",
4
4
  "license": "Apache-2.0",
5
5
  "description": "Twig components for the ILO's Design System",
6
6
  "main": "",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@popperjs/core": "^2.11.8",
25
25
  "video.js": "^7.21.2",
26
- "@ilo-org/brand-assets": "0.2.0",
26
+ "@ilo-org/brand-assets": "0.3.0",
27
27
  "@ilo-org/fonts": "0.1.2",
28
28
  "@ilo-org/icons": "0.2.1",
29
29
  "@ilo-org/styles": "0.13.2",
@@ -76,7 +76,9 @@ export default class Breadcrumb {
76
76
  */
77
77
  enable() {
78
78
  window.addEventListener(EVENTS.RESIZE, (e) => this.onResize(e));
79
- this.ContextButton.addEventListener(EVENTS.CLICK, () => this.onClick());
79
+ if (this.ContextButton) {
80
+ this.ContextButton.addEventListener(EVENTS.CLICK, () => this.onClick());
81
+ }
80
82
 
81
83
  return this;
82
84
  }
@@ -88,14 +90,15 @@ export default class Breadcrumb {
88
90
  * @chainable
89
91
  */
90
92
  onResize() {
91
- if (this.breadcrumbwidth > this.element.offsetWidth / 2) {
92
- this.element.classList.add("contextmenu");
93
- this.ContextMenu.classList.remove("open");
94
- } else {
95
- this.element.classList.remove("contextmenu");
96
- this.ContextMenu.classList.remove("open");
93
+ if (this.ContextMenu) {
94
+ if (this.breadcrumbwidth > this.element.offsetWidth / 2) {
95
+ this.element.classList.add("contextmenu");
96
+ this.ContextMenu.classList.remove("open");
97
+ } else {
98
+ this.element.classList.remove("contextmenu");
99
+ this.ContextMenu.classList.remove("open");
100
+ }
97
101
  }
98
-
99
102
  return this;
100
103
  }
101
104
 
@@ -106,7 +109,7 @@ export default class Breadcrumb {
106
109
  * @chainable
107
110
  */
108
111
  onClick() {
109
- if (this.element.classList.contains("contextmenu")) {
112
+ if (this.ContextMenu) {
110
113
  if (this.ContextMenu.classList.contains("open")) {
111
114
  this.ContextMenu.classList.remove("open");
112
115
  } else {