@avakhula/ui 0.0.331 → 0.0.333

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.331",
3
+ "version": "0.0.333",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.umd.cjs",
6
6
  "source": "src/index.js",
@@ -91,9 +91,11 @@ $description-color: $gray-700;
91
91
  }
92
92
 
93
93
  .head-content {
94
- @include Ib-H4-regular;
95
- color: $description-color;
96
94
  width: 100%;
95
+ p {
96
+ @include Ib-H4-regular;
97
+ color: $description-color;
98
+ }
97
99
  }
98
100
  }
99
101
  }
@@ -12,7 +12,7 @@
12
12
  <ib-dropdown
13
13
  :disabled="isLoading"
14
14
  :is-resizable="isResizable"
15
- :vertical="vertical"
15
+ :vertical="verticalVal"
16
16
  ref="dropdown"
17
17
  @close="onClose"
18
18
  @open="onOpen"
@@ -393,10 +393,10 @@ export default {
393
393
  type: Boolean,
394
394
  default: false,
395
395
  },
396
- // vertical: {
397
- // type: String,
398
- // default: "bottom"
399
- // },
396
+ vertical: {
397
+ type: String,
398
+ // default: "bottom"
399
+ },
400
400
  emptyMessage: {
401
401
  type: String,
402
402
  default: "",
@@ -545,7 +545,7 @@ export default {
545
545
  actualBookmarkedOptions: {},
546
546
  selected: [],
547
547
  isOpen: false,
548
- vertical: "bottom",
548
+ verticalVal: this.vertical ?? "bottom",
549
549
  allOptionsIsChecked: true,
550
550
  hasTreeChildren: false,
551
551
  uid: `f${(~~(Math.random() * 1e8)).toString(16)}`,
@@ -942,16 +942,18 @@ export default {
942
942
  this.$emit("close", Object.keys(this.selected)[0]);
943
943
  }
944
944
  this.$emit("blur");
945
- this.vertical = "bottom";
945
+ this.verticalVal = this.vertical ?? "bottom";
946
946
  },
947
947
  onOpen() {
948
948
  const screenHeight = document.documentElement.scrollHeight;
949
949
  this.isOpen = true;
950
950
 
951
+ if (this.vertical === "bottom") return;
952
+
951
953
  this.$nextTick(() => {
952
954
  const newScreenHeight = document.documentElement.scrollHeight
953
955
  if(newScreenHeight > screenHeight) {
954
- this.vertical = "top";
956
+ this.verticalVal = "top";
955
957
  }
956
958
  })
957
959
  }