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.
package/dist/core.cjs CHANGED
@@ -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
  *
package/dist/core.mjs CHANGED
@@ -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
  *
package/dist/index.cjs CHANGED
@@ -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
  *
@@ -2225,7 +2225,8 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue3.defineComponent)({
2225
2225
  "5b09cc17-COLORS.text.secondary": (0, import_vue4.unref)(COLORS).text.secondary,
2226
2226
  "5b09cc17-COLORS.neutral.gray400": (0, import_vue4.unref)(COLORS).neutral.gray400
2227
2227
  }));
2228
- const COMBOBOX_ARIA = { "aria-multiselectable": void 0 };
2228
+ const COMBOBOX_ARIA = { "aria-multiselectable": void 0, "aria-placeholder": void 0 };
2229
+ const multiselectId = (0, import_vue5.useId)();
2229
2230
  const getFlagCode = (lang) => {
2230
2231
  const flagCode = lang.flag_country || lang.code;
2231
2232
  return flagCode;
@@ -2239,6 +2240,7 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue3.defineComponent)({
2239
2240
  });
2240
2241
  const searchQuery = (0, import_vue5.ref)("");
2241
2242
  const transliterate = (0, import_vue5.shallowRef)(null);
2243
+ const searchInputAttrs = (0, import_vue5.computed)(() => ({ placeholder: props.placeholder }));
2242
2244
  const validLanguages = (0, import_vue5.computed)(() => {
2243
2245
  return props.languages.filter((lang) => lang && lang.code && lang.name && lang.native_name);
2244
2246
  });
@@ -2405,7 +2407,9 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue3.defineComponent)({
2405
2407
  label: "name",
2406
2408
  "value-prop": "code",
2407
2409
  "filter-results": false,
2410
+ id: (0, import_vue4.unref)(multiselectId),
2408
2411
  aria: COMBOBOX_ARIA,
2412
+ attrs: searchInputAttrs.value,
2409
2413
  onKeydown: handleKeydown
2410
2414
  }, {
2411
2415
  singlelabel: (0, import_vue4.withCtx)(({ value }) => [
@@ -2483,7 +2487,7 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue3.defineComponent)({
2483
2487
  ]),
2484
2488
  _: 1
2485
2489
  /* STABLE */
2486
- }, 8, ["modelValue", "options", "placeholder", "disabled", "loading"])) : isLoading.value && validLanguages.value.length === 0 ? ((0, import_vue4.openBlock)(), (0, import_vue4.createElementBlock)(
2490
+ }, 8, ["modelValue", "options", "placeholder", "disabled", "loading", "id", "attrs"])) : isLoading.value && validLanguages.value.length === 0 ? ((0, import_vue4.openBlock)(), (0, import_vue4.createElementBlock)(
2487
2491
  import_vue4.Fragment,
2488
2492
  { key: 1 },
2489
2493
  [