@lokalise/harmony 1.29.4 → 1.29.5-exp-teamSwitch.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +18 -13
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +19 -14
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony100.cjs +1 -1
- package/dist/harmony100.mjs +1 -1
- package/dist/harmony103.cjs +2 -2
- package/dist/harmony103.mjs +2 -2
- package/dist/harmony106.cjs +6 -5
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +6 -5
- package/dist/harmony107.cjs +5 -5
- package/dist/harmony107.mjs +5 -5
- package/dist/harmony108.cjs +6 -97
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +5 -96
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +62 -13
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +61 -12
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +87 -13
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +87 -13
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +19 -37
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +18 -36
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +87 -19
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +87 -19
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +13 -62
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +12 -61
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +13 -87
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +13 -87
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +37 -19
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +36 -18
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +27 -12
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +27 -12
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +7 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +7 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +57 -16
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +57 -16
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +59 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +59 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +19 -22
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +18 -21
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +12 -11
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +12 -11
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +14 -10
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +14 -10
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +16 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +16 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +11 -57
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +11 -57
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +15 -59
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +15 -59
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +22 -19
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +21 -18
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +11 -11
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +11 -11
- 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 -5
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -5
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +14 -46
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -46
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +46 -12
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +45 -11
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +15 -0
- package/dist/harmony133.cjs.map +1 -0
- package/dist/harmony133.mjs +15 -0
- package/dist/harmony133.mjs.map +1 -0
- 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 +2 -2
- package/dist/harmony30.mjs +2 -2
- package/dist/harmony31.cjs +10 -1
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +12 -3
- package/dist/harmony31.mjs.map +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/harmony4.cjs +10 -10
- package/dist/harmony4.mjs +10 -10
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony51.cjs +5 -6
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +5 -6
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +14 -56
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +14 -56
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +48 -72
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +47 -71
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +78 -4
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +78 -4
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +4 -21
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +4 -21
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +20 -34
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +20 -34
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +35 -120
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +34 -119
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +121 -28
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +121 -28
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +28 -25
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +28 -25
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +4 -4
- package/dist/harmony6.mjs +4 -4
- package/dist/harmony60.cjs +24 -6
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +24 -6
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +6 -82
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +6 -82
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +86 -20
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +86 -20
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +22 -16
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +22 -16
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +19 -16
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +18 -15
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +15 -18
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +15 -18
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +18 -61
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +18 -61
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +61 -6
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +61 -6
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +7 -10
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +6 -9
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +8 -17
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +8 -17
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +13 -18
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +14 -19
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +22 -4
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +22 -4
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +4 -31
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +5 -32
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +26 -26
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +28 -28
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +25 -12
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +26 -13
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +12 -24
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +13 -25
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +27 -55
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +29 -57
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +60 -10
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +59 -9
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +10 -9
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +9 -8
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +5 -26
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +8 -29
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +29 -3
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +29 -3
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +4 -7
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -6
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +12 -10
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +11 -9
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +20 -8
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +20 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +6 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -56
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -42
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -41
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +10 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +57 -9
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +56 -8
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +42 -24
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +41 -23
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +6 -7
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +5 -6
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +9 -21
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +8 -20
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +21 -9
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +21 -9
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +7 -12
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +6 -11
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +21 -21
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +20 -20
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +12 -99
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +11 -81
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +1 -1
- package/dist/harmony95.mjs +1 -1
- package/dist/harmony97.cjs +99 -21
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +81 -20
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +21 -6
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +20 -5
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +6 -6
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +5 -5
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.d.ts +15 -0
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.test.d.ts +1 -0
- package/dist/types/src/features/publicApi/node.d.ts +1 -0
- package/dist/types/src/features/publicApi/team.d.ts +61 -0
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +10 -0
- package/dist/types/tests/utils/apiHelpers.d.ts +1 -0
- package/package.json +1 -1
package/dist/harmony114.mjs
CHANGED
@@ -1,91 +1,17 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
import { getTaskLanguages, tagColor } from "./harmony125.mjs";
|
11
|
-
import styles from "./harmony126.mjs";
|
12
|
-
const TaskOverview = ({ task }) => {
|
13
|
-
const { getProjectUrl, taskTitleOnClick } = useTasks();
|
14
|
-
const taskLanguages = getTaskLanguages(task.langs);
|
15
|
-
const handleDownloadStyleGuide = (styleGuide) => {
|
16
|
-
window.open(
|
17
|
-
`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,
|
18
|
-
"_blank",
|
19
|
-
"noopener,noreferrer"
|
20
|
-
);
|
1
|
+
import { __require as require_root } from "./harmony121.mjs";
|
2
|
+
var now_1;
|
3
|
+
var hasRequiredNow;
|
4
|
+
function requireNow() {
|
5
|
+
if (hasRequiredNow) return now_1;
|
6
|
+
hasRequiredNow = 1;
|
7
|
+
var root = require_root();
|
8
|
+
var now = function() {
|
9
|
+
return root.Date.now();
|
21
10
|
};
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
/* @__PURE__ */ jsx(Tag, { color: tagColor[task.task_type], variant: "solid", children: task.task_type.toLocaleUpperCase() }),
|
26
|
-
task.due_date && /* @__PURE__ */ jsxs(Tag, { color: "#EAB308", children: [
|
27
|
-
"DUE ",
|
28
|
-
formatDate(parseISO(task.due_date), "yyyy-MM-dd")
|
29
|
-
] })
|
30
|
-
] }),
|
31
|
-
task.style_guides.length > 0 && /* @__PURE__ */ jsx("div", { className: "flex-row", children: task.style_guides.length === 1 ? /* @__PURE__ */ jsx(
|
32
|
-
Button,
|
33
|
-
{
|
34
|
-
size: "sm",
|
35
|
-
variant: "secondary",
|
36
|
-
onClick: () => handleDownloadStyleGuide(task.style_guides[0]),
|
37
|
-
children: "Download style guide"
|
38
|
-
}
|
39
|
-
) : /* @__PURE__ */ jsx(
|
40
|
-
Menu,
|
41
|
-
{
|
42
|
-
menuButton: /* @__PURE__ */ jsx(Button, { variant: "secondary", size: "sm", children: "Download style guide" }),
|
43
|
-
children: /* @__PURE__ */ jsx(MenuList, { children: task.style_guides.map((styleGuide) => /* @__PURE__ */ jsx(
|
44
|
-
MenuItem,
|
45
|
-
{
|
46
|
-
onClick: () => handleDownloadStyleGuide(styleGuide),
|
47
|
-
children: splitFileName(styleGuide.name).name
|
48
|
-
},
|
49
|
-
styleGuide.id
|
50
|
-
)) })
|
51
|
-
}
|
52
|
-
) })
|
53
|
-
] }),
|
54
|
-
/* @__PURE__ */ jsx("h4", { className: styles.taskTitle, children: /* @__PURE__ */ jsx(
|
55
|
-
Link,
|
56
|
-
{
|
57
|
-
href: getProjectUrl({ task, view: "multi" }),
|
58
|
-
onClick: () => {
|
59
|
-
taskTitleOnClick == null ? void 0 : taskTitleOnClick({ task });
|
60
|
-
},
|
61
|
-
children: task.title
|
62
|
-
}
|
63
|
-
) }),
|
64
|
-
task.description && /* @__PURE__ */ jsx("div", { className: styles.taskDescription, children: convertNewLineToBreakTag(makeUrlClickable(task.description)) }),
|
65
|
-
/* @__PURE__ */ jsxs("table", { className: styles.languagesTable, children: [
|
66
|
-
/* @__PURE__ */ jsx("thead", { children: /* @__PURE__ */ jsxs("tr", { children: [
|
67
|
-
/* @__PURE__ */ jsx("th", { children: "Languages" }),
|
68
|
-
/* @__PURE__ */ jsx("th", { children: "Words to do" }),
|
69
|
-
/* @__PURE__ */ jsx("th", { children: "Progress" }),
|
70
|
-
/* @__PURE__ */ jsx("th", { children: "Status" })
|
71
|
-
] }) }),
|
72
|
-
/* @__PURE__ */ jsx("tbody", { children: taskLanguages.map((language) => /* @__PURE__ */ jsx(TaskLanguage, { language, task }, language.lang_id)) })
|
73
|
-
] }),
|
74
|
-
/* @__PURE__ */ jsxs("div", { "data-testid": "sidebar-task-overview-metadata", className: styles.metadata, children: [
|
75
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
76
|
-
"Source: ",
|
77
|
-
task.source_lang_name
|
78
|
-
] }),
|
79
|
-
/* @__PURE__ */ jsx("span", { children: task.created_by_fullname }),
|
80
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
81
|
-
"In ",
|
82
|
-
task.project_name,
|
83
|
-
task.master_branching_enabled === "1" && /* @__PURE__ */ jsx("div", { className: styles.tag, children: task.branch_name ? task.branch_name : "master" })
|
84
|
-
] })
|
85
|
-
] })
|
86
|
-
] });
|
87
|
-
};
|
11
|
+
now_1 = now;
|
12
|
+
return now_1;
|
13
|
+
}
|
88
14
|
export {
|
89
|
-
|
15
|
+
requireNow as __require
|
90
16
|
};
|
91
17
|
//# sourceMappingURL=harmony114.mjs.map
|
package/dist/harmony114.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony114.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony114.mjs","sources":["../node_modules/lodash/now.js"],"sourcesContent":["var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n"],"names":["require$$0"],"mappings":";;;;;;AAAA,MAAI,OAAOA,aAAkB;AAkB7B,MAAI,MAAM,WAAW;AACnB,WAAO,KAAK,KAAK,IAAK;AAAA,EACvB;AAED,UAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony115.cjs
CHANGED
@@ -1,21 +1,39 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const _baseTrim = require("./harmony122.cjs");
|
4
|
+
const isObject = require("./harmony113.cjs");
|
5
|
+
const isSymbol = require("./harmony123.cjs");
|
6
|
+
var toNumber_1;
|
7
|
+
var hasRequiredToNumber;
|
8
|
+
function requireToNumber() {
|
9
|
+
if (hasRequiredToNumber) return toNumber_1;
|
10
|
+
hasRequiredToNumber = 1;
|
11
|
+
var baseTrim = _baseTrim.__require(), isObject$1 = isObject.__require(), isSymbol$1 = isSymbol.__require();
|
12
|
+
var NAN = 0 / 0;
|
13
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
14
|
+
var reIsBinary = /^0b[01]+$/i;
|
15
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
16
|
+
var freeParseInt = parseInt;
|
17
|
+
function toNumber(value) {
|
18
|
+
if (typeof value == "number") {
|
19
|
+
return value;
|
20
|
+
}
|
21
|
+
if (isSymbol$1(value)) {
|
22
|
+
return NAN;
|
23
|
+
}
|
24
|
+
if (isObject$1(value)) {
|
25
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
26
|
+
value = isObject$1(other) ? other + "" : other;
|
27
|
+
}
|
28
|
+
if (typeof value != "string") {
|
29
|
+
return value === 0 ? value : +value;
|
30
|
+
}
|
31
|
+
value = baseTrim(value);
|
32
|
+
var isBinary = reIsBinary.test(value);
|
33
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
34
|
+
}
|
35
|
+
toNumber_1 = toNumber;
|
36
|
+
return toNumber_1;
|
37
|
+
}
|
38
|
+
exports.__require = requireToNumber;
|
21
39
|
//# sourceMappingURL=harmony115.cjs.map
|
package/dist/harmony115.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony115.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony115.cjs","sources":["../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","isObject","require$$1","isSymbol","require$$2"],"mappings":";;;;;;;;;;AAAA,MAAI,WAAWA,UAAAA,UAAsB,GACjCC,aAAWC,SAAAA,UAAqB,GAChCC,aAAWC,SAAAA,UAAqB;AAGpC,MAAI,MAAM,IAAI;AAGd,MAAI,aAAa;AAGjB,MAAI,aAAa;AAGjB,MAAI,YAAY;AAGhB,MAAI,eAAe;AAyBnB,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO;AAAA,IACX;AACE,QAAID,WAAS,KAAK,GAAG;AACnB,aAAO;AAAA,IACX;AACE,QAAIF,WAAS,KAAK,GAAG;AACnB,UAAI,QAAQ,OAAO,MAAM,WAAW,aAAa,MAAM,QAAO,IAAK;AACnE,cAAQA,WAAS,KAAK,IAAK,QAAQ,KAAM;AAAA,IAC7C;AACE,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,UAAU,IAAI,QAAQ,CAAC;AAAA,IAClC;AACE,YAAQ,SAAS,KAAK;AACtB,QAAI,WAAW,WAAW,KAAK,KAAK;AACpC,WAAQ,YAAY,UAAU,KAAK,KAAK,IACpC,aAAa,MAAM,MAAM,CAAC,GAAG,WAAW,IAAI,CAAC,IAC5C,WAAW,KAAK,KAAK,IAAI,MAAM,CAAC;AAAA,EACvC;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony115.mjs
CHANGED
@@ -1,21 +1,39 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
1
|
+
import { __require as require_baseTrim } from "./harmony122.mjs";
|
2
|
+
import { __require as requireIsObject } from "./harmony113.mjs";
|
3
|
+
import { __require as requireIsSymbol } from "./harmony123.mjs";
|
4
|
+
var toNumber_1;
|
5
|
+
var hasRequiredToNumber;
|
6
|
+
function requireToNumber() {
|
7
|
+
if (hasRequiredToNumber) return toNumber_1;
|
8
|
+
hasRequiredToNumber = 1;
|
9
|
+
var baseTrim = require_baseTrim(), isObject = requireIsObject(), isSymbol = requireIsSymbol();
|
10
|
+
var NAN = 0 / 0;
|
11
|
+
var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
12
|
+
var reIsBinary = /^0b[01]+$/i;
|
13
|
+
var reIsOctal = /^0o[0-7]+$/i;
|
14
|
+
var freeParseInt = parseInt;
|
15
|
+
function toNumber(value) {
|
16
|
+
if (typeof value == "number") {
|
17
|
+
return value;
|
18
|
+
}
|
19
|
+
if (isSymbol(value)) {
|
20
|
+
return NAN;
|
21
|
+
}
|
22
|
+
if (isObject(value)) {
|
23
|
+
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
24
|
+
value = isObject(other) ? other + "" : other;
|
25
|
+
}
|
26
|
+
if (typeof value != "string") {
|
27
|
+
return value === 0 ? value : +value;
|
28
|
+
}
|
29
|
+
value = baseTrim(value);
|
30
|
+
var isBinary = reIsBinary.test(value);
|
31
|
+
return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
32
|
+
}
|
33
|
+
toNumber_1 = toNumber;
|
34
|
+
return toNumber_1;
|
35
|
+
}
|
13
36
|
export {
|
14
|
-
|
15
|
-
loadingContainer,
|
16
|
-
noTasksContainer,
|
17
|
-
noTasksHeading,
|
18
|
-
noTasksText,
|
19
|
-
tasksContainer
|
37
|
+
requireToNumber as __require
|
20
38
|
};
|
21
39
|
//# sourceMappingURL=harmony115.mjs.map
|
package/dist/harmony115.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony115.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony115.mjs","sources":["../node_modules/lodash/toNumber.js"],"sourcesContent":["var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AAAA,MAAI,WAAWA,iBAAsB,GACjC,WAAWC,gBAAqB,GAChC,WAAWC,gBAAqB;AAGpC,MAAI,MAAM,IAAI;AAGd,MAAI,aAAa;AAGjB,MAAI,aAAa;AAGjB,MAAI,YAAY;AAGhB,MAAI,eAAe;AAyBnB,WAAS,SAAS,OAAO;AACvB,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO;AAAA,IACX;AACE,QAAI,SAAS,KAAK,GAAG;AACnB,aAAO;AAAA,IACX;AACE,QAAI,SAAS,KAAK,GAAG;AACnB,UAAI,QAAQ,OAAO,MAAM,WAAW,aAAa,MAAM,QAAO,IAAK;AACnE,cAAQ,SAAS,KAAK,IAAK,QAAQ,KAAM;AAAA,IAC7C;AACE,QAAI,OAAO,SAAS,UAAU;AAC5B,aAAO,UAAU,IAAI,QAAQ,CAAC;AAAA,IAClC;AACE,YAAQ,SAAS,KAAK;AACtB,QAAI,WAAW,WAAW,KAAK,KAAK;AACpC,WAAQ,YAAY,UAAU,KAAK,KAAK,IACpC,aAAa,MAAM,MAAM,CAAC,GAAG,WAAW,IAAI,CAAC,IAC5C,WAAW,KAAK,KAAK,IAAI,MAAM,CAAC;AAAA,EACvC;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony116.cjs
CHANGED
@@ -1,16 +1,31 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
var
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
var
|
11
|
-
var
|
12
|
-
|
13
|
-
|
3
|
+
const debounce = require("./harmony112.cjs");
|
4
|
+
const isObject = require("./harmony113.cjs");
|
5
|
+
var throttle_1;
|
6
|
+
var hasRequiredThrottle;
|
7
|
+
function requireThrottle() {
|
8
|
+
if (hasRequiredThrottle) return throttle_1;
|
9
|
+
hasRequiredThrottle = 1;
|
10
|
+
var debounce$1 = debounce.__require(), isObject$1 = isObject.__require();
|
11
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
12
|
+
function throttle(func, wait, options) {
|
13
|
+
var leading = true, trailing = true;
|
14
|
+
if (typeof func != "function") {
|
15
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
16
|
+
}
|
17
|
+
if (isObject$1(options)) {
|
18
|
+
leading = "leading" in options ? !!options.leading : leading;
|
19
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
20
|
+
}
|
21
|
+
return debounce$1(func, wait, {
|
22
|
+
"leading": leading,
|
23
|
+
"maxWait": wait,
|
24
|
+
"trailing": trailing
|
25
|
+
});
|
26
|
+
}
|
27
|
+
throttle_1 = throttle;
|
28
|
+
return throttle_1;
|
14
29
|
}
|
15
|
-
exports.__require =
|
30
|
+
exports.__require = requireThrottle;
|
16
31
|
//# sourceMappingURL=harmony116.cjs.map
|
package/dist/harmony116.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony116.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony116.cjs","sources":["../node_modules/lodash/throttle.js"],"sourcesContent":["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["debounce","require$$0","isObject","require$$1"],"mappings":";;;;;;;;;AAAA,MAAIA,aAAWC,SAAAA,UAAqB,GAChCC,aAAWC,SAAAA,UAAqB;AAGpC,MAAI,kBAAkB;AA8CtB,WAAS,SAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAID,WAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAOF,WAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony116.mjs
CHANGED
@@ -1,16 +1,31 @@
|
|
1
|
-
import { __require as
|
2
|
-
|
3
|
-
var
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
var
|
9
|
-
var
|
10
|
-
|
11
|
-
|
1
|
+
import { __require as requireDebounce } from "./harmony112.mjs";
|
2
|
+
import { __require as requireIsObject } from "./harmony113.mjs";
|
3
|
+
var throttle_1;
|
4
|
+
var hasRequiredThrottle;
|
5
|
+
function requireThrottle() {
|
6
|
+
if (hasRequiredThrottle) return throttle_1;
|
7
|
+
hasRequiredThrottle = 1;
|
8
|
+
var debounce = requireDebounce(), isObject = requireIsObject();
|
9
|
+
var FUNC_ERROR_TEXT = "Expected a function";
|
10
|
+
function throttle(func, wait, options) {
|
11
|
+
var leading = true, trailing = true;
|
12
|
+
if (typeof func != "function") {
|
13
|
+
throw new TypeError(FUNC_ERROR_TEXT);
|
14
|
+
}
|
15
|
+
if (isObject(options)) {
|
16
|
+
leading = "leading" in options ? !!options.leading : leading;
|
17
|
+
trailing = "trailing" in options ? !!options.trailing : trailing;
|
18
|
+
}
|
19
|
+
return debounce(func, wait, {
|
20
|
+
"leading": leading,
|
21
|
+
"maxWait": wait,
|
22
|
+
"trailing": trailing
|
23
|
+
});
|
24
|
+
}
|
25
|
+
throttle_1 = throttle;
|
26
|
+
return throttle_1;
|
12
27
|
}
|
13
28
|
export {
|
14
|
-
|
29
|
+
requireThrottle as __require
|
15
30
|
};
|
16
31
|
//# sourceMappingURL=harmony116.mjs.map
|
package/dist/harmony116.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony116.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony116.mjs","sources":["../node_modules/lodash/throttle.js"],"sourcesContent":["var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["require$$0","require$$1"],"mappings":";;;;;;;AAAA,MAAI,WAAWA,gBAAqB,GAChC,WAAWC,gBAAqB;AAGpC,MAAI,kBAAkB;AA8CtB,WAAS,SAAS,MAAM,MAAM,SAAS;AACrC,QAAI,UAAU,MACV,WAAW;AAEf,QAAI,OAAO,QAAQ,YAAY;AAC7B,YAAM,IAAI,UAAU,eAAe;AAAA,IACvC;AACE,QAAI,SAAS,OAAO,GAAG;AACrB,gBAAU,aAAa,UAAU,CAAC,CAAC,QAAQ,UAAU;AACrD,iBAAW,cAAc,UAAU,CAAC,CAAC,QAAQ,WAAW;AAAA,IAC5D;AACE,WAAO,SAAS,MAAM,MAAM;AAAA,MAC1B,WAAW;AAAA,MACX,WAAW;AAAA,MACX,YAAY;AAAA,IAChB,CAAG;AAAA,EACH;AAEA,eAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony117.cjs
CHANGED
@@ -1,18 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
var reTrimStart = /^\s+/;
|
11
|
-
function baseTrim(string) {
|
12
|
-
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
13
|
-
}
|
14
|
-
_baseTrim = baseTrim;
|
15
|
-
return _baseTrim;
|
16
|
-
}
|
17
|
-
exports.__require = require_baseTrim;
|
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 };
|
8
|
+
};
|
9
|
+
exports.splitFileName = splitFileName;
|
18
10
|
//# sourceMappingURL=harmony117.cjs.map
|
package/dist/harmony117.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony117.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony117.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/harmony117.mjs
CHANGED
@@ -1,18 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
-
}
|
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 };
|
6
|
+
};
|
15
7
|
export {
|
16
|
-
|
8
|
+
splitFileName
|
17
9
|
};
|
18
10
|
//# 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":["../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/harmony118.cjs
CHANGED
@@ -1,19 +1,60 @@
|
|
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
|
-
|
15
|
-
|
16
|
-
return
|
17
|
-
|
18
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const content = require("./harmony119.cjs");
|
6
|
+
const types = require("./harmony2.cjs");
|
7
|
+
const clsx = require("./harmony65.cjs");
|
8
|
+
const TaskLanguageCompleted = require("./harmony132.cjs");
|
9
|
+
const TasksContext = require("./harmony102.cjs");
|
10
|
+
const TaskLanguage_module = require("./harmony133.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;
|
19
60
|
//# 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":["../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;;"}
|