fds-vue-core 2.0.22 → 2.0.23
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FdsRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsRadio/FdsRadio.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FdsRadio.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/FdsRadio/FdsRadio.vue"],"names":[],"mappings":"AA6GA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAM5C,KAAK,WAAW,GAAG,aAAa,CAAC;AA8EjC,KAAK,iBAAiB,GAAG,WAAW,GAAG;IACvC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAwEF,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;4EAInB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAY1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -430,7 +430,7 @@ const _sfc_main$u = /* @__PURE__ */ vue.defineComponent({
|
|
|
430
430
|
const modelValue = vue.useModel(__props, "modelValue");
|
|
431
431
|
const props = __props;
|
|
432
432
|
const emit = __emit;
|
|
433
|
-
const wrapperClasses = vue.computed(() => ["block relative flex items-center"]);
|
|
433
|
+
const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
|
|
434
434
|
const innerWrapperClasses = vue.computed(() => ["flex p-0.5 items-start rounded-md"]);
|
|
435
435
|
const checkboxClasses = vue.computed(() => [
|
|
436
436
|
"rounded-md transition-colors duration-200 accent-blue-500 m-[3px]",
|
|
@@ -1131,7 +1131,7 @@ const _sfc_main$s = /* @__PURE__ */ vue.defineComponent({
|
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
1133
|
});
|
|
1134
|
-
const _hoisted_1$l = ["id", "name", "value", "disabled", "required"
|
|
1134
|
+
const _hoisted_1$l = ["id", "name", "value", "disabled", "required"];
|
|
1135
1135
|
const _hoisted_2$d = ["for"];
|
|
1136
1136
|
const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
1137
1137
|
__name: "FdsRadio",
|
|
@@ -1159,7 +1159,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1159
1159
|
const inputId = vue.computed(() => props.id ?? autoId);
|
|
1160
1160
|
const slots = vue.useSlots();
|
|
1161
1161
|
const hasLabelSlot = vue.computed(() => !!slots.default);
|
|
1162
|
-
const wrapperClasses = vue.computed(() => ["block relative flex items-center"]);
|
|
1162
|
+
const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
|
|
1163
1163
|
const innerWrapperClasses = vue.computed(() => ["flex p-0.5 items-start rounded-l-xl rounded-r-md"]);
|
|
1164
1164
|
const stateClasses = vue.computed(() => [
|
|
1165
1165
|
"hover:bg-blue_t-100 active:bg-blue_t-200",
|
|
@@ -1171,11 +1171,18 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1171
1171
|
props.disabled && "cursor-not-allowed"
|
|
1172
1172
|
]);
|
|
1173
1173
|
const groupModel = vue.computed({
|
|
1174
|
-
get: () =>
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1174
|
+
get: () => {
|
|
1175
|
+
if (modelValue.value !== void 0 && props.value !== void 0) {
|
|
1176
|
+
return modelValue.value === props.value ? props.value : void 0;
|
|
1177
|
+
}
|
|
1178
|
+
return props.checked ? props.value : void 0;
|
|
1179
|
+
},
|
|
1180
|
+
set: () => {
|
|
1181
|
+
if (props.value !== void 0) {
|
|
1182
|
+
modelValue.value = props.value;
|
|
1183
|
+
emit("update:checked", true);
|
|
1184
|
+
emit("change", true);
|
|
1185
|
+
}
|
|
1179
1186
|
}
|
|
1180
1187
|
});
|
|
1181
1188
|
const handleBlur = (event) => emit("blur", event);
|
|
@@ -1198,7 +1205,6 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1198
1205
|
required: _ctx.required,
|
|
1199
1206
|
type: "radio",
|
|
1200
1207
|
class: vue.normalizeClass([inputClasses.value, "m-[3px]"]),
|
|
1201
|
-
checked: props.checked,
|
|
1202
1208
|
onBlur: handleBlur,
|
|
1203
1209
|
onFocus: handleFocus,
|
|
1204
1210
|
onKeydown: handleKeydown,
|