@lokalise/harmony 1.27.3-exp-teamTypes.1 → 1.27.3
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/README.md +8 -7
- package/dist/harmony.cjs +1 -4
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.css +3 -2
- package/dist/harmony.mjs +2 -5
- package/dist/harmony100.cjs +5 -7
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +5 -7
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +40 -18
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +40 -18
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +59 -13
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +59 -13
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +7 -16
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +7 -16
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +5 -6
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +5 -6
- package/dist/harmony105.cjs +5 -5
- package/dist/harmony105.mjs +5 -5
- package/dist/harmony106.cjs +6 -5
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +6 -5
- package/dist/harmony107.cjs +95 -61
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +95 -61
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +13 -88
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +13 -88
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +15 -19
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +14 -18
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +34 -94
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +34 -94
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +26 -11
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +26 -11
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +60 -12
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +60 -12
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +88 -36
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +88 -36
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +19 -29
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +18 -28
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +13 -7
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +13 -7
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +15 -57
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +15 -57
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +15 -59
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +15 -59
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +12 -19
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +11 -18
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +15 -12
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +15 -12
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +19 -13
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +19 -13
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +10 -14
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +10 -14
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +5 -10
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +5 -10
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +7 -16
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +7 -16
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +56 -20
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +56 -20
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +59 -11
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +59 -11
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +18 -46
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +17 -45
- 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 +31 -5
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +31 -5
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +13 -11
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +13 -11
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +45 -31
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +45 -31
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +13 -15
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +12 -14
- 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/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony59.cjs +29 -63
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +29 -63
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony66.cjs +1 -1
- package/dist/harmony66.mjs +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +2 -2
- package/dist/harmony69.mjs +2 -2
- package/dist/harmony70.cjs +2 -2
- package/dist/harmony70.mjs +2 -2
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +3 -3
- package/dist/harmony73.mjs +3 -3
- package/dist/harmony74.cjs +6 -6
- package/dist/harmony74.mjs +6 -6
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony79.cjs +12 -7
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +11 -6
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +20 -8
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +20 -8
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +3 -6
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -6
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +9 -57
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +8 -56
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +9 -33
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +8 -32
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +57 -5
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +57 -5
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +32 -9
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +31 -8
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +6 -25
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +5 -24
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +6 -3
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +6 -3
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +24 -21
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +23 -20
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +3 -9
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +3 -9
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +19 -9
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +21 -11
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +11 -20
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -20
- package/dist/harmony91.mjs.map +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 -5
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -5
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +13 -129
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +13 -129
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +18 -9
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +18 -9
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +129 -37
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +129 -37
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +12 -60
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +11 -59
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +9 -7
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +11 -24
- package/dist/types/src/features/publicApi/team.d.ts +108 -187
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +115 -272
- package/package.json +1 -1
package/dist/harmony110.mjs
CHANGED
@@ -1,99 +1,39 @@
|
|
1
|
-
import { __require as
|
2
|
-
import { __require as
|
3
|
-
import { __require as
|
4
|
-
var
|
5
|
-
var
|
6
|
-
function
|
7
|
-
if (
|
8
|
-
|
9
|
-
var
|
10
|
-
var
|
11
|
-
var
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
lastInvokeTime = time;
|
33
|
-
timerId = setTimeout(timerExpired, wait);
|
34
|
-
return leading ? invokeFunc(time) : result;
|
35
|
-
}
|
36
|
-
function remainingWait(time) {
|
37
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
38
|
-
return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
39
|
-
}
|
40
|
-
function shouldInvoke(time) {
|
41
|
-
var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
42
|
-
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
43
|
-
}
|
44
|
-
function timerExpired() {
|
45
|
-
var time = now();
|
46
|
-
if (shouldInvoke(time)) {
|
47
|
-
return trailingEdge(time);
|
48
|
-
}
|
49
|
-
timerId = setTimeout(timerExpired, remainingWait(time));
|
50
|
-
}
|
51
|
-
function trailingEdge(time) {
|
52
|
-
timerId = void 0;
|
53
|
-
if (trailing && lastArgs) {
|
54
|
-
return invokeFunc(time);
|
55
|
-
}
|
56
|
-
lastArgs = lastThis = void 0;
|
57
|
-
return result;
|
58
|
-
}
|
59
|
-
function cancel() {
|
60
|
-
if (timerId !== void 0) {
|
61
|
-
clearTimeout(timerId);
|
62
|
-
}
|
63
|
-
lastInvokeTime = 0;
|
64
|
-
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
65
|
-
}
|
66
|
-
function flush() {
|
67
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
68
|
-
}
|
69
|
-
function debounced() {
|
70
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
71
|
-
lastArgs = arguments;
|
72
|
-
lastThis = this;
|
73
|
-
lastCallTime = time;
|
74
|
-
if (isInvoking) {
|
75
|
-
if (timerId === void 0) {
|
76
|
-
return leadingEdge(lastCallTime);
|
77
|
-
}
|
78
|
-
if (maxing) {
|
79
|
-
clearTimeout(timerId);
|
80
|
-
timerId = setTimeout(timerExpired, wait);
|
81
|
-
return invokeFunc(lastCallTime);
|
82
|
-
}
|
83
|
-
}
|
84
|
-
if (timerId === void 0) {
|
85
|
-
timerId = setTimeout(timerExpired, wait);
|
86
|
-
}
|
87
|
-
return result;
|
88
|
-
}
|
89
|
-
debounced.cancel = cancel;
|
90
|
-
debounced.flush = flush;
|
91
|
-
return debounced;
|
1
|
+
import { __require as require_baseTrim } from "./harmony116.mjs";
|
2
|
+
import { __require as requireIsObject } from "./harmony108.mjs";
|
3
|
+
import { __require as requireIsSymbol } from "./harmony117.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;
|
92
32
|
}
|
93
|
-
|
94
|
-
return
|
33
|
+
toNumber_1 = toNumber;
|
34
|
+
return toNumber_1;
|
95
35
|
}
|
96
36
|
export {
|
97
|
-
|
37
|
+
requireToNumber as __require
|
98
38
|
};
|
99
39
|
//# sourceMappingURL=harmony110.mjs.map
|
package/dist/harmony110.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony110.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony110.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/harmony111.cjs
CHANGED
@@ -1,16 +1,31 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
const debounce = require("./harmony107.cjs");
|
4
|
+
const isObject = require("./harmony108.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
|
+
});
|
11
26
|
}
|
12
|
-
|
13
|
-
return
|
27
|
+
throttle_1 = throttle;
|
28
|
+
return throttle_1;
|
14
29
|
}
|
15
|
-
exports.__require =
|
30
|
+
exports.__require = requireThrottle;
|
16
31
|
//# sourceMappingURL=harmony111.cjs.map
|
package/dist/harmony111.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony111.cjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony111.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/harmony111.mjs
CHANGED
@@ -1,16 +1,31 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
import { __require as requireDebounce } from "./harmony107.mjs";
|
2
|
+
import { __require as requireIsObject } from "./harmony108.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
|
+
});
|
9
24
|
}
|
10
|
-
|
11
|
-
return
|
25
|
+
throttle_1 = throttle;
|
26
|
+
return throttle_1;
|
12
27
|
}
|
13
28
|
export {
|
14
|
-
|
29
|
+
requireThrottle as __require
|
15
30
|
};
|
16
31
|
//# sourceMappingURL=harmony111.mjs.map
|
package/dist/harmony111.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony111.mjs","sources":["../node_modules/lodash/
|
1
|
+
{"version":3,"file":"harmony111.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/harmony112.cjs
CHANGED
@@ -1,17 +1,65 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
const min = Math.min;
|
4
|
+
const max = Math.max;
|
5
|
+
function clamp(start, value, end) {
|
6
|
+
return max(start, min(value, end));
|
7
|
+
}
|
8
|
+
function evaluate(value, param) {
|
9
|
+
return typeof value === "function" ? value(param) : value;
|
10
|
+
}
|
11
|
+
function getSide(placement) {
|
12
|
+
return placement.split("-")[0];
|
13
|
+
}
|
14
|
+
function getOppositeAxis(axis) {
|
15
|
+
return axis === "x" ? "y" : "x";
|
16
|
+
}
|
17
|
+
function getSideAxis(placement) {
|
18
|
+
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
19
|
+
}
|
20
|
+
function expandPaddingObject(padding) {
|
21
|
+
return {
|
22
|
+
top: 0,
|
23
|
+
right: 0,
|
24
|
+
bottom: 0,
|
25
|
+
left: 0,
|
26
|
+
...padding
|
27
|
+
};
|
28
|
+
}
|
29
|
+
function getPaddingObject(padding) {
|
30
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
31
|
+
top: padding,
|
32
|
+
right: padding,
|
33
|
+
bottom: padding,
|
34
|
+
left: padding
|
35
|
+
};
|
36
|
+
}
|
37
|
+
function rectToClientRect(rect) {
|
38
|
+
const {
|
39
|
+
x,
|
40
|
+
y,
|
41
|
+
width,
|
42
|
+
height
|
43
|
+
} = rect;
|
44
|
+
return {
|
45
|
+
width,
|
46
|
+
height,
|
47
|
+
top: y,
|
48
|
+
left: x,
|
49
|
+
right: x + width,
|
50
|
+
bottom: y + height,
|
51
|
+
x,
|
52
|
+
y
|
12
53
|
};
|
13
|
-
now_1 = now;
|
14
|
-
return now_1;
|
15
54
|
}
|
16
|
-
exports.
|
55
|
+
exports.clamp = clamp;
|
56
|
+
exports.evaluate = evaluate;
|
57
|
+
exports.expandPaddingObject = expandPaddingObject;
|
58
|
+
exports.getOppositeAxis = getOppositeAxis;
|
59
|
+
exports.getPaddingObject = getPaddingObject;
|
60
|
+
exports.getSide = getSide;
|
61
|
+
exports.getSideAxis = getSideAxis;
|
62
|
+
exports.max = max;
|
63
|
+
exports.min = min;
|
64
|
+
exports.rectToClientRect = rectToClientRect;
|
17
65
|
//# sourceMappingURL=harmony112.cjs.map
|
package/dist/harmony112.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony112.cjs","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"harmony112.cjs","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":[],"mappings":";;AAQK,MAAC,MAAM,KAAK;AACZ,MAAC,MAAM,KAAK;AAiBjB,SAAS,MAAM,OAAO,OAAO,KAAK;AAChC,SAAO,IAAI,OAAO,IAAI,OAAO,GAAG,CAAC;AACnC;AACA,SAAS,SAAS,OAAO,OAAO;AAC9B,SAAO,OAAO,UAAU,aAAa,MAAM,KAAK,IAAI;AACtD;AACA,SAAS,QAAQ,WAAW;AAC1B,SAAO,UAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AAIA,SAAS,gBAAgB,MAAM;AAC7B,SAAO,SAAS,MAAM,MAAM;AAC9B;AAIA,SAAS,YAAY,WAAW;AAC9B,SAAO,CAAC,OAAO,QAAQ,EAAE,SAAS,QAAQ,SAAS,CAAC,IAAI,MAAM;AAChE;AAuDA,SAAS,oBAAoB,SAAS;AACpC,SAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,EACJ;AACH;AACA,SAAS,iBAAiB,SAAS;AACjC,SAAO,OAAO,YAAY,WAAW,oBAAoB,OAAO,IAAI;AAAA,IAClE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,EACP;AACH;AACA,SAAS,iBAAiB,MAAM;AAC9B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,IAAM;AACJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO,IAAI;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,IACA;AAAA,EACD;AACH;;;;;;;;;;;","x_google_ignoreList":[0]}
|
package/dist/harmony112.mjs
CHANGED
@@ -1,17 +1,65 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
const min = Math.min;
|
2
|
+
const max = Math.max;
|
3
|
+
function clamp(start, value, end) {
|
4
|
+
return max(start, min(value, end));
|
5
|
+
}
|
6
|
+
function evaluate(value, param) {
|
7
|
+
return typeof value === "function" ? value(param) : value;
|
8
|
+
}
|
9
|
+
function getSide(placement) {
|
10
|
+
return placement.split("-")[0];
|
11
|
+
}
|
12
|
+
function getOppositeAxis(axis) {
|
13
|
+
return axis === "x" ? "y" : "x";
|
14
|
+
}
|
15
|
+
function getSideAxis(placement) {
|
16
|
+
return ["top", "bottom"].includes(getSide(placement)) ? "y" : "x";
|
17
|
+
}
|
18
|
+
function expandPaddingObject(padding) {
|
19
|
+
return {
|
20
|
+
top: 0,
|
21
|
+
right: 0,
|
22
|
+
bottom: 0,
|
23
|
+
left: 0,
|
24
|
+
...padding
|
25
|
+
};
|
26
|
+
}
|
27
|
+
function getPaddingObject(padding) {
|
28
|
+
return typeof padding !== "number" ? expandPaddingObject(padding) : {
|
29
|
+
top: padding,
|
30
|
+
right: padding,
|
31
|
+
bottom: padding,
|
32
|
+
left: padding
|
33
|
+
};
|
34
|
+
}
|
35
|
+
function rectToClientRect(rect) {
|
36
|
+
const {
|
37
|
+
x,
|
38
|
+
y,
|
39
|
+
width,
|
40
|
+
height
|
41
|
+
} = rect;
|
42
|
+
return {
|
43
|
+
width,
|
44
|
+
height,
|
45
|
+
top: y,
|
46
|
+
left: x,
|
47
|
+
right: x + width,
|
48
|
+
bottom: y + height,
|
49
|
+
x,
|
50
|
+
y
|
10
51
|
};
|
11
|
-
now_1 = now;
|
12
|
-
return now_1;
|
13
52
|
}
|
14
53
|
export {
|
15
|
-
|
54
|
+
clamp,
|
55
|
+
evaluate,
|
56
|
+
expandPaddingObject,
|
57
|
+
getOppositeAxis,
|
58
|
+
getPaddingObject,
|
59
|
+
getSide,
|
60
|
+
getSideAxis,
|
61
|
+
max,
|
62
|
+
min,
|
63
|
+
rectToClientRect
|
16
64
|
};
|
17
65
|
//# sourceMappingURL=harmony112.mjs.map
|
package/dist/harmony112.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony112.mjs","sources":["../node_modules/
|
1
|
+
{"version":3,"file":"harmony112.mjs","sources":["../node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs"],"sourcesContent":["/**\n * Custom positioning reference element.\n * @see https://floating-ui.com/docs/virtual-elements\n */\n\nconst sides = ['top', 'right', 'bottom', 'left'];\nconst alignments = ['start', 'end'];\nconst placements = /*#__PURE__*/sides.reduce((acc, side) => acc.concat(side, side + \"-\" + alignments[0], side + \"-\" + alignments[1]), []);\nconst min = Math.min;\nconst max = Math.max;\nconst round = Math.round;\nconst floor = Math.floor;\nconst createCoords = v => ({\n x: v,\n y: v\n});\nconst oppositeSideMap = {\n left: 'right',\n right: 'left',\n bottom: 'top',\n top: 'bottom'\n};\nconst oppositeAlignmentMap = {\n start: 'end',\n end: 'start'\n};\nfunction clamp(start, value, end) {\n return max(start, min(value, end));\n}\nfunction evaluate(value, param) {\n return typeof value === 'function' ? value(param) : value;\n}\nfunction getSide(placement) {\n return placement.split('-')[0];\n}\nfunction getAlignment(placement) {\n return placement.split('-')[1];\n}\nfunction getOppositeAxis(axis) {\n return axis === 'x' ? 'y' : 'x';\n}\nfunction getAxisLength(axis) {\n return axis === 'y' ? 'height' : 'width';\n}\nfunction getSideAxis(placement) {\n return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';\n}\nfunction getAlignmentAxis(placement) {\n return getOppositeAxis(getSideAxis(placement));\n}\nfunction getAlignmentSides(placement, rects, rtl) {\n if (rtl === void 0) {\n rtl = false;\n }\n const alignment = getAlignment(placement);\n const alignmentAxis = getAlignmentAxis(placement);\n const length = getAxisLength(alignmentAxis);\n let mainAlignmentSide = alignmentAxis === 'x' ? alignment === (rtl ? 'end' : 'start') ? 'right' : 'left' : alignment === 'start' ? 'bottom' : 'top';\n if (rects.reference[length] > rects.floating[length]) {\n mainAlignmentSide = getOppositePlacement(mainAlignmentSide);\n }\n return [mainAlignmentSide, getOppositePlacement(mainAlignmentSide)];\n}\nfunction getExpandedPlacements(placement) {\n const oppositePlacement = getOppositePlacement(placement);\n return [getOppositeAlignmentPlacement(placement), oppositePlacement, getOppositeAlignmentPlacement(oppositePlacement)];\n}\nfunction getOppositeAlignmentPlacement(placement) {\n return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);\n}\nfunction getSideList(side, isStart, rtl) {\n const lr = ['left', 'right'];\n const rl = ['right', 'left'];\n const tb = ['top', 'bottom'];\n const bt = ['bottom', 'top'];\n switch (side) {\n case 'top':\n case 'bottom':\n if (rtl) return isStart ? rl : lr;\n return isStart ? lr : rl;\n case 'left':\n case 'right':\n return isStart ? tb : bt;\n default:\n return [];\n }\n}\nfunction getOppositeAxisPlacements(placement, flipAlignment, direction, rtl) {\n const alignment = getAlignment(placement);\n let list = getSideList(getSide(placement), direction === 'start', rtl);\n if (alignment) {\n list = list.map(side => side + \"-\" + alignment);\n if (flipAlignment) {\n list = list.concat(list.map(getOppositeAlignmentPlacement));\n }\n }\n return list;\n}\nfunction getOppositePlacement(placement) {\n return placement.replace(/left|right|bottom|top/g, side => oppositeSideMap[side]);\n}\nfunction expandPaddingObject(padding) {\n return {\n top: 0,\n right: 0,\n bottom: 0,\n left: 0,\n ...padding\n };\n}\nfunction getPaddingObject(padding) {\n return typeof padding !== 'number' ? expandPaddingObject(padding) : {\n top: padding,\n right: padding,\n bottom: padding,\n left: padding\n };\n}\nfunction rectToClientRect(rect) {\n const {\n x,\n y,\n width,\n height\n } = rect;\n return {\n width,\n height,\n top: y,\n left: x,\n right: x + width,\n bottom: y + height,\n x,\n y\n };\n}\n\nexport { alignments, clamp, createCoords, evaluate, expandPaddingObject, floor, getAlignment, getAlignmentAxis, getAlignmentSides, getAxisLength, getExpandedPlacements, getOppositeAlignmentPlacement, getOppositeAxis, getOppositeAxisPlacements, getOppositePlacement, getPaddingObject, getSide, getSideAxis, max, min, placements, rectToClientRect, round, sides };\n"],"names":[],"mappings":"AAQK,MAAC,MAAM,KAAK;AACZ,MAAC,MAAM,KAAK;AAiBjB,SAAS,MAAM,OAAO,OAAO,KAAK;AAChC,SAAO,IAAI,OAAO,IAAI,OAAO,GAAG,CAAC;AACnC;AACA,SAAS,SAAS,OAAO,OAAO;AAC9B,SAAO,OAAO,UAAU,aAAa,MAAM,KAAK,IAAI;AACtD;AACA,SAAS,QAAQ,WAAW;AAC1B,SAAO,UAAU,MAAM,GAAG,EAAE,CAAC;AAC/B;AAIA,SAAS,gBAAgB,MAAM;AAC7B,SAAO,SAAS,MAAM,MAAM;AAC9B;AAIA,SAAS,YAAY,WAAW;AAC9B,SAAO,CAAC,OAAO,QAAQ,EAAE,SAAS,QAAQ,SAAS,CAAC,IAAI,MAAM;AAChE;AAuDA,SAAS,oBAAoB,SAAS;AACpC,SAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,GAAG;AAAA,EACJ;AACH;AACA,SAAS,iBAAiB,SAAS;AACjC,SAAO,OAAO,YAAY,WAAW,oBAAoB,OAAO,IAAI;AAAA,IAClE,KAAK;AAAA,IACL,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,MAAM;AAAA,EACP;AACH;AACA,SAAS,iBAAiB,MAAM;AAC9B,QAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACJ,IAAM;AACJ,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA,KAAK;AAAA,IACL,MAAM;AAAA,IACN,OAAO,IAAI;AAAA,IACX,QAAQ,IAAI;AAAA,IACZ;AAAA,IACA;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
|
package/dist/harmony113.cjs
CHANGED
@@ -1,39 +1,91 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const text = require("./harmony8.cjs");
|
6
|
+
const url = require("./harmony9.cjs");
|
7
|
+
const date = require("./harmony10.cjs");
|
8
|
+
const dateFns = require("date-fns");
|
9
|
+
const index = require("./harmony123.cjs");
|
10
|
+
const TaskLanguage = require("./harmony124.cjs");
|
11
|
+
const TasksContext = require("./harmony100.cjs");
|
12
|
+
const content = require("./harmony125.cjs");
|
13
|
+
const TaskOverview_module = require("./harmony126.cjs");
|
14
|
+
const TaskOverview = ({ task }) => {
|
15
|
+
const { getProjectUrl, taskTitleOnClick } = TasksContext.useTasks();
|
16
|
+
const taskLanguages = content.getTaskLanguages(task.langs);
|
17
|
+
const handleDownloadStyleGuide = (styleGuide) => {
|
18
|
+
window.open(
|
19
|
+
`/style-guide/${task.team_id}/download/${styleGuide.id}/link`,
|
20
|
+
"_blank",
|
21
|
+
"noopener,noreferrer"
|
22
|
+
);
|
23
|
+
};
|
24
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TaskOverview_module.default.taskContainer, children: [
|
25
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-row gap-1 items-center", children: [
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-row gap-1 items-start flex-wrap", children: [
|
27
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { color: content.tagColor[task.task_type], variant: "solid", children: task.task_type.toLocaleUpperCase() }),
|
28
|
+
task.due_date && /* @__PURE__ */ jsxRuntime.jsxs(louis.Tag, { color: "#EAB308", children: [
|
29
|
+
"DUE ",
|
30
|
+
date.formatDate(dateFns.parseISO(task.due_date), "yyyy-MM-dd")
|
31
|
+
] })
|
32
|
+
] }),
|
33
|
+
task.style_guides.length > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex-row", children: task.style_guides.length === 1 ? /* @__PURE__ */ jsxRuntime.jsx(
|
34
|
+
louis.Button,
|
35
|
+
{
|
36
|
+
size: "sm",
|
37
|
+
variant: "secondary",
|
38
|
+
onClick: () => handleDownloadStyleGuide(task.style_guides[0]),
|
39
|
+
children: "Download style guide"
|
40
|
+
}
|
41
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
42
|
+
louis.Menu,
|
43
|
+
{
|
44
|
+
menuButton: /* @__PURE__ */ jsxRuntime.jsx(louis.Button, { variant: "secondary", size: "sm", children: "Download style guide" }),
|
45
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { children: task.style_guides.map((styleGuide) => /* @__PURE__ */ jsxRuntime.jsx(
|
46
|
+
louis.MenuItem,
|
47
|
+
{
|
48
|
+
onClick: () => handleDownloadStyleGuide(styleGuide),
|
49
|
+
children: index.splitFileName(styleGuide.name).name
|
50
|
+
},
|
51
|
+
styleGuide.id
|
52
|
+
)) })
|
53
|
+
}
|
54
|
+
) })
|
55
|
+
] }),
|
56
|
+
/* @__PURE__ */ jsxRuntime.jsx("h4", { className: TaskOverview_module.default.taskTitle, children: /* @__PURE__ */ jsxRuntime.jsx(
|
57
|
+
louis.Link,
|
58
|
+
{
|
59
|
+
href: getProjectUrl({ task, view: "multi" }),
|
60
|
+
onClick: () => {
|
61
|
+
taskTitleOnClick == null ? void 0 : taskTitleOnClick({ task });
|
62
|
+
},
|
63
|
+
children: task.title
|
64
|
+
}
|
65
|
+
) }),
|
66
|
+
task.description && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TaskOverview_module.default.taskDescription, children: text.convertNewLineToBreakTag(url.makeUrlClickable(task.description)) }),
|
67
|
+
/* @__PURE__ */ jsxRuntime.jsxs("table", { className: TaskOverview_module.default.languagesTable, children: [
|
68
|
+
/* @__PURE__ */ jsxRuntime.jsx("thead", { children: /* @__PURE__ */ jsxRuntime.jsxs("tr", { children: [
|
69
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Languages" }),
|
70
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Words to do" }),
|
71
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Progress" }),
|
72
|
+
/* @__PURE__ */ jsxRuntime.jsx("th", { children: "Status" })
|
73
|
+
] }) }),
|
74
|
+
/* @__PURE__ */ jsxRuntime.jsx("tbody", { children: taskLanguages.map((language) => /* @__PURE__ */ jsxRuntime.jsx(TaskLanguage.TaskLanguage, { language, task }, language.lang_id)) })
|
75
|
+
] }),
|
76
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": "sidebar-task-overview-metadata", className: TaskOverview_module.default.metadata, children: [
|
77
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
78
|
+
"Source: ",
|
79
|
+
task.source_lang_name
|
80
|
+
] }),
|
81
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: task.created_by_fullname }),
|
82
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { children: [
|
83
|
+
"In ",
|
84
|
+
task.project_name,
|
85
|
+
task.master_branching_enabled === "1" && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TaskOverview_module.default.tag, children: task.branch_name ? task.branch_name : "master" })
|
86
|
+
] })
|
87
|
+
] })
|
88
|
+
] });
|
89
|
+
};
|
90
|
+
exports.TaskOverview = TaskOverview;
|
39
91
|
//# sourceMappingURL=harmony113.cjs.map
|