classcard-ui 0.2.769 → 0.2.772

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": "classcard-ui",
3
- "version": "0.2.769",
3
+ "version": "0.2.772",
4
4
  "main": "dist/classcard-ui.umd.min.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -19,7 +19,6 @@
19
19
  v-model="selectSearch"
20
20
  @click="toggleDropdown = !toggleDropdown"
21
21
  @focus="type == 'tertiary' ? (showFocus = true) : ''"
22
- @blur="close()"
23
22
  @input="search()"
24
23
  aria-haspopup="listbox"
25
24
  aria-expanded="true"
@@ -283,16 +282,19 @@ export default {
283
282
  this.selectedValue = option[this.renderOptionName];
284
283
  this.$emit("onChangeValue", option);
285
284
  this.toggleDropdown = false;
285
+ this.type === "tertiary" ? (this.showFocus = false) : "";
286
+ this.renderOptions = this.options;
286
287
  },
287
288
  actionEvent(event) {
288
289
  this.$emit("listAction", event);
289
290
  },
290
- close() {
291
- this.selectSearch = null;
292
- this.toggleDropdown = false;
293
- this.type === "tertiary" ? (this.showFocus = false) : "";
294
- this.renderOptions = this.options;
295
- },
291
+ // close() {
292
+ // console.log("Close");
293
+ // this.selectSearch = null;
294
+ // this.toggleDropdown = false;
295
+ // this.type === "tertiary" ? (this.showFocus = false) : "";
296
+ // this.renderOptions = this.options;
297
+ // },
296
298
  search() {
297
299
  this.selectedValue = null;
298
300
  if (!this.selectSearch || this.selectSearch == "") {
@@ -7,7 +7,7 @@
7
7
  label == '' ? 'items-center' : 'items-start',
8
8
  disabled ? 'cursor-default' : 'cursor-pointer',
9
9
  ]"
10
- class="flex justify-between"
10
+ class="flex"
11
11
  >
12
12
  <span
13
13
  class="flex flex-grow flex-col"
@@ -46,7 +46,7 @@
46
46
  ></span>
47
47
  </button>
48
48
  <span
49
- class="ml-2 flex flex-col"
49
+ class="flex flex-col"
50
50
  id="toggleLabel"
51
51
  v-if="direction == 'right'"
52
52
  @click="switchValue"
@@ -102,7 +102,7 @@
102
102
  ></span>
103
103
  </button>
104
104
  <span
105
- class="flex flex-col disabled:opacity-50"
105
+ class="ml-2 flex flex-col disabled:opacity-50"
106
106
  id="toggleLabel"
107
107
  v-if="direction == 'right'"
108
108
  >
@@ -35,7 +35,19 @@ Default.args = {
35
35
  value: null,
36
36
  renderOptionName: "code",
37
37
  options: [
38
- { code: "one", value: "onee" },
38
+ { code: "one", value: "onee2" },
39
+ { code: "one1", value: "onee4" },
40
+ { code: "one2", value: "onee1" },
41
+ { code: "one3", value: "onee5" },
42
+ { code: "one4", value: "onee12" },
43
+ { code: "one5", value: "onee3425" },
44
+ { code: "one6", value: "onee67" },
45
+ { code: "one7", value: "onee78" },
46
+ { code: "one8", value: "onee89" },
47
+ { code: "one9", value: "onee90" },
48
+ { code: "one0", value: "onee54" },
49
+ { code: "one34", value: "onee43" },
50
+ { code: "one23", value: "onee32" },
39
51
  { code: "two", value: "twoo", isDisabled: true },
40
52
  ],
41
53
  addAction: {