@itfin/components 1.0.61 → 1.0.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.0.61",
3
+ "version": "1.0.62",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -1,5 +1,6 @@
1
1
  import Vue from 'vue';
2
2
  import ToastContainer from './ToastContainer.vue';
3
+
3
4
  const MessageConstructor = Vue.extend(ToastContainer);
4
5
 
5
6
  const instances = [];
@@ -19,8 +20,8 @@ const Message = function (options) {
19
20
  'itf-toast-container toast-container',
20
21
  'is-' + position,
21
22
  hasMask ? 'has-mask' : ''
22
- ].filter(function (e) { return !!e; }).join(' ');
23
- document.getElementById('itf-app').appendChild(containerEl);
23
+ ].filter(Boolean).join(' ');
24
+ document.body.appendChild(containerEl);
24
25
  }
25
26
 
26
27
  if (options.zIndex) {
@@ -121,8 +121,7 @@ class itfModal extends Vue {
121
121
  }
122
122
  if (this.appendToBody && this.$el instanceof Node && this.$el.parentNode) {
123
123
  this.$el.parentNode.removeChild(this.$el);
124
- const elContext = this.$el.closest('.itf-append-context') || document.body; // @todo getElementById remove when cleanup vuetify
125
- elContext.appendChild(this.$el);
124
+ document.body.appendChild(this.$el); // should append only to body
126
125
  }
127
126
  const { default: Modal } = await import('bootstrap/js/src/modal.js');
128
127
  this.modalEl = new Modal(this.$el);
@@ -13,7 +13,7 @@
13
13
  :placeholder="placeholder"
14
14
  :class="{ 'is-invalid': isInvalid(), 'is-valid': isSuccess() }"
15
15
  class="itf-text-field__input form-control"
16
- type="text"
16
+ :type="type"
17
17
  :value="value"
18
18
  :disabled="disabled"
19
19
  :readonly="readonly"
@@ -71,6 +71,7 @@ class itfTextField extends Vue {
71
71
  @Prop(Boolean) clearable;
72
72
  @Prop(Boolean) disabled;
73
73
  @Prop(Boolean) readonly;
74
+ @Prop({ type: String, default: 'text' }) type;
74
75
  @Prop({ type: [Number, String], default: 0 }) delayInput;
75
76
 
76
77
  onInput = null;