@itfin/components 2.0.98 → 2.0.99

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": "2.0.98",
3
+ "version": "2.0.99",
4
4
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -24,9 +24,9 @@
24
24
  </a>
25
25
  </li>
26
26
  </ul>
27
- <!--div>
28
- 1-25 of {{length}} items
29
- </div-->
27
+ <div v-if="totalCount !== null" class="text-muted small">
28
+ {{ $t('totalItems') }}: {{ totalCount }}
29
+ </div>
30
30
  </div>
31
31
 
32
32
  <div><slot name="center"></slot></div>
@@ -91,6 +91,7 @@ class itfPagination extends Vue {
91
91
  @Prop({ type: [String, Number], default: MAX_PAGES_BLOCKS }) maxBlocks;
92
92
  @Prop({type: Array, default: () => PER_PAGE_OPTIONS}) perPageOptions;
93
93
  @Prop(Boolean) showSize;
94
+ @Prop({ type: Number, default: null }) totalCount;
94
95
 
95
96
  isValid = true;
96
97
 
@@ -64,6 +64,8 @@
64
64
  :sorting="sorting"
65
65
  :active="activeIds"
66
66
  :show-actions="showActions"
67
+ :indicator-width="indicatorWidth"
68
+ :no-select-all="noSelectAll"
67
69
  v-model="selectedIds"
68
70
  @row-click="$emit('open', $event)"
69
71
  @update:sorting="updateSorting($event)"
@@ -85,6 +87,7 @@
85
87
  :items="preparedItems"
86
88
  :pages="countPages"
87
89
  :value="page"
90
+ :totalCount="showTotalCount ? total : null"
88
91
  @input="updatePage($event)"
89
92
  @per-page="updateSizePerPage($event)"
90
93
  >
@@ -141,6 +144,9 @@ class itfView extends Vue {
141
144
  @Prop() hardFilter; // встановлює жорсткий фільтр, наприклад, треба завжди показувати лише по контрагенту
142
145
  @Prop(Boolean) showActions;
143
146
  @Prop({ type: Array, default: () => [] }) disabledIds;
147
+ @Prop({ default: 45 }) indicatorWidth;
148
+ @Prop(Boolean) noSelectAll;
149
+ @Prop({ type: Boolean, default: false }) showTotalCount;
144
150
 
145
151
  page = 1;
146
152
  total = 0;
package/src/locales/en.js CHANGED
@@ -155,4 +155,5 @@ module.exports = {
155
155
  },
156
156
  passwordValidation: 'Password should contain at least 8 characters, including uppercase letters, lowercase letters, numbers, and special characters (e.g. @, $, !, %, *, ?, &)',
157
157
  iveGotIt: 'I\'ve got it',
158
+ totalItems: 'Total items',
158
159
  };
package/src/locales/pl.js CHANGED
@@ -155,4 +155,5 @@ module.exports = {
155
155
  },
156
156
  passwordValidation: 'Hasło powinno zawierać co najmniej 8 znaków, w tym wielkie i małe litery, cyfry oraz znaki specjalne (np. @, $, !, %, *, ?, &)',
157
157
  iveGotIt: 'Rozumiem',
158
+ totalItems: 'Całkowita liczba elementów',
158
159
  };
package/src/locales/uk.js CHANGED
@@ -156,4 +156,5 @@ module.exports = {
156
156
  },
157
157
  passwordValidation: 'Пароль має містити принаймні 8 символів, включаючи великі літери, малі літери, цифри та спеціальні символи (@, $, !, %, *, ?, &)',
158
158
  iveGotIt: 'Зрозуміло',
159
+ totalItems: 'Всього елементів',
159
160
  };