@avakhula/ui 0.0.218 → 0.0.220
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 +12 -2
- package/dist/index.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/IconButton/IconButton.scss +1 -0
- package/src/components/Sorting/Sorting.stories.js +1 -10
- package/src/components/Sorting/Sorting.vue +15 -1
- package/src/components/SplitButton/splitButton.scss +0 -1
package/package.json
CHANGED
|
@@ -29,16 +29,7 @@ const Template = (args) => ({
|
|
|
29
29
|
template: `
|
|
30
30
|
<ib-sorting
|
|
31
31
|
v-bind="args"
|
|
32
|
-
|
|
33
|
-
>
|
|
34
|
-
<template #toggleTipBody>
|
|
35
|
-
dfsdfsdf
|
|
36
|
-
</template>
|
|
37
|
-
|
|
38
|
-
<template #toggleTipButtons>
|
|
39
|
-
fsdfsd
|
|
40
|
-
</template>
|
|
41
|
-
</ib-sorting>
|
|
32
|
+
/>
|
|
42
33
|
`,
|
|
43
34
|
});
|
|
44
35
|
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
>
|
|
11
11
|
<div>
|
|
12
12
|
<button
|
|
13
|
-
v-tooltip:[tooltipPosition]="
|
|
13
|
+
v-tooltip:[tooltipPosition]="tooltipContent"
|
|
14
14
|
class="sorting-label"
|
|
15
15
|
:class="{'sorting-label-active': isOpenToggleTip}"
|
|
16
16
|
type="button"
|
|
@@ -70,6 +70,10 @@ import { TooltipDirective as Tooltip } from "../../directives/tooltip/tooltip";
|
|
|
70
70
|
export default {
|
|
71
71
|
name: "IbSorting",
|
|
72
72
|
props: {
|
|
73
|
+
tooltipTitle: {
|
|
74
|
+
type: String,
|
|
75
|
+
default: ''
|
|
76
|
+
},
|
|
73
77
|
tooltipText: {
|
|
74
78
|
type: String,
|
|
75
79
|
},
|
|
@@ -156,6 +160,16 @@ export default {
|
|
|
156
160
|
}
|
|
157
161
|
return "";
|
|
158
162
|
},
|
|
163
|
+
tooltipContent() {
|
|
164
|
+
if (this.tooltipTitle.length) {
|
|
165
|
+
return {
|
|
166
|
+
title: this.tooltipTitle,
|
|
167
|
+
text: this.tooltipText
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
return this.tooltipText;
|
|
172
|
+
},
|
|
159
173
|
hasToggleTip() {
|
|
160
174
|
return (
|
|
161
175
|
this.toggleTipTitle &&
|