@ilo-org/twig 0.14.3 → 0.14.4
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.
|
|
2
|
+
> @ilo-org/twig@0.14.4 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.
|
|
7
|
+
> @ilo-org/twig@0.14.4 output /home/runner/work/designsystem/designsystem/packages/twig
|
|
8
8
|
> node outputtwigs.js
|
|
9
9
|
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
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.
|
|
92
|
-
this.element.
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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.
|
|
112
|
+
if (this.ContextMenu) {
|
|
110
113
|
if (this.ContextMenu.classList.contains("open")) {
|
|
111
114
|
this.ContextMenu.classList.remove("open");
|
|
112
115
|
} else {
|