fds-vue-core 3.0.0 → 3.0.2
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 +21 -4
- package/dist/fds-vue-core.cjs.js.map +1 -1
- package/dist/fds-vue-core.es.js +21 -4
- package/dist/fds-vue-core.es.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue +1 -1
- package/src/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue +1 -1
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.vue +1 -0
- package/src/components/FdsSearchSelect/FdsSearchSelect.vue +25 -0
package/dist/fds-vue-core.cjs.js
CHANGED
|
@@ -659,7 +659,7 @@ const _sfc_main$w = /* @__PURE__ */ vue.defineComponent({
|
|
|
659
659
|
closeable: { type: Boolean, default: false },
|
|
660
660
|
collapsable: { type: Boolean, default: false },
|
|
661
661
|
expanded: { type: Boolean, default: false },
|
|
662
|
-
heading: { default:
|
|
662
|
+
heading: { default: void 0 },
|
|
663
663
|
locale: { default: "sv" },
|
|
664
664
|
icon: {},
|
|
665
665
|
dataTestid: { default: void 0 }
|
|
@@ -883,7 +883,7 @@ const _sfc_main$t = /* @__PURE__ */ vue.defineComponent({
|
|
|
883
883
|
__name: "FdsBlockExpander",
|
|
884
884
|
props: {
|
|
885
885
|
disabled: { type: Boolean, default: false },
|
|
886
|
-
heading: { default:
|
|
886
|
+
heading: { default: void 0 },
|
|
887
887
|
open: { type: Boolean, default: false },
|
|
888
888
|
preIcon: { default: void 0 },
|
|
889
889
|
stickerColor: { default: void 0 },
|
|
@@ -1113,7 +1113,7 @@ const _sfc_main$r = /* @__PURE__ */ vue.defineComponent({
|
|
|
1113
1113
|
},
|
|
1114
1114
|
__name: "FdsBlockLink",
|
|
1115
1115
|
props: {
|
|
1116
|
-
heading: {},
|
|
1116
|
+
heading: { default: void 0 },
|
|
1117
1117
|
arrow: { type: Boolean, default: false },
|
|
1118
1118
|
download: {},
|
|
1119
1119
|
href: {},
|
|
@@ -9206,7 +9206,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9206
9206
|
onInput: {}
|
|
9207
9207
|
},
|
|
9208
9208
|
emits: ["searchSelected", "paginate", "total", "change", "input", "clearInput"],
|
|
9209
|
-
setup(__props, { emit: __emit }) {
|
|
9209
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
9210
9210
|
const props = __props;
|
|
9211
9211
|
const searchFields = vue.computed(() => props.searchFields ?? []);
|
|
9212
9212
|
const emit = __emit;
|
|
@@ -9247,6 +9247,17 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9247
9247
|
input?.focus();
|
|
9248
9248
|
});
|
|
9249
9249
|
};
|
|
9250
|
+
const handleBlurInput = () => {
|
|
9251
|
+
const input = getInputElement();
|
|
9252
|
+
input?.blur();
|
|
9253
|
+
};
|
|
9254
|
+
const handleBlurAndClear = () => {
|
|
9255
|
+
const input = getInputElement();
|
|
9256
|
+
input?.blur();
|
|
9257
|
+
searchTerm.value = "";
|
|
9258
|
+
selectedItem.value = null;
|
|
9259
|
+
valid.value = null;
|
|
9260
|
+
};
|
|
9250
9261
|
const uncheckAllRadios = () => {
|
|
9251
9262
|
if (!dropdownRef.value) return;
|
|
9252
9263
|
const checkedRadio = dropdownRef.value.querySelector(
|
|
@@ -9560,6 +9571,12 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
|
|
|
9560
9571
|
}
|
|
9561
9572
|
return attrs;
|
|
9562
9573
|
});
|
|
9574
|
+
__expose({
|
|
9575
|
+
blur: handleBlurInput,
|
|
9576
|
+
clear: handleClear,
|
|
9577
|
+
blurAndClear: handleBlurAndClear,
|
|
9578
|
+
focus: focusInput
|
|
9579
|
+
});
|
|
9563
9580
|
return (_ctx, _cache) => {
|
|
9564
9581
|
return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
|
|
9565
9582
|
ref_key: "componentRef",
|