@dvrd/dvr-controls 1.0.41 → 1.0.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvrd/dvr-controls",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -29,18 +29,20 @@
29
29
  "react-dom": "18.2.0",
30
30
  "react-router-dom": "6.15.0"
31
31
  },
32
- "devDependencies": {
32
+ "dependencies": {
33
33
  "@types/dompurify": "2.4.0",
34
34
  "@types/js-cookie": "3.0.3",
35
- "@types/lodash": "4.14.191",
35
+ "@types/lodash.defer": "^4.1.7",
36
+ "@types/lodash.delay": "^4.1.7",
37
+ "@types/lodash.isequal": "^4.5.6",
38
+ "@types/lodash.merge": "^4.6.7",
39
+ "@types/lodash.mergewith": "^4.6.7",
36
40
  "@types/node": "18.14.0",
37
- "@types/react": "18.2.19",
38
- "@types/react-color": "3.0.6",
41
+ "@types/react": "^18.2.28",
42
+ "@types/react-color": "2.13.5",
39
43
  "@types/react-dom": "18.0.11",
40
44
  "@types/uuid": "9.0.0",
41
- "typescript": "4.9.5"
42
- },
43
- "dependencies": {
45
+ "typescript": "4.9.5",
44
46
  "@fortawesome/fontawesome-svg-core": "6.3.0",
45
47
  "@fortawesome/free-brands-svg-icons": "6.3.0",
46
48
  "@fortawesome/free-regular-svg-icons": "6.3.0",
@@ -49,10 +51,14 @@
49
51
  "classnames": "2.3.2",
50
52
  "dompurify": "3.0.0",
51
53
  "js-cookie": "3.0.1",
52
- "lodash": "4.17.21",
54
+ "lodash.defer": "^4.1.0",
55
+ "lodash.delay": "^4.1.1",
56
+ "lodash.isequal": "^4.5.0",
57
+ "lodash.merge": "^4.6.2",
58
+ "lodash.mergewith": "^4.6.2",
53
59
  "moment": "2.29.4",
54
60
  "react-color": "2.19.3",
55
61
  "react-rnd": "10.4.1",
56
62
  "uuid": "9.0.0"
57
63
  }
58
- }
64
+ }
@@ -8,8 +8,7 @@ import {PureComponent, ReactElement} from "react";
8
8
  import AwesomeIcon from "../icon/awesomeIcon";
9
9
  import classNames from "classnames";
10
10
  import {voidFunction} from "../util/controlUtil";
11
- import isEqual from 'lodash/isEqual';
12
- import {debug} from "../../..";
11
+ import isEqual from 'lodash.isequal';
13
12
 
14
13
  interface Props {
15
14
  onClickNext: MouseEventHandler;
@@ -24,6 +24,7 @@ interface Props extends ColorPickerProps<any> {
24
24
  visible: boolean;
25
25
  transparent: boolean;
26
26
  closeable: boolean;
27
+ className?: string;
27
28
  }
28
29
 
29
30
  interface State {
@@ -15,7 +15,7 @@ import DatePicker from "./datePicker/datePicker";
15
15
  import TimePicker from "./timePicker/timePicker";
16
16
  import DateInput from "./input/dateInput";
17
17
  import {DVRInputControllerProps} from "../v2/inputController_v2";
18
- import mergeWith from 'lodash/mergeWith';
18
+ import mergeWith from 'lodash.mergewith';
19
19
  import {colorIsWhite, convertColor, editColor} from '../../util/colorUtil';
20
20
  import {toMoment} from '../../util/momentUtil';
21
21
  import {pad} from '../../util/controlUtil';
@@ -8,7 +8,7 @@ import classNames from 'classnames';
8
8
  import {ControlContext} from "../util/controlContext";
9
9
  import {convertColor} from "../util/colorUtil";
10
10
  import {calculateTextWidth, getComputedProperty, remToPx} from "../util/controlUtil";
11
- import { defer } from 'lodash';
11
+ import defer from 'lodash.defer';
12
12
 
13
13
  export enum LabelType {
14
14
  LABEL, SPAN, PAR,
@@ -13,7 +13,7 @@ import React, {
13
13
  import {useMatch, useNavigate} from 'react-router';
14
14
  import {NavigationItem} from "../util/interfaces";
15
15
  import {AwesomeIcon, hasHover} from "../../../index";
16
- import {defer} from 'lodash';
16
+ import defer from 'lodash.defer';
17
17
 
18
18
  interface Props {
19
19
  onClickItem?: (item: NavigationItem) => MouseEventHandler;
@@ -9,7 +9,7 @@ import {
9
9
  } from "../../util/interfaces";
10
10
  import {PDFDraggable, PdfElement} from "../element/pdfElement";
11
11
  import {nullify} from "../../util/miscUtil";
12
- import {merge} from 'lodash';
12
+ import merge from 'lodash.merge';
13
13
  import {AwesomeIcon, directTimeout, PAGE_HEIGHT, PAGE_WIDTH} from "../../../../index";
14
14
 
15
15
  interface Props {
@@ -9,7 +9,7 @@ import {
9
9
  PDFElementParams, PDFElementPersist, PDFElementType, PdfFont, PDFInvoiceTableParams
10
10
  } from "../../util/interfaces";
11
11
  import {PDFDraggable, PdfElement} from "../element/pdfElement";
12
- import {merge} from 'lodash';
12
+ import merge from 'lodash.merge';
13
13
  import {parsePrice, pxToPt} from "../../util/pdfUtil";
14
14
  import {WithEvents} from "../../../../index";
15
15
 
@@ -17,7 +17,7 @@ import {
17
17
  } from "../../util/interfaces";
18
18
  import {PDFDraggable, PdfElement} from "../element/pdfElement";
19
19
  import {debug, sanitizeHtml} from "../../util/miscUtil";
20
- import {merge} from 'lodash';
20
+ import merge from 'lodash.merge';
21
21
  import {PAGE_WIDTH, pxToPt, setPdfVariables, waitForFonts} from "../../util/pdfUtil";
22
22
  import {directTimeout} from "../../util/componentUtil";
23
23
  import {dispatchCustomEvent, showDialog} from "../../util/eventUtil";
@@ -16,7 +16,8 @@ import React, {
16
16
  import {ElementPosition, PDFElementPersist, RNDDimensions} from "../../../util/interfaces";
17
17
  import {generateComponentId} from "../../../util/componentUtil";
18
18
  import {DraggableData, HandleStyles, Position, ResizableDelta, ResizeEnable, Rnd, RndDragCallback} from 'react-rnd';
19
- import {defer, delay} from 'lodash';
19
+ import defer from 'lodash.defer';
20
+ import delay from 'lodash.delay';
20
21
  import {PDFDraggableType, ResizeDirection} from "../types/pdfTemplateTypes";
21
22
  import {PAGE_WIDTH} from "../../../util/pdfUtil";
22
23
  import classNames from 'classnames';
@@ -9,7 +9,7 @@ import {SidebarItem, SideMenuMode} from "../util/interfaces";
9
9
  import classNames from 'classnames';
10
10
  import {AwesomeIcon, generateComponentId, isAbsoluteLink} from "../../../index";
11
11
  import {ControlContext} from "../util/controlContext";
12
- import {defer} from 'lodash';
12
+ import defer from 'lodash.defer';
13
13
  import {IconName} from '@fortawesome/fontawesome-svg-core';
14
14
 
15
15
  interface Props {
@@ -6,7 +6,7 @@ import React from 'react';
6
6
  import {Snackbar} from "./snackbar";
7
7
  import {CustomAppEvent, DialogConfig, Snack} from "../util/interfaces";
8
8
  import WithEvents from '../events/withEvents';
9
- import {delay} from 'lodash';
9
+ import delay from 'lodash.delay';
10
10
 
11
11
  interface Props {
12
12
  containerClass: string;
@@ -4,7 +4,7 @@
4
4
 
5
5
  import React, {Context, PropsWithChildren, useEffect} from 'react';
6
6
  import {ControlVariant} from "./interfaces";
7
- import {defer} from 'lodash';
7
+ import defer from 'lodash.defer';
8
8
 
9
9
  // noinspection JSUnusedGlobalSymbols
10
10
  export interface ThemeContextShape {