@neovici/cosmoz-bottom-bar 7.0.0 → 7.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.
@@ -139,11 +139,6 @@ class CosmozBottomBar extends PolymerElement {
139
139
  type: Number,
140
140
  },
141
141
 
142
- renderOpen: {
143
- type: Boolean,
144
- value: false,
145
- },
146
-
147
142
  forceOpen: {
148
143
  type: Boolean,
149
144
  value: false,
@@ -185,7 +180,7 @@ class CosmozBottomBar extends PolymerElement {
185
180
  }
186
181
 
187
182
  static get observers() {
188
- return ['_showHideBottomBar(visible, renderOpen)'];
183
+ return ['_showHideBottomBar(visible)'];
189
184
  }
190
185
 
191
186
  constructor() {
@@ -207,13 +202,13 @@ class CosmozBottomBar extends PolymerElement {
207
202
  this._nodeObservers = [
208
203
  new FlattenedNodesObserver(this.$.content, this._boundChildrenUpdated),
209
204
  new FlattenedNodesObserver(this.$.extraSlot, (info) =>
210
- this.set('hasExtraItems', info.addedNodes.length > 0)
205
+ this.set('hasExtraItems', info.addedNodes.length > 0),
211
206
  ),
212
207
  new FlattenedNodesObserver(this.$.bottomBarToolbar, layoutOnRemove),
213
208
  new FlattenedNodesObserver(this.$.bottomBarMenu, layoutOnRemove),
214
209
  ];
215
210
  this._hiddenMutationObserver = new MutationObserver(() =>
216
- this._debounceLayoutActions()
211
+ this._debounceLayoutActions(),
217
212
  );
218
213
  this._resizeObserver.observe(this);
219
214
  this._computedBarHeightKicker = 0;
@@ -224,7 +219,7 @@ class CosmozBottomBar extends PolymerElement {
224
219
  this[rendered] = false;
225
220
 
226
221
  [...this._nodeObservers, this._hiddenMutationObserver].forEach((e) =>
227
- e.disconnect(e)
222
+ e.disconnect(e),
228
223
  );
229
224
  this._layoutDebouncer?.cancel(); /* eslint-disable-line no-unused-expressions */
230
225
  this._resizeObserver.unobserve(this);
@@ -267,7 +262,7 @@ class CosmozBottomBar extends PolymerElement {
267
262
  this._layoutDebouncer = Debouncer.debounce(
268
263
  this._layoutDebouncer,
269
264
  timeOut.after(30),
270
- this._boundLayoutActions
265
+ this._boundLayoutActions,
271
266
  );
272
267
  }
273
268
 
@@ -313,7 +308,7 @@ class CosmozBottomBar extends PolymerElement {
313
308
  : element;
314
309
  },
315
310
  { dataset: { priority: '-1000' } },
316
- []
311
+ [],
317
312
  );
318
313
 
319
314
  return [
@@ -379,7 +374,7 @@ class CosmozBottomBar extends PolymerElement {
379
374
  this._computedBarHeightKicker += 1;
380
375
  }
381
376
 
382
- _showHideBottomBar(visible, renderOpen) {
377
+ _showHideBottomBar(visible) {
383
378
  this.style.transitionDuration = 0;
384
379
  this.style.display = '';
385
380
  this.style.maxHeight = '';
@@ -389,7 +384,7 @@ class CosmozBottomBar extends PolymerElement {
389
384
 
390
385
  let from = visible ? '0px' : height + 'px';
391
386
 
392
- if (visible && renderOpen && !this[rendered]) {
387
+ if (!this[rendered]) {
393
388
  from = to;
394
389
  this[rendered] = true;
395
390
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neovici/cosmoz-bottom-bar",
3
- "version": "7.0.0",
3
+ "version": "7.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",
@@ -56,8 +56,8 @@
56
56
  "lit-html": "^2.0.0 || ^3.0.0"
57
57
  },
58
58
  "devDependencies": {
59
- "@commitlint/cli": "^18.0.0",
60
- "@commitlint/config-conventional": "^18.0.0",
59
+ "@commitlint/cli": "^19.0.0",
60
+ "@commitlint/config-conventional": "^19.0.0",
61
61
  "@neovici/cfg": "^1.13.0",
62
62
  "@open-wc/testing": "^4.0.0",
63
63
  "@polymer/iron-icon": "^3.0.1",
@@ -68,7 +68,7 @@
68
68
  "@semantic-release/git": "^10.0.0",
69
69
  "@webcomponents/webcomponentsjs": "^2.5.0",
70
70
  "husky": "^8.0.0",
71
- "semantic-release": "^22.0.0",
71
+ "semantic-release": "^23.0.0",
72
72
  "sinon": "^17.0.0"
73
73
  }
74
74
  }