@lokalise/harmony 1.29.5-exp-teamSwitch.2 → 1.30.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 +21 -20
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +25 -24
- package/dist/harmony100.cjs +6 -132
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +5 -131
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +132 -12
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +131 -11
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -6
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +12 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +5 -40
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +5 -40
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +33 -53
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +34 -54
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +59 -6
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +59 -6
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +7 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +6 -5
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +1 -1
- package/dist/harmony107.mjs +1 -1
- package/dist/harmony108.cjs +1 -1
- package/dist/harmony108.mjs +1 -1
- package/dist/harmony109.cjs +95 -61
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +95 -61
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +13 -88
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +13 -88
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +15 -19
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +14 -18
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +34 -94
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +34 -94
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +26 -11
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +26 -11
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +60 -12
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +60 -12
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +88 -36
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +88 -36
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +19 -29
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +18 -28
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +13 -7
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +13 -7
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +15 -57
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +15 -57
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +15 -59
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +15 -59
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +12 -19
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +11 -18
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +15 -12
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +15 -12
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +19 -13
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +19 -13
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +10 -14
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +10 -14
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +7 -11
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +7 -11
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +56 -15
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +56 -15
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +59 -20
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +59 -20
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +19 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +18 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony129.cjs +1 -1
- package/dist/harmony129.mjs +1 -1
- package/dist/harmony132.cjs +1 -1
- package/dist/harmony132.mjs +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/harmony30.cjs +11 -1
- package/dist/harmony30.cjs.map +1 -1
- package/dist/harmony30.mjs +13 -3
- package/dist/harmony30.mjs.map +1 -1
- package/dist/harmony31.cjs +0 -9
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +3 -12
- package/dist/harmony31.mjs.map +1 -1
- package/dist/harmony36.cjs +6 -5
- package/dist/harmony36.cjs.map +1 -1
- package/dist/harmony36.mjs +6 -5
- package/dist/harmony36.mjs.map +1 -1
- package/dist/harmony37.cjs +6 -14
- package/dist/harmony37.cjs.map +1 -1
- package/dist/harmony37.mjs +7 -15
- package/dist/harmony37.mjs.map +1 -1
- package/dist/harmony38.cjs +15 -7
- package/dist/harmony38.cjs.map +1 -1
- package/dist/harmony38.mjs +15 -7
- package/dist/harmony38.mjs.map +1 -1
- package/dist/harmony39.cjs +7 -11
- package/dist/harmony39.cjs.map +1 -1
- package/dist/harmony39.mjs +9 -13
- package/dist/harmony39.mjs.map +1 -1
- package/dist/harmony40.cjs +8 -8
- package/dist/harmony40.cjs.map +1 -1
- package/dist/harmony40.mjs +8 -8
- package/dist/harmony40.mjs.map +1 -1
- package/dist/harmony41.cjs +14 -12
- package/dist/harmony41.cjs.map +1 -1
- package/dist/harmony41.mjs +14 -12
- package/dist/harmony41.mjs.map +1 -1
- package/dist/harmony42.cjs +8 -8
- package/dist/harmony42.cjs.map +1 -1
- package/dist/harmony42.mjs +9 -9
- package/dist/harmony42.mjs.map +1 -1
- package/dist/harmony43.cjs +9 -9
- package/dist/harmony43.cjs.map +1 -1
- package/dist/harmony43.mjs +10 -10
- package/dist/harmony43.mjs.map +1 -1
- package/dist/harmony44.cjs +12 -14
- package/dist/harmony44.cjs.map +1 -1
- package/dist/harmony44.mjs +12 -14
- package/dist/harmony44.mjs.map +1 -1
- package/dist/harmony45.cjs +10 -10
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +10 -10
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +8 -8
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +8 -8
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +7 -7
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +7 -7
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +14 -12
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +14 -12
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +12 -14
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +12 -14
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony50.cjs +8 -8
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +8 -8
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +9 -5
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +12 -8
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony59.cjs +22 -4
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +22 -4
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony62.cjs +1 -7
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +1 -7
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony69.cjs +1 -1
- package/dist/harmony69.mjs +1 -1
- package/dist/harmony70.cjs +1 -1
- package/dist/harmony70.mjs +1 -1
- package/dist/harmony71.cjs +1 -1
- package/dist/harmony71.mjs +1 -1
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +2 -2
- package/dist/harmony73.mjs +2 -2
- package/dist/harmony74.cjs +2 -2
- package/dist/harmony74.mjs +2 -2
- package/dist/harmony75.cjs +2 -2
- package/dist/harmony75.mjs +2 -2
- package/dist/harmony76.cjs +3 -3
- package/dist/harmony76.mjs +3 -3
- package/dist/harmony77.cjs +6 -6
- package/dist/harmony77.mjs +6 -6
- package/dist/harmony80.cjs +2 -2
- package/dist/harmony80.mjs +2 -2
- package/dist/harmony82.cjs +7 -12
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +6 -11
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +8 -20
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +8 -20
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +6 -3
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +6 -3
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +57 -9
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +56 -8
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +42 -9
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +41 -8
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +5 -57
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +5 -57
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +9 -42
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +8 -41
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +25 -6
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +24 -5
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +3 -6
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +3 -6
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +21 -24
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +20 -23
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +9 -3
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +9 -3
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +9 -19
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +11 -21
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +20 -11
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +20 -11
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +99 -18
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +82 -18
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +18 -14
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +18 -14
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +11 -96
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +11 -79
- package/dist/harmony97.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateScoreMutation.d.ts +29 -0
- package/dist/types/src/features/publicApi/node.d.ts +1 -1
- package/dist/types/src/features/publicApi/score.d.ts +115 -0
- package/dist/types/src/features/publicApi/team.d.ts +0 -61
- package/dist/types/src/features/publicApi/types/scoreTypes.d.ts +73 -11
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +0 -10
- package/dist/types/tests/utils/apiHelpers.d.ts +0 -1
- package/package.json +1 -1
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.d.ts +0 -15
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.test.d.ts +0 -1
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/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/harmony120.cjs
CHANGED
@@ -1,21 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
};
|
15
|
-
exports.default = styles;
|
16
|
-
exports.languagesTable = languagesTable;
|
17
|
-
exports.metadata = metadata;
|
18
|
-
exports.taskContainer = taskContainer;
|
19
|
-
exports.taskDescription = taskDescription;
|
20
|
-
exports.taskTitle = taskTitle;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const _commonjsHelpers = require("./harmony128.cjs");
|
4
|
+
var _freeGlobal;
|
5
|
+
var hasRequired_freeGlobal;
|
6
|
+
function require_freeGlobal() {
|
7
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
8
|
+
hasRequired_freeGlobal = 1;
|
9
|
+
var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == "object" && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
|
10
|
+
_freeGlobal = freeGlobal;
|
11
|
+
return _freeGlobal;
|
12
|
+
}
|
13
|
+
exports.__require = require_freeGlobal;
|
21
14
|
//# sourceMappingURL=harmony120.cjs.map
|
package/dist/harmony120.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony120.cjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;;;AACA,MAAI,aAAa,OAAOA,iBAAAA,kBAAU,YAAYA,iBAAM,kBAAIA,gCAAO,WAAW,UAAUA,iBAAM;AAE1F,gBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony120.mjs
CHANGED
@@ -1,21 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
metadata
|
12
|
-
};
|
1
|
+
import { commonjsGlobal } from "./harmony128.mjs";
|
2
|
+
var _freeGlobal;
|
3
|
+
var hasRequired_freeGlobal;
|
4
|
+
function require_freeGlobal() {
|
5
|
+
if (hasRequired_freeGlobal) return _freeGlobal;
|
6
|
+
hasRequired_freeGlobal = 1;
|
7
|
+
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
8
|
+
_freeGlobal = freeGlobal;
|
9
|
+
return _freeGlobal;
|
10
|
+
}
|
13
11
|
export {
|
14
|
-
|
15
|
-
languagesTable,
|
16
|
-
metadata,
|
17
|
-
taskContainer,
|
18
|
-
taskDescription,
|
19
|
-
taskTitle
|
12
|
+
require_freeGlobal as __require
|
20
13
|
};
|
21
14
|
//# sourceMappingURL=harmony120.mjs.map
|
package/dist/harmony120.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony120.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony120.mjs","sources":["../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;AACA,MAAI,aAAa,OAAOA,kBAAU,YAAYA,kBAAUA,eAAO,WAAW,UAAUA;AAEpF,gBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony121.cjs
CHANGED
@@ -1,16 +1,19 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
var
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
3
|
+
var _trimmedEndIndex;
|
4
|
+
var hasRequired_trimmedEndIndex;
|
5
|
+
function require_trimmedEndIndex() {
|
6
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
7
|
+
hasRequired_trimmedEndIndex = 1;
|
8
|
+
var reWhitespace = /\s/;
|
9
|
+
function trimmedEndIndex(string) {
|
10
|
+
var index = string.length;
|
11
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
12
|
+
}
|
13
|
+
return index;
|
14
|
+
}
|
15
|
+
_trimmedEndIndex = trimmedEndIndex;
|
16
|
+
return _trimmedEndIndex;
|
14
17
|
}
|
15
|
-
exports.__require =
|
18
|
+
exports.__require = require_trimmedEndIndex;
|
16
19
|
//# sourceMappingURL=harmony121.cjs.map
|
package/dist/harmony121.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony121.cjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony121.mjs
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
2
|
-
var
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
var _trimmedEndIndex;
|
2
|
+
var hasRequired_trimmedEndIndex;
|
3
|
+
function require_trimmedEndIndex() {
|
4
|
+
if (hasRequired_trimmedEndIndex) return _trimmedEndIndex;
|
5
|
+
hasRequired_trimmedEndIndex = 1;
|
6
|
+
var reWhitespace = /\s/;
|
7
|
+
function trimmedEndIndex(string) {
|
8
|
+
var index = string.length;
|
9
|
+
while (index-- && reWhitespace.test(string.charAt(index))) {
|
10
|
+
}
|
11
|
+
return index;
|
12
|
+
}
|
13
|
+
_trimmedEndIndex = trimmedEndIndex;
|
14
|
+
return _trimmedEndIndex;
|
12
15
|
}
|
13
16
|
export {
|
14
|
-
|
17
|
+
require_trimmedEndIndex as __require
|
15
18
|
};
|
16
19
|
//# sourceMappingURL=harmony121.mjs.map
|
package/dist/harmony121.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony121.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony121.mjs","sources":["../node_modules/lodash/_trimmedEndIndex.js"],"sourcesContent":["/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n"],"names":[],"mappings":";;;;;AACA,MAAI,eAAe;AAUnB,WAAS,gBAAgB,QAAQ;AAC/B,QAAI,QAAQ,OAAO;AAEnB,WAAO,WAAW,aAAa,KAAK,OAAO,OAAO,KAAK,CAAC,GAAG;AAAA,IAAA;AAC3D,WAAO;AAAA,EACT;AAEA,qBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony122.cjs
CHANGED
@@ -1,18 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
3
|
+
const _Symbol = require("./harmony129.cjs");
|
4
|
+
const _getRawTag = require("./harmony130.cjs");
|
5
|
+
const _objectToString = require("./harmony131.cjs");
|
6
|
+
var _baseGetTag;
|
7
|
+
var hasRequired_baseGetTag;
|
8
|
+
function require_baseGetTag() {
|
9
|
+
if (hasRequired_baseGetTag) return _baseGetTag;
|
10
|
+
hasRequired_baseGetTag = 1;
|
11
|
+
var Symbol2 = _Symbol.__require(), getRawTag = _getRawTag.__require(), objectToString = _objectToString.__require();
|
12
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
13
|
+
var symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
|
14
|
+
function baseGetTag(value) {
|
15
|
+
if (value == null) {
|
16
|
+
return value === void 0 ? undefinedTag : nullTag;
|
17
|
+
}
|
18
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
13
19
|
}
|
14
|
-
|
15
|
-
return
|
20
|
+
_baseGetTag = baseGetTag;
|
21
|
+
return _baseGetTag;
|
16
22
|
}
|
17
|
-
exports.__require =
|
23
|
+
exports.__require = require_baseGetTag;
|
18
24
|
//# sourceMappingURL=harmony122.cjs.map
|
package/dist/harmony122.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony122.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony122.cjs","sources":["../node_modules/lodash/_baseGetTag.js"],"sourcesContent":["var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n"],"names":["Symbol","require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;AAAA,MAAIA,UAASC,QAAAA,UAAoB,GAC7B,YAAYC,WAAAA,UAAuB,GACnC,iBAAiBC,gBAAAA,UAA4B;AAGjD,MAAI,UAAU,iBACV,eAAe;AAGnB,MAAI,iBAAiBH,UAASA,QAAO,cAAc;AASnD,WAAS,WAAW,OAAO;AACzB,QAAI,SAAS,MAAM;AACjB,aAAO,UAAU,SAAY,eAAe;AAAA,IAChD;AACE,WAAQ,kBAAkB,kBAAkB,OAAO,KAAK,IACpD,UAAU,KAAK,IACf,eAAe,KAAK;AAAA,EAC1B;AAEA,gBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony122.mjs
CHANGED
@@ -1,18 +1,24 @@
|
|
1
|
-
import { __require as
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
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
|
+
var _baseGetTag;
|
5
|
+
var hasRequired_baseGetTag;
|
6
|
+
function require_baseGetTag() {
|
7
|
+
if (hasRequired_baseGetTag) return _baseGetTag;
|
8
|
+
hasRequired_baseGetTag = 1;
|
9
|
+
var Symbol = require_Symbol(), getRawTag = require_getRawTag(), objectToString = require_objectToString();
|
10
|
+
var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
11
|
+
var symToStringTag = Symbol ? Symbol.toStringTag : void 0;
|
12
|
+
function baseGetTag(value) {
|
13
|
+
if (value == null) {
|
14
|
+
return value === void 0 ? undefinedTag : nullTag;
|
15
|
+
}
|
16
|
+
return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
11
17
|
}
|
12
|
-
|
13
|
-
return
|
18
|
+
_baseGetTag = baseGetTag;
|
19
|
+
return _baseGetTag;
|
14
20
|
}
|
15
21
|
export {
|
16
|
-
|
22
|
+
require_baseGetTag as __require
|
17
23
|
};
|
18
24
|
//# sourceMappingURL=harmony122.mjs.map
|
package/dist/harmony122.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony122.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony122.mjs","sources":["../node_modules/lodash/_baseGetTag.js"],"sourcesContent":["var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;AAAA,MAAI,SAASA,eAAoB,GAC7B,YAAYC,kBAAuB,GACnC,iBAAiBC,uBAA4B;AAGjD,MAAI,UAAU,iBACV,eAAe;AAGnB,MAAI,iBAAiB,SAAS,OAAO,cAAc;AASnD,WAAS,WAAW,OAAO;AACzB,QAAI,SAAS,MAAM;AACjB,aAAO,UAAU,SAAY,eAAe;AAAA,IAChD;AACE,WAAQ,kBAAkB,kBAAkB,OAAO,KAAK,IACpD,UAAU,KAAK,IACf,eAAe,KAAK;AAAA,EAC1B;AAEA,gBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony123.cjs
CHANGED
@@ -1,19 +1,15 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
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;
|
3
|
+
var isObjectLike_1;
|
4
|
+
var hasRequiredIsObjectLike;
|
5
|
+
function requireIsObjectLike() {
|
6
|
+
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
7
|
+
hasRequiredIsObjectLike = 1;
|
8
|
+
function isObjectLike(value) {
|
9
|
+
return value != null && typeof value == "object";
|
14
10
|
}
|
15
|
-
|
16
|
-
return
|
11
|
+
isObjectLike_1 = isObjectLike;
|
12
|
+
return isObjectLike_1;
|
17
13
|
}
|
18
|
-
exports.__require =
|
14
|
+
exports.__require = requireIsObjectLike;
|
19
15
|
//# sourceMappingURL=harmony123.cjs.map
|
package/dist/harmony123.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony123.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony123.cjs","sources":["../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"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 object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;;;AAwBA,WAAS,aAAa,OAAO;AAC3B,WAAO,SAAS,QAAQ,OAAO,SAAS;AAAA,EAC1C;AAEA,mBAAiB;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony123.mjs
CHANGED
@@ -1,19 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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;
|
1
|
+
var isObjectLike_1;
|
2
|
+
var hasRequiredIsObjectLike;
|
3
|
+
function requireIsObjectLike() {
|
4
|
+
if (hasRequiredIsObjectLike) return isObjectLike_1;
|
5
|
+
hasRequiredIsObjectLike = 1;
|
6
|
+
function isObjectLike(value) {
|
7
|
+
return value != null && typeof value == "object";
|
12
8
|
}
|
13
|
-
|
14
|
-
return
|
9
|
+
isObjectLike_1 = isObjectLike;
|
10
|
+
return isObjectLike_1;
|
15
11
|
}
|
16
12
|
export {
|
17
|
-
|
13
|
+
requireIsObjectLike as __require
|
18
14
|
};
|
19
15
|
//# sourceMappingURL=harmony123.mjs.map
|
package/dist/harmony123.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony123.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony123.mjs","sources":["../node_modules/lodash/isObjectLike.js"],"sourcesContent":["/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"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 object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n"],"names":[],"mappings":";;;;;AAwBA,WAAS,aAAa,OAAO;AAC3B,WAAO,SAAS,QAAQ,OAAO,SAAS;AAAA,EAC1C;AAEA,mBAAiB;;;","x_google_ignoreList":[0]}
|
package/dist/harmony124.cjs
CHANGED
@@ -1,14 +1,10 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
_freeGlobal = freeGlobal;
|
11
|
-
return _freeGlobal;
|
12
|
-
}
|
13
|
-
exports.__require = require_freeGlobal;
|
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;
|
14
10
|
//# sourceMappingURL=harmony124.cjs.map
|
package/dist/harmony124.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony124.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony124.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/harmony124.mjs
CHANGED
@@ -1,14 +1,10 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
var freeGlobal = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
8
|
-
_freeGlobal = freeGlobal;
|
9
|
-
return _freeGlobal;
|
10
|
-
}
|
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
|
+
};
|
11
7
|
export {
|
12
|
-
|
8
|
+
splitFileName
|
13
9
|
};
|
14
10
|
//# sourceMappingURL=harmony124.mjs.map
|
package/dist/harmony124.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony124.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony124.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/harmony125.cjs
CHANGED
@@ -1,19 +1,60 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const content = require("./harmony126.cjs");
|
6
|
+
const types = require("./harmony2.cjs");
|
7
|
+
const clsx = require("./harmony65.cjs");
|
8
|
+
const TaskLanguageCompleted = require("./harmony132.cjs");
|
9
|
+
const TasksContext = require("./harmony103.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
|
+
]
|
12
56
|
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
return _trimmedEndIndex;
|
17
|
-
}
|
18
|
-
exports.__require = require_trimmedEndIndex;
|
57
|
+
);
|
58
|
+
};
|
59
|
+
exports.TaskLanguage = TaskLanguage;
|
19
60
|
//# sourceMappingURL=harmony125.cjs.map
|
package/dist/harmony125.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony125.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony125.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/harmony125.mjs
CHANGED
@@ -1,19 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { Tooltip, Link } from "@lokalise/louis";
|
3
|
+
import { isLanguageProgressCompleted, getStatusText } from "./harmony126.mjs";
|
4
|
+
import { SidebarTaskLanguageStatuses } from "./harmony2.mjs";
|
5
|
+
import { clsx } from "./harmony65.mjs";
|
6
|
+
import { TaskLanguageCompleted } from "./harmony132.mjs";
|
7
|
+
import { useTasks } from "./harmony103.mjs";
|
8
|
+
import styles from "./harmony133.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
|
+
]
|
10
54
|
}
|
11
|
-
|
12
|
-
|
13
|
-
_trimmedEndIndex = trimmedEndIndex;
|
14
|
-
return _trimmedEndIndex;
|
15
|
-
}
|
55
|
+
);
|
56
|
+
};
|
16
57
|
export {
|
17
|
-
|
58
|
+
TaskLanguage
|
18
59
|
};
|
19
60
|
//# sourceMappingURL=harmony125.mjs.map
|