fds-vue-core 2.1.45 → 2.1.46
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/fds-vue-core.cjs.js +15 -12
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +15 -12
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Form/FdsCheckbox/FdsCheckbox.vue +5 -3
- package/src/components/Form/FdsInput/FdsInput.vue +3 -1
- package/src/components/Form/FdsRadio/FdsRadio.vue +4 -2
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -7795,7 +7795,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
7795
7795
|
onClearInput: {},
|
|
7796
7796
|
maskOptions: { default: void 0 },
|
|
7797
7797
|
modelModifiers: { default: () => ({}) },
|
|
7798
|
-
class: {},
|
|
7798
|
+
class: { default: void 0 },
|
|
7799
7799
|
style: {},
|
|
7800
7800
|
tabindex: {},
|
|
7801
7801
|
id: {},
|
|
@@ -7839,7 +7839,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
7839
7839
|
}
|
|
7840
7840
|
return {
|
|
7841
7841
|
...filtered,
|
|
7842
|
-
id: inputId.value
|
|
7842
|
+
id: inputId.value,
|
|
7843
|
+
class: props.class ?? attrs.class
|
|
7843
7844
|
};
|
|
7844
7845
|
});
|
|
7845
7846
|
const clearButtonLabel = vue.computed(() => props.locale === "sv" ? "Rensa input" : "Clear input");
|
|
@@ -7851,7 +7852,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
|
|
|
7851
7852
|
const showPasswordToggle = vue.computed(
|
|
7852
7853
|
() => inputType.value === "password" && internalValue.value !== void 0 && internalValue.value !== null && String(internalValue.value).length > 0
|
|
7853
7854
|
);
|
|
7854
|
-
const externalClass = vue.computed(() => attrs.class);
|
|
7855
|
+
const externalClass = vue.computed(() => props.class ?? attrs.class);
|
|
7855
7856
|
const inputClasses = vue.computed(() => [
|
|
7856
7857
|
"block rounded-md border border-gray-500 px-3 py-[calc(0.75rem-1px)]",
|
|
7857
7858
|
maxlength.value ? "" : "w-full",
|
|
@@ -9163,7 +9164,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9163
9164
|
modelValue: { type: [Boolean, Array] },
|
|
9164
9165
|
checked: { type: Boolean, default: false },
|
|
9165
9166
|
value: { default: void 0 },
|
|
9166
|
-
class: {},
|
|
9167
|
+
class: { default: void 0 },
|
|
9167
9168
|
style: {},
|
|
9168
9169
|
tabindex: {},
|
|
9169
9170
|
autofocus: { type: Boolean },
|
|
@@ -9201,7 +9202,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9201
9202
|
return eventHandlers;
|
|
9202
9203
|
});
|
|
9203
9204
|
const inputAttrs = vue.computed(() => {
|
|
9204
|
-
const {
|
|
9205
|
+
const { class: _, id: _id, ...rest } = attrs;
|
|
9205
9206
|
const filtered = {};
|
|
9206
9207
|
for (const key in rest) {
|
|
9207
9208
|
if (!key.startsWith("on") || typeof rest[key] !== "function") {
|
|
@@ -9210,11 +9211,12 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9210
9211
|
}
|
|
9211
9212
|
return {
|
|
9212
9213
|
...filtered,
|
|
9213
|
-
id: inputId.value
|
|
9214
|
+
id: inputId.value,
|
|
9215
|
+
class: props.class ?? attrs.class
|
|
9214
9216
|
};
|
|
9215
9217
|
});
|
|
9216
9218
|
const hasLabelSlot = useHasSlot();
|
|
9217
|
-
const externalClass = vue.computed(() => attrs.class);
|
|
9219
|
+
const externalClass = vue.computed(() => props.class ?? attrs.class);
|
|
9218
9220
|
const wrapperClasses = vue.computed(() => ["block relative flex items-center mb-2 last:mb-0"]);
|
|
9219
9221
|
const innerWrapperClasses = vue.computed(() => [
|
|
9220
9222
|
"flex p-0.5 items-start rounded-md",
|
|
@@ -9301,7 +9303,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
|
|
|
9301
9303
|
value: props.value,
|
|
9302
9304
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => internalChecked.value = $event),
|
|
9303
9305
|
disabled: props.disabled,
|
|
9304
|
-
required:
|
|
9306
|
+
required: props.required,
|
|
9305
9307
|
type: "checkbox",
|
|
9306
9308
|
class: [checkboxClasses.value]
|
|
9307
9309
|
}, inputAttrs.value), null, 16, _hoisted_2$7), [
|
|
@@ -9336,7 +9338,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9336
9338
|
value: { default: void 0 },
|
|
9337
9339
|
name: { default: void 0 },
|
|
9338
9340
|
id: { default: void 0 },
|
|
9339
|
-
class: {},
|
|
9341
|
+
class: { default: void 0 },
|
|
9340
9342
|
style: {},
|
|
9341
9343
|
tabindex: {},
|
|
9342
9344
|
autofocus: { type: Boolean },
|
|
@@ -9369,7 +9371,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9369
9371
|
return eventHandlers;
|
|
9370
9372
|
});
|
|
9371
9373
|
const inputAttrs = vue.computed(() => {
|
|
9372
|
-
const { id: _id, name: _name, disabled: _disabled, ...rest } = attrs;
|
|
9374
|
+
const { class: _, id: _id, name: _name, disabled: _disabled, ...rest } = attrs;
|
|
9373
9375
|
const filtered = {};
|
|
9374
9376
|
for (const key in rest) {
|
|
9375
9377
|
if (!key.startsWith("on") || typeof rest[key] !== "function") {
|
|
@@ -9379,11 +9381,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9379
9381
|
return {
|
|
9380
9382
|
...filtered,
|
|
9381
9383
|
id: inputId.value,
|
|
9382
|
-
name: props.name ?? attrs.name
|
|
9384
|
+
name: props.name ?? attrs.name,
|
|
9385
|
+
class: props.class ?? attrs.class
|
|
9383
9386
|
};
|
|
9384
9387
|
});
|
|
9385
9388
|
const hasLabelSlot = useHasSlot();
|
|
9386
|
-
const externalClass = vue.computed(() => attrs.class);
|
|
9389
|
+
const externalClass = vue.computed(() => props.class ?? attrs.class);
|
|
9387
9390
|
const isChecked = vue.computed(() => {
|
|
9388
9391
|
if (modelValue.value === void 0) {
|
|
9389
9392
|
return props.checked ?? false;
|