@itfin/components 1.4.10 → 1.4.11

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.4.10",
3
+ "version": "1.4.11",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -80,7 +80,7 @@
80
80
  </style>
81
81
  <script>
82
82
  import { DateTime } from 'luxon';
83
- import { Vue, Model, Prop, Component } from 'vue-property-decorator';
83
+ import { Vue, Watch, Model, Prop, Component } from 'vue-property-decorator';
84
84
  import tooltip from '../../directives/tooltip';
85
85
  import itfIcon from '../icon/Icon';
86
86
  import itfButton from '../button/Button';
@@ -137,6 +137,12 @@ class FilterPanel extends Vue {
137
137
  return `filter-panel-${this.stateName}-filters`;
138
138
  }
139
139
 
140
+ @Watch('staticFilters', { deep: true })
141
+ onStaticFiltersUpdate() {
142
+ this.filters = this.staticFilters ?? [];
143
+ this.loadFiltersValue();
144
+ }
145
+
140
146
  async mounted() {
141
147
  if (this.stateName) {
142
148
  const item = localStorage.getItem(this.localstorageKey);
@@ -34,7 +34,7 @@
34
34
  :class="confirmClass"
35
35
  @click="onConfirm"
36
36
  >
37
- <span v-html="$t('components.popover.yesDelete')"></span>
37
+ <span v-html="deleteCaption"></span>
38
38
  </button>
39
39
  </div>
40
40
  </div>
@@ -59,8 +59,8 @@ class itfDeleteConfirmModal extends Vue {
59
59
  @Prop(Boolean) loading;
60
60
  @Prop({ type: Boolean, default: false }) disabled;
61
61
  @Prop({ type: String, default: 'text-danger' }) confirmClass;
62
- @Prop({ type: String, default () { return this.$t('noKeepIt'); } }) cancelCaption;
63
- @Prop({ type: String, default () { return this.$t('yesDelete'); } }) deleteCaption;
62
+ @Prop({ type: String, default () { return this.$t('components.noKeepIt'); } }) cancelCaption;
63
+ @Prop({ type: String, default () { return this.$t('components.yesDelete'); } }) deleteCaption;
64
64
 
65
65
  isModalShown = false;
66
66
 
@@ -63,39 +63,41 @@
63
63
  <slot v-else-if="currentTab === 'board'" name="kanban-view"></slot>
64
64
  <slot v-else-if="currentTab === 'calendar'" name="calendar-view"></slot>
65
65
  <slot v-else name="table-view">
66
- <div class="flex-grow-1 px-3 d-flex flex-column">
67
- <div class="position-relative flex-grow-1">
68
- <itf-table
69
- ref="table"
70
- style="--shadow-area-width: 0px;"
71
- absolute
72
- striped
73
- clickable
74
- column-sorting
75
- column-resizing
76
- :indicator-type="indicatorType"
77
- class="permanent-checkboxes"
78
- :state-name="stateName"
79
- id-property="id"
80
- :sort-as-string="sortAsString"
81
- :rows="items"
82
- :schema="tableSchema"
83
- :sorting="sorting"
84
- :active="activeIds"
85
- :show-actions="showActions"
86
- v-model="selectedIds"
87
- @row-click="$emit('open', $event)"
88
- @update:sorting="updateSorting($event)"
89
- >
90
- <template v-for="(_, name) in $slots" #[name]="slotData">
91
- <slot :name="name" v-bind="slotData || {}"/>
92
- </template>
93
- <template v-for="(_, name) in $scopedSlots" #[name]="slotData">
94
- <slot :name="name" v-bind="slotData || {}"/>
95
- </template>
96
- </itf-table>
66
+ <div class="flex-grow-1 px-3 d-flex flex-column">
67
+ <div class="position-relative flex-grow-1">
68
+ <itf-table
69
+ ref="table"
70
+ style="--shadow-area-width: 0px;"
71
+ absolute
72
+ striped
73
+ clickable
74
+ column-sorting
75
+ column-resizing
76
+ :indicator-type="indicatorType"
77
+ class="permanent-checkboxes"
78
+ :state-name="stateName"
79
+ id-property="id"
80
+ :sort-as-string="sortAsString"
81
+ :rows="items"
82
+ :schema="tableSchema"
83
+ :sorting="sorting"
84
+ :active="activeIds"
85
+ :no-select-all="noSelectAll"
86
+ :show-actions="showActions"
87
+ :indicator-width="indicatorWidth"
88
+ v-model="selectedIds"
89
+ @row-click="$emit('open', $event)"
90
+ @update:sorting="updateSorting($event)"
91
+ >
92
+ <template v-for="(_, name) in $slots" #[name]="slotData">
93
+ <slot :name="name" v-bind="slotData || {}"/>
94
+ </template>
95
+ <template v-for="(_, name) in $scopedSlots" #[name]="slotData">
96
+ <slot :name="name" v-bind="slotData || {}"/>
97
+ </template>
98
+ </itf-table>
99
+ </div>
97
100
  </div>
98
- </div>
99
101
  </slot>
100
102
 
101
103
  <itf-pagination
@@ -163,9 +165,11 @@ class itfView extends Vue {
163
165
  @Prop(Boolean) listViewEnabled;
164
166
  @Prop(Boolean) kanbanViewEnabled;
165
167
  @Prop(Boolean) calendarViewEnabled;
168
+ @Prop(Boolean) noSelectAll;
166
169
  @Prop({ type: Boolean, default: true }) tableViewEnabled;
167
170
  @Prop(Boolean) sortAsString;
168
171
  @Prop(Boolean) oldFormat;
172
+ @Prop({ default: 45 }) indicatorWidth;
169
173
  @Prop({type: Function, default: null }) onSplitSlectedIds // якщо потрібно розділяти вибрані рядки в таблиці на дві групи
170
174
 
171
175
  page = 1;