pixel-react 1.14.58 → 1.14.60

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.
Files changed (53) hide show
  1. package/lib/assets/icons/fia_ai_icon.svg.js +846 -0
  2. package/lib/assets/icons/fia_ai_icon.svg.js.map +1 -0
  3. package/lib/components/DragAndDrop/DragAndDrop.d.ts +2 -0
  4. package/lib/components/DragAndDrop/DragAndDrop.js +3 -1
  5. package/lib/components/DragAndDrop/DragAndDrop.js.map +1 -1
  6. package/lib/components/Excel/ExcelFile/ExcelFile.js +6 -1
  7. package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
  8. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js +23 -5
  9. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ActiveCell.js.map +1 -1
  10. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js +6 -1
  11. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Cell.js.map +1 -1
  12. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js +10 -2
  13. package/lib/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.js.map +1 -1
  14. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.d.ts +9 -1
  15. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.js +26 -7
  16. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Copied.js.map +1 -1
  17. package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js +14 -6
  18. package/lib/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.js.map +1 -1
  19. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.d.ts +4 -0
  20. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js +13 -18
  21. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Selected.js.map +1 -1
  22. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +3 -1
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +67 -31
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js +14 -10
  26. package/lib/components/Excel/ExcelFile/ExcelFileComponents/reducer.js.map +1 -1
  27. package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +12 -0
  28. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.d.ts +1 -0
  29. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js +33 -1
  30. package/lib/components/Excel/ExcelFile/ExcelFileComponents/util.js.map +1 -1
  31. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js +26 -25
  32. package/lib/components/Excel/ExcelToolBar/ExcelToolBar.js.map +1 -1
  33. package/lib/components/Icon/iconList.js +2 -0
  34. package/lib/components/Icon/iconList.js.map +1 -1
  35. package/lib/components/Prompt/Prompt.js +15 -1
  36. package/lib/components/Prompt/Prompt.js.map +1 -1
  37. package/lib/components/Prompt/types.d.ts +4 -0
  38. package/lib/components/Select/components/Dropdown.js +2 -1
  39. package/lib/components/Select/components/Dropdown.js.map +1 -1
  40. package/lib/components/TableTreeFn/TableTreeFn.js +30 -0
  41. package/lib/components/TableTreeFn/TableTreeFn.js.map +1 -1
  42. package/lib/hooks/useFileDropzone.js +45 -17
  43. package/lib/hooks/useFileDropzone.js.map +1 -1
  44. package/lib/index.cjs +1281 -121
  45. package/lib/index.cjs.map +1 -1
  46. package/lib/index.d.ts +6 -0
  47. package/lib/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js +106 -0
  48. package/lib/node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js.map +1 -0
  49. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  50. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  51. package/lib/styles.css +1 -1
  52. package/lib/styles.css.map +1 -1
  53. package/package.json +2 -1
package/lib/index.d.ts CHANGED
@@ -7,6 +7,7 @@ import * as Form from 'react-hook-form';
7
7
  import * as DNDCore from '@dnd-kit/core';
8
8
  import * as DNDSortable from '@dnd-kit/sortable';
9
9
  import * as DNDUtilities from '@dnd-kit/utilities';
10
+ import * as DNDModifiers from '@dnd-kit/modifiers';
10
11
  import ReCAPTCHA from 'react-google-recaptcha';
11
12
  export { default as Janus } from 'janus-gateway';
12
13
  export { default as adapter } from 'webrtc-adapter';
@@ -2622,6 +2623,7 @@ declare const DragAndDrop: {
2622
2623
  DNDCore: typeof DNDCore;
2623
2624
  DNDSortable: typeof DNDSortable;
2624
2625
  DNDUtilities: typeof DNDUtilities;
2626
+ DNDModifiers: typeof DNDModifiers;
2625
2627
  };
2626
2628
 
2627
2629
  interface VariableInputProps {
@@ -3920,6 +3922,10 @@ interface promptProp {
3920
3922
  tooltipTitle?: string;
3921
3923
  value: string;
3922
3924
  disableInput?: boolean;
3925
+ isAdditionalIcon?: boolean;
3926
+ additionalIconName?: string;
3927
+ onAdditionalIconClick?: () => void;
3928
+ additionIconToolTip?: string;
3923
3929
  onPromptChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
3924
3930
  onBlur?: (event: React.FocusEvent<HTMLInputElement>) => void;
3925
3931
  onFocus?: (event: React.FocusEvent<HTMLInputElement>) => void;
@@ -0,0 +1,106 @@
1
+ import { getEventCoordinates } from '../../utilities/dist/utilities.esm.js';
2
+
3
+ function createSnapModifier(gridSize) {
4
+ return _ref => {
5
+ let {
6
+ transform
7
+ } = _ref;
8
+ return {
9
+ ...transform,
10
+ x: Math.ceil(transform.x / gridSize) * gridSize,
11
+ y: Math.ceil(transform.y / gridSize) * gridSize
12
+ };
13
+ };
14
+ }
15
+ const restrictToHorizontalAxis = _ref => {
16
+ let {
17
+ transform
18
+ } = _ref;
19
+ return {
20
+ ...transform,
21
+ y: 0
22
+ };
23
+ };
24
+ function restrictToBoundingRect(transform, rect, boundingRect) {
25
+ const value = {
26
+ ...transform
27
+ };
28
+ if (rect.top + transform.y <= boundingRect.top) {
29
+ value.y = boundingRect.top - rect.top;
30
+ } else if (rect.bottom + transform.y >= boundingRect.top + boundingRect.height) {
31
+ value.y = boundingRect.top + boundingRect.height - rect.bottom;
32
+ }
33
+ if (rect.left + transform.x <= boundingRect.left) {
34
+ value.x = boundingRect.left - rect.left;
35
+ } else if (rect.right + transform.x >= boundingRect.left + boundingRect.width) {
36
+ value.x = boundingRect.left + boundingRect.width - rect.right;
37
+ }
38
+ return value;
39
+ }
40
+ const restrictToParentElement = _ref => {
41
+ let {
42
+ containerNodeRect,
43
+ draggingNodeRect,
44
+ transform
45
+ } = _ref;
46
+ if (!draggingNodeRect || !containerNodeRect) {
47
+ return transform;
48
+ }
49
+ return restrictToBoundingRect(transform, draggingNodeRect, containerNodeRect);
50
+ };
51
+ const restrictToFirstScrollableAncestor = _ref => {
52
+ let {
53
+ draggingNodeRect,
54
+ transform,
55
+ scrollableAncestorRects
56
+ } = _ref;
57
+ const firstScrollableAncestorRect = scrollableAncestorRects[0];
58
+ if (!draggingNodeRect || !firstScrollableAncestorRect) {
59
+ return transform;
60
+ }
61
+ return restrictToBoundingRect(transform, draggingNodeRect, firstScrollableAncestorRect);
62
+ };
63
+ const restrictToVerticalAxis = _ref => {
64
+ let {
65
+ transform
66
+ } = _ref;
67
+ return {
68
+ ...transform,
69
+ x: 0
70
+ };
71
+ };
72
+ const restrictToWindowEdges = _ref => {
73
+ let {
74
+ transform,
75
+ draggingNodeRect,
76
+ windowRect
77
+ } = _ref;
78
+ if (!draggingNodeRect || !windowRect) {
79
+ return transform;
80
+ }
81
+ return restrictToBoundingRect(transform, draggingNodeRect, windowRect);
82
+ };
83
+ const snapCenterToCursor = _ref => {
84
+ let {
85
+ activatorEvent,
86
+ draggingNodeRect,
87
+ transform
88
+ } = _ref;
89
+ if (draggingNodeRect && activatorEvent) {
90
+ const activatorCoordinates = getEventCoordinates(activatorEvent);
91
+ if (!activatorCoordinates) {
92
+ return transform;
93
+ }
94
+ const offsetX = activatorCoordinates.x - draggingNodeRect.left;
95
+ const offsetY = activatorCoordinates.y - draggingNodeRect.top;
96
+ return {
97
+ ...transform,
98
+ x: transform.x + offsetX - draggingNodeRect.width / 2,
99
+ y: transform.y + offsetY - draggingNodeRect.height / 2
100
+ };
101
+ }
102
+ return transform;
103
+ };
104
+
105
+ export { createSnapModifier, restrictToFirstScrollableAncestor, restrictToHorizontalAxis, restrictToParentElement, restrictToVerticalAxis, restrictToWindowEdges, snapCenterToCursor };
106
+ //# sourceMappingURL=modifiers.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modifiers.esm.js","sources":["../../../../../node_modules/@dnd-kit/modifiers/dist/modifiers.esm.js"],"sourcesContent":["import { getEventCoordinates } from '@dnd-kit/utilities';\n\nfunction createSnapModifier(gridSize) {\n return _ref => {\n let {\n transform\n } = _ref;\n return { ...transform,\n x: Math.ceil(transform.x / gridSize) * gridSize,\n y: Math.ceil(transform.y / gridSize) * gridSize\n };\n };\n}\n\nconst restrictToHorizontalAxis = _ref => {\n let {\n transform\n } = _ref;\n return { ...transform,\n y: 0\n };\n};\n\nfunction restrictToBoundingRect(transform, rect, boundingRect) {\n const value = { ...transform\n };\n\n if (rect.top + transform.y <= boundingRect.top) {\n value.y = boundingRect.top - rect.top;\n } else if (rect.bottom + transform.y >= boundingRect.top + boundingRect.height) {\n value.y = boundingRect.top + boundingRect.height - rect.bottom;\n }\n\n if (rect.left + transform.x <= boundingRect.left) {\n value.x = boundingRect.left - rect.left;\n } else if (rect.right + transform.x >= boundingRect.left + boundingRect.width) {\n value.x = boundingRect.left + boundingRect.width - rect.right;\n }\n\n return value;\n}\n\nconst restrictToParentElement = _ref => {\n let {\n containerNodeRect,\n draggingNodeRect,\n transform\n } = _ref;\n\n if (!draggingNodeRect || !containerNodeRect) {\n return transform;\n }\n\n return restrictToBoundingRect(transform, draggingNodeRect, containerNodeRect);\n};\n\nconst restrictToFirstScrollableAncestor = _ref => {\n let {\n draggingNodeRect,\n transform,\n scrollableAncestorRects\n } = _ref;\n const firstScrollableAncestorRect = scrollableAncestorRects[0];\n\n if (!draggingNodeRect || !firstScrollableAncestorRect) {\n return transform;\n }\n\n return restrictToBoundingRect(transform, draggingNodeRect, firstScrollableAncestorRect);\n};\n\nconst restrictToVerticalAxis = _ref => {\n let {\n transform\n } = _ref;\n return { ...transform,\n x: 0\n };\n};\n\nconst restrictToWindowEdges = _ref => {\n let {\n transform,\n draggingNodeRect,\n windowRect\n } = _ref;\n\n if (!draggingNodeRect || !windowRect) {\n return transform;\n }\n\n return restrictToBoundingRect(transform, draggingNodeRect, windowRect);\n};\n\nconst snapCenterToCursor = _ref => {\n let {\n activatorEvent,\n draggingNodeRect,\n transform\n } = _ref;\n\n if (draggingNodeRect && activatorEvent) {\n const activatorCoordinates = getEventCoordinates(activatorEvent);\n\n if (!activatorCoordinates) {\n return transform;\n }\n\n const offsetX = activatorCoordinates.x - draggingNodeRect.left;\n const offsetY = activatorCoordinates.y - draggingNodeRect.top;\n return { ...transform,\n x: transform.x + offsetX - draggingNodeRect.width / 2,\n y: transform.y + offsetY - draggingNodeRect.height / 2\n };\n }\n\n return transform;\n};\n\nexport { createSnapModifier, restrictToFirstScrollableAncestor, restrictToHorizontalAxis, restrictToParentElement, restrictToVerticalAxis, restrictToWindowEdges, snapCenterToCursor };\n//# sourceMappingURL=modifiers.esm.js.map\n"],"names":["createSnapModifier","gridSize","_ref","transform","x","Math","ceil","y"],"mappings":";;AAEgBA,SAAAA,kBAAAA,CAAmBC,QAAA,EAAA;AACjC,EAAA,OAAOC,IAAA,IAAA;IAAA,IAAC;AAACC,MAAAA;AAAF,KAAA,GAAAD,IAAA;IAAA,OAAkB;AACvB,MAAA,GAAGC,SADoB;MAEvBC,CAAC,EAAEC,IAAI,CAACC,IAAL,CAAUH,SAAS,CAACC,CAAV,GAAcH,QAAxB,CAAA,GAAoCA,QAFhB;MAGvBM,CAAC,EAAEF,IAAI,CAACC,IAAL,CAAUH,SAAS,CAACI,CAAV,GAAcN,QAAxB,CAAA,GAAoCA;AAHlC,KAAA;AAAP,GAAA;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
2
2
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
3
3
  import { __require as requireDirectives } from '../core/directives.js';
4
4
  import { __require as requireTemplatablepattern } from '../core/templatablepattern.js';
@@ -1,4 +1,4 @@
1
- import { __exports as tokenizer } from '../../../../../_virtual/tokenizer2.js';
1
+ import { __exports as tokenizer } from '../../../../../_virtual/tokenizer.js';
2
2
  import { __require as requireInputscanner } from '../core/inputscanner.js';
3
3
  import { __require as requireTokenizer$1 } from '../core/tokenizer.js';
4
4
  import { __require as requireDirectives } from '../core/directives.js';