@deviceinsight/ng-ui-components 7.24.0 → 7.25.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/index.js CHANGED
@@ -35,32 +35,9 @@ import Dropzone from "react-dropzone";
35
35
  import { AsyncPaginate } from "react-select-async-paginate";
36
36
  import { SVG } from "@svgdotjs/svg.js";
37
37
  import Highcharts from "highcharts";
38
- import HighchartsReact from "highcharts-react-official";
38
+ import { HighchartsReact } from "highcharts-react-official";
39
39
  import Slider$1 from "@rc-component/slider";
40
40
  import Tooltip from "@rc-component/tooltip";
41
- //#region \0rolldown/runtime.js
42
- var __create = Object.create;
43
- var __defProp = Object.defineProperty;
44
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
45
- var __getOwnPropNames = Object.getOwnPropertyNames;
46
- var __getProtoOf = Object.getPrototypeOf;
47
- var __hasOwnProp = Object.prototype.hasOwnProperty;
48
- var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
49
- var __copyProps = (to, from, except, desc) => {
50
- if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
51
- key = keys[i];
52
- if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
53
- get: ((k) => from[k]).bind(null, key),
54
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
55
- });
56
- }
57
- return to;
58
- };
59
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
60
- value: mod,
61
- enumerable: true
62
- }) : target, mod));
63
- //#endregion
64
41
  //#region src/modules/messageBox/messageBox.tsx
65
42
  var groupNamesToToastIds = {};
66
43
  var DEFAULT_AUTO_CLOSE_MS = 3e3;
@@ -3416,54 +3393,15 @@ var Chart = class extends Component {
3416
3393
  };
3417
3394
  //#endregion
3418
3395
  //#region src/components/slider/RcSliderWithTooltip.tsx
3419
- var import_raf = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((exports) => {
3420
- Object.defineProperty(exports, "__esModule", { value: true });
3421
- exports.default = void 0;
3422
- var raf = (callback) => +setTimeout(callback, 16);
3423
- var caf = (num) => clearTimeout(num);
3424
- if (typeof window !== "undefined" && "requestAnimationFrame" in window) {
3425
- raf = (callback) => window.requestAnimationFrame(callback);
3426
- caf = (handle) => window.cancelAnimationFrame(handle);
3427
- }
3428
- var rafUUID = 0;
3429
- var rafIds = /* @__PURE__ */ new Map();
3430
- function cleanup(id) {
3431
- rafIds.delete(id);
3432
- }
3433
- var wrapperRaf = (callback, times = 1) => {
3434
- rafUUID += 1;
3435
- const id = rafUUID;
3436
- function callRef(leftTimes) {
3437
- if (leftTimes === 0) {
3438
- cleanup(id);
3439
- callback();
3440
- } else {
3441
- const realId = raf(() => {
3442
- callRef(leftTimes - 1);
3443
- });
3444
- rafIds.set(id, realId);
3445
- }
3446
- }
3447
- callRef(times);
3448
- return id;
3449
- };
3450
- wrapperRaf.cancel = (id) => {
3451
- const realId = rafIds.get(id);
3452
- cleanup(id);
3453
- return caf(realId);
3454
- };
3455
- if (process.env.NODE_ENV !== "production") wrapperRaf.ids = () => rafIds;
3456
- exports.default = wrapperRaf;
3457
- })))(), 1);
3458
3396
  var HandleTooltip = (props) => {
3459
3397
  const { value, children, visible, tipFormatter = (val) => `${val}`, ...restProps } = props;
3460
3398
  const tooltipRef = useRef(null);
3461
3399
  const rafRef = useRef(null);
3462
3400
  function cancelKeepAlign() {
3463
- if (rafRef.current) import_raf.default.cancel(rafRef.current);
3401
+ if (rafRef.current) cancelAnimationFrame(rafRef.current);
3464
3402
  }
3465
3403
  function keepAlign() {
3466
- rafRef.current = (0, import_raf.default)(() => {
3404
+ rafRef.current = requestAnimationFrame(() => {
3467
3405
  tooltipRef.current?.forceAlign();
3468
3406
  });
3469
3407
  }