@lokalise/harmony 1.28.0 → 1.29.0
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/harmony.cjs +35 -27
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +36 -28
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony100.cjs +12 -60
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +11 -59
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +5 -7
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +5 -7
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +40 -18
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +40 -18
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +59 -13
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +59 -13
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +7 -16
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +7 -16
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony106.cjs +1 -1
- package/dist/harmony106.mjs +1 -1
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony109.cjs +5 -5
- package/dist/harmony109.mjs +5 -5
- package/dist/harmony113.cjs +1 -1
- package/dist/harmony113.mjs +1 -1
- package/dist/harmony114.cjs +2 -2
- package/dist/harmony114.mjs +2 -2
- package/dist/harmony116.cjs +13 -7
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +13 -7
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +15 -57
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +15 -57
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +15 -59
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +15 -59
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +7 -18
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +6 -17
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +57 -13
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +57 -13
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +59 -14
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +59 -14
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +19 -17
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +18 -16
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +1 -1
- package/dist/harmony123.mjs +1 -1
- package/dist/harmony125.cjs +3 -3
- package/dist/harmony125.mjs +3 -3
- package/dist/harmony127.cjs +6 -46
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +6 -46
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +13 -13
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +12 -12
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +31 -5
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +31 -5
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +13 -11
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +13 -11
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +45 -31
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +45 -31
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +13 -15
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +12 -14
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +2 -2
- package/dist/harmony22.mjs +2 -2
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +2 -2
- package/dist/harmony26.mjs +2 -2
- package/dist/harmony27.cjs +2 -2
- package/dist/harmony27.mjs +2 -2
- package/dist/harmony28.cjs +2 -2
- package/dist/harmony28.mjs +2 -2
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony3.cjs +3 -3
- package/dist/harmony3.mjs +3 -3
- package/dist/harmony30.cjs +12 -3
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +12 -3
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +1 -1
- package/dist/harmony31.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony37.cjs +15 -7
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +15 -7
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +7 -11
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +9 -13
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +8 -8
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +8 -8
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony4.cjs +10 -10
- package/dist/harmony4.mjs +10 -10
- package/dist/harmony40.cjs +14 -12
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +14 -12
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +8 -8
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +9 -9
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +9 -9
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +10 -10
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +12 -14
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +12 -14
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +10 -10
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +10 -10
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +8 -8
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +8 -8
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +7 -7
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +7 -7
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +14 -12
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +14 -12
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +12 -14
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +12 -14
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +8 -8
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +8 -8
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony50.cjs +10 -7
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +12 -9
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +14 -56
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +14 -56
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +48 -72
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +47 -71
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +78 -4
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +78 -4
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +4 -21
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +4 -21
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +20 -34
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +20 -34
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +35 -120
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +34 -119
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +121 -20
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +120 -19
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +28 -25
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +28 -25
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +24 -6
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +24 -6
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +4 -4
- package/dist/harmony6.mjs +4 -4
- package/dist/harmony60.cjs +6 -48
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +6 -48
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +80 -20
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +80 -20
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +22 -16
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +22 -16
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +19 -16
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +18 -15
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +15 -18
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +15 -18
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +18 -61
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +18 -61
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +61 -6
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +61 -6
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +7 -10
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +6 -9
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +8 -17
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +7 -16
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +13 -18
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +13 -18
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +22 -4
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +22 -4
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +4 -31
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +5 -32
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +26 -26
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +27 -27
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +25 -12
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +25 -12
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +12 -24
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +13 -25
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +27 -55
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +29 -57
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +60 -10
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +59 -9
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +10 -9
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +9 -8
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +5 -26
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +8 -29
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +29 -3
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +29 -3
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +4 -7
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +3 -6
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +3 -6
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -6
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +6 -6
- package/dist/harmony82.mjs +6 -6
- package/dist/harmony83.cjs +9 -57
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +8 -56
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +51 -26
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +52 -27
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +33 -5
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +33 -5
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +6 -10
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +5 -9
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +6 -21
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +6 -21
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +21 -3
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +21 -3
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +6 -21
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +5 -20
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +21 -12
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +20 -11
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +13 -12
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +12 -11
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +12 -22
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +11 -21
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +21 -99
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +20 -81
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +19 -22
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +18 -21
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +13 -4
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +13 -4
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +92 -125
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +76 -126
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +18 -9
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +18 -9
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +6 -5
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +6 -5
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +129 -37
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +129 -37
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useDeleteScoreMutation.d.ts +17 -0
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +7 -9
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +24 -11
- package/dist/types/src/features/publicApi/node.d.ts +1 -0
- package/dist/types/src/features/publicApi/score.d.ts +72 -1
- package/dist/types/src/features/publicApi/team.d.ts +187 -108
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +16 -0
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +272 -115
- package/package.json +9 -9
package/dist/harmony117.mjs
CHANGED
@@ -1,60 +1,18 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
"tr",
|
16
|
-
{
|
17
|
-
className: clsx({
|
18
|
-
[styles.langRowCompleted]: languageProgressCompleted
|
19
|
-
}),
|
20
|
-
children: [
|
21
|
-
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsx(
|
22
|
-
Link,
|
23
|
-
{
|
24
|
-
href: getProjectUrl({ task, language }),
|
25
|
-
onClick: () => {
|
26
|
-
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
27
|
-
},
|
28
|
-
children: language.name
|
29
|
-
}
|
30
|
-
) }) }),
|
31
|
-
/* @__PURE__ */ jsx("td", { className: styles.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsx(
|
32
|
-
Link,
|
33
|
-
{
|
34
|
-
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
35
|
-
onClick: () => {
|
36
|
-
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
37
|
-
},
|
38
|
-
children: language.base_words_total - language.base_words_done
|
39
|
-
}
|
40
|
-
) }) }),
|
41
|
-
/* @__PURE__ */ jsxs("td", { children: [
|
42
|
-
progressValue,
|
43
|
-
"%"
|
44
|
-
] }),
|
45
|
-
/* @__PURE__ */ jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsx(TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsx(
|
46
|
-
"span",
|
47
|
-
{
|
48
|
-
className: `${styles.langStatus} flex-row items-center justify-start`,
|
49
|
-
"data-status": language.status,
|
50
|
-
children: getStatusText(language.status, progressValue)
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
]
|
54
|
-
}
|
55
|
-
);
|
56
|
-
};
|
1
|
+
import { __require as require_trimmedEndIndex } from "./harmony124.mjs";
|
2
|
+
var _baseTrim;
|
3
|
+
var hasRequired_baseTrim;
|
4
|
+
function require_baseTrim() {
|
5
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
6
|
+
hasRequired_baseTrim = 1;
|
7
|
+
var trimmedEndIndex = require_trimmedEndIndex();
|
8
|
+
var reTrimStart = /^\s+/;
|
9
|
+
function baseTrim(string) {
|
10
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
11
|
+
}
|
12
|
+
_baseTrim = baseTrim;
|
13
|
+
return _baseTrim;
|
14
|
+
}
|
57
15
|
export {
|
58
|
-
|
16
|
+
require_baseTrim as __require
|
59
17
|
};
|
60
18
|
//# sourceMappingURL=harmony117.mjs.map
|
package/dist/harmony117.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony117.mjs","sources":["../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,kBAAkBA,wBAA6B;AAGnD,MAAI,cAAc;AASlB,WAAS,SAAS,QAAQ;AACxB,WAAO,SACH,OAAO,MAAM,GAAG,gBAAgB,MAAM,IAAI,CAAC,EAAE,QAAQ,aAAa,EAAE,IACpE;AAAA,EACN;AAEA,cAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony118.cjs
CHANGED
@@ -1,63 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
case types.SidebarTaskLanguageStatuses.NotStarted:
|
15
|
-
return "Not started";
|
16
|
-
default:
|
17
|
-
return "-";
|
3
|
+
const _baseGetTag = require("./harmony125.cjs");
|
4
|
+
const isObjectLike = require("./harmony126.cjs");
|
5
|
+
var isSymbol_1;
|
6
|
+
var hasRequiredIsSymbol;
|
7
|
+
function requireIsSymbol() {
|
8
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
9
|
+
hasRequiredIsSymbol = 1;
|
10
|
+
var baseGetTag = _baseGetTag.__require(), isObjectLike$1 = isObjectLike.__require();
|
11
|
+
var symbolTag = "[object Symbol]";
|
12
|
+
function isSymbol(value) {
|
13
|
+
return typeof value == "symbol" || isObjectLike$1(value) && baseGetTag(value) == symbolTag;
|
18
14
|
}
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
return types.SidebarTaskLanguageStatuses.InProgress;
|
24
|
-
}
|
25
|
-
return language.status;
|
26
|
-
};
|
27
|
-
const tagColor = {
|
28
|
-
[types.SidebarTaskTypeOptions.translation]: "#0891B2",
|
29
|
-
[types.SidebarTaskTypeOptions.review]: "#16922D",
|
30
|
-
[types.SidebarTaskTypeOptions.lqa_by_ai]: "#8B5CF6",
|
31
|
-
[types.SidebarTaskTypeOptions.automatic_translation]: "#60A5FA"
|
32
|
-
};
|
33
|
-
const getTaskLanguages = (langs) => {
|
34
|
-
const statusSortOrder = [
|
35
|
-
types.SidebarTaskLanguageStatuses.InProgress,
|
36
|
-
types.SidebarTaskLanguageStatuses.Created,
|
37
|
-
types.SidebarTaskLanguageStatuses.Completed
|
38
|
-
];
|
39
|
-
return langs.filter((language) => language.status !== "queued").map((lang) => ({ ...lang, status: resolveStatus(lang) })).sort((a, b) => {
|
40
|
-
if (a.status === types.SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {
|
41
|
-
return -1;
|
42
|
-
}
|
43
|
-
if (b.status === types.SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {
|
44
|
-
return 1;
|
45
|
-
}
|
46
|
-
if (a.status === b.status) {
|
47
|
-
return a.name < b.name ? 1 : -1;
|
48
|
-
}
|
49
|
-
return statusSortOrder.indexOf(a.status) - statusSortOrder.indexOf(b.status);
|
50
|
-
});
|
51
|
-
};
|
52
|
-
const isInProgressOrCreated = (status) => {
|
53
|
-
return [types.SidebarTaskStatuses.InProgress, types.SidebarTaskStatuses.Created].includes(status);
|
54
|
-
};
|
55
|
-
const isLanguageProgressCompleted = (task, language) => {
|
56
|
-
return isInProgressOrCreated(task.status) && isInProgressOrCreated(language.status) && (language.progress ?? 0) >= 100;
|
57
|
-
};
|
58
|
-
exports.getStatusText = getStatusText;
|
59
|
-
exports.getTaskLanguages = getTaskLanguages;
|
60
|
-
exports.isLanguageProgressCompleted = isLanguageProgressCompleted;
|
61
|
-
exports.resolveStatus = resolveStatus;
|
62
|
-
exports.tagColor = tagColor;
|
15
|
+
isSymbol_1 = isSymbol;
|
16
|
+
return isSymbol_1;
|
17
|
+
}
|
18
|
+
exports.__require = requireIsSymbol;
|
63
19
|
//# sourceMappingURL=harmony118.cjs.map
|
package/dist/harmony118.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony118.cjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","isObjectLike","require$$1"],"mappings":";;;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB,GACrCC,iBAAeC,aAAAA,UAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpBD,eAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony118.mjs
CHANGED
@@ -1,63 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
case SidebarTaskLanguageStatuses.NotStarted:
|
13
|
-
return "Not started";
|
14
|
-
default:
|
15
|
-
return "-";
|
1
|
+
import { __require as require_baseGetTag } from "./harmony125.mjs";
|
2
|
+
import { __require as requireIsObjectLike } from "./harmony126.mjs";
|
3
|
+
var isSymbol_1;
|
4
|
+
var hasRequiredIsSymbol;
|
5
|
+
function requireIsSymbol() {
|
6
|
+
if (hasRequiredIsSymbol) return isSymbol_1;
|
7
|
+
hasRequiredIsSymbol = 1;
|
8
|
+
var baseGetTag = require_baseGetTag(), isObjectLike = requireIsObjectLike();
|
9
|
+
var symbolTag = "[object Symbol]";
|
10
|
+
function isSymbol(value) {
|
11
|
+
return typeof value == "symbol" || isObjectLike(value) && baseGetTag(value) == symbolTag;
|
16
12
|
}
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
if (language.status === SidebarTaskLanguageStatuses.Created && progress > 0) {
|
21
|
-
return SidebarTaskLanguageStatuses.InProgress;
|
22
|
-
}
|
23
|
-
return language.status;
|
24
|
-
};
|
25
|
-
const tagColor = {
|
26
|
-
[SidebarTaskTypeOptions.translation]: "#0891B2",
|
27
|
-
[SidebarTaskTypeOptions.review]: "#16922D",
|
28
|
-
[SidebarTaskTypeOptions.lqa_by_ai]: "#8B5CF6",
|
29
|
-
[SidebarTaskTypeOptions.automatic_translation]: "#60A5FA"
|
30
|
-
};
|
31
|
-
const getTaskLanguages = (langs) => {
|
32
|
-
const statusSortOrder = [
|
33
|
-
SidebarTaskLanguageStatuses.InProgress,
|
34
|
-
SidebarTaskLanguageStatuses.Created,
|
35
|
-
SidebarTaskLanguageStatuses.Completed
|
36
|
-
];
|
37
|
-
return langs.filter((language) => language.status !== "queued").map((lang) => ({ ...lang, status: resolveStatus(lang) })).sort((a, b) => {
|
38
|
-
if (a.status === SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {
|
39
|
-
return -1;
|
40
|
-
}
|
41
|
-
if (b.status === SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {
|
42
|
-
return 1;
|
43
|
-
}
|
44
|
-
if (a.status === b.status) {
|
45
|
-
return a.name < b.name ? 1 : -1;
|
46
|
-
}
|
47
|
-
return statusSortOrder.indexOf(a.status) - statusSortOrder.indexOf(b.status);
|
48
|
-
});
|
49
|
-
};
|
50
|
-
const isInProgressOrCreated = (status) => {
|
51
|
-
return [SidebarTaskStatuses.InProgress, SidebarTaskStatuses.Created].includes(status);
|
52
|
-
};
|
53
|
-
const isLanguageProgressCompleted = (task, language) => {
|
54
|
-
return isInProgressOrCreated(task.status) && isInProgressOrCreated(language.status) && (language.progress ?? 0) >= 100;
|
55
|
-
};
|
13
|
+
isSymbol_1 = isSymbol;
|
14
|
+
return isSymbol_1;
|
15
|
+
}
|
56
16
|
export {
|
57
|
-
|
58
|
-
getTaskLanguages,
|
59
|
-
isLanguageProgressCompleted,
|
60
|
-
resolveStatus,
|
61
|
-
tagColor
|
17
|
+
requireIsSymbol as __require
|
62
18
|
};
|
63
19
|
//# sourceMappingURL=harmony118.mjs.map
|
package/dist/harmony118.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony118.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony118.mjs","sources":["../node_modules/lodash/isSymbol.js"],"sourcesContent":["var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,aAAaA,mBAAwB,GACrC,eAAeC,oBAAyB;AAG5C,MAAI,YAAY;AAmBhB,WAAS,SAAS,OAAO;AACvB,WAAO,OAAO,SAAS,YACpB,aAAa,KAAK,KAAK,WAAW,KAAK,KAAK;AAAA,EACjD;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony119.cjs
CHANGED
@@ -1,21 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
|
8
|
-
const styles = {
|
9
|
-
taskContainer,
|
10
|
-
taskTitle,
|
11
|
-
taskDescription,
|
12
|
-
languagesTable,
|
13
|
-
metadata
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const splitFileName = (fileName) => {
|
4
|
+
const lastDotIndex = fileName.lastIndexOf(".");
|
5
|
+
const name = fileName.slice(0, lastDotIndex);
|
6
|
+
const extension = fileName.slice(lastDotIndex + 1);
|
7
|
+
return { name, extension };
|
14
8
|
};
|
15
|
-
exports.
|
16
|
-
exports.languagesTable = languagesTable;
|
17
|
-
exports.metadata = metadata;
|
18
|
-
exports.taskContainer = taskContainer;
|
19
|
-
exports.taskDescription = taskDescription;
|
20
|
-
exports.taskTitle = taskTitle;
|
9
|
+
exports.splitFileName = splitFileName;
|
21
10
|
//# sourceMappingURL=harmony119.cjs.map
|
package/dist/harmony119.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony119.cjs","sources":["../src/components/Sidebar/utils/index.ts"],"sourcesContent":["export const splitFileName = (fileName: string) => {\n\tconst lastDotIndex = fileName.lastIndexOf('.')\n\tconst name = fileName.slice(0, lastDotIndex)\n\tconst extension = fileName.slice(lastDotIndex + 1)\n\n\treturn { name, extension }\n}\n"],"names":[],"mappings":";;AAAa,MAAA,gBAAgB,CAAC,aAAqB;AAC5C,QAAA,eAAe,SAAS,YAAY,GAAG;AAC7C,QAAM,OAAO,SAAS,MAAM,GAAG,YAAY;AAC3C,QAAM,YAAY,SAAS,MAAM,eAAe,CAAC;AAE1C,SAAA,EAAE,MAAM,UAAU;AAC1B;;"}
|
package/dist/harmony119.mjs
CHANGED
@@ -1,21 +1,10 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
const styles = {
|
7
|
-
taskContainer,
|
8
|
-
taskTitle,
|
9
|
-
taskDescription,
|
10
|
-
languagesTable,
|
11
|
-
metadata
|
1
|
+
const splitFileName = (fileName) => {
|
2
|
+
const lastDotIndex = fileName.lastIndexOf(".");
|
3
|
+
const name = fileName.slice(0, lastDotIndex);
|
4
|
+
const extension = fileName.slice(lastDotIndex + 1);
|
5
|
+
return { name, extension };
|
12
6
|
};
|
13
7
|
export {
|
14
|
-
|
15
|
-
languagesTable,
|
16
|
-
metadata,
|
17
|
-
taskContainer,
|
18
|
-
taskDescription,
|
19
|
-
taskTitle
|
8
|
+
splitFileName
|
20
9
|
};
|
21
10
|
//# sourceMappingURL=harmony119.mjs.map
|
package/dist/harmony119.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony119.mjs","sources":["../src/components/Sidebar/utils/index.ts"],"sourcesContent":["export const splitFileName = (fileName: string) => {\n\tconst lastDotIndex = fileName.lastIndexOf('.')\n\tconst name = fileName.slice(0, lastDotIndex)\n\tconst extension = fileName.slice(lastDotIndex + 1)\n\n\treturn { name, extension }\n}\n"],"names":[],"mappings":"AAAa,MAAA,gBAAgB,CAAC,aAAqB;AAC5C,QAAA,eAAe,SAAS,YAAY,GAAG;AAC7C,QAAM,OAAO,SAAS,MAAM,GAAG,YAAY;AAC3C,QAAM,YAAY,SAAS,MAAM,eAAe,CAAC;AAE1C,SAAA,EAAE,MAAM,UAAU;AAC1B;"}
|
package/dist/harmony120.cjs
CHANGED
@@ -1,16 +1,60 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const content = require("./harmony121.cjs");
|
6
|
+
const types = require("./harmony2.cjs");
|
7
|
+
const clsx = require("./harmony64.cjs");
|
8
|
+
const TaskLanguageCompleted = require("./harmony131.cjs");
|
9
|
+
const TasksContext = require("./harmony101.cjs");
|
10
|
+
const TaskLanguage_module = require("./harmony132.cjs");
|
11
|
+
const TaskLanguage = ({ language, task }) => {
|
12
|
+
const { getProjectUrl, langNameOnClick, langProgressOnClick } = TasksContext.useTasks();
|
13
|
+
const progressValue = language.progress ?? 0;
|
14
|
+
const isLanguageCompleted = language.status === types.SidebarTaskLanguageStatuses.Completed;
|
15
|
+
const languageProgressCompleted = content.isLanguageProgressCompleted(task, language);
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
17
|
+
"tr",
|
18
|
+
{
|
19
|
+
className: clsx.clsx({
|
20
|
+
[TaskLanguage_module.default.langRowCompleted]: languageProgressCompleted
|
21
|
+
}),
|
22
|
+
children: [
|
23
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsxRuntime.jsx(
|
24
|
+
louis.Link,
|
25
|
+
{
|
26
|
+
href: getProjectUrl({ task, language }),
|
27
|
+
onClick: () => {
|
28
|
+
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
29
|
+
},
|
30
|
+
children: language.name
|
31
|
+
}
|
32
|
+
) }) }),
|
33
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { className: TaskLanguage_module.default.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsxRuntime.jsx(
|
34
|
+
louis.Link,
|
35
|
+
{
|
36
|
+
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
37
|
+
onClick: () => {
|
38
|
+
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
39
|
+
},
|
40
|
+
children: language.base_words_total - language.base_words_done
|
41
|
+
}
|
42
|
+
) }) }),
|
43
|
+
/* @__PURE__ */ jsxRuntime.jsxs("td", { children: [
|
44
|
+
progressValue,
|
45
|
+
"%"
|
46
|
+
] }),
|
47
|
+
/* @__PURE__ */ jsxRuntime.jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsxRuntime.jsx(TaskLanguageCompleted.TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsxRuntime.jsx(
|
48
|
+
"span",
|
49
|
+
{
|
50
|
+
className: `${TaskLanguage_module.default.langStatus} flex-row items-center justify-start`,
|
51
|
+
"data-status": language.status,
|
52
|
+
children: content.getStatusText(language.status, progressValue)
|
53
|
+
}
|
54
|
+
) })
|
55
|
+
]
|
56
|
+
}
|
57
|
+
);
|
58
|
+
};
|
59
|
+
exports.TaskLanguage = TaskLanguage;
|
16
60
|
//# sourceMappingURL=harmony120.cjs.map
|
package/dist/harmony120.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony120.cjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguage/TaskLanguage.tsx"],"sourcesContent":["import { Link, Tooltip } from '@lokalise/louis'\nimport { getStatusText, isLanguageProgressCompleted } from '../utils/content'\n\nimport { type SidebarTask, type SidebarTaskLanguage, SidebarTaskLanguageStatuses } from '../types'\n\nimport clsx from 'clsx'\nimport { TaskLanguageCompleted } from '../TaskLanguageCompleted/TaskLanguageCompleted'\nimport { useTasks } from '../TasksContext'\nimport styles from './TaskLanguage.module.css'\n\nexport type TaskLanguageProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguage = ({ language, task }: TaskLanguageProps) => {\n\tconst { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks()\n\n\tconst progressValue = language.progress ?? 0\n\n\tconst isLanguageCompleted = language.status === SidebarTaskLanguageStatuses.Completed\n\n\tconst languageProgressCompleted = isLanguageProgressCompleted(task, language)\n\n\treturn (\n\t\t<tr\n\t\t\tclassName={clsx({\n\t\t\t\t[styles.langRowCompleted]: languageProgressCompleted,\n\t\t\t})}\n\t\t>\n\t\t\t<td>\n\t\t\t\t<Tooltip tooltip=\"Open in bilingual view\">\n\t\t\t\t\t<Link\n\t\t\t\t\t\thref={getProjectUrl({ task, language })}\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tlangNameOnClick?.({ task, language })\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{language.name}\n\t\t\t\t\t</Link>\n\t\t\t\t</Tooltip>\n\t\t\t</td>\n\t\t\t<td className={styles.langCellSecondary}>\n\t\t\t\t{languageProgressCompleted || isLanguageCompleted ? (\n\t\t\t\t\t'0'\n\t\t\t\t) : (\n\t\t\t\t\t<Tooltip tooltip=\"Open uncompleted items\">\n\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\thref={getProjectUrl({ task, language, taskUncompleted: true })}\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tlangProgressOnClick?.({ task, language })\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{language.base_words_total - language.base_words_done}\n\t\t\t\t\t\t</Link>\n\t\t\t\t\t</Tooltip>\n\t\t\t\t)}\n\t\t\t</td>\n\t\t\t<td>{progressValue}%</td>\n\t\t\t<td>\n\t\t\t\t{languageProgressCompleted ? (\n\t\t\t\t\t<TaskLanguageCompleted task={task} language={language} />\n\t\t\t\t) : (\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={`${styles.langStatus} flex-row items-center justify-start`}\n\t\t\t\t\t\tdata-status={language.status}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getStatusText(language.status, progressValue)}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</td>\n\t\t</tr>\n\t)\n}\n"],"names":["useTasks","SidebarTaskLanguageStatuses","isLanguageProgressCompleted","jsxs","clsx","styles","jsx","Tooltip","Link","TaskLanguageCompleted","getStatusText"],"mappings":";;;;;;;;;;AAeO,MAAM,eAAe,CAAC,EAAE,UAAU,WAA8B;AACtE,QAAM,EAAE,eAAe,iBAAiB,oBAAA,IAAwBA,aAAAA,SAAS;AAEnE,QAAA,gBAAgB,SAAS,YAAY;AAErC,QAAA,sBAAsB,SAAS,WAAWC,MAA4B,4BAAA;AAEtE,QAAA,4BAA4BC,QAAAA,4BAA4B,MAAM,QAAQ;AAG3E,SAAAC,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAWC,KAAAA,KAAK;AAAA,QACf,CAACC,oBAAAA,QAAO,gBAAgB,GAAG;AAAA,MAAA,CAC3B;AAAA,MAED,UAAA;AAAA,QAAAC,+BAAC,MACA,EAAA,UAAAA,2BAAA,IAACC,MAAQ,SAAA,EAAA,SAAQ,0BAChB,UAAAD,2BAAA;AAAA,UAACE,MAAA;AAAA,UAAA;AAAA,YACA,MAAM,cAAc,EAAE,MAAM,UAAU;AAAA,YACtC,SAAS,MAAM;AACI,iEAAA,EAAE,MAAM;YAC3B;AAAA,YAEC,UAAS,SAAA;AAAA,UAAA;AAAA,WAEZ,EACD,CAAA;AAAA,QACAF,2BAAA,IAAC,MAAG,EAAA,WAAWD,oBAAAA,QAAO,mBACpB,UAA6B,6BAAA,sBAC7B,MAEAC,2BAAA,IAACC,MAAQ,SAAA,EAAA,SAAQ,0BAChB,UAAAD,2BAAA;AAAA,UAACE,MAAA;AAAA,UAAA;AAAA,YACA,MAAM,cAAc,EAAE,MAAM,UAAU,iBAAiB,MAAM;AAAA,YAC7D,SAAS,MAAM;AACQ,yEAAA,EAAE,MAAM;YAC/B;AAAA,YAEC,UAAA,SAAS,mBAAmB,SAAS;AAAA,UAAA;AAAA,WAExC,EAEF,CAAA;AAAA,wCACC,MAAI,EAAA,UAAA;AAAA,UAAA;AAAA,UAAc;AAAA,QAAA,GAAC;AAAA,uCACnB,MACC,EAAA,UAAA,2DACCC,sBAAsB,uBAAA,EAAA,MAAY,SAAoB,CAAA,IAEvDH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAW,GAAGD,4BAAO,UAAU;AAAA,YAC/B,eAAa,SAAS;AAAA,YAErB,UAAAK,QAAA,cAAc,SAAS,QAAQ,aAAa;AAAA,UAAA;AAAA,QAAA,EAGhD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony120.mjs
CHANGED
@@ -1,16 +1,60 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { Tooltip, Link } from "@lokalise/louis";
|
3
|
+
import { isLanguageProgressCompleted, getStatusText } from "./harmony121.mjs";
|
4
|
+
import { SidebarTaskLanguageStatuses } from "./harmony2.mjs";
|
5
|
+
import { clsx } from "./harmony64.mjs";
|
6
|
+
import { TaskLanguageCompleted } from "./harmony131.mjs";
|
7
|
+
import { useTasks } from "./harmony101.mjs";
|
8
|
+
import styles from "./harmony132.mjs";
|
9
|
+
const TaskLanguage = ({ language, task }) => {
|
10
|
+
const { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks();
|
11
|
+
const progressValue = language.progress ?? 0;
|
12
|
+
const isLanguageCompleted = language.status === SidebarTaskLanguageStatuses.Completed;
|
13
|
+
const languageProgressCompleted = isLanguageProgressCompleted(task, language);
|
14
|
+
return /* @__PURE__ */ jsxs(
|
15
|
+
"tr",
|
16
|
+
{
|
17
|
+
className: clsx({
|
18
|
+
[styles.langRowCompleted]: languageProgressCompleted
|
19
|
+
}),
|
20
|
+
children: [
|
21
|
+
/* @__PURE__ */ jsx("td", { children: /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open in bilingual view", children: /* @__PURE__ */ jsx(
|
22
|
+
Link,
|
23
|
+
{
|
24
|
+
href: getProjectUrl({ task, language }),
|
25
|
+
onClick: () => {
|
26
|
+
langNameOnClick == null ? void 0 : langNameOnClick({ task, language });
|
27
|
+
},
|
28
|
+
children: language.name
|
29
|
+
}
|
30
|
+
) }) }),
|
31
|
+
/* @__PURE__ */ jsx("td", { className: styles.langCellSecondary, children: languageProgressCompleted || isLanguageCompleted ? "0" : /* @__PURE__ */ jsx(Tooltip, { tooltip: "Open uncompleted items", children: /* @__PURE__ */ jsx(
|
32
|
+
Link,
|
33
|
+
{
|
34
|
+
href: getProjectUrl({ task, language, taskUncompleted: true }),
|
35
|
+
onClick: () => {
|
36
|
+
langProgressOnClick == null ? void 0 : langProgressOnClick({ task, language });
|
37
|
+
},
|
38
|
+
children: language.base_words_total - language.base_words_done
|
39
|
+
}
|
40
|
+
) }) }),
|
41
|
+
/* @__PURE__ */ jsxs("td", { children: [
|
42
|
+
progressValue,
|
43
|
+
"%"
|
44
|
+
] }),
|
45
|
+
/* @__PURE__ */ jsx("td", { children: languageProgressCompleted ? /* @__PURE__ */ jsx(TaskLanguageCompleted, { task, language }) : /* @__PURE__ */ jsx(
|
46
|
+
"span",
|
47
|
+
{
|
48
|
+
className: `${styles.langStatus} flex-row items-center justify-start`,
|
49
|
+
"data-status": language.status,
|
50
|
+
children: getStatusText(language.status, progressValue)
|
51
|
+
}
|
52
|
+
) })
|
53
|
+
]
|
54
|
+
}
|
55
|
+
);
|
56
|
+
};
|
13
57
|
export {
|
14
|
-
|
58
|
+
TaskLanguage
|
15
59
|
};
|
16
60
|
//# sourceMappingURL=harmony120.mjs.map
|
package/dist/harmony120.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony120.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/TaskLanguage/TaskLanguage.tsx"],"sourcesContent":["import { Link, Tooltip } from '@lokalise/louis'\nimport { getStatusText, isLanguageProgressCompleted } from '../utils/content'\n\nimport { type SidebarTask, type SidebarTaskLanguage, SidebarTaskLanguageStatuses } from '../types'\n\nimport clsx from 'clsx'\nimport { TaskLanguageCompleted } from '../TaskLanguageCompleted/TaskLanguageCompleted'\nimport { useTasks } from '../TasksContext'\nimport styles from './TaskLanguage.module.css'\n\nexport type TaskLanguageProps = {\n\ttask: SidebarTask\n\tlanguage: SidebarTaskLanguage\n}\n\nexport const TaskLanguage = ({ language, task }: TaskLanguageProps) => {\n\tconst { getProjectUrl, langNameOnClick, langProgressOnClick } = useTasks()\n\n\tconst progressValue = language.progress ?? 0\n\n\tconst isLanguageCompleted = language.status === SidebarTaskLanguageStatuses.Completed\n\n\tconst languageProgressCompleted = isLanguageProgressCompleted(task, language)\n\n\treturn (\n\t\t<tr\n\t\t\tclassName={clsx({\n\t\t\t\t[styles.langRowCompleted]: languageProgressCompleted,\n\t\t\t})}\n\t\t>\n\t\t\t<td>\n\t\t\t\t<Tooltip tooltip=\"Open in bilingual view\">\n\t\t\t\t\t<Link\n\t\t\t\t\t\thref={getProjectUrl({ task, language })}\n\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\tlangNameOnClick?.({ task, language })\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t{language.name}\n\t\t\t\t\t</Link>\n\t\t\t\t</Tooltip>\n\t\t\t</td>\n\t\t\t<td className={styles.langCellSecondary}>\n\t\t\t\t{languageProgressCompleted || isLanguageCompleted ? (\n\t\t\t\t\t'0'\n\t\t\t\t) : (\n\t\t\t\t\t<Tooltip tooltip=\"Open uncompleted items\">\n\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\thref={getProjectUrl({ task, language, taskUncompleted: true })}\n\t\t\t\t\t\t\tonClick={() => {\n\t\t\t\t\t\t\t\tlangProgressOnClick?.({ task, language })\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{language.base_words_total - language.base_words_done}\n\t\t\t\t\t\t</Link>\n\t\t\t\t\t</Tooltip>\n\t\t\t\t)}\n\t\t\t</td>\n\t\t\t<td>{progressValue}%</td>\n\t\t\t<td>\n\t\t\t\t{languageProgressCompleted ? (\n\t\t\t\t\t<TaskLanguageCompleted task={task} language={language} />\n\t\t\t\t) : (\n\t\t\t\t\t<span\n\t\t\t\t\t\tclassName={`${styles.langStatus} flex-row items-center justify-start`}\n\t\t\t\t\t\tdata-status={language.status}\n\t\t\t\t\t>\n\t\t\t\t\t\t{getStatusText(language.status, progressValue)}\n\t\t\t\t\t</span>\n\t\t\t\t)}\n\t\t\t</td>\n\t\t</tr>\n\t)\n}\n"],"names":[],"mappings":";;;;;;;;AAeO,MAAM,eAAe,CAAC,EAAE,UAAU,WAA8B;AACtE,QAAM,EAAE,eAAe,iBAAiB,oBAAA,IAAwB,SAAS;AAEnE,QAAA,gBAAgB,SAAS,YAAY;AAErC,QAAA,sBAAsB,SAAS,WAAW,4BAA4B;AAEtE,QAAA,4BAA4B,4BAA4B,MAAM,QAAQ;AAG3E,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAW,KAAK;AAAA,QACf,CAAC,OAAO,gBAAgB,GAAG;AAAA,MAAA,CAC3B;AAAA,MAED,UAAA;AAAA,QAAA,oBAAC,MACA,EAAA,UAAA,oBAAC,SAAQ,EAAA,SAAQ,0BAChB,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,MAAM,cAAc,EAAE,MAAM,UAAU;AAAA,YACtC,SAAS,MAAM;AACI,iEAAA,EAAE,MAAM;YAC3B;AAAA,YAEC,UAAS,SAAA;AAAA,UAAA;AAAA,WAEZ,EACD,CAAA;AAAA,QACA,oBAAC,MAAG,EAAA,WAAW,OAAO,mBACpB,UAA6B,6BAAA,sBAC7B,MAEA,oBAAC,SAAQ,EAAA,SAAQ,0BAChB,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,MAAM,cAAc,EAAE,MAAM,UAAU,iBAAiB,MAAM;AAAA,YAC7D,SAAS,MAAM;AACQ,yEAAA,EAAE,MAAM;YAC/B;AAAA,YAEC,UAAA,SAAS,mBAAmB,SAAS;AAAA,UAAA;AAAA,WAExC,EAEF,CAAA;AAAA,6BACC,MAAI,EAAA,UAAA;AAAA,UAAA;AAAA,UAAc;AAAA,QAAA,GAAC;AAAA,4BACnB,MACC,EAAA,UAAA,gDACC,uBAAsB,EAAA,MAAY,SAAoB,CAAA,IAEvD;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAW,GAAG,OAAO,UAAU;AAAA,YAC/B,eAAa,SAAS;AAAA,YAErB,UAAA,cAAc,SAAS,QAAQ,aAAa;AAAA,UAAA;AAAA,QAAA,EAGhD,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACD;AAEF;"}
|