@neovici/cosmoz-bottom-bar 5.0.0 → 5.1.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.
@@ -28,6 +28,9 @@ export default html`
28
28
  padding: 0;
29
29
  };
30
30
  }
31
+ :host([force-open]) {
32
+ transition: none;
33
+ }
31
34
  [hidden], ::slotted([hidden]) {
32
35
  display: none !important;
33
36
  }
@@ -130,6 +130,11 @@ class CosmozBottomBar extends PolymerElement {
130
130
  type: Number
131
131
  },
132
132
 
133
+ forceOpen: {
134
+ type: Boolean,
135
+ value: false
136
+ },
137
+
133
138
  /**
134
139
  * Whether the bar is visible (has actions and is `active`)
135
140
  */
@@ -137,7 +142,7 @@ class CosmozBottomBar extends PolymerElement {
137
142
  type: Boolean,
138
143
  notify: true,
139
144
  readOnly: true,
140
- computed: '_computeVisible(hasActions, active, hasExtraItems)'
145
+ computed: '_computeVisible(hasActions, active, hasExtraItems, forceOpen)'
141
146
  },
142
147
 
143
148
  /**
@@ -230,8 +235,8 @@ class CosmozBottomBar extends PolymerElement {
230
235
  return barHeight;
231
236
  }
232
237
 
233
- _computeVisible(hasActions, active, hasExtraItems) {
234
- return (hasActions || hasExtraItems) && active;
238
+ _computeVisible(hasActions, active, hasExtraItems, forceOpen) {
239
+ return forceOpen || ((hasActions || hasExtraItems) && active);
235
240
  }
236
241
 
237
242
  _debounceLayoutActions() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-bottom-bar",
3
- "version": "5.0.0",
3
+ "version": "5.1.0",
4
4
  "description": "A responsive bottom-bar that can house buttons/actions and a menu for the buttons that won't fit the available width.",
5
5
  "keywords": [
6
6
  "polymer",