@itfin/components 1.3.49 → 1.3.50

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": "1.3.49",
3
+ "version": "1.3.50",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -23,6 +23,7 @@
23
23
  :close="() => closePanel(panel)"
24
24
  :expand="() => expandPanel(panel)"
25
25
  :fullsize="() => fullsizePanel(panel)">
26
+ <component :is="panels[panel.type]" :panel="panel" :payload="panel.payload" />
26
27
  </slot>
27
28
  <template v-if="$scopedSlots[`${panel.type}.title`]" #title>
28
29
  <slot
@@ -62,7 +63,7 @@
62
63
  }
63
64
  .b-panel-list {
64
65
  align-items: stretch;
65
- //background: var(--bs-body-bg);
66
+ //background: var(--bs-body-bg);
66
67
  bottom: 0;
67
68
  display: flex;
68
69
  height: 100%;
@@ -94,10 +95,14 @@ interface IPanel {
94
95
  directives: {
95
96
  },
96
97
  filters: {
98
+ },
99
+ provide() {
100
+ return { panelList: this }; // do not use Provide from vue-property-decorator
97
101
  }
98
102
  })
99
103
  export default class PanelList extends Vue {
100
104
  @Prop() firstPanel: IPanel;
105
+ @Prop() panels: Record<string, Component>;
101
106
 
102
107
  panelsStack:IPanel[] = [];
103
108