hrm_ui_lib 1.2.5-alpha.1 → 1.2.5-alpha.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/defineProperty-516763da.js +28 -0
- package/extends-d5524810.js +11 -0
- package/hooks/useGetTooltipPosition.js +1 -1
- package/objectWithoutProperties-aa175d42.js +23 -0
- package/package.json +1 -1
- package/slicedToArray-39aef912.js +55 -0
- package/toConsumableArray-bddd1c3a.js +19 -0
- package/typeof-f0019e35.js +11 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { _ as _typeof } from './typeof-f0019e35.js';
|
|
2
|
+
|
|
3
|
+
function toPrimitive(t, r) {
|
|
4
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
5
|
+
var e = t[Symbol.toPrimitive];
|
|
6
|
+
if (void 0 !== e) {
|
|
7
|
+
var i = e.call(t, r || "default");
|
|
8
|
+
if ("object" != _typeof(i)) return i;
|
|
9
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
10
|
+
}
|
|
11
|
+
return ("string" === r ? String : Number)(t);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function toPropertyKey(t) {
|
|
15
|
+
var i = toPrimitive(t, "string");
|
|
16
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function _defineProperty(e, r, t) {
|
|
20
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
21
|
+
value: t,
|
|
22
|
+
enumerable: !0,
|
|
23
|
+
configurable: !0,
|
|
24
|
+
writable: !0
|
|
25
|
+
}) : e[r] = t, e;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { _defineProperty as _ };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _extends() {
|
|
2
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
3
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
4
|
+
var t = arguments[e];
|
|
5
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
6
|
+
}
|
|
7
|
+
return n;
|
|
8
|
+
}, _extends.apply(null, arguments);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { _extends as _ };
|
|
@@ -23,7 +23,7 @@ var useGetTooltipPosition = function useGetTooltipPosition(info) {
|
|
|
23
23
|
// this is calculations for tooltip top/left/bottom/right positions
|
|
24
24
|
var calculatedPosition = useMemo(function () {
|
|
25
25
|
var hasTopSpace = tooltipHeight + GAP < top;
|
|
26
|
-
var hasBottomSpace =
|
|
26
|
+
var hasBottomSpace = tooltipHeight + GAP < window.innerHeight - bottom;
|
|
27
27
|
var hasLeftSpace = tooltipWidth + GAP < left;
|
|
28
28
|
var hasRightSpace = tooltipWidth + GAP < window.innerWidth - left;
|
|
29
29
|
var hasMiddleRightSpace = tooltipWidth + GAP < window.innerWidth - left - itemWidth;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
2
|
+
if (null == r) return {};
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
5
|
+
if (e.includes(n)) continue;
|
|
6
|
+
t[n] = r[n];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _objectWithoutProperties(e, t) {
|
|
12
|
+
if (null == e) return {};
|
|
13
|
+
var o,
|
|
14
|
+
r,
|
|
15
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
16
|
+
if (Object.getOwnPropertySymbols) {
|
|
17
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
18
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
19
|
+
}
|
|
20
|
+
return i;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { _objectWithoutProperties as _ };
|
package/package.json
CHANGED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
function _arrayWithHoles(r) {
|
|
2
|
+
if (Array.isArray(r)) return r;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
function _iterableToArrayLimit(r, l) {
|
|
6
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (null != t) {
|
|
8
|
+
var e,
|
|
9
|
+
n,
|
|
10
|
+
i,
|
|
11
|
+
u,
|
|
12
|
+
a = [],
|
|
13
|
+
f = !0,
|
|
14
|
+
o = !1;
|
|
15
|
+
try {
|
|
16
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
17
|
+
if (Object(t) !== t) return;
|
|
18
|
+
f = !1;
|
|
19
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
20
|
+
} catch (r) {
|
|
21
|
+
o = !0, n = r;
|
|
22
|
+
} finally {
|
|
23
|
+
try {
|
|
24
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
25
|
+
} finally {
|
|
26
|
+
if (o) throw n;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function _arrayLikeToArray(r, a) {
|
|
34
|
+
(null == a || a > r.length) && (a = r.length);
|
|
35
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
36
|
+
return n;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
function _unsupportedIterableToArray(r, a) {
|
|
40
|
+
if (r) {
|
|
41
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
42
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
43
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _nonIterableRest() {
|
|
48
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
function _slicedToArray(r, e) {
|
|
52
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { _slicedToArray as _, _arrayLikeToArray as a, _unsupportedIterableToArray as b };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { a as _arrayLikeToArray, b as _unsupportedIterableToArray } from './slicedToArray-39aef912.js';
|
|
2
|
+
|
|
3
|
+
function _arrayWithoutHoles(r) {
|
|
4
|
+
if (Array.isArray(r)) return _arrayLikeToArray(r);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function _iterableToArray(r) {
|
|
8
|
+
if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
function _nonIterableSpread() {
|
|
12
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function _toConsumableArray(r) {
|
|
16
|
+
return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread();
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { _toConsumableArray as _ };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
function _typeof(o) {
|
|
2
|
+
"@babel/helpers - typeof";
|
|
3
|
+
|
|
4
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
+
return typeof o;
|
|
6
|
+
} : function (o) {
|
|
7
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
+
}, _typeof(o);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { _typeof as _ };
|