@itfin/components 1.3.60 → 1.3.62
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,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="itf-monthpicker
|
|
2
|
+
<div class="itf-monthpicker" :class="{'with-addon addon-start': prependIcon}">
|
|
3
3
|
<div class="addon" v-if="prependIcon">
|
|
4
4
|
<slot name="addon">
|
|
5
5
|
<itf-icon :name="prependIcon" />
|
|
@@ -16,17 +16,6 @@
|
|
|
16
16
|
:value="displayValue"
|
|
17
17
|
:placeholder="placeholder"
|
|
18
18
|
/>
|
|
19
|
-
<div class="addon-end" v-if="clearable && value">
|
|
20
|
-
<slot name="clear">
|
|
21
|
-
<itf-button
|
|
22
|
-
icon
|
|
23
|
-
small
|
|
24
|
-
@click="$emit('input', '')"
|
|
25
|
-
>
|
|
26
|
-
<itf-icon name="close" />
|
|
27
|
-
</itf-button>
|
|
28
|
-
</slot>
|
|
29
|
-
</div>
|
|
30
19
|
<div style="display: none">
|
|
31
20
|
<div ref="dropdown" class="itf-monthpicker__dropdown border rounded">
|
|
32
21
|
<div>
|
|
@@ -53,12 +42,10 @@ import { DateTime } from 'luxon';
|
|
|
53
42
|
import tippy from 'tippy.js';
|
|
54
43
|
import itfIcon from '../icon/Icon';
|
|
55
44
|
import itfDatePickerInline from './DatePickerInline.vue';
|
|
56
|
-
import itfButton from "../button/Button.vue";
|
|
57
45
|
|
|
58
46
|
export default @Component({
|
|
59
47
|
name: 'itfMonthPicker',
|
|
60
48
|
components: {
|
|
61
|
-
itfButton,
|
|
62
49
|
itfIcon,
|
|
63
50
|
itfDatePickerInline
|
|
64
51
|
},
|
|
@@ -77,8 +64,6 @@ class itfMonthPicker extends Vue {
|
|
|
77
64
|
@Prop({ type: String, default: '' }) prependIcon;
|
|
78
65
|
@Prop({ type: String, default: 'bottom-start' }) placement;
|
|
79
66
|
|
|
80
|
-
@Prop(Boolean) clearable;
|
|
81
|
-
|
|
82
67
|
focused = false;
|
|
83
68
|
|
|
84
69
|
tooltip = null;
|
|
@@ -200,6 +200,7 @@ export default class PanelList extends Vue {
|
|
|
200
200
|
const newPanel:any = {
|
|
201
201
|
id: this.nextId++,
|
|
202
202
|
title: this.panels[type].caption(this.$t.bind(this), payload),
|
|
203
|
+
icon: this.panels[type].icon ? this.panels[type].icon(this.$t.bind(this), payload) : null,
|
|
203
204
|
type,
|
|
204
205
|
payload,
|
|
205
206
|
isCollapsed: false,
|
|
@@ -248,6 +249,8 @@ export default class PanelList extends Vue {
|
|
|
248
249
|
newPanel.getPayload = () => newPanel.payload;
|
|
249
250
|
newPanel.setPayload = (value: any) => {
|
|
250
251
|
newPanel.payload = value;
|
|
252
|
+
newPanel.title = this.panels[type].caption(this.$t.bind(this), value);
|
|
253
|
+
newPanel.icon = this.panels[type].icon ? this.panels[type].icon(this.$t.bind(this), payload) : null,
|
|
251
254
|
this.setPanelHash()
|
|
252
255
|
}
|
|
253
256
|
newStack.push(newPanel);
|