@avakhula/ui 0.0.347 → 0.0.349

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.347",
3
+ "version": "0.0.349",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
package/src/App.vue CHANGED
@@ -5,6 +5,8 @@
5
5
  </template>
6
6
  </ib-select>
7
7
 
8
+ <ib-toggle :disabled="true"></ib-toggle>
9
+
8
10
 
9
11
  </template>
10
12
 
@@ -13,6 +15,7 @@ import IbSelect from "./components/TreeSelect/Select.vue";
13
15
  import label from "@/components/Form/Label/Label.vue";
14
16
  import {IbCheckboxGroup} from "./index.js";
15
17
  import {IbRadio} from "./index.js";
18
+ import IbToggle from "@/components/Form/Toggle/Toggle.vue";
16
19
  const testData1 = [
17
20
  {
18
21
  id: "1",
@@ -140,6 +143,6 @@ export default {
140
143
  checked: '1'
141
144
  }
142
145
  },
143
- components: {IbSelect, IbCheckboxGroup, IbRadio}
146
+ components: {IbToggle, IbSelect, IbCheckboxGroup, IbRadio}
144
147
  }
145
148
  </script>
@@ -240,7 +240,7 @@ export default {
240
240
  type: String,
241
241
  },
242
242
  },
243
- emits: ['onOverLimitHandler'],
243
+ emits: ['onOverLimitHandler', 'update:modelValue', 'change', 'blur'],
244
244
  mounted() {
245
245
  // Reset default styles for toolbar
246
246
  this.$refs.toolbar.classList.remove("ql-toolbar");
@@ -6,12 +6,14 @@ const tooltip = new Tooltip();
6
6
  const createTooltip = (el, binding) => {
7
7
  if (multiLineOverflows(el)) {
8
8
 
9
+ const position = Object.keys(binding.modifiers)[0] || binding.arg;
10
+
9
11
  const content = {
10
12
  title: binding.value.title || '',
11
13
  text: typeof(binding.value) === 'object' ? binding.value.text : binding.value,
12
14
  }
13
15
 
14
- tooltip.createTooltip(el, content);
16
+ tooltip.createTooltip(el, content, position);
15
17
  }
16
18
  };
17
19