classcard-ui 0.2.770 → 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/dist/classcard-ui.common.js +63 -61
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +63 -61
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +1 -1
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CSelect/CSelect.vue +9 -7
- package/src/stories/CSelect.stories.js +13 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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 == "") {
|
|
@@ -35,7 +35,19 @@ Default.args = {
|
|
|
35
35
|
value: null,
|
|
36
36
|
renderOptionName: "code",
|
|
37
37
|
options: [
|
|
38
|
-
{ code: "one", value: "
|
|
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: {
|