@itfin/components 2.0.24 → 2.0.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "2.0.24",
3
+ "version": "2.0.25",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -16,9 +16,9 @@
16
16
  </div>
17
17
  <div v-if="!nocard" v-show="!collapsed" class="b-panel-header px-3 pt-3 pb-2">
18
18
  <slot name="header">
19
- <div class="d-flex gap-3 align-items-center text-truncate">
20
- <itf-button v-if="closeable" icon default class="d-md-none" @click="closePanel">
21
- <itf-icon name="chevron_left" />
19
+ <div class="d-flex gap-3 align-items-center w-100">
20
+ <itf-button icon default class="d-md-none open-menu-button" @click="$emit('open-menu')">
21
+ <itf-icon name="menu" new />
22
22
  </itf-button>
23
23
  <slot name="title">
24
24
  <div class="b-panel__title fw-bold mb-0 h2 text-truncate" v-text="title"></div>
@@ -62,7 +62,11 @@ export default class PanelLink extends Vue {
62
62
  }
63
63
 
64
64
  onClick(e) {
65
- console.info(this.activeList);
65
+ this.$emit('open', {
66
+ panel: this.panel,
67
+ payload: this.payload || {},
68
+ index: this.append ? undefined : this.currentPanel?.index + 1
69
+ });
66
70
  if (!this.activeList) {
67
71
  return;
68
72
  }
@@ -26,6 +26,7 @@
26
26
  @expand="expandPanel(panel)"
27
27
  @fullsize="fullsizePanel(panel)"
28
28
  @close="closePanel(panel)"
29
+ @open-menu="$emit('open-menu', panel.type, panel.payload)"
29
30
  >
30
31
  <slot
31
32
  :name="panel.type"