classcard-ui 0.2.1067 → 0.2.1069
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 +77 -65
- package/dist/classcard-ui.common.js.map +1 -1
- package/dist/classcard-ui.umd.js +77 -65
- 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 +19 -10
- package/src/icons.js +2 -0
package/package.json
CHANGED
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
:class="[
|
|
194
194
|
option.isDisabled ? 'pointer-events-none opacity-50' : '',
|
|
195
195
|
optionClasses,
|
|
196
|
-
addCheckBox ? 'pr-
|
|
196
|
+
addCheckBox ? 'pr-2 pl-2 ' : 'pr-9 pl-3',
|
|
197
197
|
]"
|
|
198
198
|
>
|
|
199
199
|
<span class="flex w-full items-center justify-between">
|
|
@@ -237,10 +237,14 @@
|
|
|
237
237
|
v-if="addCheckBox"
|
|
238
238
|
class="flex w-1/6 items-center justify-end"
|
|
239
239
|
>
|
|
240
|
-
<
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
240
|
+
<div class="flex h-5 items-center">
|
|
241
|
+
<input
|
|
242
|
+
type="checkbox"
|
|
243
|
+
name="staff"
|
|
244
|
+
class="pointer-events-none h-4 w-4 cursor-pointer rounded border-gray-300 text-indigo-600 focus:ring-indigo-500 disabled:opacity-50"
|
|
245
|
+
:checked="selectAll ? true : isChecked(option)"
|
|
246
|
+
/>
|
|
247
|
+
</div>
|
|
244
248
|
</div>
|
|
245
249
|
</span>
|
|
246
250
|
|
|
@@ -275,11 +279,11 @@
|
|
|
275
279
|
<script>
|
|
276
280
|
import CIcon from "../CIcon/CIcon.vue";
|
|
277
281
|
import CAvatar from "../CAvatar/CAvatar.vue";
|
|
278
|
-
|
|
282
|
+
|
|
279
283
|
import { isNumber } from "lodash";
|
|
280
284
|
export default {
|
|
281
285
|
name: "CSelect",
|
|
282
|
-
components: { CIcon, CAvatar
|
|
286
|
+
components: { CIcon, CAvatar },
|
|
283
287
|
props: {
|
|
284
288
|
// label of selectpicker
|
|
285
289
|
label: {
|
|
@@ -426,7 +430,9 @@ export default {
|
|
|
426
430
|
}
|
|
427
431
|
|
|
428
432
|
this.$emit("onChangeValue", option);
|
|
429
|
-
this.
|
|
433
|
+
if (!this.addCheckBox) {
|
|
434
|
+
this.toggleDropdown = false;
|
|
435
|
+
}
|
|
430
436
|
this.type === "tertiary" ? (this.showFocus = false) : "";
|
|
431
437
|
this.renderOptions = this.options;
|
|
432
438
|
},
|
|
@@ -438,6 +444,9 @@ export default {
|
|
|
438
444
|
},
|
|
439
445
|
handleElementBlur() {
|
|
440
446
|
this.toggleDropdown = false;
|
|
447
|
+
if (this.addCheckBox) {
|
|
448
|
+
this.$emit("onClickOutside", this.selectedValuesArray);
|
|
449
|
+
}
|
|
441
450
|
this.selectSearch = null;
|
|
442
451
|
this.renderOptions = this.options;
|
|
443
452
|
},
|
|
@@ -488,8 +497,8 @@ export default {
|
|
|
488
497
|
return this.selectedValuesArray.findIndex(
|
|
489
498
|
(item) => item.id == option.id
|
|
490
499
|
) == -1
|
|
491
|
-
?
|
|
492
|
-
:
|
|
500
|
+
? false
|
|
501
|
+
: true;
|
|
493
502
|
},
|
|
494
503
|
},
|
|
495
504
|
watch: {
|
package/src/icons.js
CHANGED
|
@@ -106,6 +106,8 @@ export default {
|
|
|
106
106
|
"M3.293 9.707a1 1 0 010-1.414l6-6a1 1 0 011.414 0l6 6a1 1 0 01-1.414 1.414L11 5.414V17a1 1 0 11-2 0V5.414L4.707 9.707a1 1 0 01-1.414 0z",
|
|
107
107
|
"chat-center-text":
|
|
108
108
|
"M4.848 2.771A49.144 49.144 0 0 1 12 2.25c2.43 0 4.817.178 7.152.52 1.978.292 3.348 2.024 3.348 3.97v6.02c0 1.946-1.37 3.678-3.348 3.97a48.901 48.901 0 0 1-3.476.383.39.39 0 0 0-.297.17l-2.755 4.133a.75.75 0 0 1-1.248 0l-2.755-4.133a.39.39 0 0 0-.297-.17 48.9 48.9 0 0 1-3.476-.384c-1.978-.29-3.348-2.024-3.348-3.97V6.741c0-1.946 1.37-3.68 3.348-3.97ZM6.75 8.25a.75.75 0 0 1 .75-.75h9a.75.75 0 0 1 0 1.5h-9a.75.75 0 0 1-.75-.75Zm.75 2.25a.75.75 0 0 0 0 1.5H12a.75.75 0 0 0 0-1.5H7.5Z",
|
|
109
|
+
"click-cursor-rays-outline":
|
|
110
|
+
"M15.042 21.672 13.684 16.6m0 0-2.51 2.225.569-9.47 5.227 7.917-3.286-.672ZM12 2.25V4.5m5.834.166-1.591 1.591M20.25 10.5H18M7.757 14.743l-1.59 1.59M6 10.5H3.75m4.007-4.243-1.59-1.59",
|
|
109
111
|
"phone-missed-call":
|
|
110
112
|
"M2 3a1 1 0 011-1h2.153a1 1 0 01.986.836l.74 4.435a1 1 0 01-.54 1.06l-1.548.773a11.037 11.037 0 006.105 6.105l.774-1.548a1 1 0 011.059-.54l4.435.74a1 1 0 01.836.986V17a1 1 0 01-1 1h-2C7.82 18 2 12.18 2 5V3z",
|
|
111
113
|
"chevron-left":
|