fds-vue-core 6.2.11 → 6.2.12

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.
@@ -11266,10 +11266,7 @@ const useSearchSelectProItems = ({
11266
11266
  const _hoisted_1$a = { class: "relative block" };
11267
11267
  const _hoisted_2$7 = { class: "relative" };
11268
11268
  const _hoisted_3$7 = { class: "relative" };
11269
- const _hoisted_4$6 = {
11270
- key: 0,
11271
- class: "flex justify-center p-4"
11272
- };
11269
+ const _hoisted_4$6 = { class: "flex items-center gap-2" };
11273
11270
  const _hoisted_5$6 = ["id", "role", "onMouseup"];
11274
11271
  const _hoisted_6$4 = ["innerHTML"];
11275
11272
  const _hoisted_7$4 = ["onClick"];
@@ -11281,10 +11278,10 @@ const _hoisted_10 = {
11281
11278
  };
11282
11279
  const _hoisted_11 = ["aria-disabled"];
11283
11280
  const _hoisted_12 = {
11284
- key: 2,
11281
+ key: 1,
11285
11282
  class: "block m-0 list-none p-0"
11286
11283
  };
11287
- const _hoisted_13 = { class: "p-3" };
11284
+ const _hoisted_13 = { class: "p-3 flex items-center gap-2" };
11288
11285
  const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
11289
11286
  __name: "FdsSearchSelectPro",
11290
11287
  props: {
@@ -11441,12 +11438,12 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
11441
11438
  if (!dropdownRef.value) return [];
11442
11439
  return Array.from(dropdownRef.value.querySelectorAll('input[id^="search-select-radio-"]'));
11443
11440
  };
11444
- const focusFirstRadio = () => {
11441
+ const focusSelectedRadioOrFirst = () => {
11445
11442
  vue.nextTick(() => {
11446
- const firstRadioButton = getSelectableInputs()[0];
11447
- if (firstRadioButton) {
11448
- firstRadioButton.focus();
11449
- }
11443
+ const selectableInputs = getSelectableInputs();
11444
+ if (!selectableInputs.length) return;
11445
+ const checkedRadio = selectableInputs.find((input) => input.checked);
11446
+ (checkedRadio ?? selectableInputs[0])?.focus();
11450
11447
  });
11451
11448
  };
11452
11449
  const hasInputValue = vue.computed(() => searchTerm.value.length > 0);
@@ -11835,13 +11832,13 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
11835
11832
  if (!dropdownVisible.value) {
11836
11833
  dropdownVisible.value = true;
11837
11834
  }
11838
- focusFirstRadio();
11835
+ focusSelectedRadioOrFirst();
11839
11836
  return;
11840
11837
  }
11841
11838
  if (e.key === "Enter" && !dropdownVisible.value && displayedItems.value.length > 0) {
11842
11839
  e.preventDefault();
11843
11840
  dropdownVisible.value = true;
11844
- focusFirstRadio();
11841
+ focusSelectedRadioOrFirst();
11845
11842
  return;
11846
11843
  }
11847
11844
  if (e.key === "Escape" && dropdownVisible.value) {
@@ -11958,26 +11955,27 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
11958
11955
  style: vue.normalizeStyle(listWrapperStyle.value),
11959
11956
  onScrollPassive: handleDropdownScroll
11960
11957
  }, [
11961
- __props.loading ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$6, [
11962
- vue.createVNode(_sfc_main$B, {
11963
- color: "blue",
11964
- size: "48px"
11965
- })
11966
- ])) : vue.unref(displayedItems) && vue.unref(displayedItems).length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
11958
+ vue.unref(displayedItems) && vue.unref(displayedItems).length ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
11967
11959
  vue.createElementVNode("div", {
11968
11960
  class: vue.normalizeClass([headerClasses.value, "flex items-center justify-between gap-3 min-h-[53px]"])
11969
11961
  }, [
11970
- vue.createVNode(_sfc_main$t, null, {
11971
- default: vue.withCtx(() => [
11972
- vue.createTextVNode(vue.toDisplayString(searchTerm.value && searchTerm.value.length ? `${totalMatchingItems.value} ${__props.searchContext.linkWord} ${totalCount.value} ${__props.searchContext.context}` : `${totalCount.value} ${__props.searchContext.context}`), 1)
11973
- ]),
11974
- _: 1
11975
- }),
11962
+ vue.createElementVNode("div", _hoisted_4$6, [
11963
+ vue.createVNode(_sfc_main$t, null, {
11964
+ default: vue.withCtx(() => [
11965
+ vue.createTextVNode(vue.toDisplayString(searchTerm.value && searchTerm.value.length ? `${totalMatchingItems.value} ${__props.searchContext.linkWord} ${totalCount.value} ${__props.searchContext.context}` : `${totalCount.value} ${__props.searchContext.context}`), 1)
11966
+ ]),
11967
+ _: 1
11968
+ }),
11969
+ __props.loading ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
11970
+ key: 0,
11971
+ color: "blue",
11972
+ size: "20px"
11973
+ })) : vue.createCommentVNode("", true)
11974
+ ]),
11976
11975
  __props.multiple && __props.showSelectedToggle && selectedItems.value.length > 0 ? (vue.openBlock(), vue.createBlock(_sfc_main$j, {
11977
11976
  key: 0,
11978
11977
  label: `${__props.selectedToggleLabel} (${selectedItems.value.length})`,
11979
11978
  checked: showSelectedOnly.value,
11980
- disablePseudoStates: true,
11981
11979
  onChange: handleToggleSelectedOnly
11982
11980
  }, null, 8, ["label", "checked"])) : vue.createCommentVNode("", true)
11983
11981
  ], 2),
@@ -12072,9 +12070,16 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
12072
12070
  ], 42, _hoisted_11)
12073
12071
  ])) : vue.createCommentVNode("", true)
12074
12072
  ], 32)
12075
- ], 64)) : !__props.loading ? (vue.openBlock(), vue.createElementBlock("ul", _hoisted_12, [
12076
- vue.createElementVNode("li", _hoisted_13, vue.toDisplayString(__props.noResultPrompt), 1)
12077
- ])) : vue.createCommentVNode("", true)
12073
+ ], 64)) : (vue.openBlock(), vue.createElementBlock("ul", _hoisted_12, [
12074
+ vue.createElementVNode("li", _hoisted_13, [
12075
+ vue.createElementVNode("span", null, vue.toDisplayString(__props.noResultPrompt), 1),
12076
+ __props.loading ? (vue.openBlock(), vue.createBlock(_sfc_main$B, {
12077
+ key: 0,
12078
+ color: "blue",
12079
+ size: "20px"
12080
+ })) : vue.createCommentVNode("", true)
12081
+ ])
12082
+ ]))
12078
12083
  ], 38)) : vue.createCommentVNode("", true)
12079
12084
  ])
12080
12085
  ], 16);