@bagelink/vue 0.0.417 → 0.0.419
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/components/ListView.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts +23 -3
- package/dist/components/form/inputs/RadioPillsInput.vue.d.ts.map +1 -1
- package/dist/index.cjs +19 -22
- package/dist/index.mjs +19 -22
- package/dist/style.css +25 -25
- package/package.json +1 -1
- package/src/components/ListView.vue +24 -28
- package/src/components/form/inputs/RadioPillsInput.vue +15 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/ListView.vue"],"names":[],"mappings":"AAUA;;;;;
|
|
1
|
+
{"version":3,"file":"ListView.vue.d.ts","sourceRoot":"","sources":["../../src/components/ListView.vue"],"names":[],"mappings":"AAUA;;;;;AAsFA,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|
|
@@ -2,21 +2,33 @@ type Option = string | number | Record<string, any> | {
|
|
|
2
2
|
label: string;
|
|
3
3
|
value: string | number;
|
|
4
4
|
};
|
|
5
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
6
6
|
options?: Option[] | undefined;
|
|
7
7
|
modelValue?: any;
|
|
8
8
|
id?: string | undefined;
|
|
9
9
|
label?: string | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
modelValue: string;
|
|
12
|
+
id: () => string;
|
|
13
|
+
label: string;
|
|
10
14
|
}>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
15
|
"update:modelValue": (...args: any[]) => void;
|
|
12
|
-
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
13
17
|
options?: Option[] | undefined;
|
|
14
18
|
modelValue?: any;
|
|
15
19
|
id?: string | undefined;
|
|
16
20
|
label?: string | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
modelValue: string;
|
|
23
|
+
id: () => string;
|
|
24
|
+
label: string;
|
|
17
25
|
}>>> & {
|
|
18
26
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
19
|
-
}, {
|
|
27
|
+
}, {
|
|
28
|
+
label: string;
|
|
29
|
+
modelValue: any;
|
|
30
|
+
id: string;
|
|
31
|
+
}, {}>;
|
|
20
32
|
export default _default;
|
|
21
33
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
22
34
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
@@ -27,4 +39,12 @@ type __VLS_TypePropsToRuntimeProps<T> = {
|
|
|
27
39
|
required: true;
|
|
28
40
|
};
|
|
29
41
|
};
|
|
42
|
+
type __VLS_WithDefaults<P, D> = {
|
|
43
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
44
|
+
default: D[K];
|
|
45
|
+
}> : P[K];
|
|
46
|
+
};
|
|
47
|
+
type __VLS_Prettify<T> = {
|
|
48
|
+
[K in keyof T]: T[K];
|
|
49
|
+
} & {};
|
|
30
50
|
//# sourceMappingURL=RadioPillsInput.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioPillsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RadioPillsInput.vue"],"names":[],"mappings":"AAmBA;AAMA,KAAK,MAAM,GACR,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;;;
|
|
1
|
+
{"version":3,"file":"RadioPillsInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/RadioPillsInput.vue"],"names":[],"mappings":"AAmBA;AAMA,KAAK,MAAM,GACR,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;;;iBAiL9B,GAAG;;;;;;;;;;;iBAAH,GAAG;;;;;;;;;;WAER,MAAM;gBAFD,GAAG;QACX,MAAM;;AARb,wBAYG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -5541,24 +5541,21 @@ const _sfc_main$D = /* @__PURE__ */ vue.defineComponent({
|
|
|
5541
5541
|
}
|
|
5542
5542
|
});
|
|
5543
5543
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-bf74738b"]]);
|
|
5544
|
+
const _sfc_main$C = {};
|
|
5544
5545
|
const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5545
5546
|
const _hoisted_2$t = { class: "p-1" };
|
|
5546
5547
|
const _hoisted_3$j = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
|
|
5557
|
-
|
|
5558
|
-
]);
|
|
5559
|
-
};
|
|
5560
|
-
}
|
|
5561
|
-
});
|
|
5548
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
5549
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$A, [
|
|
5550
|
+
vue.createElementVNode("div", _hoisted_2$t, [
|
|
5551
|
+
vue.renderSlot(_ctx.$slots, "header")
|
|
5552
|
+
]),
|
|
5553
|
+
vue.createElementVNode("div", _hoisted_3$j, [
|
|
5554
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
5555
|
+
])
|
|
5556
|
+
]);
|
|
5557
|
+
}
|
|
5558
|
+
const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$2]]);
|
|
5562
5559
|
const _hoisted_1$z = { class: "txt16 no-margin ellipsis" };
|
|
5563
5560
|
const _hoisted_2$s = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5564
5561
|
const _sfc_main$B = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -18490,9 +18487,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18490
18487
|
__name: "RadioPillsInput",
|
|
18491
18488
|
props: {
|
|
18492
18489
|
options: {},
|
|
18493
|
-
modelValue: {},
|
|
18494
|
-
id: {},
|
|
18495
|
-
label: {}
|
|
18490
|
+
modelValue: { default: "" },
|
|
18491
|
+
id: { default: () => `radio-pill-${Math.random().toString(36).substr(2, 9)}` },
|
|
18492
|
+
label: { default: "" }
|
|
18496
18493
|
},
|
|
18497
18494
|
emits: ["update:modelValue"],
|
|
18498
18495
|
setup(__props, { emit: __emit }) {
|
|
@@ -18543,14 +18540,14 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18543
18540
|
}, [
|
|
18544
18541
|
vue.createElementVNode("input", {
|
|
18545
18542
|
type: "radio",
|
|
18546
|
-
id: getValue(option2)
|
|
18543
|
+
id: `${_ctx.id}-${getValue(option2)}`,
|
|
18547
18544
|
name: _ctx.id,
|
|
18548
18545
|
value: getValue(option2),
|
|
18549
18546
|
checked: vue.unref(selectedValue) === getValue(option2),
|
|
18550
18547
|
onChange: handleSelect
|
|
18551
18548
|
}, null, 40, _hoisted_4$6),
|
|
18552
18549
|
vue.createElementVNode("label", {
|
|
18553
|
-
for: getValue(option2)
|
|
18550
|
+
for: `${_ctx.id}-${getValue(option2)}`
|
|
18554
18551
|
}, vue.toDisplayString(getLabel(option2)), 9, _hoisted_5$5)
|
|
18555
18552
|
]);
|
|
18556
18553
|
}), 128))
|
|
@@ -18559,7 +18556,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
18559
18556
|
};
|
|
18560
18557
|
}
|
|
18561
18558
|
});
|
|
18562
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
18559
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-41859ed6"]]);
|
|
18563
18560
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
18564
18561
|
const _hoisted_2$c = {
|
|
18565
18562
|
key: 0,
|
|
@@ -51190,7 +51187,7 @@ exports.JSONInput = JSONInput;
|
|
|
51190
51187
|
exports.Layout = Layout;
|
|
51191
51188
|
exports.Lineart = _sfc_main$7;
|
|
51192
51189
|
exports.ListItem = _sfc_main$B;
|
|
51193
|
-
exports.ListView =
|
|
51190
|
+
exports.ListView = ListView;
|
|
51194
51191
|
exports.MaterialIcon = _sfc_main$I;
|
|
51195
51192
|
exports.Modal = _sfc_main$F;
|
|
51196
51193
|
exports.ModalConfirm = _sfc_main$n;
|
package/dist/index.mjs
CHANGED
|
@@ -5539,24 +5539,21 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
5539
5539
|
}
|
|
5540
5540
|
});
|
|
5541
5541
|
const AccordionItem = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-bf74738b"]]);
|
|
5542
|
+
const _sfc_main$C = {};
|
|
5542
5543
|
const _hoisted_1$A = { class: "list-wrap bgl_card thin grid overflow-hidden h-100 p-0" };
|
|
5543
5544
|
const _hoisted_2$t = { class: "p-1" };
|
|
5544
5545
|
const _hoisted_3$j = { class: "list-content auto-flow-rows align-items-start overflow-y h-100" };
|
|
5545
|
-
|
|
5546
|
-
|
|
5547
|
-
|
|
5548
|
-
|
|
5549
|
-
|
|
5550
|
-
|
|
5551
|
-
|
|
5552
|
-
|
|
5553
|
-
|
|
5554
|
-
|
|
5555
|
-
|
|
5556
|
-
]);
|
|
5557
|
-
};
|
|
5558
|
-
}
|
|
5559
|
-
});
|
|
5546
|
+
function _sfc_render$2(_ctx, _cache) {
|
|
5547
|
+
return openBlock(), createElementBlock("div", _hoisted_1$A, [
|
|
5548
|
+
createElementVNode("div", _hoisted_2$t, [
|
|
5549
|
+
renderSlot(_ctx.$slots, "header")
|
|
5550
|
+
]),
|
|
5551
|
+
createElementVNode("div", _hoisted_3$j, [
|
|
5552
|
+
renderSlot(_ctx.$slots, "default")
|
|
5553
|
+
])
|
|
5554
|
+
]);
|
|
5555
|
+
}
|
|
5556
|
+
const ListView = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$2]]);
|
|
5560
5557
|
const _hoisted_1$z = { class: "txt16 no-margin ellipsis" };
|
|
5561
5558
|
const _hoisted_2$s = { class: "txt14 no-margin txt-gray ellipsis" };
|
|
5562
5559
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
@@ -18488,9 +18485,9 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18488
18485
|
__name: "RadioPillsInput",
|
|
18489
18486
|
props: {
|
|
18490
18487
|
options: {},
|
|
18491
|
-
modelValue: {},
|
|
18492
|
-
id: {},
|
|
18493
|
-
label: {}
|
|
18488
|
+
modelValue: { default: "" },
|
|
18489
|
+
id: { default: () => `radio-pill-${Math.random().toString(36).substr(2, 9)}` },
|
|
18490
|
+
label: { default: "" }
|
|
18494
18491
|
},
|
|
18495
18492
|
emits: ["update:modelValue"],
|
|
18496
18493
|
setup(__props, { emit: __emit }) {
|
|
@@ -18541,14 +18538,14 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18541
18538
|
}, [
|
|
18542
18539
|
createElementVNode("input", {
|
|
18543
18540
|
type: "radio",
|
|
18544
|
-
id: getValue(option2)
|
|
18541
|
+
id: `${_ctx.id}-${getValue(option2)}`,
|
|
18545
18542
|
name: _ctx.id,
|
|
18546
18543
|
value: getValue(option2),
|
|
18547
18544
|
checked: unref(selectedValue) === getValue(option2),
|
|
18548
18545
|
onChange: handleSelect
|
|
18549
18546
|
}, null, 40, _hoisted_4$6),
|
|
18550
18547
|
createElementVNode("label", {
|
|
18551
|
-
for: getValue(option2)
|
|
18548
|
+
for: `${_ctx.id}-${getValue(option2)}`
|
|
18552
18549
|
}, toDisplayString(getLabel(option2)), 9, _hoisted_5$5)
|
|
18553
18550
|
]);
|
|
18554
18551
|
}), 128))
|
|
@@ -18557,7 +18554,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
|
18557
18554
|
};
|
|
18558
18555
|
}
|
|
18559
18556
|
});
|
|
18560
|
-
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-
|
|
18557
|
+
const RadioPillsInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__scopeId", "data-v-41859ed6"]]);
|
|
18561
18558
|
const _hoisted_1$f = { class: "bagel-input" };
|
|
18562
18559
|
const _hoisted_2$c = {
|
|
18563
18560
|
key: 0,
|
|
@@ -51189,7 +51186,7 @@ export {
|
|
|
51189
51186
|
Layout,
|
|
51190
51187
|
_sfc_main$7 as Lineart,
|
|
51191
51188
|
_sfc_main$B as ListItem,
|
|
51192
|
-
|
|
51189
|
+
ListView,
|
|
51193
51190
|
_sfc_main$I as MaterialIcon,
|
|
51194
51191
|
_sfc_main$F as Modal,
|
|
51195
51192
|
_sfc_main$n as ModalConfirm,
|
package/dist/style.css
CHANGED
|
@@ -577,39 +577,39 @@ a[data-v-d09a83c5] {
|
|
|
577
577
|
}
|
|
578
578
|
|
|
579
579
|
.list-wrap {
|
|
580
|
-
|
|
580
|
+
grid-template-rows: auto 1fr;
|
|
581
581
|
}
|
|
582
582
|
.list-item {
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
583
|
+
padding: 0.5rem 1rem;
|
|
584
|
+
min-height: -webkit-fit-content;
|
|
585
|
+
min-height: -moz-fit-content;
|
|
586
|
+
min-height: fit-content;
|
|
587
|
+
margin: 0.25rem 0;
|
|
588
|
+
cursor: pointer;
|
|
589
|
+
transition: var(--bgl-transition);
|
|
590
|
+
color: var(--bgl-black);
|
|
591
|
+
text-decoration: none;
|
|
592
|
+
position: relative;
|
|
593
593
|
}
|
|
594
594
|
.list-item::after {
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
595
|
+
content: '';
|
|
596
|
+
position: absolute;
|
|
597
|
+
left: 0;
|
|
598
|
+
right: 0;
|
|
599
|
+
bottom: -0.15rem;
|
|
600
|
+
border-bottom: 1px solid var(--border-color);
|
|
601
601
|
}
|
|
602
602
|
.list-item:hover,
|
|
603
603
|
.list-item.router-link-active {
|
|
604
|
-
|
|
604
|
+
background-color: var(--bgl-blue-light);
|
|
605
605
|
}
|
|
606
606
|
.list-item:active {
|
|
607
|
-
|
|
608
|
-
|
|
607
|
+
-webkit-filter: var(--bgl-hover-filter);
|
|
608
|
+
filter: var(--bgl-hover-filter);
|
|
609
609
|
}
|
|
610
610
|
@media screen and (max-width: 910px) {
|
|
611
611
|
.list-item {
|
|
612
|
-
|
|
612
|
+
padding: 0.5rem;
|
|
613
613
|
}
|
|
614
614
|
}
|
|
615
615
|
|
|
@@ -1477,7 +1477,7 @@ display: block;
|
|
|
1477
1477
|
}
|
|
1478
1478
|
}
|
|
1479
1479
|
|
|
1480
|
-
.radio-pill label[data-v-
|
|
1480
|
+
.radio-pill label[data-v-41859ed6] {
|
|
1481
1481
|
color: var(--bgl-primary);
|
|
1482
1482
|
white-space: nowrap;
|
|
1483
1483
|
border-radius: calc(var(--btn-border-radius) * 2);
|
|
@@ -1491,13 +1491,13 @@ display: block;
|
|
|
1491
1491
|
background: var(--bgl-white);
|
|
1492
1492
|
user-select: none;
|
|
1493
1493
|
}
|
|
1494
|
-
.radio-pill label[data-v-
|
|
1494
|
+
.radio-pill label[data-v-41859ed6]:hover {
|
|
1495
1495
|
filter: var(--bgl-hover-filter);
|
|
1496
1496
|
}
|
|
1497
|
-
.radio-pill input[data-v-
|
|
1497
|
+
.radio-pill input[data-v-41859ed6] {
|
|
1498
1498
|
display: none;
|
|
1499
1499
|
}
|
|
1500
|
-
.radio-pill input:checked ~ label[data-v-
|
|
1500
|
+
.radio-pill input:checked ~ label[data-v-41859ed6] {
|
|
1501
1501
|
background: var(--bgl-primary);
|
|
1502
1502
|
color: var(--bgl-white);
|
|
1503
1503
|
}
|
package/package.json
CHANGED
|
@@ -9,52 +9,48 @@
|
|
|
9
9
|
</div>
|
|
10
10
|
</template>
|
|
11
11
|
|
|
12
|
-
<script lang="ts" setup>
|
|
13
|
-
import Card from './Card.vue';
|
|
14
|
-
|
|
15
|
-
</script>
|
|
12
|
+
<script lang="ts" setup></script>
|
|
16
13
|
|
|
17
14
|
<style>
|
|
18
15
|
.list-wrap {
|
|
19
|
-
|
|
16
|
+
grid-template-rows: auto 1fr;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
.list-item {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
20
|
+
padding: 0.5rem 1rem;
|
|
21
|
+
min-height: -webkit-fit-content;
|
|
22
|
+
min-height: -moz-fit-content;
|
|
23
|
+
min-height: fit-content;
|
|
24
|
+
margin: 0.25rem 0;
|
|
25
|
+
cursor: pointer;
|
|
26
|
+
transition: var(--bgl-transition);
|
|
27
|
+
color: var(--bgl-black);
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
position: relative;
|
|
33
30
|
}
|
|
34
31
|
|
|
35
32
|
.list-item::after {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
content: '';
|
|
34
|
+
position: absolute;
|
|
35
|
+
left: 0;
|
|
36
|
+
right: 0;
|
|
37
|
+
bottom: -0.15rem;
|
|
38
|
+
border-bottom: 1px solid var(--border-color);
|
|
42
39
|
}
|
|
43
40
|
|
|
44
41
|
.list-item:hover,
|
|
45
42
|
.list-item.router-link-active {
|
|
46
|
-
|
|
43
|
+
background-color: var(--bgl-blue-light);
|
|
47
44
|
}
|
|
48
45
|
|
|
49
46
|
.list-item:active {
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
-webkit-filter: var(--bgl-hover-filter);
|
|
48
|
+
filter: var(--bgl-hover-filter);
|
|
52
49
|
}
|
|
53
50
|
|
|
54
51
|
@media screen and (max-width: 910px) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
52
|
+
.list-item {
|
|
53
|
+
padding: 0.5rem;
|
|
54
|
+
}
|
|
59
55
|
}
|
|
60
56
|
</style>
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
<div class="radio-pill" v-for="(option, index) in options" :key="index">
|
|
8
8
|
<input
|
|
9
9
|
type="radio"
|
|
10
|
-
:id="getValue(option)"
|
|
10
|
+
:id="`${id}-${getValue(option)}`"
|
|
11
11
|
:name="id"
|
|
12
12
|
:value="getValue(option)"
|
|
13
13
|
:checked="selectedValue === getValue(option)"
|
|
14
14
|
@change="handleSelect" />
|
|
15
|
-
<label :for="getValue(option)">{{ getLabel(option) }}</label>
|
|
15
|
+
<label :for="`${id}-${getValue(option)}`">{{ getLabel(option) }}</label>
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
@@ -41,12 +41,19 @@ const getValue = (option: Option) => {
|
|
|
41
41
|
return option.value;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
const props =
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
44
|
+
const props = withDefaults(
|
|
45
|
+
defineProps<{
|
|
46
|
+
options?: Option[];
|
|
47
|
+
modelValue?: any;
|
|
48
|
+
id?: string;
|
|
49
|
+
label?: string;
|
|
50
|
+
}>(),
|
|
51
|
+
{
|
|
52
|
+
modelValue: '',
|
|
53
|
+
id: () => `radio-pill-${Math.random().toString(36).substr(2, 9)}`,
|
|
54
|
+
label: '',
|
|
55
|
+
}
|
|
56
|
+
);
|
|
50
57
|
|
|
51
58
|
let selectedValue = $ref('');
|
|
52
59
|
|