@avakhula/ui 0.1.4 → 0.1.6
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/dist/index.js +610 -600
- package/dist/index.umd.cjs +29 -29
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/App.vue +24 -11
- package/src/components/Alert/alert.scss +2 -0
- package/src/components/Sorting/Sorting.stories.js +4 -0
- package/src/components/Sorting/Sorting.vue +19 -2
- package/src/components/TreeSelect/Select.vue +0 -1
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,23 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
3
|
-
|
|
2
|
+
<div class="page">
|
|
3
|
+
|
|
4
|
+
<sorting view="table-sorting" toggle-tip-title="hello" :table-name="'table'" :title="'test'">
|
|
5
|
+
|
|
6
|
+
<!-- <template #toggleTipBody>
|
|
7
|
+
<p>
|
|
8
|
+
test
|
|
9
|
+
</p>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<template #toggleTipButtons>
|
|
13
|
+
<p>
|
|
14
|
+
test
|
|
15
|
+
</p>
|
|
16
|
+
</template> -->
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
</sorting>
|
|
4
20
|
</div>
|
|
5
21
|
</template>
|
|
6
22
|
|
|
7
23
|
<script>
|
|
8
|
-
import
|
|
24
|
+
import Sorting from './components/Sorting/Sorting.vue';
|
|
9
25
|
export default {
|
|
10
26
|
components: {
|
|
11
|
-
|
|
12
|
-
}
|
|
27
|
+
Sorting
|
|
28
|
+
}
|
|
13
29
|
}
|
|
14
30
|
</script>
|
|
15
31
|
|
|
16
|
-
|
|
17
32
|
<style lang="scss">
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
display: flex;
|
|
21
|
-
align-items: end;
|
|
33
|
+
.page {
|
|
34
|
+
padding: 200px;
|
|
22
35
|
}
|
|
23
|
-
</style>
|
|
36
|
+
</style>
|
|
@@ -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 {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div>
|
|
12
12
|
<button
|
|
13
13
|
class="sorting-label"
|
|
14
|
-
v-tooltip:[
|
|
14
|
+
v-tooltip:[sortingTooltipPosition]="sortingTooltipContent"
|
|
15
15
|
:class="{
|
|
16
16
|
'sorting-label-active': isOpenToggleTip && hasToggleTip,
|
|
17
17
|
'has-action': tooltipText?.length || hasToggleTip
|
|
@@ -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
|
},
|
|
@@ -158,6 +161,20 @@ export default {
|
|
|
158
161
|
}
|
|
159
162
|
return null;
|
|
160
163
|
},
|
|
164
|
+
sortingTooltipPosition() {
|
|
165
|
+
if (this.hasToggleTip) {
|
|
166
|
+
return 'bottomCenter'
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return this.tooltipPosition;
|
|
170
|
+
},
|
|
171
|
+
sortingTooltipContent() {
|
|
172
|
+
if (this.hasToggleTip) {
|
|
173
|
+
return lang('click_to_view_details', this.langComponents?.COMPONENT_SYSTEM);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return this.tooltipContent;
|
|
177
|
+
},
|
|
161
178
|
tooltipIconText() {
|
|
162
179
|
if (this.currentTypeSort === this.sortingTypes.TYPE_ASC) {
|
|
163
180
|
return lang("sort_descending", this.langComponents?.COMPONENT_SELECT);
|