@avakhula/ui 0.0.263 → 0.0.264

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": "@avakhula/ui",
3
- "version": "0.0.263",
3
+ "version": "0.0.264",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -7,7 +7,8 @@
7
7
  ></ib-limit-selector>
8
8
 
9
9
  <div class="repot-pagination">
10
- <template v-if="showPaginationInput">
10
+ {{ displayPaginationInput }}
11
+ <template v-if="displayPaginationInput">
11
12
  <ib-label>{{ labelInput }}</ib-label>
12
13
  <div class="pagination-input">
13
14
  <ib-input type="number" :debounce="500" @input="onInput"></ib-input>
@@ -22,13 +23,15 @@
22
23
  size="m"
23
24
  class="toggle-children button-prev"
24
25
  :disabled="currentPage === 1"
26
+ v-tooltip="tooltipTextPrev"
25
27
  @click="onSelect(currentPage - 1)"
26
28
  >
27
29
  <ib-icon name="chevron-back-outline"></ib-icon>
28
- <ib-tooltip v-if="tooltipTextPrev" :text="tooltipTextPrev"></ib-tooltip>
30
+ <!-- <ib-tooltip v-if="tooltipTextPrev" :text="tooltipTextPrev"></ib-tooltip> -->
29
31
  </ib-icon-button>
30
32
 
31
33
  <ul class="pagination-wrapper">
34
+ <!-- here -->
32
35
  <li
33
36
  v-for="(item, index) of countPagePagination"
34
37
  v-show="showItem(index + 1)"
@@ -52,10 +55,11 @@
52
55
  size="m"
53
56
  class="toggle-children button-next"
54
57
  :disabled="currentPage === countPagePagination"
58
+ v-tooltip="tooltipTextNext"
55
59
  @click="onSelect(currentPage + 1)"
56
60
  >
57
61
  <ib-icon name="chevron-forward-outline"></ib-icon>
58
- <ib-tooltip v-if="tooltipTextNext" :text="tooltipTextNext"></ib-tooltip>
62
+ <!-- <ib-tooltip v-if="tooltipTextNext" :text="tooltipTextNext"></ib-tooltip> -->
59
63
  </ib-icon-button>
60
64
  </div>
61
65
  </div>
@@ -67,15 +71,20 @@ import IbIconButton from "../IconButton/IconButton.vue";
67
71
  import IbInput from "../Form/Input/Input.vue";
68
72
  import IbLabel from "../Form/Label/Label.vue";
69
73
  import IbIcon from "../Icon.vue";
70
- import IbTooltip from "../Tooltip/Tooltip.vue";
74
+ import { TooltipDirective as Tooltip } from "../../directives/tooltip/tooltip";
75
+ // import IbTooltip from "../Tooltip/Tooltip.vue";
76
+
77
+
71
78
  export default {
72
79
  name: "IbPagination",
73
80
  props: {
74
81
  tooltipTextPrev: {
75
82
  type: String,
83
+ default: lang('prev_page', this.langComponents?.COMPONENT_SYSTEM),
76
84
  },
77
85
  tooltipTextNext: {
78
86
  type: String,
87
+ default: lang('next_page', this.langComponents?.COMPONENT_SYSTEM),
79
88
  },
80
89
  labelInput: {
81
90
  type: String,
@@ -221,6 +230,14 @@ export default {
221
230
  countPagePagination() {
222
231
  return Math.ceil(this.countRows / this.limitValue);
223
232
  },
233
+ displayPaginationInput() {
234
+ if(!this.showPaginationInput) return false;
235
+
236
+ return Boolean(this.countPagePagination >= 7);
237
+ }
238
+ },
239
+ directives: {
240
+ Tooltip
224
241
  },
225
242
  components: {
226
243
  IbIconButton,
@@ -228,7 +245,7 @@ export default {
228
245
  IbInput,
229
246
  IbLabel,
230
247
  IbLimitSelector,
231
- IbTooltip,
248
+ // IbTooltip,
232
249
  },
233
250
  };
234
251
  </script>
@@ -167,7 +167,7 @@ export default {
167
167
  },
168
168
  sortingTooltipContent() {
169
169
  if (this.hasToggleTip) {
170
- return lang('click_to_more_details', this.langComponents?.COMPONENT_SYSTEM);
170
+ return lang('click_to_view_details', this.langComponents?.COMPONENT_SYSTEM);
171
171
  }
172
172
 
173
173
  return this.tooltipContent;