@lokalise/harmony 1.27.3-exp-fixTeamsTypes.5 → 1.27.3-exp-fixTeamsTypes.6
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/harmony100.cjs +5 -132
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +5 -132
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +40 -12
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +39 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +59 -4
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +60 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +6 -39
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +6 -39
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -60
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +5 -59
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +6 -8
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +5 -7
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +5 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -6
- package/dist/harmony107.cjs +61 -95
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +61 -95
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +88 -13
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +88 -13
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +19 -15
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +18 -14
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +94 -34
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +94 -34
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +11 -26
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +11 -26
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +12 -60
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +12 -60
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +36 -88
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +36 -88
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +29 -19
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +28 -18
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +7 -13
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +7 -13
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +57 -15
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +57 -15
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +59 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +59 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +18 -7
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +17 -6
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +13 -57
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +13 -57
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +14 -59
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +14 -59
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +17 -19
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +16 -18
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +1 -1
- package/dist/harmony122.mjs +1 -1
- package/dist/harmony124.cjs +3 -3
- package/dist/harmony124.mjs +3 -3
- package/dist/harmony126.cjs +46 -6
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +46 -6
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +12 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +5 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +5 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +31 -45
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -45
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +15 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -12
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony30.cjs +1 -1
- package/dist/harmony30.mjs +1 -1
- package/dist/harmony71.cjs +1 -1
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +1 -1
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony74.cjs +6 -6
- package/dist/harmony74.mjs +6 -6
- package/dist/harmony82.cjs +3 -3
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +3 -3
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +1 -1
- package/dist/harmony83.mjs +1 -1
- package/dist/harmony88.cjs +1 -1
- package/dist/harmony88.mjs +1 -1
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- package/dist/harmony93.cjs +19 -22
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +18 -21
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +13 -4
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -4
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +16 -18
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +16 -18
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +21 -14
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +20 -13
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -16
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -16
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +133 -6
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +132 -5
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +12 -5
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +12 -5
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/types.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/team.d.ts +8 -8
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +8 -8
- package/package.json +1 -1
package/dist/harmony117.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony117.mjs","sources":["../src/components/Sidebar/Widgets/Tasks/utils/content.ts"],"sourcesContent":["import {\n\ttype SidebarTask,\n\ttype SidebarTaskLanguage,\n\ttype SidebarTaskLanguageStatus,\n\tSidebarTaskLanguageStatuses,\n\ttype SidebarTaskStatus,\n\tSidebarTaskStatuses,\n\ttype SidebarTaskTypeOption,\n\tSidebarTaskTypeOptions,\n} from '../types'\n\nexport const getStatusText = (status: SidebarTaskLanguageStatus, progressValue: number) => {\n\tswitch (status) {\n\t\tcase SidebarTaskLanguageStatuses.Completed:\n\t\t\treturn progressValue < 100 ? 'Closed' : 'Completed'\n\t\tcase SidebarTaskLanguageStatuses.Created:\n\t\t\t// For some reason project task lang status is not correctly updated to \"in progress\". So instead\n\t\t\t// we need to rely on `created` status and progress value is not 0.\n\t\t\treturn progressValue > 0 ? 'In progress' : 'Not started'\n\t\tcase SidebarTaskLanguageStatuses.InProgress:\n\t\t\treturn 'In progress'\n\t\tcase SidebarTaskLanguageStatuses.Queued:\n\t\t\treturn 'Queued'\n\t\tcase SidebarTaskLanguageStatuses.NotStarted:\n\t\t\treturn 'Not started'\n\t\tdefault:\n\t\t\treturn '-'\n\t}\n}\n\nexport const resolveStatus = (language: SidebarTaskLanguage): SidebarTaskLanguageStatus => {\n\tconst progress = language.progress ?? 0\n\n\tif (language.status === SidebarTaskLanguageStatuses.Created && progress > 0) {\n\t\t// For some reason project task lang status is not correctly updated to \"in progress\". So instead\n\t\t// we need to rely on `created` status and progress value is not 0.\n\t\treturn SidebarTaskLanguageStatuses.InProgress\n\t}\n\n\treturn language.status\n}\n\n/**\n * TODO - these should be taken from louis\n */\nexport const tagColor: Record<SidebarTaskTypeOption, string> = {\n\t[SidebarTaskTypeOptions.translation]: '#0891B2',\n\t[SidebarTaskTypeOptions.review]: '#16922D',\n\t[SidebarTaskTypeOptions.lqa_by_ai]: '#8B5CF6',\n\t[SidebarTaskTypeOptions.automatic_translation]: '#60A5FA',\n}\n\nexport const getTaskLanguages = (langs: SidebarTaskLanguage[]) => {\n\tconst statusSortOrder: SidebarTaskLanguageStatus[] = [\n\t\tSidebarTaskLanguageStatuses.InProgress,\n\t\tSidebarTaskLanguageStatuses.Created,\n\t\tSidebarTaskLanguageStatuses.Completed,\n\t]\n\n\treturn langs\n\t\t.filter((language) => language.status !== 'queued')\n\t\t.map((lang) => ({ ...lang, status: resolveStatus(lang) }))\n\t\t.sort((a, b) => {\n\t\t\tif (a.status === SidebarTaskLanguageStatuses.InProgress && a.progress === 100) {\n\t\t\t\treturn -1\n\t\t\t}\n\n\t\t\tif (b.status === SidebarTaskLanguageStatuses.InProgress && b.progress === 100) {\n\t\t\t\treturn 1\n\t\t\t}\n\n\t\t\tif (a.status === b.status) {\n\t\t\t\t// Order by lang id\n\t\t\t\treturn a.name < b.name ? 1 : -1\n\t\t\t}\n\n\t\t\t// The index of array will serve as sorting order so if we get `in_progress` for \"a\" and `created`\n\t\t\t// for b, they will have `0` and `1` indices. So `0 - 1` will result in `-1` which means\n\t\t\t// \"a\" will be sorted before \"b\".\n\t\t\treturn statusSortOrder.indexOf(a.status) - statusSortOrder.indexOf(b.status)\n\t\t})\n}\n\nconst isInProgressOrCreated = (status: SidebarTaskLanguageStatus | SidebarTaskStatus): boolean => {\n\t// @ts-ignore - complaints about status missing completed and other statuses\n\treturn [SidebarTaskStatuses.InProgress, SidebarTaskStatuses.Created].includes(status)\n}\n\nexport const isLanguageProgressCompleted = (\n\ttask: SidebarTask,\n\tlanguage: SidebarTaskLanguage,\n): boolean => {\n\treturn (\n\t\tisInProgressOrCreated(task.status) &&\n\t\tisInProgressOrCreated(language.status) &&\n\t\t(language.progress ?? 0) >= 100\n\t)\n}\n"],"names":[],"mappings":";AAWa,MAAA,gBAAgB,CAAC,QAAmC,kBAA0B;AAC1F,UAAQ,QAAQ;AAAA,IACf,KAAK,4BAA4B;AACzB,aAAA,gBAAgB,MAAM,WAAW;AAAA,IACzC,KAAK,4BAA4B;AAGzB,aAAA,gBAAgB,IAAI,gBAAgB;AAAA,IAC5C,KAAK,4BAA4B;AACzB,aAAA;AAAA,IACR,KAAK,4BAA4B;AACzB,aAAA;AAAA,IACR,KAAK,4BAA4B;AACzB,aAAA;AAAA,IACR;AACQ,aAAA;AAAA,EAAA;AAEV;AAEa,MAAA,gBAAgB,CAAC,aAA6D;AACpF,QAAA,WAAW,SAAS,YAAY;AAEtC,MAAI,SAAS,WAAW,4BAA4B,WAAW,WAAW,GAAG;AAG5E,WAAO,4BAA4B;AAAA,EAAA;AAGpC,SAAO,SAAS;AACjB;AAKO,MAAM,WAAkD;AAAA,EAC9D,CAAC,uBAAuB,WAAW,GAAG;AAAA,EACtC,CAAC,uBAAuB,MAAM,GAAG;AAAA,EACjC,CAAC,uBAAuB,SAAS,GAAG;AAAA,EACpC,CAAC,uBAAuB,qBAAqB,GAAG;AACjD;AAEa,MAAA,mBAAmB,CAAC,UAAiC;AACjE,QAAM,kBAA+C;AAAA,IACpD,4BAA4B;AAAA,IAC5B,4BAA4B;AAAA,IAC5B,4BAA4B;AAAA,EAC7B;AAEO,SAAA,MACL,OAAO,CAAC,aAAa,SAAS,WAAW,QAAQ,EACjD,IAAI,CAAC,UAAU,EAAE,GAAG,MAAM,QAAQ,cAAc,IAAI,EAAA,EAAI,EACxD,KAAK,CAAC,GAAG,MAAM;AACf,QAAI,EAAE,WAAW,4BAA4B,cAAc,EAAE,aAAa,KAAK;AACvE,aAAA;AAAA,IAAA;AAGR,QAAI,EAAE,WAAW,4BAA4B,cAAc,EAAE,aAAa,KAAK;AACvE,aAAA;AAAA,IAAA;AAGJ,QAAA,EAAE,WAAW,EAAE,QAAQ;AAE1B,aAAO,EAAE,OAAO,EAAE,OAAO,IAAI;AAAA,IAAA;AAMvB,WAAA,gBAAgB,QAAQ,EAAE,MAAM,IAAI,gBAAgB,QAAQ,EAAE,MAAM;AAAA,EAAA,CAC3E;AACH;AAEA,MAAM,wBAAwB,CAAC,WAAmE;AAEjG,SAAO,CAAC,oBAAoB,YAAY,oBAAoB,OAAO,EAAE,SAAS,MAAM;AACrF;AAEa,MAAA,8BAA8B,CAC1C,MACA,aACa;AAEZ,SAAA,sBAAsB,KAAK,MAAM,KACjC,sBAAsB,SAAS,MAAM,MACpC,SAAS,YAAY,MAAM;AAE9B;"}
|
package/dist/harmony118.cjs
CHANGED
@@ -1,10 +1,21 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const taskContainer = "_taskContainer_mt2or_1";
|
4
|
+
const taskTitle = "_taskTitle_mt2or_21";
|
5
|
+
const taskDescription = "_taskDescription_mt2or_28";
|
6
|
+
const languagesTable = "_languagesTable_mt2or_35";
|
7
|
+
const metadata = "_metadata_mt2or_87";
|
8
|
+
const styles = {
|
9
|
+
taskContainer,
|
10
|
+
taskTitle,
|
11
|
+
taskDescription,
|
12
|
+
languagesTable,
|
13
|
+
metadata
|
8
14
|
};
|
9
|
-
exports.
|
15
|
+
exports.default = styles;
|
16
|
+
exports.languagesTable = languagesTable;
|
17
|
+
exports.metadata = metadata;
|
18
|
+
exports.taskContainer = taskContainer;
|
19
|
+
exports.taskDescription = taskDescription;
|
20
|
+
exports.taskTitle = taskTitle;
|
10
21
|
//# 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":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony118.mjs
CHANGED
@@ -1,10 +1,21 @@
|
|
1
|
-
const
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
const taskContainer = "_taskContainer_mt2or_1";
|
2
|
+
const taskTitle = "_taskTitle_mt2or_21";
|
3
|
+
const taskDescription = "_taskDescription_mt2or_28";
|
4
|
+
const languagesTable = "_languagesTable_mt2or_35";
|
5
|
+
const metadata = "_metadata_mt2or_87";
|
6
|
+
const styles = {
|
7
|
+
taskContainer,
|
8
|
+
taskTitle,
|
9
|
+
taskDescription,
|
10
|
+
languagesTable,
|
11
|
+
metadata
|
6
12
|
};
|
7
13
|
export {
|
8
|
-
|
14
|
+
styles as default,
|
15
|
+
languagesTable,
|
16
|
+
metadata,
|
17
|
+
taskContainer,
|
18
|
+
taskDescription,
|
19
|
+
taskTitle
|
9
20
|
};
|
10
21
|
//# 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":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
package/dist/harmony119.cjs
CHANGED
@@ -1,60 +1,16 @@
|
|
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
|
-
|
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;
|
3
|
+
const _freeGlobal = require("./harmony122.cjs");
|
4
|
+
var _root;
|
5
|
+
var hasRequired_root;
|
6
|
+
function require_root() {
|
7
|
+
if (hasRequired_root) return _root;
|
8
|
+
hasRequired_root = 1;
|
9
|
+
var freeGlobal = _freeGlobal.__require();
|
10
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
11
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
12
|
+
_root = root;
|
13
|
+
return _root;
|
14
|
+
}
|
15
|
+
exports.__require = require_root;
|
60
16
|
//# sourceMappingURL=harmony119.cjs.map
|
package/dist/harmony119.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony119.cjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;;;AAAA,MAAI,aAAaA,YAAAA,UAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony119.mjs
CHANGED
@@ -1,60 +1,16 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
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
|
-
};
|
1
|
+
import { __require as require_freeGlobal } from "./harmony122.mjs";
|
2
|
+
var _root;
|
3
|
+
var hasRequired_root;
|
4
|
+
function require_root() {
|
5
|
+
if (hasRequired_root) return _root;
|
6
|
+
hasRequired_root = 1;
|
7
|
+
var freeGlobal = require_freeGlobal();
|
8
|
+
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
9
|
+
var root = freeGlobal || freeSelf || Function("return this")();
|
10
|
+
_root = root;
|
11
|
+
return _root;
|
12
|
+
}
|
57
13
|
export {
|
58
|
-
|
14
|
+
require_root as __require
|
59
15
|
};
|
60
16
|
//# sourceMappingURL=harmony119.mjs.map
|
package/dist/harmony119.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony119.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony119.mjs","sources":["../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,aAAaA,mBAAwB;AAGzC,MAAI,WAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU;AAG5E,MAAI,OAAO,cAAc,YAAY,SAAS,aAAa,EAAG;AAE9D,UAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony120.cjs
CHANGED
@@ -1,63 +1,18 @@
|
|
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
|
-
return "Queued";
|
14
|
-
case types.SidebarTaskLanguageStatuses.NotStarted:
|
15
|
-
return "Not started";
|
16
|
-
default:
|
17
|
-
return "-";
|
3
|
+
const _trimmedEndIndex = require("./harmony123.cjs");
|
4
|
+
var _baseTrim;
|
5
|
+
var hasRequired_baseTrim;
|
6
|
+
function require_baseTrim() {
|
7
|
+
if (hasRequired_baseTrim) return _baseTrim;
|
8
|
+
hasRequired_baseTrim = 1;
|
9
|
+
var trimmedEndIndex = _trimmedEndIndex.__require();
|
10
|
+
var reTrimStart = /^\s+/;
|
11
|
+
function baseTrim(string) {
|
12
|
+
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
18
13
|
}
|
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;
|
14
|
+
_baseTrim = baseTrim;
|
15
|
+
return _baseTrim;
|
16
|
+
}
|
17
|
+
exports.__require = require_baseTrim;
|
63
18
|
//# 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":["../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,iBAAAA,UAA6B;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/harmony120.mjs
CHANGED
@@ -1,63 +1,18 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
return "Queued";
|
12
|
-
case SidebarTaskLanguageStatuses.NotStarted:
|
13
|
-
return "Not started";
|
14
|
-
default:
|
15
|
-
return "-";
|
1
|
+
import { __require as require_trimmedEndIndex } from "./harmony123.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;
|
16
11
|
}
|
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
|
-
};
|
12
|
+
_baseTrim = baseTrim;
|
13
|
+
return _baseTrim;
|
14
|
+
}
|
56
15
|
export {
|
57
|
-
|
58
|
-
getTaskLanguages,
|
59
|
-
isLanguageProgressCompleted,
|
60
|
-
resolveStatus,
|
61
|
-
tagColor
|
16
|
+
require_baseTrim as __require
|
62
17
|
};
|
63
18
|
//# 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":["../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/harmony121.cjs
CHANGED
@@ -1,21 +1,19 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
exports.
|
19
|
-
exports.taskDescription = taskDescription;
|
20
|
-
exports.taskTitle = taskTitle;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const _baseGetTag = require("./harmony124.cjs");
|
4
|
+
const isObjectLike = require("./harmony125.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;
|
14
|
+
}
|
15
|
+
isSymbol_1 = isSymbol;
|
16
|
+
return isSymbol_1;
|
17
|
+
}
|
18
|
+
exports.__require = requireIsSymbol;
|
21
19
|
//# sourceMappingURL=harmony121.cjs.map
|
package/dist/harmony121.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony121.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/harmony121.mjs
CHANGED
@@ -1,21 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
1
|
+
import { __require as require_baseGetTag } from "./harmony124.mjs";
|
2
|
+
import { __require as requireIsObjectLike } from "./harmony125.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;
|
12
|
+
}
|
13
|
+
isSymbol_1 = isSymbol;
|
14
|
+
return isSymbol_1;
|
15
|
+
}
|
13
16
|
export {
|
14
|
-
|
15
|
-
languagesTable,
|
16
|
-
metadata,
|
17
|
-
taskContainer,
|
18
|
-
taskDescription,
|
19
|
-
taskTitle
|
17
|
+
requireIsSymbol as __require
|
20
18
|
};
|
21
19
|
//# sourceMappingURL=harmony121.mjs.map
|
package/dist/harmony121.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony121.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/harmony122.cjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const _commonjsHelpers = require("./
|
3
|
+
const _commonjsHelpers = require("./harmony128.cjs");
|
4
4
|
var _freeGlobal;
|
5
5
|
var hasRequired_freeGlobal;
|
6
6
|
function require_freeGlobal() {
|
package/dist/harmony122.mjs
CHANGED
package/dist/harmony124.cjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const _Symbol = require("./
|
4
|
-
const _getRawTag = require("./
|
5
|
-
const _objectToString = require("./
|
3
|
+
const _Symbol = require("./harmony129.cjs");
|
4
|
+
const _getRawTag = require("./harmony130.cjs");
|
5
|
+
const _objectToString = require("./harmony131.cjs");
|
6
6
|
var _baseGetTag;
|
7
7
|
var hasRequired_baseGetTag;
|
8
8
|
function require_baseGetTag() {
|
package/dist/harmony124.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { __require as require_Symbol } from "./
|
2
|
-
import { __require as require_getRawTag } from "./
|
3
|
-
import { __require as require_objectToString } from "./
|
1
|
+
import { __require as require_Symbol } from "./harmony129.mjs";
|
2
|
+
import { __require as require_getRawTag } from "./harmony130.mjs";
|
3
|
+
import { __require as require_objectToString } from "./harmony131.mjs";
|
4
4
|
var _baseGetTag;
|
5
5
|
var hasRequired_baseGetTag;
|
6
6
|
function require_baseGetTag() {
|