@avakhula/ui 0.0.267 → 0.0.268
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/.storybook/preview.js +0 -9
- package/dist/index.js +602 -602
- package/dist/index.umd.cjs +34 -34
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Alert/alert.scss +2 -0
- package/src/components/Pagination/Pagination.vue +5 -15
- package/src/components/Sorting/Sorting.stories.js +4 -0
- package/src/components/Sorting/Sorting.vue +4 -1
package/package.json
CHANGED
|
@@ -95,6 +95,7 @@ $alert-success-secondary-color: $green-50;
|
|
|
95
95
|
margin-top: 5px;
|
|
96
96
|
margin-bottom: 5px;
|
|
97
97
|
padding-left: 0;
|
|
98
|
+
word-break: break-word;
|
|
98
99
|
}
|
|
99
100
|
}
|
|
100
101
|
|
|
@@ -107,6 +108,7 @@ $alert-success-secondary-color: $green-50;
|
|
|
107
108
|
@include Ib-P1-regular;
|
|
108
109
|
margin-bottom: 5px;
|
|
109
110
|
padding-left: 0!important;
|
|
111
|
+
word-break: break-word;
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
& + .close-button {
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
></ib-limit-selector>
|
|
8
8
|
|
|
9
9
|
<div class="repot-pagination">
|
|
10
|
-
|
|
11
|
-
<template v-if="displayPaginationInput">
|
|
10
|
+
<template v-if="showPaginationInput">
|
|
12
11
|
<ib-label>{{ labelInput }}</ib-label>
|
|
13
12
|
<div class="pagination-input">
|
|
14
13
|
<ib-input type="number" :debounce="500" @input="onInput"></ib-input>
|
|
@@ -23,10 +22,10 @@
|
|
|
23
22
|
size="m"
|
|
24
23
|
class="toggle-children button-prev"
|
|
25
24
|
:disabled="currentPage === 1"
|
|
26
|
-
v-tooltip="tooltipTextPrev ? tooltipTextNext : lang('prev_page', 'system')"
|
|
27
25
|
@click="onSelect(currentPage - 1)"
|
|
28
26
|
>
|
|
29
27
|
<ib-icon name="chevron-back-outline"></ib-icon>
|
|
28
|
+
<ib-tooltip v-if="tooltipTextPrev" :text="tooltipTextPrev"></ib-tooltip>
|
|
30
29
|
</ib-icon-button>
|
|
31
30
|
|
|
32
31
|
<ul class="pagination-wrapper">
|
|
@@ -53,10 +52,10 @@
|
|
|
53
52
|
size="m"
|
|
54
53
|
class="toggle-children button-next"
|
|
55
54
|
:disabled="currentPage === countPagePagination"
|
|
56
|
-
v-tooltip="tooltipTextNext ? tooltipTextNext : lang('next_page', 'system')"
|
|
57
55
|
@click="onSelect(currentPage + 1)"
|
|
58
56
|
>
|
|
59
57
|
<ib-icon name="chevron-forward-outline"></ib-icon>
|
|
58
|
+
<ib-tooltip v-if="tooltipTextNext" :text="tooltipTextNext"></ib-tooltip>
|
|
60
59
|
</ib-icon-button>
|
|
61
60
|
</div>
|
|
62
61
|
</div>
|
|
@@ -68,8 +67,7 @@ import IbIconButton from "../IconButton/IconButton.vue";
|
|
|
68
67
|
import IbInput from "../Form/Input/Input.vue";
|
|
69
68
|
import IbLabel from "../Form/Label/Label.vue";
|
|
70
69
|
import IbIcon from "../Icon.vue";
|
|
71
|
-
import
|
|
72
|
-
|
|
70
|
+
import IbTooltip from "../Tooltip/Tooltip.vue";
|
|
73
71
|
export default {
|
|
74
72
|
name: "IbPagination",
|
|
75
73
|
props: {
|
|
@@ -223,14 +221,6 @@ export default {
|
|
|
223
221
|
countPagePagination() {
|
|
224
222
|
return Math.ceil(this.countRows / this.limitValue);
|
|
225
223
|
},
|
|
226
|
-
displayPaginationInput() {
|
|
227
|
-
if(!this.showPaginationInput) return false;
|
|
228
|
-
|
|
229
|
-
return Boolean(this.countPagePagination >= 7);
|
|
230
|
-
}
|
|
231
|
-
},
|
|
232
|
-
directives: {
|
|
233
|
-
Tooltip
|
|
234
224
|
},
|
|
235
225
|
components: {
|
|
236
226
|
IbIconButton,
|
|
@@ -238,7 +228,7 @@ export default {
|
|
|
238
228
|
IbInput,
|
|
239
229
|
IbLabel,
|
|
240
230
|
IbLimitSelector,
|
|
241
|
-
|
|
231
|
+
IbTooltip,
|
|
242
232
|
},
|
|
243
233
|
};
|
|
244
234
|
</script>
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
<ib-icon-button
|
|
40
40
|
v-if="!hideSortingButton"
|
|
41
|
-
v-tooltip="tooltipIconText"
|
|
41
|
+
v-tooltip:[tooltipIconPosition]="tooltipIconText"
|
|
42
42
|
kind="white"
|
|
43
43
|
size="s"
|
|
44
44
|
@click="clickHandler"
|
|
@@ -88,6 +88,9 @@ export default {
|
|
|
88
88
|
tooltipPosition: {
|
|
89
89
|
type: String,
|
|
90
90
|
},
|
|
91
|
+
tooltipIconPosition: {
|
|
92
|
+
type: String,
|
|
93
|
+
},
|
|
91
94
|
tooltipIconSorting: {
|
|
92
95
|
type: String,
|
|
93
96
|
},
|