@itfin/components 1.0.57 → 1.0.61

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.57",
3
+ "version": "1.0.61",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -58,7 +58,7 @@
58
58
  <script>
59
59
  import { Vue, Component, Prop } from 'vue-property-decorator';
60
60
  import { DateTime } from 'luxon';
61
- import AirDatepicker from 'air-datepicker';
61
+ import AirDatepicker from 'air-datepicker/air-datepicker.js';
62
62
  import localeEn from 'air-datepicker/locale/en';
63
63
  import ITFSettings from '../../ITFSettings';
64
64
 
@@ -105,6 +105,7 @@ class itfDatePickerInline extends Vue {
105
105
  firstDay: 1,
106
106
  locale: localeEn,
107
107
  range: true,
108
+ toggleSelected: false,
108
109
  selectedDates: this.valueAsLuxon
109
110
  ? [this.valueAsLuxon[0].toJSDate(), this.valueAsLuxon[1].toJSDate()]
110
111
  : [],
@@ -10,7 +10,7 @@
10
10
  <h5 class="modal-title" :id="modalId">{{title}}</h5>
11
11
  <itf-button icon data-bs-dismiss="modal" aria-label="Close" class="btn-close"></itf-button>
12
12
  </div>
13
- <div class="modal-body">
13
+ <div class="modal-body" v-if="value">
14
14
  <slot></slot>
15
15
  </div>
16
16
  <div class="modal-footer" v-if="$slots.footer">
@@ -121,7 +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 = document.getElementById('app') || document.body; // @todo getElementById remove when cleanup vuetify
124
+ const elContext = this.$el.closest('.itf-append-context') || document.body; // @todo getElementById remove when cleanup vuetify
125
125
  elContext.appendChild(this.$el);
126
126
  }
127
127
  const { default: Modal } = await import('bootstrap/js/src/modal.js');
@@ -31,7 +31,7 @@ class itfTooltip extends Vue {
31
31
  allowHTML: true,
32
32
  theme: 'itfin',
33
33
  interactive: true,
34
- delay: 500,
34
+ delay: this.openDelay,
35
35
  placement: this.placement,
36
36
  appendTo: document.body,
37
37
  });