@corva/ui 0.91.0-8 → 0.91.0-rc.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/cjs-bundle/components/AddComment/Popover.js +1 -1
- package/cjs-bundle/components/AddComment/components/Content.js +1 -1
- package/cjs-bundle/components/AdvancedSlider/Handle.js +1 -1
- package/cjs-bundle/components/Attachment/index.js +1 -1
- package/cjs-bundle/components/Autocomplete/Autocomplete.js +1 -1
- package/cjs-bundle/components/BICOffsetPickerDialog/index.js +1 -1
- package/cjs-bundle/components/Breadcrumbs/index.js +1 -1
- package/cjs-bundle/components/Button/components/LiveButton/index.js +1 -1
- package/cjs-bundle/components/Button/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/Chart/components/AxisDropdown.js +1 -1
- package/cjs-bundle/components/Chart/components/ChartSelect.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/PanButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/cjs-bundle/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/cjs-bundle/components/Chip/index.js +1 -1
- package/cjs-bundle/components/ColorPicker/ColorPicker.js +1 -1
- package/cjs-bundle/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/cjs-bundle/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/cjs-bundle/components/Counter/index.js +1 -1
- package/cjs-bundle/components/DatePicker/index.js +1 -1
- package/cjs-bundle/components/DateTimePicker/index.js +1 -1
- package/cjs-bundle/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/cjs-bundle/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
- package/cjs-bundle/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/cjs-bundle/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.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/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
- package/cjs-bundle/components/FileIcon/FileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/CSVFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/DocFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/EDMFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/ExelFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/ImageFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/PdfFileIcon.js +1 -0
- package/cjs-bundle/components/FileIcon/icons/UnknownFileIcon.js +1 -0
- package/cjs-bundle/components/FilesDropzone/FilesDropzone.js +1 -0
- package/cjs-bundle/components/FilesDropzone/styles.js +1 -0
- package/cjs-bundle/components/FilesDropzone/utils.js +1 -0
- package/cjs-bundle/components/FilesLoader/FilesLoader.js +1 -1
- package/cjs-bundle/components/FilesLoaderV2/FilesLoaderV2.js +1 -0
- package/cjs-bundle/components/FilesLoaderV2/styles.js +1 -0
- package/cjs-bundle/components/FilesLoaderV2/utils.js +1 -0
- package/cjs-bundle/components/FilesProcessor/FilesProcessor.js +1 -0
- package/cjs-bundle/components/FilesProcessor/Processor.js +1 -0
- package/cjs-bundle/components/FilesProcessor/styles.js +1 -0
- package/cjs-bundle/components/GradientManager/GradientManager.js +1 -1
- package/cjs-bundle/components/GradientManager/GradientSelect.js +1 -1
- package/cjs-bundle/components/GradientPicker/GradientPicker.js +1 -1
- package/cjs-bundle/components/HelpCenter/HelpCenterIcon.js +1 -1
- package/cjs-bundle/components/Modal/CorvaModal.js +1 -1
- package/cjs-bundle/components/Notifications/Toast.js +1 -1
- package/cjs-bundle/components/OffsetWellButton/OffsetWellButton.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/OffsetWellPickerV4.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.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/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/cjs-bundle/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.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/ParameterCharts/components/TraceHeader.js +1 -1
- package/cjs-bundle/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/cjs-bundle/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
- package/cjs-bundle/components/Search/Search.js +1 -1
- package/cjs-bundle/components/Search/components/Paper.js +1 -1
- package/cjs-bundle/components/Search/effects/useAutocompleteOptions.js +1 -0
- package/cjs-bundle/components/Search/styles.js +1 -1
- package/cjs-bundle/components/Search/utils/getFormattedOptions.js +1 -0
- package/cjs-bundle/components/Select/SelectFilterBy.js +1 -1
- package/cjs-bundle/components/Select/index.js +1 -1
- package/cjs-bundle/components/SettingEditors/ColorEditor/index.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
- package/cjs-bundle/components/StatusBadge/components/ReportIssueModal.js +1 -1
- package/cjs-bundle/components/Stepper/Step/Step.js +1 -1
- package/cjs-bundle/components/Table/TableCell/TableCell.js +1 -1
- package/cjs-bundle/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
- package/cjs-bundle/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/cjs-bundle/components/Toaster/Toaster.js +1 -1
- package/cjs-bundle/components/index.js +1 -1
- package/cjs-bundle/config/theme/index.js +1 -1
- package/cjs-bundle/effects/useDevCenterApp.js +1 -1
- package/cjs-bundle/icons/customIcons/icons/CautionFilled.js +1 -0
- package/cjs-bundle/icons/index.js +1 -1
- package/cjs-bundle/utils/formatFileSize.js +1 -0
- package/cjs-bundle/utils/index.js +1 -1
- package/cjs-bundle/utils/metrics/metricsConfig.js +1 -1
- package/components/AddComment/Popover.js +1 -1
- package/components/AddComment/components/Content.js +1 -1
- package/components/AdvancedSlider/Handle.js +1 -1
- package/components/Attachment/index.js +1 -1
- package/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/components/Autocomplete/Autocomplete.js +1 -1
- package/components/BICOffsetPickerDialog/index.js +1 -1
- package/components/Breadcrumbs/index.js +1 -1
- package/components/Button/components/LiveButton/index.js +1 -1
- package/components/Button/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/Chart/components/AxisDropdown.js +1 -1
- package/components/Chart/components/ChartSelect.js +1 -1
- package/components/Chart/components/buttons/ChartTypeButton.js +1 -1
- package/components/Chart/components/buttons/DragToZoomButton.js +1 -1
- package/components/Chart/components/buttons/HideAxesButton.js +1 -1
- package/components/Chart/components/buttons/PanButton.js +1 -1
- package/components/Chart/components/buttons/ResetZoomButton.js +1 -1
- package/components/Chart/components/buttons/ZoomInButton.js +1 -1
- package/components/Chart/components/buttons/ZoomOutButton.js +1 -1
- package/components/Chip/index.js +1 -1
- package/components/ColorPicker/ColorPicker.js +1 -1
- package/components/ColorPicker/PaletteChromePicker/PaletteChromePicker.js +1 -1
- package/components/CopyToClipboard/CopyToClipboard.js +1 -1
- package/components/Counter/index.js +1 -1
- package/components/DatePicker/index.js +1 -1
- package/components/DateTimePicker/index.js +1 -1
- package/components/DevCenter/AppFilterPanelLayout/AppFilterPanelLayout.js +1 -1
- package/components/DevCenter/AppSettingsPopover/AppSettingsPopover.js +1 -1
- package/components/DevCenter/AppSideBar/AppSideBar.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/AppSettingsDialog.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/AppSettingsDialog/components/RemoveAppButton.js +1 -1
- package/components/DevCenter/DevCenterAppContainer/components/NonPriorityMenus/NonPriorityMenus.js +1 -1
- package/components/DevCenter/IsolatedDevCenterAppContainer/DevCenterIsolatedAppPage.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/EChartsWrapper/components/Toolbox/Toolbox.js +1 -1
- package/components/FileIcon/FileIcon.d.ts +9 -0
- package/components/FileIcon/FileIcon.d.ts.map +1 -0
- package/components/FileIcon/FileIcon.js +1 -0
- package/components/FileIcon/FileIcon.stories.d.ts +982 -0
- package/components/FileIcon/FileIcon.stories.d.ts.map +1 -0
- package/components/FileIcon/icons/CSVFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/CSVFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/CSVFileIcon.js +1 -0
- package/components/FileIcon/icons/DocFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/DocFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/DocFileIcon.js +1 -0
- package/components/FileIcon/icons/EDMFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/EDMFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/EDMFileIcon.js +1 -0
- package/components/FileIcon/icons/ExelFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/ExelFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/ExelFileIcon.js +1 -0
- package/components/FileIcon/icons/ImageFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/ImageFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/ImageFileIcon.js +1 -0
- package/components/FileIcon/icons/PdfFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/PdfFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/PdfFileIcon.js +1 -0
- package/components/FileIcon/icons/UnknownFileIcon.d.ts +4 -0
- package/components/FileIcon/icons/UnknownFileIcon.d.ts.map +1 -0
- package/components/FileIcon/icons/UnknownFileIcon.js +1 -0
- package/components/FileIcon/index.d.ts +2 -0
- package/components/FileIcon/index.d.ts.map +1 -0
- package/components/FilesDropzone/FilesDropzone.d.ts +41 -0
- package/components/FilesDropzone/FilesDropzone.d.ts.map +1 -0
- package/components/FilesDropzone/FilesDropzone.js +1 -0
- package/components/FilesDropzone/FilesDropzone.stories.d.ts +31 -0
- package/components/FilesDropzone/FilesDropzone.stories.d.ts.map +1 -0
- package/components/FilesDropzone/index.d.ts +3 -0
- package/components/FilesDropzone/index.d.ts.map +1 -0
- package/components/FilesDropzone/styles.d.ts +2 -0
- package/components/FilesDropzone/styles.d.ts.map +1 -0
- package/components/FilesDropzone/styles.js +1 -0
- package/components/FilesDropzone/utils.d.ts +6 -0
- package/components/FilesDropzone/utils.d.ts.map +1 -0
- package/components/FilesDropzone/utils.js +1 -0
- package/components/FilesLoader/FilesLoader.d.ts +3 -0
- package/components/FilesLoader/FilesLoader.d.ts.map +1 -1
- package/components/FilesLoader/FilesLoader.js +1 -1
- package/components/FilesLoader/index.d.ts +0 -1
- package/components/FilesLoader/index.d.ts.map +1 -1
- package/components/FilesLoaderV2/FilesLoaderV2.d.ts +42 -0
- package/components/FilesLoaderV2/FilesLoaderV2.d.ts.map +1 -0
- package/components/FilesLoaderV2/FilesLoaderV2.js +1 -0
- package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts +56 -0
- package/components/FilesLoaderV2/FilesLoaderV2.stories.d.ts.map +1 -0
- package/components/FilesLoaderV2/index.d.ts +2 -0
- package/components/FilesLoaderV2/index.d.ts.map +1 -0
- package/components/FilesLoaderV2/styles.d.ts +2 -0
- package/components/FilesLoaderV2/styles.d.ts.map +1 -0
- package/components/FilesLoaderV2/styles.js +1 -0
- package/components/FilesLoaderV2/utils.d.ts +2 -0
- package/components/FilesLoaderV2/utils.d.ts.map +1 -0
- package/components/FilesLoaderV2/utils.js +1 -0
- package/components/FilesProcessor/FilesProcessor.d.ts +65 -0
- package/components/FilesProcessor/FilesProcessor.d.ts.map +1 -0
- package/components/FilesProcessor/FilesProcessor.js +1 -0
- package/components/FilesProcessor/FilesProcessor.stories.d.ts +31 -0
- package/components/FilesProcessor/FilesProcessor.stories.d.ts.map +1 -0
- package/components/FilesProcessor/Processor.d.ts +13 -0
- package/components/FilesProcessor/Processor.d.ts.map +1 -0
- package/components/FilesProcessor/Processor.js +1 -0
- package/components/FilesProcessor/index.d.ts +2 -0
- package/components/FilesProcessor/index.d.ts.map +1 -0
- package/components/FilesProcessor/styles.d.ts +2 -0
- package/components/FilesProcessor/styles.d.ts.map +1 -0
- package/components/FilesProcessor/styles.js +1 -0
- package/components/FilesProcessor/types.d.ts +9 -0
- package/components/FilesProcessor/types.d.ts.map +1 -0
- package/components/GradientManager/GradientManager.js +1 -1
- package/components/GradientManager/GradientSelect.js +1 -1
- package/components/GradientPicker/GradientPicker.js +1 -1
- package/components/HelpCenter/HelpCenterIcon.js +1 -1
- package/components/Modal/CorvaModal.js +1 -1
- package/components/Notifications/Toast.js +1 -1
- package/components/OffsetWellButton/OffsetWellButton.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/OffsetWellPickerV4.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/Filter/Filter.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.d.ts.map +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/AdvancedSearch/AdvancedSearch.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/OffsetWellsTable/OffsetWellsTable.module.css.js +1 -1
- package/components/OffsetWellPickerV4/components/OffsetWellsTable/OffsetWellsTableHead.js +1 -1
- package/components/OffsetWellPickerV4/components/Toolbar/Toolbar.d.ts.map +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/ParameterCharts/components/TraceHeader.js +1 -1
- package/components/PinnableFilters/components/FiltersToggler.js +1 -1
- package/components/RealTimeValuesSidebar/RealTimeValuesBox/RealTimeBoxEditDialog.js +1 -1
- package/components/Search/Search.d.ts +4 -1
- package/components/Search/Search.d.ts.map +1 -1
- package/components/Search/Search.js +1 -1
- package/components/Search/components/Paper.d.ts.map +1 -1
- package/components/Search/components/Paper.js +1 -1
- package/components/Search/effects/index.d.ts +2 -0
- package/components/Search/effects/index.d.ts.map +1 -0
- package/components/Search/effects/useAutocompleteOptions.d.ts +12 -0
- package/components/Search/effects/useAutocompleteOptions.d.ts.map +1 -0
- package/components/Search/effects/useAutocompleteOptions.js +1 -0
- package/components/Search/styles.d.ts +1 -1
- package/components/Search/styles.js +1 -1
- package/components/Search/utils/getFormattedOptions.d.ts +2 -0
- package/components/Search/utils/getFormattedOptions.d.ts.map +1 -0
- package/components/Search/utils/getFormattedOptions.js +1 -0
- package/components/Search/utils/index.d.ts +3 -0
- package/components/Search/utils/index.d.ts.map +1 -0
- package/components/Select/SelectFilterBy.js +1 -1
- package/components/Select/index.d.ts.map +1 -1
- package/components/Select/index.js +1 -1
- package/components/SettingEditors/ColorEditor/index.js +1 -1
- package/components/StatusBadge/components/DQUnvalidatedContent.js +1 -1
- package/components/StatusBadge/components/ReportIssueModal.js +1 -1
- package/components/Stepper/Step/Step.js +1 -1
- package/components/Table/TableCell/TableCell.js +1 -1
- package/components/Table/TablePaginationActions/TablePaginationActions.js +1 -1
- package/components/Table/TableSortLabel/TableSortLabel.js +1 -1
- package/components/Toaster/Toaster.js +1 -1
- package/components/index.d.ts +5 -2
- package/components/index.js +1 -1
- package/config/theme/index.js +1 -1
- package/effects/useDevCenterApp.d.ts.map +1 -1
- package/effects/useDevCenterApp.js +1 -1
- package/icons/customIcons/icons/CautionFilled.d.ts +3 -0
- package/icons/customIcons/icons/CautionFilled.d.ts.map +1 -0
- package/icons/customIcons/icons/CautionFilled.js +1 -0
- package/icons/customIcons/icons/index.d.ts +1 -0
- package/icons/customIcons/icons/index.d.ts.map +1 -1
- package/icons/index.js +1 -1
- package/package.json +2 -1
- package/utils/formatFileSize.d.ts +2 -0
- package/utils/formatFileSize.d.ts.map +1 -0
- package/utils/formatFileSize.js +1 -0
- package/utils/index.d.ts +2 -1
- package/utils/index.d.ts.map +1 -1
- package/utils/index.js +1 -1
- package/utils/metrics/metricsConfig.d.ts +196 -183
- package/utils/metrics/metricsConfig.d.ts.map +1 -1
- package/utils/metrics/metricsConfig.js +1 -1
- package/cjs-bundle/components/FilesLoader/Icons/CSVFileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/DocFileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/EDMFileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/ExelFileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/FileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/ImageFileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/PdfFileIcon.js +0 -1
- package/cjs-bundle/components/FilesLoader/Icons/UnknownFileIcon.js +0 -1
- package/components/FilesLoader/Icons/CSVFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/CSVFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/CSVFileIcon.js +0 -1
- package/components/FilesLoader/Icons/DocFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/DocFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/DocFileIcon.js +0 -1
- package/components/FilesLoader/Icons/EDMFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/EDMFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/EDMFileIcon.js +0 -1
- package/components/FilesLoader/Icons/ExelFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/ExelFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/ExelFileIcon.js +0 -1
- package/components/FilesLoader/Icons/FileIcon.d.ts +0 -12
- package/components/FilesLoader/Icons/FileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/FileIcon.js +0 -1
- package/components/FilesLoader/Icons/ImageFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/ImageFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/ImageFileIcon.js +0 -1
- package/components/FilesLoader/Icons/PdfFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/PdfFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/PdfFileIcon.js +0 -1
- package/components/FilesLoader/Icons/UnknownFileIcon.d.ts +0 -3
- package/components/FilesLoader/Icons/UnknownFileIcon.d.ts.map +0 -1
- package/components/FilesLoader/Icons/UnknownFileIcon.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileIcon.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FileIcon/FileIcon.stories.tsx"],"names":[],"mappings":";AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAW,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhC,wBAuBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CSVFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/CSVFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,WAAW,UAAW,eAAe,cAAc,CAAC,gBAqBhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as C}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as V,jsx as H}from"react/jsx-runtime";import{SvgIcon as i}from"@material-ui/core";var t=function(t){return V(i,C({},t,{viewBox:"0 0 24 24"},{children:[H("path",{d:"M23.52 2.1H13.98V0.54V0.48C13.98 0.48 13.98 0.48 13.98 0.42V0.36L13.92 0.3C13.8 0.12 13.74 0.06 13.62 0C13.56 0 13.56 0 13.5 0H13.44C13.44 0 13.44 0 13.38 0L0.42 2.1C0.18 2.16 0 2.34 0 2.58V3.6V20.28V21.3C0 21.54 0.18 21.78 0.42 21.84L13.44 24C13.44 24 13.44 24 13.5 24H13.56C13.62 24 13.62 24 13.68 24C13.8 24 13.86 23.88 13.98 23.82L14.04 23.76V23.7C14.04 23.7 14.04 23.7 14.04 23.64V23.58V22.02H23.52C23.82 22.02 24 21.78 24 21.48V2.58C24 2.34 23.76 2.1 23.52 2.1ZM16.5 3.12V5.7H14.04V3.12H16.5ZM13.98 14.4H16.44V17.16H13.98V14.4ZM13.98 13.38V10.62H16.44V13.38H13.98ZM13.98 9.54V6.78H16.44V9.54H13.98ZM13.98 18.24H16.44V20.88H13.98V18.24ZM22.98 20.88H17.52V18.24H19.8C20.1 18.24 20.28 18 20.28 17.7C20.28 17.4 20.04 17.16 19.8 17.16H17.52V14.4H19.8C20.1 14.4 20.28 14.16 20.28 13.86C20.28 13.56 20.04 13.32 19.8 13.32H17.52V10.56H19.8C20.1 10.56 20.28 10.32 20.28 10.02C20.28 9.72 20.04 9.48 19.8 9.48H17.52V6.72H19.8C20.1 6.72 20.28 6.48 20.28 6.18C20.28 5.88 20.04 5.64 19.8 5.64H17.52V3.12H22.98V20.88Z",fill:"#75DB29"}),H("path",{d:"M6.0408 15.866C5.90212 15.999 5.78379 16.1534 5.68995 16.3238C5.60956 16.4724 5.5662 16.6396 5.56386 16.8102C5.55648 17.1066 5.63889 17.3978 5.79934 17.6424C5.95979 17.8869 6.19009 18.0724 6.45743 18.1723C6.63227 18.2425 6.8183 18.2775 7.00563 18.2753C7.19292 18.277 7.37885 18.242 7.55383 18.1723C7.72236 18.1098 7.87711 18.0125 8.00884 17.8862C8.14235 17.7544 8.2503 17.597 8.3268 17.4226C8.40494 17.2253 8.4387 17.0119 8.42547 16.7988C8.42714 16.6126 8.38775 16.4286 8.31035 16.2609C8.23255 16.0925 8.11802 15.9455 7.97595 15.8316L8.83114 15.0018C8.95447 15.1293 9.05805 15.276 9.13813 15.4368C9.22444 15.5925 9.29429 15.7575 9.34645 15.9289C9.39827 16.0834 9.4368 16.2423 9.46157 16.4039C9.4831 16.5345 9.49593 16.6664 9.49995 16.7988C9.50186 17.1603 9.44055 17.5191 9.31904 17.8575C9.20611 18.1766 9.03271 18.4685 8.80921 18.716C8.58801 18.9631 8.31889 19.1582 8.0198 19.2883C7.6964 19.4341 7.34691 19.5063 6.99467 19.5C6.64065 19.5062 6.28939 19.4341 5.96405 19.2883C5.66643 19.1554 5.39784 18.9607 5.17464 18.716C4.951 18.4697 4.7792 18.1773 4.67029 17.8575C4.55252 17.5183 4.49493 17.1596 4.50035 16.7988C4.50334 16.47 4.56276 16.1443 4.67577 15.8374C4.79108 15.515 4.97912 15.2264 5.22398 14.9961L6.0408 15.866Z",fill:"white"}),H("path",{d:"M5.9311 11.0758C5.77738 11.1828 5.65205 11.3286 5.56676 11.4997C5.48146 11.6707 5.43896 11.8616 5.4432 12.0544C5.44363 12.2245 5.48511 12.3918 5.56381 12.5408C5.59756 12.6162 5.65212 12.6794 5.72049 12.7222C5.78886 12.7651 5.86793 12.7856 5.94755 12.7812C6.01358 12.7843 6.07902 12.767 6.13561 12.7313C6.1922 12.6957 6.2374 12.6433 6.26551 12.5809C6.34457 12.4242 6.40179 12.2566 6.43545 12.083C6.48479 11.8827 6.53413 11.6652 6.58346 11.4363C6.63097 11.2114 6.70653 10.994 6.80823 10.7896C6.91084 10.5923 7.05521 10.422 7.23034 10.2917C7.44982 10.1481 7.70621 10.0782 7.96493 10.0914C8.21908 10.0819 8.47043 10.1495 8.68856 10.286C8.88075 10.4113 9.04221 10.5818 9.16001 10.7839C9.28225 10.9961 9.36935 11.2282 9.41767 11.4706C9.47179 11.7224 9.49936 11.9795 9.4999 12.2375C9.50269 12.6009 9.449 12.9623 9.34092 13.3077C9.22464 13.6464 9.02407 13.9466 8.75982 14.1776L8.01427 13.3649C8.18121 13.2209 8.32389 13.0488 8.43638 12.8556C8.5508 12.6531 8.60783 12.4209 8.60084 12.186C8.60233 12.0917 8.59313 11.9976 8.57344 11.9056C8.55306 11.8115 8.51982 11.7209 8.47476 11.6366C8.43129 11.5555 8.37143 11.4852 8.29933 11.4306C8.22851 11.3797 8.14405 11.3537 8.05813 11.3562C7.98576 11.3508 7.91335 11.3661 7.84866 11.4004C7.78396 11.4346 7.72941 11.4866 7.69083 11.5508C7.59968 11.7045 7.53303 11.8726 7.49348 12.0487C7.44414 12.249 7.40028 12.4664 7.35643 12.6953C7.31583 12.9272 7.24577 13.1524 7.14811 13.3649C7.05357 13.5611 6.91655 13.7316 6.74792 13.8628C6.53423 14.0052 6.28284 14.0733 6.02978 14.0574C5.79988 14.064 5.57204 14.0104 5.3671 13.9015C5.16216 13.7925 4.98666 13.6316 4.85663 13.4336C4.72665 13.2396 4.63188 13.0223 4.57705 12.7926C4.52266 12.5449 4.49689 12.2913 4.5003 12.0372C4.49999 11.7101 4.55187 11.3851 4.65379 11.0758C4.75413 10.7598 4.94561 10.4839 5.202 10.286L5.9311 11.0758Z",fill:"white"}),H("path",{d:"M4.60938 9.81656V8.46024L7.94792 7.13253L4.60938 5.7762V4.5L9.37873 6.45723V7.78494L4.60938 9.81656Z",fill:"white"})]}))};export{t as CSVFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DocFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/DocFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,WAAW,UAAW,eAAe,cAAc,CAAC,gBAahE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as C}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as H,jsx as V}from"react/jsx-runtime";import{SvgIcon as r}from"@material-ui/core";var i=function(i){return H(r,C({},i,{viewBox:"0 0 32 32"},{children:[V("path",{d:"M31.36 2.8H18.64V0.72V0.64C18.64 0.64 18.64 0.64 18.64 0.56V0.48L18.56 0.4C18.4 0.16 18.32 0.08 18.16 0C18.08 0 18.08 0 18 0H17.92C17.92 0 17.92 0 17.84 0L0.56 2.8C0.24 2.88 0 3.12 0 3.44V4.8V27.04V28.4C0 28.72 0.24 29.04 0.56 29.12L17.92 32C17.92 32 17.92 32 18 32H18.08C18.16 32 18.16 32 18.24 32C18.4 32 18.48 31.84 18.64 31.76L18.72 31.68V31.6C18.72 31.6 18.72 31.6 18.72 31.52V31.44V29.36H31.36C31.76 29.36 32 29.04 32 28.64V3.44C32 3.12 31.68 2.8 31.36 2.8ZM30.64 27.84H18.64V24.32H26.48C26.88 24.32 27.12 24 27.12 23.6C27.12 23.2 26.8 22.88 26.48 22.88H18.64V19.2H26.48C26.88 19.2 27.12 18.88 27.12 18.48C27.12 18.08 26.8 17.76 26.48 17.76H18.64V14.08H26.48C26.88 14.08 27.12 13.76 27.12 13.36C27.12 12.96 26.8 12.64 26.48 12.64H18.64V8.96H26.48C26.88 8.96 27.12 8.64 27.12 8.24C27.12 7.84 26.8 7.52 26.48 7.52H18.64V4.16H30.64V27.84Z",fill:"#2196F3"}),V("path",{d:"M3.6001 11.918H5.5201L6.8001 17.118L8.4801 11.918H10.1601L11.8401 17.198L13.2001 11.918H15.0401L12.7201 19.998H11.1201L9.3601 14.398L7.6001 19.998H6.0001L3.6001 11.918Z",fill:"white"})]}))};export{i as DocFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EDMFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/EDMFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,WAAW,UAAW,eAAe,cAAc,CAAC,gBA0BhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as V}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as H,jsx as i}from"react/jsx-runtime";import{SvgIcon as C}from"@material-ui/core";var t=function(t){return H(C,V({},t,{viewBox:"0 0 48 48"},{children:[H("g",V({clipPath:"url(#clip0_33019_122272)"},{children:[i("path",{d:"M47.04 4.2H27.96V1.08V0.96C27.96 0.96 27.96 0.96 27.96 0.84V0.72L27.84 0.6C27.6 0.24 27.48 0.12 27.24 0C27.12 0 27.12 0 27 0H26.88C26.88 0 26.88 0 26.76 0L0.84 4.2C0.36 4.32 0 4.68 0 5.16V7.2V40.56V42.6C0 43.08 0.36 43.56 0.84 43.68L26.88 48C26.88 48 26.88 48 27 48H27.12C27.24 48 27.24 48 27.36 48C27.6 48 27.72 47.76 27.96 47.64L28.08 47.52V47.4C28.08 47.4 28.08 47.4 28.08 47.28V47.16V44.04H47.04C47.64 44.04 48 43.56 48 42.96V5.16C48 4.68 47.52 4.2 47.04 4.2ZM33 6.24V11.4H28.08V6.24H33ZM27.96 28.8H32.88V34.32H27.96V28.8ZM27.96 26.76V21.24H32.88V26.76H27.96ZM27.96 19.08V13.56H32.88V19.08H27.96ZM27.96 36.48H32.88V41.76H27.96V36.48ZM45.96 41.76H35.04V36.48H39.6C40.2 36.48 40.56 36 40.56 35.4C40.56 34.8 40.08 34.32 39.6 34.32H35.04V28.8H39.6C40.2 28.8 40.56 28.32 40.56 27.72C40.56 27.12 40.08 26.64 39.6 26.64H35.04V21.12H39.6C40.2 21.12 40.56 20.64 40.56 20.04C40.56 19.44 40.08 18.96 39.6 18.96H35.04V13.44H39.6C40.2 13.44 40.56 12.96 40.56 12.36C40.56 11.76 40.08 11.28 39.6 11.28H35.04V6.24H45.96V41.76Z",fill:"#9D6FFF"}),i("path",{d:"M18 40V32.446H16.3143V38.0466H13.7429V33.1174H12.1V38.0466H9.6V32.4307H8V40H18Z",fill:"white"}),i("path",{d:"M18 30.4919V24.7539C18 22.831 16.8571 21.5644 15.2714 21.5644H10.7143C9.12857 21.5644 8 22.831 8 24.7539L8 30.4919H18ZM14.8143 23.5177C16.1429 23.5177 16.4 24.1892 16.4 25.2422V28.5385H9.6V25.2422C9.6 24.1892 9.85714 23.5177 11.1857 23.5177H14.8143Z",fill:"white"}),i("path",{d:"M15.4286 13.7075V13.8754L8.11429 16.897C8.11429 16.897 8 16.9275 8 17.0496V19.5829H18V17.6295H11.1429V17.5074L17.8429 14.9284C17.8429 14.9284 18 14.8978 18 14.73V12.8376C18 12.685 17.8429 12.6392 17.8429 12.6392L11.1429 10.0755V9.95337H18V8H8V10.518C8 10.6554 8.11429 10.6859 8.11429 10.6859L15.4286 13.7075Z",fill:"white"})]})),i("defs",{children:i("clipPath",V({id:"clip0_33019_122272"},{children:i("rect",{width:"48",height:"48",fill:"white"})}))})]}))};export{t as EDMFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ExelFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/ExelFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,YAAY,UAAW,eAAe,cAAc,CAAC,gBAajE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as V}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as H,jsx as C}from"react/jsx-runtime";import{SvgIcon as r}from"@material-ui/core";var i=function(i){return H(r,V({},i,{viewBox:"0 0 32 32"},{children:[C("path",{d:"M31.36 2.8H18.64V0.72V0.64C18.64 0.64 18.64 0.64 18.64 0.56V0.48L18.56 0.4C18.4 0.16 18.32 0.08 18.16 0C18.08 0 18.08 0 18 0H17.92C17.92 0 17.92 0 17.84 0L0.56 2.8C0.24 2.88 0 3.12 0 3.44V4.8V27.04V28.4C0 28.72 0.24 29.04 0.56 29.12L17.92 32C17.92 32 17.92 32 18 32H18.08C18.16 32 18.16 32 18.24 32C18.4 32 18.48 31.84 18.64 31.76L18.72 31.68V31.6C18.72 31.6 18.72 31.6 18.72 31.52V31.44V29.36H31.36C31.76 29.36 32 29.04 32 28.64V3.44C32 3.12 31.68 2.8 31.36 2.8ZM22 4.16V7.6H18.72V4.16H22ZM18.64 19.2H21.92V22.88H18.64V19.2V19.2ZM18.64 17.84V14.16H21.92V17.84H18.64V17.84ZM18.64 12.72V9.04H21.92V12.72H18.64ZM18.64 24.32H21.92V27.84H18.64V24.32V24.32ZM30.64 27.84H23.36V24.32H26.4C26.8 24.32 27.04 24 27.04 23.6C27.04 23.2 26.72 22.88 26.4 22.88H23.36V19.2H26.4C26.8 19.2 27.04 18.88 27.04 18.48C27.04 18.08 26.72 17.76 26.4 17.76H23.36V14.08H26.4C26.8 14.08 27.04 13.76 27.04 13.36C27.04 12.96 26.72 12.64 26.4 12.64H23.36V8.96H26.4C26.8 8.96 27.04 8.64 27.04 8.24C27.04 7.84 26.72 7.52 26.4 7.52H23.36V4.16H30.64V27.84V27.84Z",fill:"#4BC341"}),C("path",{d:"M8.0802 15.84L5.4402 12H7.6802L9.4402 14.8L11.1202 12H13.2802L10.6402 15.84L13.5202 20.08H11.2002L9.2802 16.8L7.3602 20H5.2002L8.0802 15.84Z",fill:"white"})]}))};export{i as ExelFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/ImageFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,aAAa,UAAW,eAAe,cAAc,CAAC,gBAgBlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as i}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as r,jsx as e}from"react/jsx-runtime";import{SvgIcon as t}from"@material-ui/core";var l=function(l){return r(t,i({},l,{viewBox:"0 0 24 24"},{children:[e("g",i({clipPath:"url(#clip0_1600_26)"},{children:e("path",{d:"M23.52 2.03987H13.98V0.599871C13.98 0.239871 13.62 -0.0601292 13.26 -0.000129162L0.42 2.09987C0.18 2.09987 0 2.33987 0 2.57987V21.3599C0 21.5999 0.18 21.8399 0.42 21.8999L13.32 23.9999C13.68 24.0599 14.04 23.7599 14.04 23.3999V21.8999H23.52C23.82 21.8999 24 21.6599 24 21.3599V2.57987C24 2.27987 23.76 2.03987 23.52 2.03987ZM13.98 6.29987C14.88 6.29987 15.6 7.01987 15.6 7.91987C15.6 8.81987 14.88 9.53987 13.98 9.53987V6.29987ZM22.98 20.8199H13.98V18.1799L18.42 13.7399L22.98 18.2999V20.8199ZM22.98 16.8599L18.78 12.6599C18.6 12.4799 18.24 12.4799 18.06 12.6599L13.98 16.7399V10.5599C15.42 10.5599 16.56 9.41987 16.56 7.97987C16.56 6.53987 15.42 5.39987 13.98 5.39987V3.11987H22.98V16.8599Z",fill:"#FF5982"})})),e("defs",{children:e("clipPath",i({id:"clip0_1600_26"},{children:e("rect",{width:"24",height:"24",fill:"white"})}))})]}))};export{l as ImageFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PdfFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/PdfFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,WAAW,UAAW,eAAe,cAAc,CAAC,gBAahE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as C}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsxs as H,jsx as V}from"react/jsx-runtime";import{SvgIcon as r}from"@material-ui/core";var i=function(i){return H(r,C({},i,{viewBox:"0 0 32 32"},{children:[V("path",{d:"M31.36 2.8H18.64V0.72V0.64C18.64 0.64 18.64 0.64 18.64 0.56V0.48L18.56 0.4C18.4 0.16 18.32 0.08 18.16 0C18.08 0 18.08 0 18 0H17.92C17.92 0 17.92 0 17.84 0L0.56 2.8C0.24 2.88 0 3.12 0 3.44V4.8V27.04V28.4C0 28.72 0.24 29.04 0.56 29.12L17.92 32C17.92 32 17.92 32 18 32H18.08C18.16 32 18.16 32 18.24 32C18.4 32 18.48 31.84 18.64 31.76L18.72 31.68V31.6C18.72 31.6 18.72 31.6 18.72 31.52V31.44V29.36H31.36C31.76 29.36 32 29.04 32 28.64V3.44C32 3.12 31.68 2.8 31.36 2.8ZM30.64 27.84H18.64V24.32H26.48C26.88 24.32 27.12 24 27.12 23.6C27.12 23.2 26.8 22.88 26.48 22.88H18.64V19.2H26.48C26.88 19.2 27.12 18.88 27.12 18.48C27.12 18.08 26.8 17.76 26.48 17.76H18.64V14.08H26.48C26.88 14.08 27.12 13.76 27.12 13.36C27.12 12.96 26.8 12.64 26.48 12.64H18.64V8.96H26.48C26.88 8.96 27.12 8.64 27.12 8.24C27.12 7.84 26.8 7.52 26.48 7.52H18.64V4.16H30.64V27.84Z",fill:"#EA2929"}),V("path",{d:"M13.5199 17.9217C13.3599 17.4417 13.0399 17.1217 12.6399 16.8817C12.3999 16.7217 12.0799 16.6417 11.7599 16.6417H9.9199L9.5199 16.0017L10.3999 14.4017C10.5599 14.1617 10.6399 13.8417 10.6399 13.5217C10.6399 12.5617 9.8399 11.7617 8.8799 11.7617C7.9199 11.7617 7.1199 12.5617 7.1199 13.5217C7.1199 13.8417 7.1999 14.0817 7.3599 14.4017L8.2399 16.0017L7.8399 16.7217H5.9199C5.5999 16.7217 5.2799 16.8017 5.0399 16.9617C4.6399 17.2017 4.3199 17.5217 4.1599 18.0017C3.9999 18.4817 4.0799 18.9617 4.3199 19.3617C4.6399 19.9217 5.2799 20.2417 5.8399 20.2417C6.1599 20.2417 6.3999 20.1617 6.7199 20.0017C6.9599 19.8417 7.1999 19.6017 7.3599 19.3617L8.3999 17.7617H9.2799L10.3199 19.3617C10.4799 19.6017 10.7199 19.8417 10.9599 20.0017C11.8399 20.4817 12.8799 20.1617 13.3599 19.2817C13.5999 18.8817 13.6799 18.4017 13.5199 17.9217ZM6.4799 18.8017C6.3999 18.8817 6.3199 18.9617 6.2399 19.0417C6.0799 19.1217 5.9199 19.1217 5.7599 19.1217C5.5999 19.0417 5.4399 18.9617 5.3599 18.8017C5.2799 18.6417 5.2799 18.4817 5.2799 18.3217C5.3599 18.1617 5.4399 18.0017 5.5999 17.9217C5.6799 17.8417 5.7599 17.8417 5.9199 17.8417H7.1199L6.4799 18.8017ZM8.8799 14.8817L8.3199 13.8417C8.2399 13.7617 8.2399 13.6017 8.2399 13.5217C8.2399 13.1217 8.5599 12.8817 8.8799 12.8817C9.2799 12.8817 9.5199 13.2017 9.5199 13.5217C9.5199 13.6017 9.5199 13.7617 9.4399 13.8417L8.8799 14.8817ZM12.3199 18.7217C12.2399 18.8817 12.0799 18.9617 11.9199 19.0417C11.7599 19.1217 11.5999 19.0417 11.4399 18.9617C11.3599 18.8817 11.2799 18.8017 11.1999 18.7217L10.5599 17.7617H11.7599C11.8399 17.7617 11.9999 17.7617 12.0799 17.8417C12.2399 17.9217 12.3199 18.0817 12.3999 18.2417C12.4799 18.4017 12.3999 18.5617 12.3199 18.7217Z",fill:"white"})]}))};export{i as PdfFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnknownFileIcon.d.ts","sourceRoot":"","sources":["../../../../src/components/FileIcon/icons/UnknownFileIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvC,eAAO,MAAM,eAAe,UAAW,eAAe,cAAc,CAAC,gBASpE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as C}from'./../../../ext-esm/tslib/tslib.es6.js';import{jsx as r}from"react/jsx-runtime";import{SvgIcon as V}from"@material-ui/core";var e=function(e){return r(V,C({},e,{viewBox:"0 0 32 32"},{children:r("path",{d:"M31.3357 2.784H18.6638V0.696C18.6681 0.661463 18.6681 0.626537 18.6638 0.592V0.592C18.6685 0.554811 18.6685 0.517189 18.6638 0.48V0.48C18.6473 0.440114 18.6258 0.402481 18.5998 0.368V0.368C18.5569 0.277435 18.4945 0.197482 18.417 0.133863C18.3396 0.0702436 18.249 0.0245322 18.1518 0L17.9038 0L0.567954 2.792C0.407636 2.81876 0.262204 2.90205 0.158007 3.02679C0.0538104 3.15154 -0.00225866 3.30948 -4.13915e-05 3.472V28.52C-0.00254391 28.6835 0.053243 28.8425 0.157323 28.9685C0.261404 29.0946 0.406975 29.1795 0.567954 29.208L17.8958 32H18.1438C18.2902 31.9641 18.4199 31.8794 18.5118 31.76V31.76C18.5377 31.7284 18.5592 31.6934 18.5758 31.656V31.656C18.5804 31.6215 18.5804 31.5865 18.5758 31.552C18.5789 31.5388 18.5789 31.5252 18.5758 31.512V31.512C18.5798 31.4774 18.5798 31.4426 18.5758 31.408V31.408V29.328H31.3357C31.516 29.3238 31.6873 29.2482 31.8118 29.1177C31.9363 28.9873 32.0039 28.8127 31.9997 28.6324V3.48C32.0018 3.39069 31.9864 3.30185 31.9541 3.21853C31.9219 3.13521 31.8736 3.05906 31.8119 2.99443C31.7503 2.92979 31.6765 2.87794 31.5948 2.84184C31.513 2.80573 31.425 2.78608 31.3357 2.784V2.784ZM30.6637 27.824H18.6638V4.208H30.6637V27.824Z",fill:"#616161"})}))};export{e as UnknownFileIcon};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FileIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { DropzoneOptions } from 'react-dropzone';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
declare type FilesDropzoneProps = {
|
|
4
|
+
/**
|
|
5
|
+
* Handles file drop
|
|
6
|
+
*/
|
|
7
|
+
onDrop?: DropzoneOptions['onDrop'];
|
|
8
|
+
/**
|
|
9
|
+
* Content to render
|
|
10
|
+
*/
|
|
11
|
+
children?: ReactNode;
|
|
12
|
+
/**
|
|
13
|
+
* Controls if dropzone accepts multiple files
|
|
14
|
+
*/
|
|
15
|
+
multiple?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Array of or comma-separated MIME types/File Extensions to accept
|
|
18
|
+
*
|
|
19
|
+
* NB: file extensions <b>must</b> start with `.`<br/>, otherwise they will be treated as MIME types
|
|
20
|
+
* file extensions will be shown below the dropzone in the description
|
|
21
|
+
*
|
|
22
|
+
* Example:<br/>
|
|
23
|
+
* `.xsl,image/*,.csv`<br/>
|
|
24
|
+
* Will accept any file with `xsl` or `csv` extensions, and also - any file with `image/...` MIME type
|
|
25
|
+
*/
|
|
26
|
+
accept?: string[] | string;
|
|
27
|
+
/**
|
|
28
|
+
* Maximum files to accept
|
|
29
|
+
*/
|
|
30
|
+
maxFiles?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Maximum file size to accept
|
|
33
|
+
*/
|
|
34
|
+
maxSize?: number;
|
|
35
|
+
errorText?: string;
|
|
36
|
+
className?: string;
|
|
37
|
+
disabled?: boolean;
|
|
38
|
+
};
|
|
39
|
+
export declare const FilesDropzone: (props: FilesDropzoneProps) => JSX.Element;
|
|
40
|
+
export {};
|
|
41
|
+
//# sourceMappingURL=FilesDropzone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesDropzone.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/FilesDropzone.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,eAAe,EAAe,MAAM,gBAAgB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASlC,aAAK,kBAAkB,GAAG;IACxB;;OAEG;IACH,MAAM,CAAC,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;;;;;;;OASG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBA4DtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import o from"@icon-park/react/es/icons/FileAdditionOne";import{__assign as s}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as i,jsx as t,Fragment as e}from"react/jsx-runtime";import{useDropzone as n}from"react-dropzone";import r from"classnames";import{Regular14 as c}from"../Typography.js";import m from"../Button/components/Button/index.js";import"moment-timezone";import"@material-ui/core";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/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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{CautionFilledCustomIcon as p}from"../../icons/customIcons/icons/CautionFilled.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import{useStyles as l}from"./styles.js";import{parseAccept as a,formatDescription as d}from"./utils.js";var u=function(u){var j=u.multiple,h=u.children,f=u.accept,I=u.onDrop,v=u.className,x=u.maxFiles,b=u.maxSize,g=u.errorText,z=u.disabled,y=l(),B=a(f),F=B.mimetypes,C=B.extensions,D=F.length||C.length?s({"*/*":C},Object.fromEntries(F.map((function(o){return[o,[]]})))):void 0,N=d(C,b),O=n({onDrop:I,multiple:j,accept:D,maxFiles:x,maxSize:b,disabled:z}),S=O.getRootProps,A=O.getInputProps,E=O.isDragActive;return i("div",s({className:v},{children:[i("div",s({},S(),{className:r(y.root,z&&y.disabled,E&&y.active)},{children:[t("input",s({},A())),h||i(e,{children:[t(o,{size:"24"}),t(c,{children:"Drag & Drop your file here or"}),t(m,s({variation:"tertiary",size:"small",disabled:z},{children:"Choose file"}))]})]})),!g&&N&&t(c,s({className:r(y.description,z&&y.disabled)},{children:N})),g&&i(c,s({className:y.error},{children:[t(p,{size:20}),g]}))]}))};export{u as FilesDropzone};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { FilesDropzone } from './FilesDropzone';
|
|
3
|
+
export declare const Default: (props: ComponentProps<typeof FilesDropzone>) => JSX.Element;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: {
|
|
7
|
+
onDrop?: <T extends File>(acceptedFiles: T[], fileRejections: import("react-dropzone").FileRejection[], event: import("react-dropzone").DropEvent) => void;
|
|
8
|
+
children?: import("react").ReactNode;
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
accept?: string | string[];
|
|
11
|
+
maxFiles?: number;
|
|
12
|
+
maxSize?: number;
|
|
13
|
+
errorText?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
argTypes: {};
|
|
18
|
+
args: {
|
|
19
|
+
onDrop: {
|
|
20
|
+
(...data: any[]): void;
|
|
21
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
parameters: {
|
|
25
|
+
isGenerateImportExample: boolean;
|
|
26
|
+
sourceLink: string;
|
|
27
|
+
designLink: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=FilesDropzone.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesDropzone.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/FilesDropzone.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,OAAO,UAAW,eAAe,oBAAoB,CAAC,gBAElE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAcE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,OAAO,EAAC,WAAW,EAAC,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,wIAiDnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeStyles as r}from"@material-ui/core";var t=r((function(r){return{disabled:{},active:{},root:{width:"100%",minHeight:"150px",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",borderRadius:"4px",border:"1px dashed ".concat(r.palette.primary.text9),color:r.palette.primary.text6,gap:r.spacing(1),transition:"all .3s","&:hover:not($disabled), &$active":{cursor:"pointer",background:"".concat(r.palette.primary.main,"1f"),border:"1px solid ".concat(r.palette.primary.main)},"&$disabled":{cursor:"not-allowed",color:r.palette.primary.text9,borderColor:r.palette.primary.text9}},uploadButton:{marginTop:r.spacing(1)},error:{lineHeight:"16px!important",color:r.palette.error.main,display:"flex",flexFlow:"row nowrap",alignItems:"center",gap:r.spacing(1),marginTop:r.spacing(1)},description:{marginTop:r.spacing(1),color:r.palette.primary.text6,transition:"all .3s","&$disabled":{color:r.palette.primary.text9}}}}));export{t as useStyles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/FilesDropzone/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,WAAY,MAAM,GAAG,MAAM,EAAE;;;CAapD,CAAC;AAEF,eAAO,MAAM,iBAAiB,eAAgB,MAAM,EAAE,YAAY,MAAM,WAkBvE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../utils/index.js";import{formatFileSize as t}from"../../utils/formatFileSize.js";var n=function(t){var n=t instanceof Array?t:(t||"").split(",").map((function(t){return t.trim()})).filter((function(t){return!!t}));return{mimetypes:n.filter((function(t){return!t.startsWith(".")})),extensions:n.filter((function(t){return t.startsWith(".")}))}},i=function(n,i){var r=[];if(n.length){var e=n.slice(-1)[0],o=n.slice(0,-1),c=o.length>0?" and ":"";r.push("Only ".concat(o.join(", ")).concat(c).concat(e," ")+"format".concat(o.length>0?"s":"","."))}return i&&r.push("".concat(t(i)," max file size.")),r.join(" ")};export{i as formatDescription,n as parseAccept};
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
interface FilesLoaderProps extends PropTypes.InferProps<typeof filesLoaderPropTypes> {
|
|
4
4
|
}
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated
|
|
7
|
+
*/
|
|
5
8
|
declare function FilesLoader({ size, unit, name, customUnitName, sizeBytes, handleCancel, onReload, onDelete, loadedBytes, error, errorText, formatError, importButtonType, isLoadingAnimation, showActions, }: FilesLoaderProps): JSX.Element;
|
|
6
9
|
declare namespace FilesLoader {
|
|
7
10
|
var propTypes: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilesLoader.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmDnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAOvF,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,GACZ,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CA4MhC;kBA5NQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8NpB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAgBzB,CAAC;AAoBF,eAAe,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"FilesLoader.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/FilesLoader.tsx"],"names":[],"mappings":";AACA,OAAO,SAAS,MAAM,YAAY,CAAC;AAmDnC,UAAU,gBAAiB,SAAQ,SAAS,CAAC,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAAG;AAOvF;;GAEG;AACH,iBAAS,WAAW,CAAC,EACnB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,cAAc,EACd,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,WAAW,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,gBAAgB,EAChB,kBAAkB,EAClB,WAAW,GACZ,EAAE,gBAAgB,GAAG,GAAG,CAAC,OAAO,CA4MhC;kBA5NQ,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8NpB,QAAA,MAAM,oBAAoB;;;;;;;;;;;;;;;;CAgBzB,CAAC;AAoBF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as n,Fragment as
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as e,jsx as n,Fragment as i}from"react/jsx-runtime";import{useState as t,useEffect as r,useMemo as s}from"react";import a from"prop-types";import c from"classnames";import{Typography as l,LinearProgress as m}from"@material-ui/core";import d from"../IconButton/index.js";import u from"../Button/components/Button/index.js";import"moment-timezone";import{CloseSmallIcon as p,DeleteFourIcon as f,CheckOneIcon as h,RedoIcon as g,UploadIcon as z}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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/CautionFilled.js";import"../Button/components/LiveButton/components/LiveButtonStateIndicator/index.js";import"../Button/components/LiveButton/styles.js";import v from"./Icons/IconWarning.js";import{FileIcon as I}from"../FileIcon/FileIcon.js";import{useStyles as B}from"./useStyles.js";function N(a){var N,j,S,y,C,w,L,b=a.size,M=a.unit,P=a.name,x=a.customUnitName,E=a.sizeBytes,T=a.handleCancel,A=a.onReload,k=a.onDelete,F=a.loadedBytes,O=a.error,R=a.errorText,U=a.formatError,D=a.importButtonType,W=a.isLoadingAnimation,q=a.showActions,G=B(),K=t({}),_=K[0],H=K[1],J=t(0),Q=J[0],V=J[1],X=t(!0),Y=X[0],Z=X[1],$="large"===b,oo=$?24:16,eo=$?"medium":"small";r((function(){H(function(o,e,n){return"time"===e?{downloaded:0,unit:"min",convertedSize:o}:"custom"===e?{downloaded:0,unit:n,convertedSize:o}:o>=Math.pow(10,6)?{downloaded:0,unit:"MB",convertedSize:Math.floor(o/Math.pow(10,5))/10}:o>=Math.pow(10,3)?{downloaded:0,unit:"KB",convertedSize:Math.floor(o/Math.pow(10,2))/10}:{downloaded:0,unit:"B",convertedSize:Math.floor(10*o)/10}}(E,M,x))}),[E,M]),r((function(){if(F&&E){var e=Math.round(F/E*100);H((function(n){return o(o({},n),{downloaded:Math.floor(n.convertedSize*e/10)/10})})),V(e)}}),[F,E]),r((function(){var o;return k&&Q>=100&&(Z(!0),o=setTimeout((function(){Z(!1)}),5e3)),function(){return o&&clearTimeout(o)}}),[Q]),r((function(){O&&(V(0),H((function(e){return o(o({},e),{downloaded:0})})))}),[O]);var no=s((function(){var o,e;return[c(G.iconButton,((o={})[G.iconButtonLarge]=$,o)),c(G.actionIcon,((e={})[G.actionIconLarge]=$,e))]}),[$]),io=no[0],to=no[1];return e("div",o({className:G.fileStateWrapper},{children:[n("div",o({className:G.fileIconContainer},{children:n(I,{name:P,style:{fontSize:$?48:32}})})),e("div",o({className:G.fileState},{children:[e("div",o({className:G.fileStateProgress},{children:[n("div",o({className:G.fileNameWrapper},{children:n(l,o({className:c(G.fileName,(N={},N[G.fileNameLarge]=$,N))},{children:P.length>7?e(i,{children:[n("span",o({className:G.firstPart},{children:P.slice(0,P.length-7)})),n("span",{children:P.slice(-7)})]}):P}))})),!W&&n(m,{className:G.progressBar,variant:"determinate",value:Q,classes:{colorPrimary:c(G.progressBackground,(j={},j[G.progressBarError]=O,j)),barColorPrimary:c(G.progressBarColor,(S={},S[G.progressBarError]=O,S))}}),e("div",o({className:G.loaderProgressContainer},{children:[!W&&n(l,o({className:c(G.fileSize,(y={},y[G.fileSizeLarge]=$,y)),component:"span"},{children:"".concat(_.downloaded," of ").concat(_.convertedSize," ").concat(_.unit)})),e("div",o({className:c(G.progressStatus,(C={},C[G.fileSizeLarge]=$,C))},{children:[O&&e(l,o({component:"div",className:G.errorContainer},{children:[n(v,{size:b}),n(l,o({component:"span",className:c(G.errorText,(w={},w[G.fileSizeLarge]=$,w))},{children:U?"Upload Error. Unacceptable file format.":"Upload Error".concat(R&&". ".concat(R))}))]})),!O&&!W&&"".concat(Q," %")]}))]}))]})),q&&e("div",o({className:G.fileActions},{children:[Q<100&&!O&&n(i,{children:W?n("div",{className:c(G.loadingIcon,(L={},L[G.loadingLargeIcon]=$,L)),style:{backgroundImage:"url(".concat("/static/media/6fa6f1128bc0185126482345243bcd42.svg",")")}}):n(d,o({tooltipProps:{title:"Cancel"},className:io,onClick:function(){T(P),V(0),H((function(e){return o(o({},e),{downloaded:0})}))},size:eo},{children:n(p,{className:to,size:oo})}))}),100===Q&&!O&&(!Y&&k?n(d,o({variant:"contained",tooltipProps:{title:"Delete"},className:io,onClick:k,size:eo},{children:n(f,{className:to,size:oo})})):n(h,{fill:"#75DB29",size:oo,style:{marginLeft:12}})),A&&O&&n(i,{children:U?n(i,{children:"default"===D?n(u,o({size:$?"medium":"small",variation:"primary",startIcon:n(z,{}),onClick:A},{children:"Import"})):n(d,o({size:eo,tooltipProps:{title:"Import File"},className:io,onClick:A},{children:n(z,{size:oo})}))}):n(d,o({size:eo,tooltipProps:{title:"Reload"},className:io,onClick:A},{children:n(g,{size:oo})}))})]}))]}))]}))}var j={size:a.oneOf(["small","large"]),unit:a.oneOf(["size","time","custom"]),customUnitName:a.string,onDelete:a.func,onReload:a.func,handleCancel:a.func,name:a.string,sizeBytes:a.number,error:a.bool,errorText:a.string,formatError:a.bool,importButtonType:a.oneOf(["default","icon"]),loadedBytes:a.number.isRequired,isLoadingAnimation:a.bool,showActions:a.bool};N.propTypes=j,N.defaultProps={size:"small",unit:"size",onDelete:null,onReload:null,name:"",customUnitName:"",sizeBytes:1,error:null,errorText:"",formatError:!1,importButtonType:"default",handleCancel:null,isLoadingAnimation:!1,showActions:!0};export{N as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoader/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
declare type FilesLoaderV2Props = {
|
|
3
|
+
name: string;
|
|
4
|
+
/**
|
|
5
|
+
* Total progress value (bytes by default)
|
|
6
|
+
*
|
|
7
|
+
* If undefined or < 0 - makes progress bar indeterminate
|
|
8
|
+
*/
|
|
9
|
+
total?: number;
|
|
10
|
+
/**
|
|
11
|
+
* Current progress value (bytes by default)
|
|
12
|
+
*
|
|
13
|
+
* If undefined or < 0 - makes progress bar indeterminate
|
|
14
|
+
*/
|
|
15
|
+
current?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Error to show
|
|
18
|
+
*/
|
|
19
|
+
errorText?: string;
|
|
20
|
+
/**
|
|
21
|
+
* If exists - displays the "Delete" button
|
|
22
|
+
*/
|
|
23
|
+
onDelete?: () => void;
|
|
24
|
+
/**
|
|
25
|
+
* If exists - displays the "Reload" button on error state
|
|
26
|
+
*/
|
|
27
|
+
onReload?: () => void;
|
|
28
|
+
/**
|
|
29
|
+
* If exists - displays the "Cancel" button when loading
|
|
30
|
+
*/
|
|
31
|
+
onCancel?: () => void;
|
|
32
|
+
/**
|
|
33
|
+
* Allows custom progress units
|
|
34
|
+
* @param total total progress value
|
|
35
|
+
* @param current current progress value
|
|
36
|
+
*/
|
|
37
|
+
formatProgress?: (total?: number, current?: number) => ReactNode;
|
|
38
|
+
className?: string;
|
|
39
|
+
};
|
|
40
|
+
export declare const FilesLoaderV2: (props: FilesLoaderV2Props) => JSX.Element;
|
|
41
|
+
export {};
|
|
42
|
+
//# sourceMappingURL=FilesLoaderV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesLoaderV2.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAWlC,aAAK,kBAAkB,GAAG;IACxB,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,KAAK,SAAS,CAAC;IACjE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAyEtD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as o}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as s,jsx as i,Fragment as r}from"react/jsx-runtime";import c from"classnames";import{LinearProgress as e}from"@material-ui/core";import{FileIcon as n}from"../FileIcon/FileIcon.js";import t from"../IconButton/index.js";import{CloseSmallIcon as m,DeleteFourIcon as l,RedoIcon as a}from"../../icons/iconParkIcons.js";import"../../icons/customIcons/icons/AddMessage.js";import"../../icons/customIcons/icons/Attention.js";import"../../icons/customIcons/icons/Collapse.js";import"../../icons/customIcons/icons/Expand.js";import"../../icons/customIcons/icons/FolderClosed.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{CautionFilledCustomIcon as d}from"../../icons/customIcons/icons/CautionFilled.js";import{MiddleTruncatedText as p}from"../MiddleTruncatedText/MiddleTruncatedText.js";import{Regular14 as u,Regular12 as j}from"../Typography.js";import{formatSizeProgress as h}from"./utils.js";import{useStyles as I}from"./styles.js";var f=function(f){var x=f.formatProgress,N=void 0===x?h:x,v=f.className,T=f.name,C=f.current,g=f.total,M=f.errorText,F=f.onCancel,k=f.onReload,z=f.onDelete,b=I(),y=g>=0&&C>=0,E=Math.min(100,Math.ceil(C/g*100)),O=C>=g;return s("div",o({className:c(b.root,v)},{children:[i(n,{name:T,className:b.icon}),s("div",o({className:b.content},{children:[i(u,o({className:b.name},{children:i(p,{children:T},T)})),!M&&!O&&s(r,{children:[i(e,{className:b.progressBar,variant:y?"determinate":void 0,value:E}),s("div",o({className:b.progressTextContainer},{children:[i(j,o({className:b.progressText},{children:N(g,C)})),y&&s(j,o({className:b.progressText},{children:[E,"%"]}))]}))]}),M&&s(u,o({className:b.error},{children:[i(d,{size:16}),M]}))]})),F&&!M&&!O&&i(t,o({onClick:F,size:"small"},{children:i(m,{})})),z&&(M||O)&&i(t,o({onClick:z,size:"small"},{children:i(l,{})})),k&&M&&i(t,o({onClick:k,size:"small"},{children:i(a,{})}))]}))};export{f as FilesLoaderV2};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { FilesLoaderV2 } from './FilesLoaderV2';
|
|
3
|
+
export declare const Default: (props: ComponentProps<typeof FilesLoaderV2>) => JSX.Element;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: (props: {
|
|
7
|
+
name: string;
|
|
8
|
+
total?: number;
|
|
9
|
+
current?: number;
|
|
10
|
+
errorText?: string;
|
|
11
|
+
onDelete?: () => void;
|
|
12
|
+
onReload?: () => void;
|
|
13
|
+
onCancel?: () => void;
|
|
14
|
+
formatProgress?: (total?: number, current?: number) => import("react").ReactNode;
|
|
15
|
+
className?: string;
|
|
16
|
+
}) => JSX.Element;
|
|
17
|
+
argTypes: {
|
|
18
|
+
onCancel: {
|
|
19
|
+
options: {
|
|
20
|
+
(...data: any[]): void;
|
|
21
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
22
|
+
}[];
|
|
23
|
+
control: {
|
|
24
|
+
type: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
onDelete: {
|
|
28
|
+
options: {
|
|
29
|
+
(...data: any[]): void;
|
|
30
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
31
|
+
}[];
|
|
32
|
+
control: {
|
|
33
|
+
type: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
onReload: {
|
|
37
|
+
options: {
|
|
38
|
+
(...data: any[]): void;
|
|
39
|
+
(message?: any, ...optionalParams: any[]): void;
|
|
40
|
+
}[];
|
|
41
|
+
control: {
|
|
42
|
+
type: string;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
args: {
|
|
47
|
+
name: string;
|
|
48
|
+
};
|
|
49
|
+
parameters: {
|
|
50
|
+
isGenerateImportExample: boolean;
|
|
51
|
+
sourceLink: string;
|
|
52
|
+
designLink: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export default _default;
|
|
56
|
+
//# sourceMappingURL=FilesLoaderV2.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesLoaderV2.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/FilesLoaderV2.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,OAAO,UAAW,eAAe,oBAAoB,CAAC,gBAElE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOF,wBAkBE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,wKAgDnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{makeStyles as e}from"@material-ui/core";var t=e((function(e){return{root:{borderRadius:e.spacing(1),border:"1px solid ".concat(e.palette.primary.text1,"14"),padding:e.spacing(1,2),width:"100%",minHeight:64,display:"flex",flexFlow:"row nowrap",gap:e.spacing(2),alignItems:"center",justifyContent:"space-between"},icon:{width:32,height:32},content:{flexGrow:1,minWidth:1},name:{lineHeight:"20px!important"},progressBar:{height:2,margin:e.spacing(.5,0)},progressTextContainer:{display:"flex",flexFlow:"row nowrap",gap:e.spacing(2),justifyContent:"space-between",minWidth:1},progressText:{color:e.palette.primary.text6,lineHeight:"16px!important"},error:{lineHeight:"16px!important",color:e.palette.error.main,display:"flex",flexFlow:"row nowrap",alignItems:"center",gap:e.spacing(1),paddingTop:e.spacing(.5)}}}));export{t as useStyles};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/FilesLoaderV2/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,WAAY,MAAM,YAAY,MAAM,WAMlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"../../utils/index.js";import{formatFileSize as t}from"../../utils/formatFileSize.js";var o=function(o,i){return o>=0&&i>=0?"".concat(t(i)," of ").concat(t(o)):null};export{o as formatSizeProgress};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { FilesDropzone } from '~/components/FilesDropzone';
|
|
3
|
+
import { FileProcessorFunction } from './types';
|
|
4
|
+
import { Processor } from '~/components/FilesProcessor/Processor';
|
|
5
|
+
declare type FilesDropzoneProps = ComponentProps<typeof FilesDropzone>;
|
|
6
|
+
declare type ProcessorProps = ComponentProps<typeof Processor>;
|
|
7
|
+
declare type ValueItem = {
|
|
8
|
+
id: string | number;
|
|
9
|
+
name: string;
|
|
10
|
+
};
|
|
11
|
+
declare type FilesProcessorProps<T> = {
|
|
12
|
+
/**
|
|
13
|
+
* Function that processes file (uploads, parses, etc.)
|
|
14
|
+
*
|
|
15
|
+
* Accepts 3 arguments:<br/>
|
|
16
|
+
* `file: File`<br/>
|
|
17
|
+
* `onProgress: (totalProgress: number, currentProgress: number) => void,`<br/>
|
|
18
|
+
* `registerOnCancel: (onCancel: Function) => void` - processing cancellation function
|
|
19
|
+
*/
|
|
20
|
+
processFile: FileProcessorFunction<T>;
|
|
21
|
+
/**
|
|
22
|
+
* Called when files are uploaded/reuploaded
|
|
23
|
+
* @param results array of results from `processFile`
|
|
24
|
+
*/
|
|
25
|
+
onDone: (results: T[]) => void;
|
|
26
|
+
/**
|
|
27
|
+
* Files list to display
|
|
28
|
+
*
|
|
29
|
+
* `type ValueItem = {id: string | number; name: string;};`
|
|
30
|
+
*/
|
|
31
|
+
value?: ValueItem[];
|
|
32
|
+
/**
|
|
33
|
+
* Used in conjunction with `value`. Called when user presses "delete" button. If undefined - no button is shown
|
|
34
|
+
* @param item
|
|
35
|
+
*/
|
|
36
|
+
onDelete?: (item: ValueItem) => void;
|
|
37
|
+
/**
|
|
38
|
+
* Controls if multiple files can be processed
|
|
39
|
+
*/
|
|
40
|
+
multiple?: FilesDropzoneProps['multiple'];
|
|
41
|
+
/**
|
|
42
|
+
* Array of or comma-separated MIME types/File Extensions to accept
|
|
43
|
+
*
|
|
44
|
+
* See `FilesDropzone`'s props
|
|
45
|
+
*/
|
|
46
|
+
accept?: FilesDropzoneProps['accept'];
|
|
47
|
+
/**
|
|
48
|
+
* Maximum files to accept
|
|
49
|
+
*/
|
|
50
|
+
maxFiles?: FilesDropzoneProps['maxFiles'];
|
|
51
|
+
/**
|
|
52
|
+
* Maximum file size to accept
|
|
53
|
+
*/
|
|
54
|
+
maxSize?: FilesDropzoneProps['maxSize'];
|
|
55
|
+
/**
|
|
56
|
+
* Allows custom progress units
|
|
57
|
+
* @param total total progress value
|
|
58
|
+
* @param current current progress value
|
|
59
|
+
*/
|
|
60
|
+
formatProgress?: ProcessorProps['formatProgress'];
|
|
61
|
+
className?: string;
|
|
62
|
+
};
|
|
63
|
+
export declare const FilesProcessor: <T extends unknown>(props: FilesProcessorProps<T>) => JSX.Element;
|
|
64
|
+
export {};
|
|
65
|
+
//# sourceMappingURL=FilesProcessor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesProcessor.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/FilesProcessor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAoC,MAAM,OAAO,CAAC;AACzE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAoB,MAAM,SAAS,CAAC;AAGlE,OAAO,EAAE,SAAS,EAAE,MAAM,uCAAuC,CAAC;AAElE,aAAK,kBAAkB,GAAG,cAAc,CAAC,OAAO,aAAa,CAAC,CAAC;AAC/D,aAAK,cAAc,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,CAAC;AAEvD,aAAK,SAAS,GAAG;IACf,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,aAAK,mBAAmB,CAAC,CAAC,IAAI;IAC5B;;;;;;;OAOG;IACH,WAAW,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC;IAEtC;;;OAGG;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,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,gBAAgB,CAAC,CAAC;IAElD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAQF,eAAO,MAAM,cAAc,mEAuE1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{__assign as e,__spreadArray as n}from'./../../ext-esm/tslib/tslib.es6.js';import{jsxs as t,jsx as r}from"react/jsx-runtime";import{useState as o,useEffect as i,useCallback as s}from"react";import{FilesDropzone as c}from"../FilesDropzone/FilesDropzone.js";import"../../utils/index.js";import{FilesLoaderV2 as u}from"../FilesLoaderV2/FilesLoaderV2.js";import{useStyles as l}from"./styles.js";import f from"classnames";import{Processor as a}from"./Processor.js";var m=function(m){var p=m.multiple,d=m.accept,v=m.className,h=m.processFile,j=m.value,D=m.onDone,F=m.onDelete,g=l(),x=o([]),z=x[0],N=x[1];i((function(){z.length>0&&z.every((function(e){return"success"in e}))&&z.some((function(e){return e.success}))&&(N((function(e){return e.filter((function(e){return!e.success}))})),D(z.filter((function(e){return e.success})).map((function(e){return e.data}))))}),[z]);var b=s((function(e){N((function(n){return n.filter((function(n){return n.file!==e}))}))}),[]),y=s((function(n){N((function(t){return t.map((function(t){return t.file===n.file?e(e({},t),{data:n.data,success:n.success}):t}))}))}),[]),L=s((function(e){var t=e.map((function(e){return{file:e}}));N((function(e){return n(n([],e,!0),t,!0)}))}),[]);return t("div",e({className:f(g.root,v)},{children:[(p||0===z.length)&&r(c,{multiple:p,onDrop:L,accept:d}),(z.length>0||(null==j?void 0:j.length)>0)&&t("div",e({className:g.files},{children:[z.map((function(e){return r(a,{processFile:h,onStatusChange:y,file:e.file,onDelete:b},"".concat(e.file.size,"|").concat(e.file.name))})),null==j?void 0:j.map((function(e){return r(u,{name:e.name,onDelete:F?function(){return F(e)}:void 0,total:0,current:0})}))]}))]}))};export{m as FilesProcessor};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { FilesProcessor } from './FilesProcessor';
|
|
3
|
+
export declare const Default: (props: ComponentProps<typeof FilesProcessor>) => JSX.Element;
|
|
4
|
+
declare const _default: {
|
|
5
|
+
title: string;
|
|
6
|
+
component: <T extends unknown>(props: {
|
|
7
|
+
processFile: import("./types").FileProcessorFunction<T>;
|
|
8
|
+
onDone: (results: T[]) => void;
|
|
9
|
+
value?: {
|
|
10
|
+
id: string | number;
|
|
11
|
+
name: string;
|
|
12
|
+
}[];
|
|
13
|
+
onDelete?: (item: {
|
|
14
|
+
id: string | number;
|
|
15
|
+
name: string;
|
|
16
|
+
}) => void;
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
accept?: string | string[];
|
|
19
|
+
maxFiles?: number;
|
|
20
|
+
maxSize?: number;
|
|
21
|
+
formatProgress?: (total?: number, current?: number) => import("react").ReactNode;
|
|
22
|
+
className?: string;
|
|
23
|
+
}) => JSX.Element;
|
|
24
|
+
parameters: {
|
|
25
|
+
isGenerateImportExample: boolean;
|
|
26
|
+
sourceLink: string;
|
|
27
|
+
designLink: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default _default;
|
|
31
|
+
//# sourceMappingURL=FilesProcessor.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilesProcessor.stories.d.ts","sourceRoot":"","sources":["../../../src/components/FilesProcessor/FilesProcessor.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAY,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AA2BlD,eAAO,MAAM,OAAO,UAAW,eAAe,qBAAqB,CAAC,gBA+BnE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEF,wBAUE"}
|