@corva/ui 0.106.0-12 → 0.106.0-13
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/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/cjs-bundle/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/CollapsableSidebar.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/cjs-bundle/components/DocumentViewer/DocumentViewer.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/cjs-bundle/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/cjs-bundle/components/FeedItem/FeedItem.js +1 -1
- package/cjs-bundle/components/FeedItem/components/FeedComments.js +1 -1
- package/cjs-bundle/components/ImageViewer/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/cjs-bundle/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/cjs-bundle/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/cjs-bundle/components/Popover/Popover.js +1 -1
- package/cjs-bundle/components/Popper/Popper.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.js +1 -0
- package/cjs-bundle/componentsV2/FilesLoader/FilesLoader.scss.js +1 -0
- package/cjs-bundle/componentsV2/FilesLoader/utils.js +1 -0
- package/cjs-bundle/componentsV2/FilesProcessor/FilesProcessor.js +1 -0
- package/cjs-bundle/componentsV2/FilesProcessor/FilesProcessor.scss.js +1 -0
- package/cjs-bundle/componentsV2/FilesProcessor/Processor.js +1 -0
- package/cjs-bundle/componentsV2/TextMiddleTruncated/TextMiddleTruncated.js +1 -1
- package/cjs-bundle/componentsV2/index.js +1 -1
- package/cjs-bundle/testing/AppTestWrapper/AppTestWrapper.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Casing/CasingTableV2/components/CasingJoints/Editor.js +1 -1
- package/components/Casing/CasingTableV2/components/Component.js +1 -1
- package/components/Casing/CasingTableV2/components/DrillPipe/Editor.js +1 -1
- package/components/CollapsableSidebar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/DevCenterAppContainer.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/PriorityMenus/PriorityMenus.js +1 -1
- package/components/DocumentViewer/DocumentViewer.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Agitator/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Bit/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Component.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillCollar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/DrillPipe/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Jar/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Lwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Mwd/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Pdm/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Rss/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Stabilizer/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Sub/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/Ur/Editor.js +1 -1
- package/components/Drillstring/BHAComponentsTable/components/shared/ConfirmationPopup.js +1 -1
- package/components/FeedItem/FeedItem.js +1 -1
- package/components/FeedItem/components/FeedComments.js +1 -1
- package/components/FilesLoader/useStyles.d.ts +1 -1
- package/components/ImageViewer/index.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/NonEngineeredWellsSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV2/components/Filter/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV2/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Filter/SidetrackSwitch.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/components/Table/MetricsAddMenu.js +1 -1
- package/components/OffsetWellPickerV3/components/CustomSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/OffsetWellSelectionView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/ToggleMapButton.js +1 -1
- package/components/OffsetWellPickerV3/components/TabSelection/index.js +1 -1
- package/components/OffsetWellPickerV3/components/WellHubView/index.js +1 -1
- package/components/OffsetWellPickerV3/components/shared/OffsetWellTableHead.js +1 -1
- package/components/OffsetWellPickerV4/OffsetWellPickerV4.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/MetricsSettingMenu.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTable.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.js +1 -1
- package/components/PadOffsetsPicker/StagesSelector.js +1 -1
- package/components/PadOffsetsPickerV2/PadOffsetsPickerV2.js +1 -1
- package/components/Popover/Popover.js +1 -1
- package/components/Popper/Popper.js +1 -1
- package/components/RealTimeValuesSidebar/SidebarFooter.js +1 -1
- package/componentsV2/FilesLoader/FilesLoader.d.ts +42 -0
- package/componentsV2/FilesLoader/FilesLoader.d.ts.map +1 -0
- package/componentsV2/FilesLoader/FilesLoader.js +1 -0
- package/componentsV2/FilesLoader/FilesLoader.scss.js +1 -0
- package/componentsV2/FilesLoader/FilesLoader.stories.d.ts +12 -0
- package/componentsV2/FilesLoader/FilesLoader.stories.d.ts.map +1 -0
- package/componentsV2/FilesLoader/index.d.ts +2 -0
- package/componentsV2/FilesLoader/index.d.ts.map +1 -0
- package/componentsV2/FilesLoader/utils.d.ts +2 -0
- package/componentsV2/FilesLoader/utils.d.ts.map +1 -0
- package/componentsV2/FilesLoader/utils.js +1 -0
- package/componentsV2/FilesProcessor/FilesProcessor.d.ts +71 -0
- package/componentsV2/FilesProcessor/FilesProcessor.d.ts.map +1 -0
- package/componentsV2/FilesProcessor/FilesProcessor.js +1 -0
- package/componentsV2/FilesProcessor/FilesProcessor.scss.js +1 -0
- package/componentsV2/FilesProcessor/FilesProcessor.stories.d.ts +10 -0
- package/componentsV2/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -0
- package/componentsV2/FilesProcessor/Processor.d.ts +11 -0
- package/componentsV2/FilesProcessor/Processor.d.ts.map +1 -0
- package/componentsV2/FilesProcessor/Processor.js +1 -0
- package/componentsV2/FilesProcessor/index.d.ts +3 -0
- package/componentsV2/FilesProcessor/index.d.ts.map +1 -0
- package/componentsV2/FilesProcessor/types.d.ts +9 -0
- package/componentsV2/FilesProcessor/types.d.ts.map +1 -0
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.d.ts.map +1 -1
- package/componentsV2/TextMiddleTruncated/TextMiddleTruncated.js +1 -1
- package/componentsV2/index.d.ts +2 -0
- package/componentsV2/index.d.ts.map +1 -1
- package/componentsV2/index.js +1 -1
- package/package.json +1 -1
- package/testing/AppTestWrapper/AppTestWrapper.js +1 -1
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { FilesDropzoneProps } from '../FilesDropzone';
|
|
2
|
+
import { FilesProcessorFunction } from './types';
|
|
3
|
+
import { ProcessorProps } from './Processor';
|
|
4
|
+
type ValueItem = {
|
|
5
|
+
id: string | number;
|
|
6
|
+
name: string;
|
|
7
|
+
};
|
|
8
|
+
type FilesProcessorProps<T> = {
|
|
9
|
+
/**
|
|
10
|
+
* Function that processes file (uploads, parses, etc.)
|
|
11
|
+
*
|
|
12
|
+
* @param file - a file to upload
|
|
13
|
+
* @param onProgress - a function to be called to indicate progress. Accepts 2 arguments: total progress & current progress
|
|
14
|
+
* @param registerOnCancel - a function that registers processing cancellation handler
|
|
15
|
+
*/
|
|
16
|
+
processFile: FilesProcessorFunction<T>;
|
|
17
|
+
/**
|
|
18
|
+
* Called when files are uploaded/reuploaded
|
|
19
|
+
*
|
|
20
|
+
* @param results array of results from `processFile`
|
|
21
|
+
*/
|
|
22
|
+
onDone: (results: T[]) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Files list to display
|
|
25
|
+
*
|
|
26
|
+
* `type ValueItem = {id: string | number; name: string;};`
|
|
27
|
+
*/
|
|
28
|
+
value?: ValueItem[];
|
|
29
|
+
/**
|
|
30
|
+
* Used in conjunction with `value`. Called when user presses "delete" button. If undefined - no button is shown
|
|
31
|
+
* @param item
|
|
32
|
+
*/
|
|
33
|
+
onDelete?: (item: ValueItem) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Fired when file(s) selected for processing
|
|
36
|
+
*/
|
|
37
|
+
onStartProcessing?: (files: File[]) => void;
|
|
38
|
+
/**
|
|
39
|
+
* Fired when file processing failed or cancelled
|
|
40
|
+
*/
|
|
41
|
+
onProcessingFailure?: (file: File, isCancelled?: boolean, error?: Error) => void;
|
|
42
|
+
/**
|
|
43
|
+
* Controls if multiple files can be processed
|
|
44
|
+
*/
|
|
45
|
+
multiple?: FilesDropzoneProps['multiple'];
|
|
46
|
+
/**
|
|
47
|
+
* Array of or comma-separated MIME types/File Extensions to accept
|
|
48
|
+
*
|
|
49
|
+
* See `FilesDropzone`'s props
|
|
50
|
+
*/
|
|
51
|
+
accept?: FilesDropzoneProps['accept'];
|
|
52
|
+
/**
|
|
53
|
+
* Maximum files to accept
|
|
54
|
+
*/
|
|
55
|
+
maxFiles?: FilesDropzoneProps['maxFiles'];
|
|
56
|
+
/**
|
|
57
|
+
* Maximum file size to accept
|
|
58
|
+
*/
|
|
59
|
+
maxSize?: FilesDropzoneProps['maxSize'];
|
|
60
|
+
/**
|
|
61
|
+
* Allows custom progress units
|
|
62
|
+
* @param total total progress value
|
|
63
|
+
* @param current current progress value
|
|
64
|
+
*/
|
|
65
|
+
formatProgress?: ProcessorProps<object>['formatProgress'];
|
|
66
|
+
className?: string;
|
|
67
|
+
testId?: string;
|
|
68
|
+
};
|
|
69
|
+
export declare const FilesProcessor: <T extends object>({ multiple, accept, className, processFile, value, onDone, onDelete, maxFiles, maxSize, formatProgress, onProcessingFailure, onStartProcessing, testId, }: FilesProcessorProps<T>) => JSX.Element;
|
|
70
|
+
export {};
|
|
71
|
+
//# sourceMappingURL=FilesProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesProcessor.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/FilesProcessor/FilesProcessor.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAiB,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EAAE,sBAAsB,EAAkC,MAAM,SAAS,CAAC;AACjF,OAAO,EAAa,cAAc,EAAE,MAAM,aAAa,CAAC;AAIxD,KAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AASF,KAAK,mBAAmB,CAAC,CAAC,IAAI;IAC5B;;;;;;OAMG;IACH,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IAEvC;;;;OAIG;IACH,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,IAAI,CAAC;IAE/B;;;;OAIG;IACH,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAErC;;OAEG;IACH,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAC;IAE5C;;OAEG;IACH,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,CAAC;IAEjF;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAE1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAEtC;;OAEG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAE1C;;OAEG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAExC;;;;OAIG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC,gBAAgB,CAAC,CAAC;IAE1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,CAAC,SAAS,MAAM,6JAc5C,mBAAmB,CAAC,CAAC,CAAC,gBA0FxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e,__spreadArray as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as t}from"react/jsx-runtime";import{useState as o,useEffect as i,useCallback as s}from"react";import c from"classnames";import{FilesDropzone as l}from"../FilesDropzone/FilesDropzone.js";import{FilesLoader as u}from"../FilesLoader/FilesLoader.js";import{Processor as a}from"./Processor.js";import f from"./FilesProcessor.scss.js";var m=function(m){var p=m.multiple,d=m.accept,v=m.className,g=m.processFile,F=m.value,h=void 0===F?[]:F,D=m.onDone,j=m.onDelete,x=m.maxFiles,P=m.maxSize,z=m.formatProgress,S=m.onProcessingFailure,N=m.onStartProcessing,b=m.testId,L=o([]),y=L[0],C=L[1];i((function(){y.length>0&&y.every((function(e){return"success"in e}))&&y.some((function(e){return e.success}))&&(C((function(e){return e.filter((function(e){return!e.success}))})),D(y.filter((function(e){var n=e.success,r=e.data;return!!n&&!!r})).map((function(e){return e.data}))))}),[y,D]);var I=s((function(e){C((function(n){return n.filter((function(n){return n.file!==e}))}))}),[]),_=s((function(n){n.success||null==S||S(n.file,n.cancelled,n.error),C((function(r){return r.map((function(r){return r.file===n.file?e(e({},r),{data:n.data,success:n.success,cancelled:n.cancelled}):r}))}))}),[S]),k=s((function(e){null==N||N(e);var r=e.map((function(e){return{file:e}}));C((function(e){return n(n([],e,!0),r,!0)}))}),[N]);return r("div",{className:c(f.root,v),"data-testid":b,children:[(p||0===y.length&&0===(null==h?void 0:h.length))&&t(l,{multiple:p,onDrop:k,accept:d,maxFiles:x,maxSize:P}),(y.length>0||(null==h?void 0:h.length)>0)&&r("div",{className:f.files,children:[y.map((function(e){return t(a,{processFile:g,onStatusChange:_,file:e.file,onDelete:I,formatProgress:z},"".concat(e.file.size,"|").concat(e.file.name))})),null==h?void 0:h.map((function(e,n){return t(u,{name:e.name,onDelete:j?function(){return j(e)}:void 0,complete:!0},n)}))]})]})};export{m as FilesProcessor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from'./../../ext-esm/style-inject/dist/style-inject.es.js';var o={spacing:"8",root:"FilesProcessor_root__uHIL1",files:"FilesProcessor_files__1o-qw"};e(".FilesProcessor_root__uHIL1{display:flex;flex-direction:column;gap:24px}.FilesProcessor_files__1o-qw{display:flex;flex-direction:column;gap:16px}");export{o as default};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta } from '@storybook/react';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { FilesProcessor } from './FilesProcessor';
|
|
4
|
+
type Props = ComponentProps<typeof FilesProcessor>;
|
|
5
|
+
declare const meta: Meta<Props>;
|
|
6
|
+
export default meta;
|
|
7
|
+
export declare const Default: (props: Props) => JSX.Element;
|
|
8
|
+
export declare const SingleFileProcessing: () => JSX.Element;
|
|
9
|
+
export declare const Indeterminate: () => JSX.Element;
|
|
10
|
+
//# sourceMappingURL=FilesProcessor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesProcessor.stories.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/FilesProcessor/FilesProcessor.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAyB,MAAM,OAAO,CAAC;AAI9D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,KAAK,KAAK,GAAG,cAAc,CAAC,OAAO,cAAc,CAAC,CAAC;AAEnD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,KAAK,CAGrB,CAAC;AA+BF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,UAAW,KAAK,gBA+CnC,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAkChC,CAAC;AAMF,eAAO,MAAM,aAAa,mBAqCzB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FilesLoaderProps } from '../FilesLoader';
|
|
2
|
+
import { FilesProcessorFunction, FilesProcessorProcessingResult } from './types';
|
|
3
|
+
export type ProcessorProps<T> = {
|
|
4
|
+
processFile: FilesProcessorFunction<T>;
|
|
5
|
+
onStatusChange: (result: FilesProcessorProcessingResult<T>) => void;
|
|
6
|
+
file: File;
|
|
7
|
+
onDelete: (file: File) => void;
|
|
8
|
+
formatProgress?: FilesLoaderProps['formatProgress'];
|
|
9
|
+
};
|
|
10
|
+
export declare const Processor: <T extends object>(props: ProcessorProps<T>) => JSX.Element;
|
|
11
|
+
//# sourceMappingURL=Processor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Processor.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/FilesProcessor/Processor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,sBAAsB,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAEjF,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI;IAC9B,WAAW,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IACvC,cAAc,EAAE,CAAC,MAAM,EAAE,8BAA8B,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACpE,IAAI,EAAE,IAAI,CAAC;IACX,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;CACrD,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,CAAC,SAAS,MAAM,SAAS,cAAc,CAAC,CAAC,CAAC,gBA+HnE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__awaiter as e,__generator as t}from'./../../ext-esm/tslib/tslib.es6.js';import{jsx as n}from"react/jsx-runtime";import{useState as r,useCallback as o,useMemo as i,useEffect as c}from"react";import{FilesLoader as a}from"../FilesLoader/FilesLoader.js";var l=function(l){var u=l.onStatusChange,s=l.file,f=l.processFile,d=l.onDelete,m=l.formatProgress,v=r({total:0,current:0,indeterminate:!0,complete:!1}),p=v[0],g=v[1],h=r(),b=h[0],j=h[1],C=r(!1),F=C[0],w=C[1],x=r(),y=x[0],D=x[1],E=o((function(e,t){g({total:e,current:t,indeterminate:!1,complete:!1})}),[]),L=i((function(){if(y)return function(){y(),w(!0),u({success:!1,cancelled:!0,file:s})}}),[y,s,u]),P=o((function(){var n=!1;return function(r){return e(void 0,void 0,void 0,(function(){var e,o,i,c;return t(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),e=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n||E.apply(void 0,e)},[4,f(r,e,(function(e){D((function(){return function(){n=!0,e()}}))}))];case 1:return o=t.sent(),n?[2]:(g((function(e){var t=e.total;return{total:t,current:t,indeterminate:e.indeterminate,complete:!0}})),u({success:!0,cancelled:!1,data:o,file:r}),[3,3]);case 2:return i=t.sent(),n?[2]:(c=i instanceof Error?i:new Error(String(i)),j(c),u({success:!1,cancelled:!1,error:c,file:r}),[3,3]);case 3:return[2]}}))}))}}),[f,u,E]),S=o((function(){j(void 0),w(!1),u({file:s,success:!1,data:void 0,error:void 0,cancelled:!1}),P()(s)}),[s,P,u]),R=o((function(){d(s)}),[d,s]);c((function(){P()(s)}),[s,P]);var _=F?"Cancelled":null,k=b?null==b?void 0:b.message:_;return n(a,{name:s.name,total:p.total,current:p.current,error:k,onCancel:L,onReload:S,onDelete:R,formatProgress:m,complete:p.complete,indeterminate:p.indeterminate})};export{l as Processor};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/FilesProcessor/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,YAAY,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type FilesProcessorProcessingResult<T> = {
|
|
2
|
+
success: boolean;
|
|
3
|
+
cancelled: boolean;
|
|
4
|
+
file: File;
|
|
5
|
+
data?: T;
|
|
6
|
+
error?: Error;
|
|
7
|
+
};
|
|
8
|
+
export type FilesProcessorFunction<T> = (file: File, onProgress: (totalProgress: number, currentProgress: number) => void, registerOnCancel: (onCancel: () => void) => void) => Promise<T> | T;
|
|
9
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/FilesProcessor/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,8BAA8B,CAAC,CAAC,IAAI;IAC9C,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,IAAI,CAAC;IACX,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC;AAGF,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,CACtC,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,KAAK,IAAI,EACpE,gBAAgB,EAAE,CAAC,QAAQ,EAAE,MAAM,IAAI,KAAK,IAAI,KAC7C,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextMiddleTruncated.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextMiddleTruncated/TextMiddleTruncated.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qDAK7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"TextMiddleTruncated.d.ts","sourceRoot":"","sources":["../../../src/componentsV2/TextMiddleTruncated/TextMiddleTruncated.tsx"],"names":[],"mappings":"AAUA,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,eAAO,MAAM,mBAAmB,qDAK7B,wBAAwB,gBAoE1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as e}from"react/jsx-runtime";import t from"classnames";import{useRef as n,useState as i,useLayoutEffect as o}from"react";import{debounce as c}from"lodash";import{Tooltip as
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import t from"classnames";import{useRef as n,useState as i,useLayoutEffect as o}from"react";import{debounce as c}from"lodash";import{Tooltip as s}from"../Tooltip/Tooltip.js";import l from"./TextMiddleTruncated.scss.js";import{truncateInTheMiddle as a}from"../../utils/formatting.js";var d=function(d){var u=d.children,m=d.testId,f=d.className,v=d.disableTooltip,h=String(u),p=n(null),b=n(null),T=n(null),j=i(h),x=j[0],N=j[1];return o((function(){var r=c((function(){var r;if(p.current&&b.current){var e=p.current.clientWidth,t=b.current,n=t.scrollWidth,i=t.textContent;if(e===(null===(r=T.current)||void 0===r?void 0:r.clientWidth))return;N(a(i,e,n))}}),200,{leading:!0}),e=new ResizeObserver(r),t=new MutationObserver(r);return p.current&&b.current&&(e.observe(p.current),e.observe(b.current),t.observe(b.current,{subtree:!0,characterData:!0})),function(){e.disconnect(),t.disconnect()}}),[]),r(s,{title:h,disabled:v||x===h,children:e("div",{className:t(l.root,f),ref:p,"data-testid":m,children:[r("div",{className:l.inner,ref:T,children:x}),r("div",{className:l.hiddenElement,ref:b,children:h})]})})};export{d as TextMiddleTruncated};
|
package/componentsV2/index.d.ts
CHANGED
|
@@ -32,6 +32,8 @@ export * from './Tabs';
|
|
|
32
32
|
export * from './EmptyState';
|
|
33
33
|
export * from './FileIcon';
|
|
34
34
|
export * from './FilesDropzone';
|
|
35
|
+
export * from './FilesLoader';
|
|
36
|
+
export * from './FilesProcessor';
|
|
35
37
|
export * from './Skeleton';
|
|
36
38
|
export * from './CopyToClipboard';
|
|
37
39
|
export * from './Stepper';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/componentsV2/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/componentsV2/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
package/componentsV2/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Text}from"./Text/Text.js";export{Grid}from"./Grid/Grid.js";export{Cell}from"./Grid/Cell.js";export{Header}from"./Header/Header.js";export{Button}from"./Button/Button.js";export{ButtonIcon}from"./ButtonIcon/ButtonIcon.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{Popover}from"./Popover/Popover.js";export{Radio}from"./Radio/Radio.js";export{RadioGroup}from"./RadioGroup/RadioGroup.js";export{Checkbox}from"./Checkbox/Checkbox.js";export{CheckboxGroup}from"./CheckboxGroup/CheckboxGroup.js";export{TextInput}from"./TextInput/TextInput.js";export{TextEndTruncated}from"./TextEndTruncated/TextEndTruncated.js";export{TextMiddleTruncated}from"./TextMiddleTruncated/TextMiddleTruncated.js";export{TextLink}from"./TextLink/TextLink.js";export{LoaderCircular}from"./LoaderCircular/LoaderCircular.js";export{Chip}from"./Chip/Chip.js";export{ChipAlert}from"./ChipAlert/ChipAlert.js";export{ChipIndicator}from"./ChipIndicator/ChipIndicator.js";export{Avatar}from"./Avatar/Avatar.js";export{AvatarGroup}from"./AvatarGroup/AvatarGroup.js";export{ToggleButtons}from"./ToggleButtons/ToggleButtons.js";export{Paper}from"./Paper/Paper.js";export{Modal}from"./Modal/Modal.js";export{Menu}from"./Menu/Menu.js";export{Counter}from"./Counter/Counter.js";export{BadgeCounter}from"./BadgeCounter/BadgeCounter.js";export{BadgeDot}from"./BadgeDot/BadgeDot.js";export{LoaderLinear}from"./LoaderLinear/LoaderLinear.js";export{Switch}from"./Switch/Switch.js";export{Tabs}from"./Tabs/Tabs.js";export{EmptyState}from"./EmptyState/EmptyState.js";export{FileIcon}from"./FileIcon/FileIcon.js";export{FilesDropzone}from"./FilesDropzone/FilesDropzone.js";export{Skeleton}from"./Skeleton/Skeleton.js";export{CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{Stepper}from"./Stepper/Stepper.js";export{ButtonLive}from"./ButtonLive/ButtonLive.js";export{IndicatorLive}from"./IndicatorLive/IndicatorLive.js";export{Accordion}from"./Accordion/Accordion.js";export{Breadcrumbs}from"./Breadcrumbs/Breadcrumbs.js";export{BadgeComment}from"./BadgeComment/BadgeComment.js";export{AppContainer}from"./AppContainer/AppContainer.js";export{AppFooter}from"./AppFooter/AppFooter.js";export{AppHeader}from"./AppHeader/AppHeader.js";export{Popper}from"./Popper/Popper.js";
|
|
1
|
+
export{Text}from"./Text/Text.js";export{Grid}from"./Grid/Grid.js";export{Cell}from"./Grid/Cell.js";export{Header}from"./Header/Header.js";export{Button}from"./Button/Button.js";export{ButtonIcon}from"./ButtonIcon/ButtonIcon.js";export{Tooltip}from"./Tooltip/Tooltip.js";export{Popover}from"./Popover/Popover.js";export{Radio}from"./Radio/Radio.js";export{RadioGroup}from"./RadioGroup/RadioGroup.js";export{Checkbox}from"./Checkbox/Checkbox.js";export{CheckboxGroup}from"./CheckboxGroup/CheckboxGroup.js";export{TextInput}from"./TextInput/TextInput.js";export{TextEndTruncated}from"./TextEndTruncated/TextEndTruncated.js";export{TextMiddleTruncated}from"./TextMiddleTruncated/TextMiddleTruncated.js";export{TextLink}from"./TextLink/TextLink.js";export{LoaderCircular}from"./LoaderCircular/LoaderCircular.js";export{Chip}from"./Chip/Chip.js";export{ChipAlert}from"./ChipAlert/ChipAlert.js";export{ChipIndicator}from"./ChipIndicator/ChipIndicator.js";export{Avatar}from"./Avatar/Avatar.js";export{AvatarGroup}from"./AvatarGroup/AvatarGroup.js";export{ToggleButtons}from"./ToggleButtons/ToggleButtons.js";export{Paper}from"./Paper/Paper.js";export{Modal}from"./Modal/Modal.js";export{Menu}from"./Menu/Menu.js";export{Counter}from"./Counter/Counter.js";export{BadgeCounter}from"./BadgeCounter/BadgeCounter.js";export{BadgeDot}from"./BadgeDot/BadgeDot.js";export{LoaderLinear}from"./LoaderLinear/LoaderLinear.js";export{Switch}from"./Switch/Switch.js";export{Tabs}from"./Tabs/Tabs.js";export{EmptyState}from"./EmptyState/EmptyState.js";export{FileIcon}from"./FileIcon/FileIcon.js";export{FilesDropzone}from"./FilesDropzone/FilesDropzone.js";export{FilesLoader}from"./FilesLoader/FilesLoader.js";export{FilesProcessor}from"./FilesProcessor/FilesProcessor.js";export{Skeleton}from"./Skeleton/Skeleton.js";export{CopyToClipboard}from"./CopyToClipboard/CopyToClipboard.js";export{Stepper}from"./Stepper/Stepper.js";export{ButtonLive}from"./ButtonLive/ButtonLive.js";export{IndicatorLive}from"./IndicatorLive/IndicatorLive.js";export{Accordion}from"./Accordion/Accordion.js";export{Breadcrumbs}from"./Breadcrumbs/Breadcrumbs.js";export{BadgeComment}from"./BadgeComment/BadgeComment.js";export{AppContainer}from"./AppContainer/AppContainer.js";export{AppFooter}from"./AppFooter/AppFooter.js";export{AppHeader}from"./AppHeader/AppHeader.js";export{Popper}from"./Popper/Popper.js";
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{AppCommonsProvider as s}from"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js";import{CommentsSwitchProvider as t}from"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js";import"react";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"classnames";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"@material-ui/core";import"../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Popover/Popover.scss.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/Avatar/constants.js";import"../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/Gap.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"react-dropzone";import"../../utils/index.js";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";var n=function(n){var e=n.children,
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{AppCommonsProvider as s}from"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsProvider.js";import{CommentsSwitchProvider as t}from"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchProvider.js";import"react";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchContext.js";import"../../components/DevCenter/DevCenterAppContainer/components/CommentsSwitch/CommentsSwitchButton.scss.js";import"../../componentsV2/Text/Text.js";import"../../componentsV2/Grid/Grid.js";import"classnames";import"../../componentsV2/Grid/Grid.scss.js";import"../../componentsV2/Header/Header.scss.js";import"../../componentsV2/Button/Button.js";import"../../componentsV2/ButtonIcon/ButtonIcon.js";import"@material-ui/core";import"../../components/DevCenter/DevCenterAppContainer/components/IsInsideIsolatedDcAppProvider/IsInsideIsolatedDcAppProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/IsInsideDcFullscreenElemProvider.js";import"../../components/DevCenter/DevCenterAppContainer/components/DcFullscreenElemsCoordinatorProvider/DcFullscreenElemsCoordinatorProvider.js";import"uuid";import"../../componentsV2/Tooltip/Tooltip.scss.js";import"../../componentsV2/Paper/Paper.js";import"../../componentsV2/Popover/Popover.scss.js";import"../../componentsV2/Radio/Radio.js";import"../../componentsV2/RadioAndCheckboxGroup/RadioAndCheckboxGroup.scss.js";import"../../componentsV2/Checkbox/Checkbox.js";import"../../componentsV2/TextInput/TextInput.js";import"lodash";import"../../componentsV2/TextEndTruncated/TextEndTruncated.scss.js";import"../../componentsV2/TextMiddleTruncated/TextMiddleTruncated.scss.js";import"../../componentsV2/TextLink/TextLink.js";import"../../componentsV2/Chip/Chip.js";import"../../componentsV2/ChipAlert/ChipAlert.js";import"../../componentsV2/ChipIndicator/ChipIndicator.js";import"../../componentsV2/Avatar/Avatar.js";import"../../componentsV2/Avatar/constants.js";import"../../componentsV2/AvatarGroup/AvatarGroup.scss.js";import"@material-ui/lab";import"../../componentsV2/ToggleButtons/ToggleButtons.scss.js";import"../../componentsV2/Modal/Modal.scss.js";import"../../icons/WithCustomSize.js";import"../../icons/IconParkProvider.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Dashboard.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.js";import"../../icons/customIcons/icons/FolderClosedFilled.js";import"../../icons/customIcons/icons/FolderOpened.js";import"../../icons/customIcons/icons/GreaterOrEqual.js";import"../../icons/customIcons/icons/LessOrEqual.js";import"../../icons/customIcons/icons/Search.js";import"../../icons/customIcons/icons/Wellhub.js";import"../../icons/customIcons/icons/MultiRuler.js";import"../../icons/customIcons/icons/Checkbox.js";import"../../icons/customIcons/icons/CheckboxChecked.js";import"../../icons/customIcons/icons/CheckboxIndeterminate.js";import"../../icons/customIcons/icons/Radio.js";import"../../icons/customIcons/icons/RadioChecked.js";import"../../icons/customIcons/icons/SimulFrac.js";import"../../icons/customIcons/icons/ZipperFrac.js";import"../../icons/customIcons/icons/CautionFilled.js";import"../../icons/customIcons/icons/MoreApp.js";import"../../icons/customIcons/icons/Pad.js";import"../../icons/customIcons/icons/Gap.js";import"../../componentsV2/Menu/Menu.js";import"../../componentsV2/Counter/Counter.js";import"../../componentsV2/BadgeBase/BadgeBase.scss.js";import"../../componentsV2/BadgeDot/BadgeDot.scss.js";import"../../componentsV2/LoaderLinear/LoaderLinear.scss.js";import"../../componentsV2/Switch/Switch.js";import"../../componentsV2/Tabs/Tabs.js";import"../../componentsV2/EmptyState/EmptyState.scss.js";import"../../componentsV2/FileIcon/FileIcon.js";import"react-dropzone";import"../../utils/index.js";import"../../componentsV2/FilesDropzone/FilesDropzone.scss.js";import"../../componentsV2/FilesLoader/FilesLoader.scss.js";import"../../componentsV2/FilesProcessor/FilesProcessor.scss.js";import"../../componentsV2/Skeleton/Skeleton.scss.js";import"../../utils/main.js";import"../../componentsV2/CopyToClipboard/CopyToClipboard.scss.js";import"../../componentsV2/Stepper/Step/Step.scss.js";import"../../componentsV2/Stepper/Stepper.scss.js";import"../../componentsV2/ButtonLive/ButtonLive.js";import"../../componentsV2/LiveDotIndicator/LiveDotIndicator.scss.js";import"../../componentsV2/IndicatorLive/IndicatorLive.scss.js";import"../../componentsV2/Accordion/Accordion.scss.js";import"../../componentsV2/Breadcrumbs/Breadcrumbs.scss.js";import"../../componentsV2/BadgeComment/BadgeComment.js";import"../../componentsV2/AppContainer/AppContainer.js";import"../../componentsV2/AppFooter/AppFooter.js";import"../../constants/goals.js";import"../../constants/segment.js";import"../../constants/alerts.js";import"../../constants/apps.js";import"../../constants/drillstring.js";import"../../constants/completion.js";import"../../constants/appPackages.js";import"../../constants/notifications.js";import"../../constants/feed.js";import"../../constants/bha.js";import"../../utils/env.js";import"../../components/GradientManager/configuration/constants.js";import"../../components/DevCenter/DevCenterAppContainer/components/AppCommons/AppCommonsContext.js";import"../../componentsV2/AppHeader/AppBadge/AppBadge.scss.js";import"../../components/DevCenter/DevCenterRouterContext/DevCenterRouterContext.js";import"../../components/DevCenter/DevCenterRouterContext/UniversalLink/UniversalLink.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/objectWithoutProperties";import"react-router";import"../../componentsV2/AppHeader/AppAssets/AppAssets.scss.js";import"../../components/PadModeSelect/PadModeSelect.js";import"../../componentsV2/AppHeader/PadMode/PadMode.scss.js";import"../../constants/streamSourceType.js";import"../../componentsV2/AppHeader/AppHeader.scss.js";var n=function(n){var e=n.children,i=n.commentsEnabled,p=n.app,r=n.appId,c=n.appSettings,m=n.onSettingChange,a=n.wells,d=n.well,j=n.rig,l=n.maximized,u=n.fracFleet,C=n.dashboardMeta;return o(s,{app:p,appId:r,appSettings:c,onSettingChange:m,wells:a,well:d,rig:j,maximized:l,fracFleet:u,dashboardMeta:void 0===C?{v3:!1,isMultiAsset:!1,isMultiWell:!1}:C,children:o(t,{initial:i,children:e})})};export{n as AppTestWrapper};
|