@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.
package/cosmoz-bottom-bar.js
CHANGED
|
@@ -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