langie 1.14.0 → 2.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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * langie v1.14.0
2
+ * langie v2.0.2
3
3
  * (c) 2026 nlit
4
4
  * @license Apache-2.0
5
5
  *
@@ -754,7 +754,8 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
754
754
  "5b09cc17-COLORS.text.secondary": (0, import_vue2.unref)(COLORS).text.secondary,
755
755
  "5b09cc17-COLORS.neutral.gray400": (0, import_vue2.unref)(COLORS).neutral.gray400
756
756
  }));
757
- const COMBOBOX_ARIA = { "aria-multiselectable": void 0 };
757
+ const COMBOBOX_ARIA = { "aria-multiselectable": void 0, "aria-placeholder": void 0 };
758
+ const multiselectId = (0, import_vue3.useId)();
758
759
  const getFlagCode = (lang) => {
759
760
  const flagCode = lang.flag_country || lang.code;
760
761
  return flagCode;
@@ -768,6 +769,7 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
768
769
  });
769
770
  const searchQuery = (0, import_vue3.ref)("");
770
771
  const transliterate = (0, import_vue3.shallowRef)(null);
772
+ const searchInputAttrs = (0, import_vue3.computed)(() => ({ placeholder: props.placeholder }));
771
773
  const validLanguages = (0, import_vue3.computed)(() => {
772
774
  return props.languages.filter((lang) => lang && lang.code && lang.name && lang.native_name);
773
775
  });
@@ -934,7 +936,9 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
934
936
  label: "name",
935
937
  "value-prop": "code",
936
938
  "filter-results": false,
939
+ id: (0, import_vue2.unref)(multiselectId),
937
940
  aria: COMBOBOX_ARIA,
941
+ attrs: searchInputAttrs.value,
938
942
  onKeydown: handleKeydown
939
943
  }, {
940
944
  singlelabel: (0, import_vue2.withCtx)(({ value }) => [
@@ -1012,7 +1016,7 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
1012
1016
  ]),
1013
1017
  _: 1
1014
1018
  /* STABLE */
1015
- }, 8, ["modelValue", "options", "placeholder", "disabled", "loading"])) : isLoading.value && validLanguages.value.length === 0 ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)(
1019
+ }, 8, ["modelValue", "options", "placeholder", "disabled", "loading", "id", "attrs"])) : isLoading.value && validLanguages.value.length === 0 ? ((0, import_vue2.openBlock)(), (0, import_vue2.createElementBlock)(
1016
1020
  import_vue2.Fragment,
1017
1021
  { key: 1 },
1018
1022
  [