@itfin/components 1.2.123 → 1.2.125
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
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
:value="value"
|
|
23
23
|
start-view="months"
|
|
24
24
|
min-view="months"
|
|
25
|
+
:min-date="minDate"
|
|
25
26
|
only-calendar
|
|
26
27
|
:display-format="displayFormat"
|
|
27
28
|
:value-format="valueFormat"
|
|
@@ -51,6 +52,7 @@ class itfMonthPicker extends Vue {
|
|
|
51
52
|
@Prop({ type: String }) value;
|
|
52
53
|
@Prop({ type: Boolean }) disabled;
|
|
53
54
|
@Prop({ type: String, default: 'ISO' }) valueFormat;
|
|
55
|
+
@Prop({ type: [String, Date], default: '' }) minDate;
|
|
54
56
|
@Prop({ type: String, default: 'LLLL, yyyy' }) displayFormat;
|
|
55
57
|
@Prop({ type: String, default: '' }) placeholder;
|
|
56
58
|
@Prop({ type: String, default: '' }) prependIcon;
|
|
@@ -4,16 +4,17 @@ import '../assets/scss/directives/loading.scss';
|
|
|
4
4
|
export default {
|
|
5
5
|
handleShow(el, modifiers) {
|
|
6
6
|
el.classList.add('itf-loading-wrapper');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
let loader = el.getElementsByClassName('itf-loading');
|
|
8
|
+
if (!loader.length) {
|
|
9
|
+
loader = elem('div', 'itf-loading itf-loading-default');
|
|
10
|
+
const message = elem('div', 'itf-loading-message text-center');
|
|
11
|
+
const icon = elem('span', 'itf-loading-icon');
|
|
12
|
+
const loadingText = elem('span');
|
|
13
|
+
message.appendChild(icon);
|
|
14
|
+
message.appendChild(loadingText);
|
|
15
|
+
loader.appendChild(message);
|
|
16
|
+
el.appendChild(loader);
|
|
17
|
+
}
|
|
17
18
|
|
|
18
19
|
if (modifiers.centered && typeof window !== 'undefined') {
|
|
19
20
|
el.resizeHandler = () => scrolling();
|
|
@@ -49,10 +50,10 @@ export default {
|
|
|
49
50
|
off(window, 'resize', el.resizeHandler);
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
const blockers = el.getElementsByClassName('itf-loading');
|
|
53
|
-
for (const blocker of blockers) {
|
|
54
|
-
|
|
55
|
-
}
|
|
53
|
+
// const blockers = el.getElementsByClassName('itf-loading');
|
|
54
|
+
// for (const blocker of blockers) {
|
|
55
|
+
// blocker.remove();
|
|
56
|
+
// }
|
|
56
57
|
},
|
|
57
58
|
bind(el, { value, modifiers, def }) {
|
|
58
59
|
def.handleHide(el, modifiers);
|