@avakhula/ui 0.0.217 → 0.0.219

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.217",
3
+ "version": "0.0.219",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -29,16 +29,7 @@ const Template = (args) => ({
29
29
  template: `
30
30
  <ib-sorting
31
31
  v-bind="args"
32
- toggle-tip-title="test"
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]="tooltipText"
13
+ v-tooltip:[tooltipPosition]="tooltipContent"
14
14
  class="sorting-label"
15
15
  :class="{'sorting-label-active': isOpenToggleTip}"
16
16
  type="button"
@@ -70,6 +70,9 @@ 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
+ },
73
76
  tooltipText: {
74
77
  type: String,
75
78
  },
@@ -156,6 +159,16 @@ export default {
156
159
  }
157
160
  return "";
158
161
  },
162
+ tooltipContent() {
163
+ if (this.tooltipTitle) {
164
+ return {
165
+ title: this.tooltipTitle,
166
+ text: this.tooltipText
167
+ }
168
+ }
169
+
170
+ return this.tooltipText;
171
+ },
159
172
  hasToggleTip() {
160
173
  return (
161
174
  this.toggleTipTitle &&
@@ -26,7 +26,7 @@ const Template = (args) => ({
26
26
  },
27
27
  template: `
28
28
  <ib-split-button v-bind="args">
29
- <ib-split-button-item>Button 1</ib-split-button-item>
29
+ <ib-split-button-item href="#">Button 1</ib-split-button-item>
30
30
  <ib-split-button-item>Button 2</ib-split-button-item>
31
31
  <ib-split-button-item>Button 3</ib-split-button-item>
32
32
  <ib-split-button-item href="#">Link 4</ib-split-button-item>
@@ -11,10 +11,11 @@
11
11
 
12
12
  <a
13
13
  v-else
14
- :disabled="disabled"
15
14
  class="split-button-main"
16
15
  :class="{ disabled }"
16
+ :disabled="disabled"
17
17
  v-bind="mainButtonAttrs"
18
+ @click="onClickLink"
18
19
  >
19
20
  {{ content }}
20
21
  </a>
@@ -110,6 +111,12 @@ export default {
110
111
  this.childList[this.activeElemIdx].classList.add("active");
111
112
  this.content = this.childList[this.activeElemIdx].textContent;
112
113
  },
114
+ onClickLink(e) {
115
+ if (this.disabled) {
116
+ e.preventDefault();
117
+ return;
118
+ }
119
+ }
113
120
  },
114
121
  computed: {
115
122
  classes() {
@@ -111,6 +111,7 @@ $danger-split-button-active-bg: $red-900;
111
111
  &:disabled {
112
112
  background-color: $split-button-disabled-bg;
113
113
  color: $split-button-disabled-color;
114
+ cursor: not-allowed;
114
115
  }
115
116
  }
116
117
  }
@@ -134,6 +135,7 @@ $danger-split-button-active-bg: $red-900;
134
135
  &:disabled {
135
136
  background-color: $split-button-disabled-bg;
136
137
  color: $split-button-disabled-color;
138
+ cursor: not-allowed;
137
139
  }
138
140
  }
139
141
 
@@ -155,6 +157,7 @@ $danger-split-button-active-bg: $red-900;
155
157
  &:disabled{
156
158
  background-color: $split-button-disabled-bg;
157
159
  color: $split-button-disabled-color;
160
+ cursor: not-allowed;
158
161
  }
159
162
  }
160
163
  }