langie 1.9.25 → 1.9.26
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/components/InterfaceLanguageSelect.vue.d.ts +65 -0
- package/dist/components/LanguageSelect.vue.d.ts +59 -0
- package/dist/components/index.cjs +66 -39
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.css +81 -116
- package/dist/components/index.css.map +1 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.mjs +66 -39
- package/dist/components/index.mjs.map +1 -1
- package/dist/components/lt.vue.d.ts +37 -0
- package/dist/components/types.d.ts +20 -0
- package/dist/composables/types.d.ts +8 -0
- package/dist/composables/useLangie-batching.d.ts +48 -0
- package/dist/composables/useLangie-core.d.ts +21 -0
- package/dist/constants/colors.d.ts +82 -0
- package/dist/constants.d.ts +29 -0
- package/dist/core.cjs +17 -8
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.ts +10 -85
- package/dist/core.mjs +16 -8
- package/dist/core.mjs.map +1 -1
- package/dist/index.cjs +52 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +81 -81
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +19 -163
- package/dist/index.mjs +52 -45
- package/dist/index.mjs.map +1 -1
- package/dist/language-aliases/african.d.ts +2 -0
- package/dist/language-aliases/asian.d.ts +2 -0
- package/dist/language-aliases/european.d.ts +2 -0
- package/dist/language-aliases/index.d.ts +3 -0
- package/dist/language-aliases/types.d.ts +5 -0
- package/dist/language-aliases.d.ts +1 -0
- package/dist/search-utils.d.ts +4 -0
- package/dist/{core.d.cts → types.d.ts} +5 -39
- package/dist/useLangie.d.ts +55 -0
- package/dist/utils/cache.d.ts +33 -0
- package/dist/utils/debug.d.ts +1 -0
- package/dist/utils/getCountryCode.d.ts +3 -0
- package/dist/utils/languageMapping.d.ts +13 -0
- package/dist/utils/regionMapping.d.ts +18 -0
- package/dist/utils/theme.d.ts +9 -0
- package/package.json +9 -5
- package/dist/index.d.cts +0 -165
- package/dist/teleport.d.cts +0 -2
- package/dist/teleport.d.ts +0 -2
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { TranslatorLanguage } from '../types';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
|
+
placeholder: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
disabled: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
10
|
+
};
|
|
11
|
+
isDark: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
translatorHost: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
apiKey: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
languages: {
|
|
24
|
+
type: () => TranslatorLanguage[];
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (...args: any[]) => void;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
30
|
+
placeholder: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
isDark: {
|
|
39
|
+
type: BooleanConstructor;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
translatorHost: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
apiKey: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
languages: {
|
|
51
|
+
type: () => TranslatorLanguage[];
|
|
52
|
+
default: () => never[];
|
|
53
|
+
};
|
|
54
|
+
}>> & Readonly<{
|
|
55
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
56
|
+
}>, {
|
|
57
|
+
translatorHost: string;
|
|
58
|
+
languages: TranslatorLanguage[];
|
|
59
|
+
placeholder: string;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
isDark: boolean;
|
|
62
|
+
apiKey: string;
|
|
63
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
64
|
+
declare const _default: typeof __VLS_export;
|
|
65
|
+
export default _default;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import '@vueform/multiselect/themes/default.css';
|
|
2
|
+
import '../styles/teleport.css';
|
|
3
|
+
import type { PropType } from 'vue';
|
|
4
|
+
import type { TranslatorLanguage } from '../types';
|
|
5
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
|
+
modelValue: {
|
|
7
|
+
type: PropType<TranslatorLanguage | null | undefined>;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
languages: {
|
|
11
|
+
type: PropType<TranslatorLanguage[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
placeholder: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
disabled: {
|
|
19
|
+
type: BooleanConstructor;
|
|
20
|
+
default: boolean;
|
|
21
|
+
};
|
|
22
|
+
isDark: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: boolean;
|
|
25
|
+
};
|
|
26
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (...args: any[]) => void;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: PropType<TranslatorLanguage | null | undefined>;
|
|
31
|
+
default: undefined;
|
|
32
|
+
};
|
|
33
|
+
languages: {
|
|
34
|
+
type: PropType<TranslatorLanguage[]>;
|
|
35
|
+
default: () => never[];
|
|
36
|
+
};
|
|
37
|
+
placeholder: {
|
|
38
|
+
type: StringConstructor;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
disabled: {
|
|
42
|
+
type: BooleanConstructor;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
45
|
+
isDark: {
|
|
46
|
+
type: BooleanConstructor;
|
|
47
|
+
default: boolean;
|
|
48
|
+
};
|
|
49
|
+
}>> & Readonly<{
|
|
50
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
51
|
+
}>, {
|
|
52
|
+
modelValue: TranslatorLanguage | null | undefined;
|
|
53
|
+
languages: TranslatorLanguage[];
|
|
54
|
+
placeholder: string;
|
|
55
|
+
disabled: boolean;
|
|
56
|
+
isDark: boolean;
|
|
57
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
58
|
+
declare const _default: typeof __VLS_export;
|
|
59
|
+
export default _default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* langie v1.9.
|
|
2
|
+
* langie v1.9.26
|
|
3
3
|
* (c) 2026 nlit
|
|
4
4
|
* @license Apache-2.0
|
|
5
|
-
*
|
|
5
|
+
*
|
|
6
6
|
* Licensed under the Apache License, Version 2.0
|
|
7
7
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
8
8
|
*/
|
|
@@ -44,10 +44,37 @@ __export(components_exports, {
|
|
|
44
44
|
});
|
|
45
45
|
module.exports = __toCommonJS(components_exports);
|
|
46
46
|
|
|
47
|
-
// vue-script:/
|
|
47
|
+
// vue-script:/builds/codelits/langie-sdk/src/components/LanguageSelect.vue?type=script
|
|
48
48
|
var import_vue = require("vue");
|
|
49
49
|
var import_vue2 = require("vue");
|
|
50
50
|
var import_default = require("@vueform/multiselect/themes/default.css");
|
|
51
|
+
|
|
52
|
+
// #style-inject:#style-inject
|
|
53
|
+
function styleInject(css, { insertAt } = {}) {
|
|
54
|
+
if (!css || typeof document === "undefined") return;
|
|
55
|
+
const head = document.head || document.getElementsByTagName("head")[0];
|
|
56
|
+
const style = document.createElement("style");
|
|
57
|
+
style.type = "text/css";
|
|
58
|
+
if (insertAt === "top") {
|
|
59
|
+
if (head.firstChild) {
|
|
60
|
+
head.insertBefore(style, head.firstChild);
|
|
61
|
+
} else {
|
|
62
|
+
head.appendChild(style);
|
|
63
|
+
}
|
|
64
|
+
} else {
|
|
65
|
+
head.appendChild(style);
|
|
66
|
+
}
|
|
67
|
+
if (style.styleSheet) {
|
|
68
|
+
style.styleSheet.cssText = css;
|
|
69
|
+
} else {
|
|
70
|
+
style.appendChild(document.createTextNode(css));
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// src/styles/teleport.css
|
|
75
|
+
styleInject(".multiselect-single-label,\n.multiselect-option {\n display: flex;\n align-items: center;\n}\n.lang-flag {\n width: 20px;\n height: 15px;\n margin-right: 10px;\n border: 1px solid var(--langie-flag-border, #eee);\n border-radius: 2px;\n object-fit: cover;\n}\n.is-dark .lang-flag {\n border-color: var(--langie-flag-border-dark, #4b5563);\n}\n.native-name {\n color: var(--langie-text-secondary, #6b7280);\n margin-left: 0.5rem;\n font-size: 0.9em;\n}\n.is-dark .native-name {\n color: var(--langie-text-secondary-dark, #9ca3af);\n}\n.multiselect-no-results,\n.multiselect-no-options {\n padding: 0.5rem 0.875rem;\n color: var(--langie-text-secondary, #6b7280);\n}\n.is-dark .multiselect-no-results,\n.is-dark .multiselect-no-options {\n color: var(--langie-text-secondary-dark, #9ca3af);\n}\n");
|
|
76
|
+
|
|
77
|
+
// vue-script:/builds/codelits/langie-sdk/src/components/LanguageSelect.vue?type=script
|
|
51
78
|
var import_vue3 = require("vue");
|
|
52
79
|
var import_multiselect = __toESM(require("@vueform/multiselect"));
|
|
53
80
|
var import_fuse = __toESM(require("fuse.js"));
|
|
@@ -593,7 +620,7 @@ var THEME_COLORS = {
|
|
|
593
620
|
}
|
|
594
621
|
};
|
|
595
622
|
|
|
596
|
-
// vue-script:/
|
|
623
|
+
// vue-script:/builds/codelits/langie-sdk/src/components/LanguageSelect.vue?type=script
|
|
597
624
|
var _hoisted_1 = {
|
|
598
625
|
key: 0,
|
|
599
626
|
class: "multiselect-single-label"
|
|
@@ -633,35 +660,35 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
633
660
|
emits: ["update:modelValue"],
|
|
634
661
|
setup(__props, { emit: __emit }) {
|
|
635
662
|
(0, import_vue.useCssVars)((_ctx) => ({
|
|
636
|
-
"
|
|
637
|
-
"
|
|
638
|
-
"
|
|
639
|
-
"
|
|
640
|
-
"
|
|
641
|
-
"
|
|
642
|
-
"
|
|
643
|
-
"
|
|
644
|
-
"
|
|
645
|
-
"
|
|
646
|
-
"
|
|
647
|
-
"
|
|
648
|
-
"
|
|
649
|
-
"
|
|
650
|
-
"
|
|
651
|
-
"
|
|
652
|
-
"
|
|
653
|
-
"
|
|
654
|
-
"
|
|
655
|
-
"
|
|
656
|
-
"
|
|
657
|
-
"
|
|
658
|
-
"
|
|
659
|
-
"
|
|
660
|
-
"
|
|
661
|
-
"
|
|
662
|
-
"
|
|
663
|
-
"
|
|
664
|
-
"
|
|
663
|
+
"5b09cc17-THEME_COLORS.light.background": (0, import_vue2.unref)(THEME_COLORS).light.background,
|
|
664
|
+
"5b09cc17-THEME_COLORS.light.backgroundDisabled": (0, import_vue2.unref)(THEME_COLORS).light.backgroundDisabled,
|
|
665
|
+
"5b09cc17-THEME_COLORS.light.border": (0, import_vue2.unref)(THEME_COLORS).light.border,
|
|
666
|
+
"5b09cc17-THEME_COLORS.light.ring": (0, import_vue2.unref)(THEME_COLORS).light.ring,
|
|
667
|
+
"5b09cc17-THEME_COLORS.light.placeholder": (0, import_vue2.unref)(THEME_COLORS).light.placeholder,
|
|
668
|
+
"5b09cc17-THEME_COLORS.light.optionPointed": (0, import_vue2.unref)(THEME_COLORS).light.optionPointed,
|
|
669
|
+
"5b09cc17-THEME_COLORS.light.optionPointedText": (0, import_vue2.unref)(THEME_COLORS).light.optionPointedText,
|
|
670
|
+
"5b09cc17-THEME_COLORS.light.optionSelected": (0, import_vue2.unref)(THEME_COLORS).light.optionSelected,
|
|
671
|
+
"5b09cc17-THEME_COLORS.light.optionSelectedText": (0, import_vue2.unref)(THEME_COLORS).light.optionSelectedText,
|
|
672
|
+
"5b09cc17-THEME_COLORS.light.dropdownBackground": (0, import_vue2.unref)(THEME_COLORS).light.dropdownBackground,
|
|
673
|
+
"5b09cc17-THEME_COLORS.light.dropdownBorder": (0, import_vue2.unref)(THEME_COLORS).light.dropdownBorder,
|
|
674
|
+
"5b09cc17-THEME_COLORS.light.dropdownText": (0, import_vue2.unref)(THEME_COLORS).light.dropdownText,
|
|
675
|
+
"5b09cc17-THEME_COLORS.light.tagBackground": (0, import_vue2.unref)(THEME_COLORS).light.tagBackground,
|
|
676
|
+
"5b09cc17-THEME_COLORS.dark.background": (0, import_vue2.unref)(THEME_COLORS).dark.background,
|
|
677
|
+
"5b09cc17-THEME_COLORS.dark.backgroundDisabled": (0, import_vue2.unref)(THEME_COLORS).dark.backgroundDisabled,
|
|
678
|
+
"5b09cc17-THEME_COLORS.dark.border": (0, import_vue2.unref)(THEME_COLORS).dark.border,
|
|
679
|
+
"5b09cc17-THEME_COLORS.dark.placeholder": (0, import_vue2.unref)(THEME_COLORS).dark.placeholder,
|
|
680
|
+
"5b09cc17-THEME_COLORS.dark.ring": (0, import_vue2.unref)(THEME_COLORS).dark.ring,
|
|
681
|
+
"5b09cc17-THEME_COLORS.dark.optionPointed": (0, import_vue2.unref)(THEME_COLORS).dark.optionPointed,
|
|
682
|
+
"5b09cc17-THEME_COLORS.dark.optionPointedText": (0, import_vue2.unref)(THEME_COLORS).dark.optionPointedText,
|
|
683
|
+
"5b09cc17-THEME_COLORS.dark.optionSelected": (0, import_vue2.unref)(THEME_COLORS).dark.optionSelected,
|
|
684
|
+
"5b09cc17-THEME_COLORS.dark.optionSelectedText": (0, import_vue2.unref)(THEME_COLORS).dark.optionSelectedText,
|
|
685
|
+
"5b09cc17-THEME_COLORS.dark.dropdownBackground": (0, import_vue2.unref)(THEME_COLORS).dark.dropdownBackground,
|
|
686
|
+
"5b09cc17-THEME_COLORS.dark.dropdownBorder": (0, import_vue2.unref)(THEME_COLORS).dark.dropdownBorder,
|
|
687
|
+
"5b09cc17-THEME_COLORS.dark.dropdownText": (0, import_vue2.unref)(THEME_COLORS).dark.dropdownText,
|
|
688
|
+
"5b09cc17-COLORS.border.flag": (0, import_vue2.unref)(COLORS).border.flag,
|
|
689
|
+
"5b09cc17-COLORS.border.dark": (0, import_vue2.unref)(COLORS).border.dark,
|
|
690
|
+
"5b09cc17-COLORS.text.secondary": (0, import_vue2.unref)(COLORS).text.secondary,
|
|
691
|
+
"5b09cc17-COLORS.neutral.gray400": (0, import_vue2.unref)(COLORS).neutral.gray400
|
|
665
692
|
}));
|
|
666
693
|
const getFlagCode = (lang) => {
|
|
667
694
|
const flagCode = lang.flag_country || lang.code;
|
|
@@ -935,9 +962,9 @@ var LanguageSelect_default = /* @__PURE__ */ (0, import_vue.defineComponent)({
|
|
|
935
962
|
|
|
936
963
|
// src/components/LanguageSelect.vue
|
|
937
964
|
var LanguageSelect_default2 = LanguageSelect_default;
|
|
938
|
-
LanguageSelect_default.__scopeId = "data-v-
|
|
965
|
+
LanguageSelect_default.__scopeId = "data-v-5b09cc17";
|
|
939
966
|
|
|
940
|
-
// vue-script:/
|
|
967
|
+
// vue-script:/builds/codelits/langie-sdk/src/components/InterfaceLanguageSelect.vue?type=script
|
|
941
968
|
var import_vue6 = require("vue");
|
|
942
969
|
var import_vue7 = require("vue");
|
|
943
970
|
var import_vue8 = require("vue");
|
|
@@ -2040,7 +2067,7 @@ function useLangie(options = {}) {
|
|
|
2040
2067
|
return instance;
|
|
2041
2068
|
}
|
|
2042
2069
|
|
|
2043
|
-
// vue-script:/
|
|
2070
|
+
// vue-script:/builds/codelits/langie-sdk/src/components/InterfaceLanguageSelect.vue?type=script
|
|
2044
2071
|
var _hoisted_12 = { class: "interface-language-select-wrapper" };
|
|
2045
2072
|
var _hoisted_22 = { class: "loader-text" };
|
|
2046
2073
|
var InterfaceLanguageSelect_default = /* @__PURE__ */ (0, import_vue6.defineComponent)({
|
|
@@ -2223,9 +2250,9 @@ var InterfaceLanguageSelect_default = /* @__PURE__ */ (0, import_vue6.defineComp
|
|
|
2223
2250
|
|
|
2224
2251
|
// src/components/InterfaceLanguageSelect.vue
|
|
2225
2252
|
var InterfaceLanguageSelect_default2 = InterfaceLanguageSelect_default;
|
|
2226
|
-
InterfaceLanguageSelect_default.__scopeId = "data-v-
|
|
2253
|
+
InterfaceLanguageSelect_default.__scopeId = "data-v-258d337a";
|
|
2227
2254
|
|
|
2228
|
-
// vue-script:/
|
|
2255
|
+
// vue-script:/builds/codelits/langie-sdk/src/components/lt.vue?type=script
|
|
2229
2256
|
var import_vue9 = require("vue");
|
|
2230
2257
|
var import_vue10 = require("vue");
|
|
2231
2258
|
var import_vue11 = require("vue");
|
|
@@ -2317,7 +2344,7 @@ var lt_default = /* @__PURE__ */ (0, import_vue9.defineComponent)({
|
|
|
2317
2344
|
|
|
2318
2345
|
// src/components/lt.vue
|
|
2319
2346
|
var lt_default2 = lt_default;
|
|
2320
|
-
lt_default.__scopeId = "data-v-
|
|
2347
|
+
lt_default.__scopeId = "data-v-3341698b";
|
|
2321
2348
|
// Annotate the CommonJS export names for ESM import in node:
|
|
2322
2349
|
0 && (module.exports = {
|
|
2323
2350
|
InterfaceLanguageSelect,
|