bootstrap-vue-wrapper 1.10.0 → 1.11.1

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": "bootstrap-vue-wrapper",
3
- "version": "1.10.0",
3
+ "version": "1.11.1",
4
4
  "description": "Bootstrap 5 components in Vue3 warapper.",
5
5
  "author": "Gabor Zemko <gaborzemko@gmail.com>",
6
6
  "homepage": "https://github.com/zemkogabor/bootstrap-vue-wrapper",
@@ -2,7 +2,7 @@
2
2
  <nav>
3
3
  <ul class="pagination">
4
4
  <li
5
- class="page-item"
5
+ class="page-item page-item-first"
6
6
  :class="{ disabled: isPageActive(1) }"
7
7
  >
8
8
  <div
@@ -12,7 +12,7 @@
12
12
  />
13
13
  </li>
14
14
  <li
15
- class="page-item"
15
+ class="page-item page-item-previous"
16
16
  :class="{ disabled: isPageActive(1) }"
17
17
  >
18
18
  <div
@@ -24,7 +24,7 @@
24
24
  <li
25
25
  v-for="(page, index) in getVisiblePages()"
26
26
  :key="index"
27
- class="page-item"
27
+ class="page-item page-item-number"
28
28
  :class="{
29
29
  active: isPageActive(page),
30
30
  }"
@@ -36,7 +36,7 @@
36
36
  />
37
37
  </li>
38
38
  <li
39
- class="page-item"
39
+ class="page-item page-item-next"
40
40
  :class="{ disabled: isPageActive(getPageCount()) }"
41
41
  >
42
42
  <div
@@ -46,7 +46,7 @@
46
46
  />
47
47
  </li>
48
48
  <li
49
- class="page-item"
49
+ class="page-item page-item-last"
50
50
  :class="{ disabled: isPageActive(getPageCount()) }"
51
51
  >
52
52
  <div
@@ -187,7 +187,29 @@ export default {
187
187
  </script>
188
188
 
189
189
  <style lang="scss" scoped>
190
+ @import '~bootstrap/scss/functions';
191
+ @import '~bootstrap/scss/variables';
192
+ @import '~bootstrap/scss/mixins/breakpoints';
193
+
190
194
  .page-link {
191
195
  cursor: pointer;
192
196
  }
197
+ .page-item-first,
198
+ .page-item-last,
199
+ .page-item-number:not(.active) {
200
+ display: none;
201
+ }
202
+
203
+ @include media-breakpoint-up(sm) {
204
+ .page-item-number:not(.active) {
205
+ display: block;
206
+ }
207
+ }
208
+
209
+ @include media-breakpoint-up(lg) {
210
+ .page-item-first,
211
+ .page-item-last {
212
+ display: block;
213
+ }
214
+ }
193
215
  </style>
@@ -6,6 +6,7 @@
6
6
  <th
7
7
  :class="{
8
8
  'cursor-pointer': isSortableField(field),
9
+ 'text-decoration-underline': isActiveOrderBy(field.key),
9
10
  thClass,
10
11
  }"
11
12
  @click="onHeadClick(field)"