classcard-ui 0.2.1526 → 0.2.1527
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 +83 -69
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +83 -69
- package/dist/classcard-ui.umd.js.map +1 -1
- package/dist/classcard-ui.umd.min.js +9 -9
- package/dist/classcard-ui.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/CMultiselect/CMultiselect.vue +16 -3
- package/src/icons.js +1 -0
package/package.json
CHANGED
|
@@ -80,6 +80,7 @@
|
|
|
80
80
|
'vs__selected-inner inline-flex min-w-0 max-w-[120px] items-center gap-1.5 rounded bg-gray-100 px-2 py-1 text-gray-800',
|
|
81
81
|
isDisabled ? 'text-gray-500' : '',
|
|
82
82
|
]"
|
|
83
|
+
:title="row.label"
|
|
83
84
|
>
|
|
84
85
|
<c-icon
|
|
85
86
|
v-if="option.icon"
|
|
@@ -126,13 +127,16 @@
|
|
|
126
127
|
>
|
|
127
128
|
</button>
|
|
128
129
|
</p>
|
|
129
|
-
<
|
|
130
|
+
<button
|
|
130
131
|
v-if="row.showOverflowBadge"
|
|
131
|
-
|
|
132
|
+
type="button"
|
|
133
|
+
class="vs__selected-overflow inline-flex w-max rounded bg-gray-100 px-2 py-1 text-gray-800 focus:outline-none"
|
|
134
|
+
:aria-label="`Show ${selectedOverflowCount} more selected`"
|
|
132
135
|
aria-live="polite"
|
|
136
|
+
@click.stop="openDropdown"
|
|
133
137
|
>
|
|
134
138
|
+{{ selectedOverflowCount }}
|
|
135
|
-
</
|
|
139
|
+
</button>
|
|
136
140
|
</div>
|
|
137
141
|
</template>
|
|
138
142
|
</template>
|
|
@@ -1145,6 +1149,15 @@ export default {
|
|
|
1145
1149
|
};
|
|
1146
1150
|
});
|
|
1147
1151
|
},
|
|
1152
|
+
openDropdown() {
|
|
1153
|
+
const vSelectRef = this.$refs.vselect;
|
|
1154
|
+
if (!vSelectRef || this.isDisabled) return;
|
|
1155
|
+
vSelectRef.open = true;
|
|
1156
|
+
this.$nextTick(() => {
|
|
1157
|
+
const input = vSelectRef.$el.querySelector(".vs__search");
|
|
1158
|
+
if (input) input.focus();
|
|
1159
|
+
});
|
|
1160
|
+
},
|
|
1148
1161
|
},
|
|
1149
1162
|
watch: {
|
|
1150
1163
|
optionsSelected: {
|
package/src/icons.js
CHANGED
|
@@ -884,4 +884,5 @@ export default {
|
|
|
884
884
|
"exclaimation-circle-outline-v2":"M12 9v3.75m9-.75a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 3.75h.008v.008H12v-.008Z",
|
|
885
885
|
"plus-solid-v2":"M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z",
|
|
886
886
|
"minus-solid-v2":"M4.25 12a.75.75 0 0 1 .75-.75h14a.75.75 0 0 1 0 1.5H5a.75.75 0 0 1-.75-.75Z",
|
|
887
|
+
"squares-two-solid-v2":"M3 6a3 3 0 0 1 3-3h2.25a3 3 0 0 1 3 3v2.25a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3V6Zm9.75 0a3 3 0 0 1 3-3H18a3 3 0 0 1 3 3v2.25a3 3 0 0 1-3 3h-2.25a3 3 0 0 1-3-3V6ZM3 15.75a3 3 0 0 1 3-3h2.25a3 3 0 0 1 3 3V18a3 3 0 0 1-3 3H6a3 3 0 0 1-3-3v-2.25Zm9.75 0a3 3 0 0 1 3-3H18a3 3 0 0 1 3 3V18a3 3 0 0 1-3 3h-2.25a3 3 0 0 1-3-3v-2.25Z"
|
|
887
888
|
};
|