@itfin/components 1.0.115 → 1.0.116
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 +1 -1
- package/src/components/app/App.vue +5 -4
- package/src/components/checkbox/CheckboxGroup.vue +5 -4
- package/src/components/checkbox/RadioGroup.vue +5 -4
- package/src/components/form/Form.vue +4 -3
- package/src/components/form/Label.vue +5 -3
- package/src/components/tabs/Tabs.vue +4 -3
- package/src/components/tabs/tabs.scss +2 -2
- package/src/components/wizard/Step.vue +4 -2
- package/src/components/wizard/Wizard.vue +4 -3
package/package.json
CHANGED
|
@@ -70,18 +70,19 @@
|
|
|
70
70
|
}
|
|
71
71
|
</style>
|
|
72
72
|
<script>
|
|
73
|
-
import { Vue, Component
|
|
73
|
+
import { Vue, Component } from 'vue-property-decorator';
|
|
74
74
|
import Message from './message';
|
|
75
75
|
|
|
76
76
|
let globalApp = null;
|
|
77
77
|
|
|
78
78
|
export default @Component({
|
|
79
79
|
name: 'itfApp',
|
|
80
|
-
components: {}
|
|
80
|
+
components: {},
|
|
81
|
+
provide() {
|
|
82
|
+
return { globalApp: this }; // do not use Provide from vue-property-decorator
|
|
83
|
+
}
|
|
81
84
|
})
|
|
82
85
|
class itfApp extends Vue {
|
|
83
|
-
@Provide() globalApp = this;
|
|
84
|
-
|
|
85
86
|
created() {
|
|
86
87
|
globalApp = this;
|
|
87
88
|
Vue.prototype.$globalApp = this;
|
|
@@ -9,14 +9,15 @@
|
|
|
9
9
|
|
|
10
10
|
</style>
|
|
11
11
|
<script>
|
|
12
|
-
import { Vue, Component, Prop, Model
|
|
12
|
+
import { Vue, Component, Prop, Model } from 'vue-property-decorator';
|
|
13
13
|
|
|
14
14
|
export default @Component({
|
|
15
|
-
name: 'itfCheckboxGroup'
|
|
15
|
+
name: 'itfCheckboxGroup',
|
|
16
|
+
provide() {
|
|
17
|
+
return { checkboxGroup: this }; // do not use Provide from vue-property-decorator
|
|
18
|
+
}
|
|
16
19
|
})
|
|
17
20
|
class itfCheckboxGroup extends Vue {
|
|
18
|
-
@Provide() checkboxGroup = this;
|
|
19
|
-
|
|
20
21
|
@Model('input', { type: Array, default: () => [] }) value;
|
|
21
22
|
|
|
22
23
|
@Prop(Boolean) disabled;
|
|
@@ -9,16 +9,17 @@
|
|
|
9
9
|
|
|
10
10
|
</style>
|
|
11
11
|
<script>
|
|
12
|
-
import { Vue, Component, Prop, Model
|
|
12
|
+
import { Vue, Component, Prop, Model } from 'vue-property-decorator';
|
|
13
13
|
|
|
14
14
|
let globalRadioGroupId = 0;
|
|
15
15
|
|
|
16
16
|
export default @Component({
|
|
17
|
-
name: 'itfRadioGroup'
|
|
17
|
+
name: 'itfRadioGroup',
|
|
18
|
+
provide() {
|
|
19
|
+
return { radioGroup: this }; // do not use Provide from vue-property-decorator
|
|
20
|
+
}
|
|
18
21
|
})
|
|
19
22
|
class itfRadioGroup extends Vue {
|
|
20
|
-
@Provide() radioGroup = this;
|
|
21
|
-
|
|
22
23
|
@Model('input', { default: null }) value;
|
|
23
24
|
|
|
24
25
|
@Prop(Boolean) disabled;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
//@import '~bootstrap/scss/forms';
|
|
9
9
|
</style>
|
|
10
10
|
<script>
|
|
11
|
-
import { Vue, Component, Watch,
|
|
11
|
+
import { Vue, Component, Watch, Model } from 'vue-property-decorator';
|
|
12
12
|
import * as validators from '../../helpers/validators';
|
|
13
13
|
|
|
14
14
|
Vue.prototype.$v = validators;
|
|
@@ -16,10 +16,11 @@ Vue.prototype.$v = validators;
|
|
|
16
16
|
export default @Component({
|
|
17
17
|
name: 'itfForm',
|
|
18
18
|
components: {},
|
|
19
|
+
provide() {
|
|
20
|
+
return { form: this }; // do not use Provide from vue-property-decorator
|
|
21
|
+
}
|
|
19
22
|
})
|
|
20
23
|
class itfForm extends Vue {
|
|
21
|
-
@Provide() form = this;
|
|
22
|
-
|
|
23
24
|
@Model('input') valid;
|
|
24
25
|
|
|
25
26
|
watchers = [];
|
|
@@ -48,16 +48,18 @@
|
|
|
48
48
|
}
|
|
49
49
|
</style>
|
|
50
50
|
<script>
|
|
51
|
-
import { Component, Prop,
|
|
51
|
+
import { Component, Prop, Inject, Mixins } from 'vue-property-decorator';
|
|
52
52
|
import ValidatableMixin from '../../mixins/ValidatableMixin';
|
|
53
53
|
|
|
54
54
|
export default
|
|
55
55
|
@Component({
|
|
56
56
|
name: 'itfLabel',
|
|
57
|
-
components: {}
|
|
57
|
+
components: {},
|
|
58
|
+
provide() {
|
|
59
|
+
return { itemLabel: this }; // do not use Provide from vue-property-decorator
|
|
60
|
+
}
|
|
58
61
|
})
|
|
59
62
|
class itfLabel extends Mixins(ValidatableMixin) {
|
|
60
|
-
@Provide() itemLabel = this;
|
|
61
63
|
@Inject({ default: null }) form;
|
|
62
64
|
|
|
63
65
|
@Prop() value;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import {
|
|
3
|
-
Vue, Component,
|
|
3
|
+
Vue, Component, Model, Emit, Prop
|
|
4
4
|
} from 'vue-property-decorator';
|
|
5
5
|
import itfTab from './Tab';
|
|
6
6
|
import './tabs.scss';
|
|
@@ -10,10 +10,11 @@ export default @Component({
|
|
|
10
10
|
components: {
|
|
11
11
|
itfTab
|
|
12
12
|
},
|
|
13
|
+
provide() {
|
|
14
|
+
return { tabsManager: this }; // do not use Provide from vue-property-decorator
|
|
15
|
+
}
|
|
13
16
|
})
|
|
14
17
|
class itfTabs extends Vue {
|
|
15
|
-
@Provide() tabsManager = this;
|
|
16
|
-
|
|
17
18
|
@Model('input') value;
|
|
18
19
|
@Prop(Boolean) vertical;
|
|
19
20
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
display: flex;
|
|
25
25
|
flex-direction: row-reverse;
|
|
26
26
|
|
|
27
|
-
.itf-tabs-panel {
|
|
27
|
+
& > .itf-tabs-panel {
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
width: var(--itf-tabs-panel-width);
|
|
30
30
|
padding-top: 6px;
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.itf-tabs-panel {
|
|
90
|
+
& > .itf-tabs-panel {
|
|
91
91
|
margin: 0;
|
|
92
92
|
padding: 0;
|
|
93
93
|
overflow: hidden;
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
}
|
|
107
107
|
</style>
|
|
108
108
|
<script>
|
|
109
|
-
import { Vue, Component, Prop, Emit, Inject
|
|
109
|
+
import { Vue, Component, Prop, Emit, Inject } from 'vue-property-decorator';
|
|
110
110
|
import itfForm from '../form/Form';
|
|
111
111
|
import itfButton from '../button/Button';
|
|
112
112
|
import loading from '../../directives/loading';
|
|
@@ -119,12 +119,14 @@ export default @Component({
|
|
|
119
119
|
},
|
|
120
120
|
directives: {
|
|
121
121
|
loading
|
|
122
|
+
},
|
|
123
|
+
provide() {
|
|
124
|
+
return { step: this }; // do not use Provide from vue-property-decorator
|
|
122
125
|
}
|
|
123
126
|
})
|
|
124
127
|
class itfWizardStep extends Vue {
|
|
125
128
|
@Inject({ default: null }) upApp;
|
|
126
129
|
@Inject() stepsManager;
|
|
127
|
-
@Provide() step = this;
|
|
128
130
|
|
|
129
131
|
@Prop() id;
|
|
130
132
|
@Prop() cardTitle;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import {
|
|
3
|
-
Vue, Component, Prop,
|
|
3
|
+
Vue, Component, Prop, Model, Emit,
|
|
4
4
|
} from 'vue-property-decorator';
|
|
5
5
|
import itfWizardStep from './Step';
|
|
6
6
|
import itfWizardSidebar from './Sidebar';
|
|
@@ -12,10 +12,11 @@ export default @Component({
|
|
|
12
12
|
itfWizardStep,
|
|
13
13
|
itfWizardSidebar,
|
|
14
14
|
},
|
|
15
|
+
provide() {
|
|
16
|
+
return { stepsManager: this }; // do not use Provide from vue-property-decorator
|
|
17
|
+
}
|
|
15
18
|
})
|
|
16
19
|
class itfWizard extends Vue {
|
|
17
|
-
@Provide() stepsManager = this;
|
|
18
|
-
|
|
19
20
|
@Model('input') value;
|
|
20
21
|
|
|
21
22
|
@Prop(Boolean) keepAlive;
|