@terraware/web-components 4.2.26-rc.0 → 4.3.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/_vendor/react-multi-carousel/index.js +13 -0
- package/_vendor/react-multi-carousel/lib/Arrows.js +13 -0
- package/_vendor/react-multi-carousel/lib/Carousel.js +19 -0
- package/_vendor/react-multi-carousel/lib/CarouselItems.js +14 -0
- package/_vendor/react-multi-carousel/lib/Dots.js +16 -0
- package/_vendor/react-multi-carousel/lib/index.js +13 -0
- package/_vendor/react-multi-carousel/lib/types.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/clones.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/common.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/dots.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/elementWidth.js +12 -0
- package/_vendor/react-multi-carousel/lib/utils/index.js +20 -0
- package/_vendor/react-multi-carousel/lib/utils/mouseOrTouchMove.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/next.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/previous.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/throttle.js +12 -0
- package/_vendor/react-multi-carousel/lib/utils/throwError.js +14 -0
- package/_virtual/Arrows.js +3 -0
- package/_virtual/Carousel.js +3 -0
- package/_virtual/CarouselItems.js +3 -0
- package/_virtual/Dots.js +3 -0
- package/_virtual/_commonjsHelpers.js +5 -0
- package/_virtual/clones.js +3 -0
- package/_virtual/common.js +3 -0
- package/_virtual/dots2.js +3 -0
- package/_virtual/elementWidth.js +3 -0
- package/_virtual/index.js +7 -0
- package/_virtual/index2.js +3 -0
- package/_virtual/index3.js +3 -0
- package/_virtual/mouseOrTouchMove.js +3 -0
- package/_virtual/next.js +3 -0
- package/_virtual/previous.js +3 -0
- package/_virtual/throttle.js +3 -0
- package/_virtual/throwError.js +3 -0
- package/_virtual/types.js +3 -0
- package/components/AntSwitch/index.js +6 -4
- package/components/Autocomplete/Autocomplete.js +19 -16
- package/components/Badge/index.js +8 -6
- package/components/BusySpinner/index.js +11 -8
- package/components/Button/Button.js +12 -9
- package/components/Checkbox.js +11 -8
- package/components/Confirm/index.js +14 -17
- package/components/DatePicker/DatePicker.js +19 -23
- package/components/DialogBox/DialogBox.js +25 -20
- package/components/Divisor.js +11 -8
- package/components/Dropdown.js +18 -15
- package/components/EditableTable/index.js +17 -14
- package/components/ErrorBox/ErrorBox.js +18 -15
- package/components/FileChooser/index.js +20 -15
- package/components/FormBottomBar/index.js +15 -12
- package/components/Icon/Icon.js +9 -6
- package/components/Icon/icons/index.js +252 -251
- package/components/IconTooltip/index.js +14 -9
- package/components/Map/MapBox.js +35 -32
- package/components/Map/MapContainer.js +10 -6
- package/components/Map/MapDateSliderControl.js +14 -12
- package/components/Map/MapDrawer.js +16 -12
- package/components/Map/MapLegend.js +32 -28
- package/components/Map/MapViewStyleControl.js +11 -9
- package/components/Map/ReactMapboxWrapper.js +1 -1
- package/components/Map/index.js +13 -11
- package/components/Map/types.js +5 -3
- package/components/Map/useMaintainLayerOrder.js +5 -2
- package/components/Markdown/index.js +6 -4
- package/components/Message/Message.js +25 -20
- package/components/MultiSelect/index.js +26 -23
- package/components/Navbar/NavFooter.js +8 -5
- package/components/Navbar/NavItem.js +14 -11
- package/components/Navbar/NavSection.js +10 -7
- package/components/Navbar/Navbar.js +16 -11
- package/components/Navbar/SubNavbar.js +8 -5
- package/components/Note.js +10 -7
- package/components/OverlayModal/OverlayModal.js +13 -11
- package/components/PageForm/index.js +15 -12
- package/components/PhotoChooser/index.js +30 -25
- package/components/PhotosCarousel/index.js +15 -18
- package/components/Pill/index.js +14 -11
- package/components/PillList/index.js +10 -7
- package/components/PlacementWrapper/index.js +8 -6
- package/components/PopoverMenu/Popover.js +12 -9
- package/components/PopoverMenu/index.js +14 -11
- package/components/PopoverMultiSelect/index.js +14 -11
- package/components/ProgressCircle/ProgressCircle.js +12 -9
- package/components/RadioButton.js +9 -6
- package/components/Select/Select.js +9 -6
- package/components/Select/SelectT.js +30 -26
- package/components/Separator/index.js +7 -5
- package/components/Size.js +1 -1
- package/components/Slider/index.js +9 -6
- package/components/SummaryBox.js +13 -10
- package/components/Tabs/index.js +22 -18
- package/components/TextTruncated/index.js +13 -20
- package/components/Textfield/Textfield.js +34 -28
- package/components/Textfield/TruncatedTextArea.js +12 -10
- package/components/TimelineSlider/TimelineMarker.js +8 -6
- package/components/TimelineSlider/TimelineRail.js +6 -4
- package/components/TimelineSlider/index.js +14 -12
- package/components/Tooltip/Tooltip.js +12 -7
- package/components/ViewPhotosDialog/index.js +14 -11
- package/components/VirtualWalkthrough/Annotation.js +10 -8
- package/components/VirtualWalkthrough/AnnotationEditPane.js +23 -21
- package/components/VirtualWalkthrough/AnnotationPanel.js +16 -14
- package/components/VirtualWalkthrough/Application.js +9 -7
- package/components/VirtualWalkthrough/AutoRotator.js +5 -3
- package/components/VirtualWalkthrough/BlockingSpinner.js +10 -7
- package/components/VirtualWalkthrough/BoundaryRing.js +8 -6
- package/components/VirtualWalkthrough/BoundaryWall.js +8 -6
- package/components/VirtualWalkthrough/CameraInfo.js +15 -13
- package/components/VirtualWalkthrough/ControlsInfoPane.js +59 -57
- package/components/VirtualWalkthrough/GradientSky.js +8 -6
- package/components/VirtualWalkthrough/SplatControls.js +37 -35
- package/components/VirtualWalkthrough/SplatCrop.js +6 -4
- package/components/VirtualWalkthrough/SplatFadeCrop.js +7 -5
- package/components/VirtualWalkthrough/SplatModel.js +17 -14
- package/components/VirtualWalkthrough/SplatRevealRain.js +6 -4
- package/components/VirtualWalkthrough/TfAnnotationManager.js +8 -5
- package/components/VirtualWalkthrough/TfXrNavigation.js +7 -5
- package/components/VirtualWalkthrough/VirtualWalkthroughViewer.js +47 -45
- package/components/VirtualWalkthrough/VrAnnotationPanel.js +9 -7
- package/components/VirtualWalkthrough/XrAnnotationInteraction.js +9 -7
- package/components/VirtualWalkthrough/XrExitButton.js +9 -7
- package/components/VirtualWalkthrough/XrGazeDwell.js +9 -7
- package/components/VirtualWalkthrough/XrPointerRay.js +9 -7
- package/components/VirtualWalkthrough/boundary-ring.js +7 -5
- package/components/VirtualWalkthrough/boundary-wall.js +8 -6
- package/components/VirtualWalkthrough/groundPlane.js +6 -3
- package/components/VirtualWalkthrough/gsplat-fade-crop-effect.js +5 -2
- package/components/VirtualWalkthrough/splatFormat.js +6 -4
- package/components/VirtualWalkthrough/vr-annotation-panel-layout.js +4 -2
- package/components/VirtualWalkthrough/vr-annotation-panel.js +8 -5
- package/components/VirtualWalkthrough/walkthrough-camera.js +6 -4
- package/components/VirtualWalkthrough/xr-annotation-candidates.js +8 -6
- package/components/VirtualWalkthrough/xr-annotation-interaction.js +9 -6
- package/components/VirtualWalkthrough/xr-annotation-targeting.js +5 -2
- package/components/VirtualWalkthrough/xr-button-arming.js +4 -2
- package/components/VirtualWalkthrough/xr-button-hold.js +5 -3
- package/components/VirtualWalkthrough/xr-exit-button.js +10 -8
- package/components/VirtualWalkthrough/xr-face-buttons.js +6 -4
- package/components/VirtualWalkthrough/xr-gaze-dwell-state.js +5 -3
- package/components/VirtualWalkthrough/xr-gaze-dwell.js +9 -7
- package/components/VirtualWalkthrough/xr-interactive-ui.js +10 -8
- package/components/VirtualWalkthrough/xr-pointer-ray.js +5 -3
- package/components/VirtualWalkthrough/xr-progress-pie.js +4 -2
- package/components/VirtualWalkthrough/xr-ray-quad.js +5 -2
- package/components/VirtualWalkthrough/xr-scene-bounds.js +5 -3
- package/components/VirtualWalkthrough/xr-teleport-gesture.js +4 -2
- package/components/svg/BlobbyGrayIconImage.js +13 -11
- package/components/svg/BlobbyGrayIconImport.js +13 -11
- package/components/svg/BlobbyGrayIconUploadToTheCloud.js +13 -11
- package/components/svg/BlobbyIconCloudChecked.js +41 -39
- package/components/svg/BlobbyIconExportOrUploadPhoto.js +41 -39
- package/components/svg/BlobbyIconFolder.js +41 -39
- package/components/svg/BlobbyIconGraphReport.js +41 -39
- package/components/svg/BlobbyIconHappy.js +41 -39
- package/components/svg/BlobbyIconHeartMonitor.js +41 -39
- package/components/svg/BlobbyIconLeaf.js +41 -39
- package/components/svg/BlobbyIconLibrary.js +41 -39
- package/components/svg/BlobbyIconNursery.js +41 -39
- package/components/svg/BlobbyIconOrganization.js +41 -39
- package/components/svg/BlobbyIconParchment.js +41 -39
- package/components/svg/BlobbyIconPeople.js +41 -39
- package/components/svg/BlobbyIconSeedBank.js +41 -39
- package/components/svg/BlobbyIconSeedling.js +41 -39
- package/components/svg/BlobbyIconSeeds.js +41 -39
- package/components/svg/BlobbyIconSite.js +42 -40
- package/components/svg/BlobbyIconSparkles.js +41 -39
- package/components/svg/BlobbyIconWrench.js +41 -39
- package/components/svg/Bug.js +8 -6
- package/components/svg/Calendar.js +8 -6
- package/components/svg/CaretDown.js +8 -6
- package/components/svg/CaretLeft.js +8 -6
- package/components/svg/CaretRight.js +8 -6
- package/components/svg/CaretUp.js +8 -6
- package/components/svg/ChevronDown.js +8 -6
- package/components/svg/ChevronUp.js +8 -6
- package/components/svg/Close.js +8 -6
- package/components/svg/Critical.js +8 -6
- package/components/svg/Edit.js +41 -39
- package/components/svg/Error.js +8 -6
- package/components/svg/Filter.js +8 -6
- package/components/svg/Folder.js +8 -6
- package/components/svg/Help.js +8 -6
- package/components/svg/Home.js +8 -6
- package/components/svg/IconAdd.js +8 -6
- package/components/svg/IconArrowRight.js +8 -6
- package/components/svg/IconBusinessNetwork.js +8 -6
- package/components/svg/IconCalendar.js +8 -6
- package/components/svg/IconCancel.js +8 -6
- package/components/svg/IconChargingBattery.js +8 -6
- package/components/svg/IconChecklist.js +8 -6
- package/components/svg/IconCheckmark.js +8 -6
- package/components/svg/IconCoinInHand.js +8 -6
- package/components/svg/IconColumns.js +8 -6
- package/components/svg/IconComment.js +8 -6
- package/components/svg/IconDashboard.js +8 -6
- package/components/svg/IconDataMigration.js +8 -6
- package/components/svg/IconDocument.js +8 -6
- package/components/svg/IconDownloadFromTheCloud.js +8 -6
- package/components/svg/IconEdit.js +8 -6
- package/components/svg/IconExpand.js +8 -6
- package/components/svg/IconExport.js +8 -6
- package/components/svg/IconExternalLink.js +8 -6
- package/components/svg/IconEye.js +8 -6
- package/components/svg/IconEyeOff.js +8 -6
- package/components/svg/IconFile.js +8 -6
- package/components/svg/IconFolder.js +8 -6
- package/components/svg/IconFullScreen.js +8 -6
- package/components/svg/IconFutures.js +8 -6
- package/components/svg/IconGraphReport.js +8 -6
- package/components/svg/IconHeartMonitor.js +8 -6
- package/components/svg/IconHelp.js +8 -6
- package/components/svg/IconHistory.js +8 -6
- package/components/svg/IconImport.js +8 -6
- package/components/svg/IconIndex.js +8 -6
- package/components/svg/IconLayers.js +8 -6
- package/components/svg/IconLibrary.js +8 -6
- package/components/svg/IconList.js +8 -6
- package/components/svg/IconLivePlant.js +8 -6
- package/components/svg/IconLocations.js +8 -6
- package/components/svg/IconMail.js +8 -6
- package/components/svg/IconManager.js +8 -6
- package/components/svg/IconMarker.js +8 -6
- package/components/svg/IconMenu.js +8 -6
- package/components/svg/IconMenuHorizontal.js +8 -6
- package/components/svg/IconModule.js +8 -6
- package/components/svg/IconMyLocation.js +8 -6
- package/components/svg/IconNote.js +8 -6
- package/components/svg/IconNursery.js +8 -6
- package/components/svg/IconOrg.js +8 -6
- package/components/svg/IconParchment.js +8 -6
- package/components/svg/IconPhoto.js +8 -6
- package/components/svg/IconPlantsFilled.js +8 -6
- package/components/svg/IconRedo.js +8 -6
- package/components/svg/IconRestorationSite.js +8 -6
- package/components/svg/IconSeedBank.js +8 -6
- package/components/svg/IconSeedling.js +8 -6
- package/components/svg/IconSettings.js +8 -6
- package/components/svg/IconSlice.js +8 -6
- package/components/svg/IconSubmit.js +8 -6
- package/components/svg/IconSubtract.js +8 -6
- package/components/svg/IconSynced.js +8 -6
- package/components/svg/IconTrashCan.js +8 -6
- package/components/svg/IconTreasureMap.js +8 -6
- package/components/svg/IconUnavailable.js +8 -6
- package/components/svg/IconUndo.js +8 -6
- package/components/svg/IconVariable.js +8 -6
- package/components/svg/IconVideo.js +9 -7
- package/components/svg/IconWifi.js +8 -6
- package/components/svg/Info.js +8 -6
- package/components/svg/Key.js +8 -6
- package/components/svg/Leaf.js +8 -6
- package/components/svg/Lock.js +8 -6
- package/components/svg/Logo.js +16 -14
- package/components/svg/MenuVertical.js +8 -6
- package/components/svg/Notification.js +8 -6
- package/components/svg/Person.js +8 -6
- package/components/svg/Plus.js +8 -6
- package/components/svg/RestorationSite.js +8 -6
- package/components/svg/Search.js +8 -6
- package/components/svg/Seeds.js +8 -6
- package/components/svg/Site.js +8 -6
- package/components/svg/Sparkles.js +8 -6
- package/components/svg/Species.js +8 -6
- package/components/svg/Species2.js +41 -39
- package/components/svg/Spinner.js +16 -14
- package/components/svg/Star.js +8 -6
- package/components/svg/Success.js +8 -6
- package/components/svg/SuccessFilled.js +8 -6
- package/components/svg/TerrawareLogoDesktop.js +17 -15
- package/components/svg/TerrawareLogoMobile.js +9 -7
- package/components/svg/Touchscreen.js +8 -6
- package/components/svg/UploadCloud.js +41 -39
- package/components/svg/Warning.js +8 -6
- package/components/svg/WelcomeClipboard.js +32 -30
- package/components/svg/index.js +127 -127
- package/components/table/EnhancedTableToolbar.js +18 -15
- package/components/table/EnhancedTableToolbarV2.js +8 -6
- package/components/table/TableCellRenderer.js +37 -32
- package/components/table/TableHeader.js +17 -14
- package/components/table/TableHeaderItem.js +18 -15
- package/components/table/density.js +5 -3
- package/components/table/index.js +40 -37
- package/components/table/sort.js +6 -4
- package/components/table/types.js +1 -1
- package/components/types/index.js +1 -1
- package/hooks/useBoolean.js +4 -2
- package/hooks/useCameraPosition.js +5 -2
- package/hooks/useDevicePerformance.js +6 -3
- package/hooks/useXr.js +6 -4
- package/index.js +55 -58
- package/package.json +6 -2
- package/style-dictionary-dist/TerrawareTheme.js +2 -1
- package/theme.js +5 -2
- package/utils/color.js +5 -2
- package/utils/date.js +7 -6
- package/utils/index.js +4 -5
- package/utils/preventDefaultEvent.js +2 -1
- package/utils/text.js +3 -2
- package/utils/useDeviceInfo.js +2 -1
- package/virtualWalkthrough.js +23 -31
- package/components/Button/button.test.js +0 -23
- package/components/MultiSelect/MultiSelect.test.js +0 -73
- package/components/VirtualWalkthrough/TfXrNavigation.test.js +0 -110
- package/components/VirtualWalkthrough/boundary-ring.test.js +0 -109
- package/components/VirtualWalkthrough/boundary-wall.test.js +0 -203
- package/components/VirtualWalkthrough/groundPlane.test.js +0 -45
- package/components/VirtualWalkthrough/splatFormat.test.js +0 -51
- package/components/VirtualWalkthrough/vr-annotation-panel-layout.test.js +0 -26
- package/components/VirtualWalkthrough/xr-annotation-targeting.test.js +0 -66
- package/components/VirtualWalkthrough/xr-button-arming.test.js +0 -35
- package/components/VirtualWalkthrough/xr-button-hold.test.js +0 -57
- package/components/VirtualWalkthrough/xr-exit-button.test.js +0 -23
- package/components/VirtualWalkthrough/xr-face-buttons.test.js +0 -82
- package/components/VirtualWalkthrough/xr-gaze-dwell-state.test.js +0 -61
- package/components/VirtualWalkthrough/xr-interactive-ui.test.js +0 -165
- package/components/VirtualWalkthrough/xr-progress-pie.test.js +0 -79
- package/components/VirtualWalkthrough/xr-ray-quad.test.js +0 -37
- package/components/VirtualWalkthrough/xr-scene-bounds.test.js +0 -70
- package/components/VirtualWalkthrough/xr-teleport-gesture.test.js +0 -90
- package/components/table/sort.test.js +0 -35
- package/utils/date.test.js +0 -84
- package/utils/text.test.js +0 -21
package/components/svg/index.js
CHANGED
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
export { default as BlobbyGrayIconImage } from './BlobbyGrayIconImage';
|
|
2
|
-
export { default as BlobbyGrayIconImport } from './BlobbyGrayIconImport';
|
|
3
|
-
export { default as BlobbyGrayIconUploadToTheCloud } from './BlobbyGrayIconUploadToTheCloud';
|
|
4
|
-
export { default as BlobbyIconCloudChecked } from './BlobbyIconCloudChecked';
|
|
5
|
-
export { default as BlobbyIconExportOrUploadPhoto } from './BlobbyIconExportOrUploadPhoto';
|
|
6
|
-
export { default as BlobbyIconFolder } from './BlobbyIconFolder';
|
|
7
|
-
export { default as BlobbyIconGraphReport } from './BlobbyIconGraphReport';
|
|
8
|
-
export { default as BlobbyIconHappy } from './BlobbyIconHappy';
|
|
9
|
-
export { default as BlobbyIconHeartMonitor } from './BlobbyIconHeartMonitor';
|
|
10
|
-
export { default as BlobbyIconLeaf } from './BlobbyIconLeaf';
|
|
11
|
-
export { default as BlobbyIconLibrary } from './BlobbyIconLibrary';
|
|
12
|
-
export { default as BlobbyIconNursery } from './BlobbyIconNursery';
|
|
13
|
-
export { default as BlobbyIconOrganization } from './BlobbyIconOrganization';
|
|
14
|
-
export { default as BlobbyIconParchment } from './BlobbyIconParchment';
|
|
15
|
-
export { default as BlobbyIconPeople } from './BlobbyIconPeople';
|
|
16
|
-
export { default as BlobbyIconSeedBank } from './BlobbyIconSeedBank';
|
|
17
|
-
export { default as BlobbyIconSeedling } from './BlobbyIconSeedling';
|
|
18
|
-
export { default as BlobbyIconSeeds } from './BlobbyIconSeeds';
|
|
19
|
-
export { default as BlobbyIconSite } from './BlobbyIconSite';
|
|
20
|
-
export { default as BlobbyIconSparkles } from './BlobbyIconSparkles';
|
|
21
|
-
export { default as BlobbyIconWrench } from './BlobbyIconWrench';
|
|
22
|
-
export { default as Bug } from './Bug';
|
|
23
|
-
export { default as Calendar } from './Calendar';
|
|
24
|
-
export { default as CaretDown } from './CaretDown';
|
|
25
|
-
export { default as CaretLeft } from './CaretLeft';
|
|
26
|
-
export { default as CaretRight } from './CaretRight';
|
|
27
|
-
export { default as CaretUp } from './CaretUp';
|
|
28
|
-
export { default as ChevronDown } from './ChevronDown';
|
|
29
|
-
export { default as ChevronUp } from './ChevronUp';
|
|
30
|
-
export { default as Close } from './Close';
|
|
31
|
-
export { default as Critical } from './Critical';
|
|
32
|
-
export { default as Edit } from './Edit';
|
|
33
|
-
export { default as Error } from './Error';
|
|
34
|
-
export { default as Filter } from './Filter';
|
|
35
|
-
export { default as Folder } from './Folder';
|
|
36
|
-
export { default as Help } from './Help';
|
|
37
|
-
export { default as Home } from './Home';
|
|
38
|
-
export { default as IconAdd } from './IconAdd';
|
|
39
|
-
export { default as IconArrowRight } from './IconArrowRight';
|
|
40
|
-
export { default as IconBusinessNetwork } from './IconBusinessNetwork';
|
|
41
|
-
export { default as IconCalendar } from './IconCalendar';
|
|
42
|
-
export { default as IconCancel } from './IconCancel';
|
|
43
|
-
export { default as IconChargingBattery } from './IconChargingBattery';
|
|
44
|
-
export { default as IconChecklist } from './IconChecklist';
|
|
45
|
-
export { default as IconCheckmark } from './IconCheckmark';
|
|
46
|
-
export { default as IconCoinInHand } from './IconCoinInHand';
|
|
47
|
-
export { default as IconColumns } from './IconColumns';
|
|
48
|
-
export { default as IconComment } from './IconComment';
|
|
49
|
-
export { default as IconDashboard } from './IconDashboard';
|
|
50
|
-
export { default as IconDataMigration } from './IconDataMigration';
|
|
51
|
-
export { default as IconDocument } from './IconDocument';
|
|
52
|
-
export { default as IconDownloadFromTheCloud } from './IconDownloadFromTheCloud';
|
|
53
|
-
export { default as IconEdit } from './IconEdit';
|
|
54
|
-
export { default as IconExpand } from './IconExpand';
|
|
55
|
-
export { default as IconExport } from './IconExport';
|
|
56
|
-
export { default as IconExternalLink } from './IconExternalLink';
|
|
57
|
-
export { default as IconEyeOff } from './IconEyeOff';
|
|
58
|
-
export { default as IconEye } from './IconEye';
|
|
59
|
-
export { default as IconFile } from './IconFile';
|
|
60
|
-
export { default as IconFolder } from './IconFolder';
|
|
61
|
-
export { default as IconFullScreen } from './IconFullScreen';
|
|
62
|
-
export { default as IconFutures } from './IconFutures';
|
|
63
|
-
export { default as IconGraphReport } from './IconGraphReport';
|
|
64
|
-
export { default as IconHeartMonitor } from './IconHeartMonitor';
|
|
65
|
-
export { default as IconHelp } from './IconHelp';
|
|
66
|
-
export { default as IconHistory } from './IconHistory';
|
|
67
|
-
export { default as IconImport } from './IconImport';
|
|
68
|
-
export { default as IconIndex } from './IconIndex';
|
|
69
|
-
export { default as IconLayers } from './IconLayers';
|
|
70
|
-
export { default as IconLibrary } from './IconLibrary';
|
|
71
|
-
export { default as IconList } from './IconList';
|
|
72
|
-
export { default as IconLivePlant } from './IconLivePlant';
|
|
73
|
-
export { default as IconMail } from './IconMail';
|
|
74
|
-
export { default as IconManager } from './IconManager';
|
|
75
|
-
export { default as IconMarker } from './IconMarker';
|
|
76
|
-
export { default as IconMenuHorizontal } from './IconMenuHorizontal';
|
|
77
|
-
export { default as IconMenu } from './IconMenu';
|
|
78
|
-
export { default as IconModule } from './IconModule';
|
|
79
|
-
export { default as IconMyLocation } from './IconMyLocation';
|
|
80
|
-
export { default as IconNote } from './IconNote';
|
|
81
|
-
export { default as IconNursery } from './IconNursery';
|
|
82
|
-
export { default as IconOrg } from './IconOrg';
|
|
83
|
-
export { default as IconParchment } from './IconParchment';
|
|
84
|
-
export { default as IconPhoto } from './IconPhoto';
|
|
85
|
-
export { default as IconPlantsFilled } from './IconPlantsFilled';
|
|
86
|
-
export { default as IconRedo } from './IconRedo';
|
|
87
|
-
export { default as IconRestorationSite } from './IconRestorationSite';
|
|
88
|
-
export { default as IconSeedBank } from './IconSeedBank';
|
|
89
|
-
export { default as IconSeedling } from './IconSeedling';
|
|
90
|
-
export { default as IconSettings } from './IconSettings';
|
|
91
|
-
export { default as IconSlice } from './IconSlice';
|
|
92
|
-
export { default as IconSubmit } from './IconSubmit';
|
|
93
|
-
export { default as IconSubtract } from './IconSubtract';
|
|
94
|
-
export { default as IconSynced } from './IconSynced';
|
|
95
|
-
export { default as IconTrashCan } from './IconTrashCan';
|
|
96
|
-
export { default as IconTreasureMap } from './IconTreasureMap';
|
|
97
|
-
export { default as IconUnavailable } from './IconUnavailable';
|
|
98
|
-
export { default as IconUndo } from './IconUndo';
|
|
99
|
-
export { default as IconVariable } from './IconVariable';
|
|
100
|
-
export { default as IconVideo } from './IconVideo';
|
|
101
|
-
export { default as IconWifi } from './IconWifi';
|
|
102
|
-
export { default as Info } from './Info';
|
|
103
|
-
export { default as Key } from './Key';
|
|
104
|
-
export { default as Leaf } from './Leaf';
|
|
105
|
-
export { default as Lock } from './Lock';
|
|
106
|
-
export { default as Logo } from './Logo';
|
|
107
|
-
export { default as MenuVertical } from './MenuVertical';
|
|
108
|
-
export { default as Notification } from './Notification';
|
|
109
|
-
export { default as Person } from './Person';
|
|
110
|
-
export { default as Plus } from './Plus';
|
|
111
|
-
export { default as RestorationSite } from './RestorationSite';
|
|
112
|
-
export { default as Search } from './Search';
|
|
113
|
-
export { default as Seeds } from './Seeds';
|
|
114
|
-
export { default as Site } from './Site';
|
|
115
|
-
export { default as Sparkles } from './Sparkles';
|
|
116
|
-
export { default as Species } from './Species';
|
|
117
|
-
export { default as Species2 } from './Species2';
|
|
118
|
-
export { default as Spinner } from './Spinner';
|
|
119
|
-
export { default as Star } from './Star';
|
|
120
|
-
export { default as SuccessFilled } from './SuccessFilled';
|
|
121
|
-
export { default as Success } from './Success';
|
|
122
|
-
export { default as TerrawareLogoDesktop } from './TerrawareLogoDesktop';
|
|
123
|
-
export { default as TerrawareLogoMobile } from './TerrawareLogoMobile';
|
|
124
|
-
export { default as Touchscreen } from './Touchscreen';
|
|
125
|
-
export { default as UploadCloud } from './UploadCloud';
|
|
126
|
-
export { default as Warning } from './Warning';
|
|
127
|
-
export { default as WelcomeClipboard } from './WelcomeClipboard';
|
|
1
|
+
export { default as BlobbyGrayIconImage } from './BlobbyGrayIconImage.js';
|
|
2
|
+
export { default as BlobbyGrayIconImport } from './BlobbyGrayIconImport.js';
|
|
3
|
+
export { default as BlobbyGrayIconUploadToTheCloud } from './BlobbyGrayIconUploadToTheCloud.js';
|
|
4
|
+
export { default as BlobbyIconCloudChecked } from './BlobbyIconCloudChecked.js';
|
|
5
|
+
export { default as BlobbyIconExportOrUploadPhoto } from './BlobbyIconExportOrUploadPhoto.js';
|
|
6
|
+
export { default as BlobbyIconFolder } from './BlobbyIconFolder.js';
|
|
7
|
+
export { default as BlobbyIconGraphReport } from './BlobbyIconGraphReport.js';
|
|
8
|
+
export { default as BlobbyIconHappy } from './BlobbyIconHappy.js';
|
|
9
|
+
export { default as BlobbyIconHeartMonitor } from './BlobbyIconHeartMonitor.js';
|
|
10
|
+
export { default as BlobbyIconLeaf } from './BlobbyIconLeaf.js';
|
|
11
|
+
export { default as BlobbyIconLibrary } from './BlobbyIconLibrary.js';
|
|
12
|
+
export { default as BlobbyIconNursery } from './BlobbyIconNursery.js';
|
|
13
|
+
export { default as BlobbyIconOrganization } from './BlobbyIconOrganization.js';
|
|
14
|
+
export { default as BlobbyIconParchment } from './BlobbyIconParchment.js';
|
|
15
|
+
export { default as BlobbyIconPeople } from './BlobbyIconPeople.js';
|
|
16
|
+
export { default as BlobbyIconSeedBank } from './BlobbyIconSeedBank.js';
|
|
17
|
+
export { default as BlobbyIconSeedling } from './BlobbyIconSeedling.js';
|
|
18
|
+
export { default as BlobbyIconSeeds } from './BlobbyIconSeeds.js';
|
|
19
|
+
export { default as BlobbyIconSite } from './BlobbyIconSite.js';
|
|
20
|
+
export { default as BlobbyIconSparkles } from './BlobbyIconSparkles.js';
|
|
21
|
+
export { default as BlobbyIconWrench } from './BlobbyIconWrench.js';
|
|
22
|
+
export { default as Bug } from './Bug.js';
|
|
23
|
+
export { default as Calendar } from './Calendar.js';
|
|
24
|
+
export { default as CaretDown } from './CaretDown.js';
|
|
25
|
+
export { default as CaretLeft } from './CaretLeft.js';
|
|
26
|
+
export { default as CaretRight } from './CaretRight.js';
|
|
27
|
+
export { default as CaretUp } from './CaretUp.js';
|
|
28
|
+
export { default as ChevronDown } from './ChevronDown.js';
|
|
29
|
+
export { default as ChevronUp } from './ChevronUp.js';
|
|
30
|
+
export { default as Close } from './Close.js';
|
|
31
|
+
export { default as Critical } from './Critical.js';
|
|
32
|
+
export { default as Edit } from './Edit.js';
|
|
33
|
+
export { default as Error } from './Error.js';
|
|
34
|
+
export { default as Filter } from './Filter.js';
|
|
35
|
+
export { default as Folder } from './Folder.js';
|
|
36
|
+
export { default as Help } from './Help.js';
|
|
37
|
+
export { default as Home } from './Home.js';
|
|
38
|
+
export { default as IconAdd } from './IconAdd.js';
|
|
39
|
+
export { default as IconArrowRight } from './IconArrowRight.js';
|
|
40
|
+
export { default as IconBusinessNetwork } from './IconBusinessNetwork.js';
|
|
41
|
+
export { default as IconCalendar } from './IconCalendar.js';
|
|
42
|
+
export { default as IconCancel } from './IconCancel.js';
|
|
43
|
+
export { default as IconChargingBattery } from './IconChargingBattery.js';
|
|
44
|
+
export { default as IconChecklist } from './IconChecklist.js';
|
|
45
|
+
export { default as IconCheckmark } from './IconCheckmark.js';
|
|
46
|
+
export { default as IconCoinInHand } from './IconCoinInHand.js';
|
|
47
|
+
export { default as IconColumns } from './IconColumns.js';
|
|
48
|
+
export { default as IconComment } from './IconComment.js';
|
|
49
|
+
export { default as IconDashboard } from './IconDashboard.js';
|
|
50
|
+
export { default as IconDataMigration } from './IconDataMigration.js';
|
|
51
|
+
export { default as IconDocument } from './IconDocument.js';
|
|
52
|
+
export { default as IconDownloadFromTheCloud } from './IconDownloadFromTheCloud.js';
|
|
53
|
+
export { default as IconEdit } from './IconEdit.js';
|
|
54
|
+
export { default as IconExpand } from './IconExpand.js';
|
|
55
|
+
export { default as IconExport } from './IconExport.js';
|
|
56
|
+
export { default as IconExternalLink } from './IconExternalLink.js';
|
|
57
|
+
export { default as IconEyeOff } from './IconEyeOff.js';
|
|
58
|
+
export { default as IconEye } from './IconEye.js';
|
|
59
|
+
export { default as IconFile } from './IconFile.js';
|
|
60
|
+
export { default as IconFolder } from './IconFolder.js';
|
|
61
|
+
export { default as IconFullScreen } from './IconFullScreen.js';
|
|
62
|
+
export { default as IconFutures } from './IconFutures.js';
|
|
63
|
+
export { default as IconGraphReport } from './IconGraphReport.js';
|
|
64
|
+
export { default as IconHeartMonitor } from './IconHeartMonitor.js';
|
|
65
|
+
export { default as IconHelp } from './IconHelp.js';
|
|
66
|
+
export { default as IconHistory } from './IconHistory.js';
|
|
67
|
+
export { default as IconImport } from './IconImport.js';
|
|
68
|
+
export { default as IconIndex } from './IconIndex.js';
|
|
69
|
+
export { default as IconLayers } from './IconLayers.js';
|
|
70
|
+
export { default as IconLibrary } from './IconLibrary.js';
|
|
71
|
+
export { default as IconList } from './IconList.js';
|
|
72
|
+
export { default as IconLivePlant } from './IconLivePlant.js';
|
|
73
|
+
export { default as IconMail } from './IconMail.js';
|
|
74
|
+
export { default as IconManager } from './IconManager.js';
|
|
75
|
+
export { default as IconMarker } from './IconMarker.js';
|
|
76
|
+
export { default as IconMenuHorizontal } from './IconMenuHorizontal.js';
|
|
77
|
+
export { default as IconMenu } from './IconMenu.js';
|
|
78
|
+
export { default as IconModule } from './IconModule.js';
|
|
79
|
+
export { default as IconMyLocation } from './IconMyLocation.js';
|
|
80
|
+
export { default as IconNote } from './IconNote.js';
|
|
81
|
+
export { default as IconNursery } from './IconNursery.js';
|
|
82
|
+
export { default as IconOrg } from './IconOrg.js';
|
|
83
|
+
export { default as IconParchment } from './IconParchment.js';
|
|
84
|
+
export { default as IconPhoto } from './IconPhoto.js';
|
|
85
|
+
export { default as IconPlantsFilled } from './IconPlantsFilled.js';
|
|
86
|
+
export { default as IconRedo } from './IconRedo.js';
|
|
87
|
+
export { default as IconRestorationSite } from './IconRestorationSite.js';
|
|
88
|
+
export { default as IconSeedBank } from './IconSeedBank.js';
|
|
89
|
+
export { default as IconSeedling } from './IconSeedling.js';
|
|
90
|
+
export { default as IconSettings } from './IconSettings.js';
|
|
91
|
+
export { default as IconSlice } from './IconSlice.js';
|
|
92
|
+
export { default as IconSubmit } from './IconSubmit.js';
|
|
93
|
+
export { default as IconSubtract } from './IconSubtract.js';
|
|
94
|
+
export { default as IconSynced } from './IconSynced.js';
|
|
95
|
+
export { default as IconTrashCan } from './IconTrashCan.js';
|
|
96
|
+
export { default as IconTreasureMap } from './IconTreasureMap.js';
|
|
97
|
+
export { default as IconUnavailable } from './IconUnavailable.js';
|
|
98
|
+
export { default as IconUndo } from './IconUndo.js';
|
|
99
|
+
export { default as IconVariable } from './IconVariable.js';
|
|
100
|
+
export { default as IconVideo } from './IconVideo.js';
|
|
101
|
+
export { default as IconWifi } from './IconWifi.js';
|
|
102
|
+
export { default as Info } from './Info.js';
|
|
103
|
+
export { default as Key } from './Key.js';
|
|
104
|
+
export { default as Leaf } from './Leaf.js';
|
|
105
|
+
export { default as Lock } from './Lock.js';
|
|
106
|
+
export { default as Logo } from './Logo.js';
|
|
107
|
+
export { default as MenuVertical } from './MenuVertical.js';
|
|
108
|
+
export { default as Notification } from './Notification.js';
|
|
109
|
+
export { default as Person } from './Person.js';
|
|
110
|
+
export { default as Plus } from './Plus.js';
|
|
111
|
+
export { default as RestorationSite } from './RestorationSite.js';
|
|
112
|
+
export { default as Search } from './Search.js';
|
|
113
|
+
export { default as Seeds } from './Seeds.js';
|
|
114
|
+
export { default as Site } from './Site.js';
|
|
115
|
+
export { default as Sparkles } from './Sparkles.js';
|
|
116
|
+
export { default as Species } from './Species.js';
|
|
117
|
+
export { default as Species2 } from './Species2.js';
|
|
118
|
+
export { default as Spinner } from './Spinner.js';
|
|
119
|
+
export { default as Star } from './Star.js';
|
|
120
|
+
export { default as SuccessFilled } from './SuccessFilled.js';
|
|
121
|
+
export { default as Success } from './Success.js';
|
|
122
|
+
export { default as TerrawareLogoDesktop } from './TerrawareLogoDesktop.js';
|
|
123
|
+
export { default as TerrawareLogoMobile } from './TerrawareLogoMobile.js';
|
|
124
|
+
export { default as Touchscreen } from './Touchscreen.js';
|
|
125
|
+
export { default as UploadCloud } from './UploadCloud.js';
|
|
126
|
+
export { default as Warning } from './Warning.js';
|
|
127
|
+
export { default as WelcomeClipboard } from './WelcomeClipboard.js';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Link, Toolbar, Typography
|
|
3
|
-
import { isTopBarButton } from '.';
|
|
4
|
-
import Button from '../Button/Button';
|
|
5
|
-
import Tooltip from '../Tooltip/Tooltip';
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { useTheme, Link, Toolbar, Typography } from '@mui/material';
|
|
3
|
+
import { isTopBarButton } from './index.js';
|
|
4
|
+
import Button from '../Button/Button.js';
|
|
5
|
+
import Tooltip from '../Tooltip/Tooltip.js';
|
|
6
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function EnhancedTableToolbar(props) {
|
|
8
9
|
const {
|
|
9
10
|
isAllSelected,
|
|
10
11
|
numSelected,
|
|
@@ -31,24 +32,24 @@ export default function EnhancedTableToolbar(props) {
|
|
|
31
32
|
renderSelectNoneText,
|
|
32
33
|
renderEnhancedNumSelectedText
|
|
33
34
|
} = topBarSelectionConfig;
|
|
34
|
-
return /*#__PURE__*/
|
|
35
|
-
children: [renderEnhancedNumSelectedText ? renderEnhancedNumSelectedText() : renderNumSelectedText(numSelected), ' ', !isAllSelected && handleSelectAll && renderSelectAllText && /*#__PURE__*/
|
|
35
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
36
|
+
children: [renderEnhancedNumSelectedText ? renderEnhancedNumSelectedText() : renderNumSelectedText(numSelected), ' ', !isAllSelected && handleSelectAll && renderSelectAllText && /*#__PURE__*/jsx(Link, {
|
|
36
37
|
onClick: handleSelectAll,
|
|
37
38
|
sx: selectLinkStyles,
|
|
38
39
|
children: renderSelectAllText()
|
|
39
|
-
}), isAllSelected && handleSelectNone && renderSelectNoneText && /*#__PURE__*/
|
|
40
|
+
}), isAllSelected && handleSelectNone && renderSelectNoneText && /*#__PURE__*/jsx(Link, {
|
|
40
41
|
onClick: handleSelectNone,
|
|
41
42
|
sx: selectLinkStyles,
|
|
42
43
|
children: renderSelectNoneText()
|
|
43
44
|
})]
|
|
44
45
|
});
|
|
45
46
|
}, [renderNumSelectedText, topBarSelectionConfig, numSelected]);
|
|
46
|
-
return renderNumSelectedText && numSelected > 0 ? /*#__PURE__*/
|
|
47
|
+
return renderNumSelectedText && numSelected > 0 ? /*#__PURE__*/jsxs(Toolbar, {
|
|
47
48
|
sx: {
|
|
48
49
|
background: theme.palette.TwClrBgSecondary,
|
|
49
50
|
borderRadius: theme.spacing(0.5)
|
|
50
51
|
},
|
|
51
|
-
children: [/*#__PURE__*/
|
|
52
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
52
53
|
color: "inherit",
|
|
53
54
|
variant: "subtitle1",
|
|
54
55
|
component: "div",
|
|
@@ -56,9 +57,9 @@ export default function EnhancedTableToolbar(props) {
|
|
|
56
57
|
flex: '1 1 auto'
|
|
57
58
|
},
|
|
58
59
|
children: topBarSelection
|
|
59
|
-
}), topBarButtons?.map((tbButton, index) => isTopBarButton(tbButton) ? /*#__PURE__*/
|
|
60
|
+
}), topBarButtons?.map((tbButton, index) => isTopBarButton(tbButton) ? /*#__PURE__*/jsx(Tooltip, {
|
|
60
61
|
title: tbButton.tooltipTitle,
|
|
61
|
-
children: /*#__PURE__*/
|
|
62
|
+
children: /*#__PURE__*/jsx(Button, {
|
|
62
63
|
label: tbButton.buttonText,
|
|
63
64
|
priority: "secondary",
|
|
64
65
|
type: tbButton.buttonType,
|
|
@@ -71,4 +72,6 @@ export default function EnhancedTableToolbar(props) {
|
|
|
71
72
|
}, tbButton.buttonText)
|
|
72
73
|
}, index) : tbButton)]
|
|
73
74
|
}) : null;
|
|
74
|
-
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export { EnhancedTableToolbar as default };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import EnhancedTableToolbar from './EnhancedTableToolbar';
|
|
3
|
-
import { jsx
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import EnhancedTableToolbar from './EnhancedTableToolbar.js';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
4
5
|
const EnhancedTableToolbarV2 = ({
|
|
5
6
|
selectedRowsCount,
|
|
6
7
|
pagesCount,
|
|
@@ -24,7 +25,7 @@ const EnhancedTableToolbarV2 = ({
|
|
|
24
25
|
};
|
|
25
26
|
}, [topBarSelectionConfig, selectedRowsCount, rowsCount, pagesCount]);
|
|
26
27
|
if (topBarSelectionConfig) {
|
|
27
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/jsx(EnhancedTableToolbar, {
|
|
28
29
|
numSelected: selectedRowsCount,
|
|
29
30
|
topBarButtons: topBarButtons,
|
|
30
31
|
topBarSelectionConfig: _topBarSelectionConfig,
|
|
@@ -32,10 +33,11 @@ const EnhancedTableToolbarV2 = ({
|
|
|
32
33
|
renderNumSelectedText: renderNumSelectedText
|
|
33
34
|
});
|
|
34
35
|
}
|
|
35
|
-
return /*#__PURE__*/
|
|
36
|
+
return /*#__PURE__*/jsx(EnhancedTableToolbar, {
|
|
36
37
|
numSelected: selectedRowsCount,
|
|
37
38
|
renderNumSelectedText: renderNumSelectedText,
|
|
38
39
|
topBarButtons: topBarButtons
|
|
39
40
|
});
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
|
|
43
|
+
export { EnhancedTableToolbarV2 as default };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'react';
|
|
2
2
|
import { Edit, Notes } from '@mui/icons-material';
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { useTheme, TableCell, Typography, Link, Box } from '@mui/material';
|
|
4
|
+
import getDateDisplayValue from '../../utils/date.js';
|
|
5
|
+
import preventDefault from '../../utils/preventDefaultEvent.js';
|
|
6
|
+
import 'react-responsive';
|
|
7
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
8
|
+
|
|
6
9
|
const defaultStyles = theme => ({
|
|
7
10
|
'&.MuiTableCell-root': {
|
|
8
11
|
paddingTop: '0px',
|
|
@@ -11,7 +14,7 @@ const defaultStyles = theme => ({
|
|
|
11
14
|
fontVariantNumeric: 'tabular-nums'
|
|
12
15
|
}
|
|
13
16
|
});
|
|
14
|
-
|
|
17
|
+
function CellRenderer(props) {
|
|
15
18
|
const {
|
|
16
19
|
column,
|
|
17
20
|
value,
|
|
@@ -28,7 +31,7 @@ export default function CellRenderer(props) {
|
|
|
28
31
|
} = props;
|
|
29
32
|
const id = `row${index}-${column.key}`;
|
|
30
33
|
if (column.type === 'date' && typeof value === 'string' && value) {
|
|
31
|
-
return /*#__PURE__*/
|
|
34
|
+
return /*#__PURE__*/jsx(CellDateRenderer, {
|
|
32
35
|
id: id,
|
|
33
36
|
value: value,
|
|
34
37
|
className: className,
|
|
@@ -38,7 +41,7 @@ export default function CellRenderer(props) {
|
|
|
38
41
|
title: title
|
|
39
42
|
});
|
|
40
43
|
} else if (column.type === 'notes' && value && typeof value === 'string') {
|
|
41
|
-
return /*#__PURE__*/
|
|
44
|
+
return /*#__PURE__*/jsx(CellNotesRenderer, {
|
|
42
45
|
id: id,
|
|
43
46
|
value: value,
|
|
44
47
|
className: className,
|
|
@@ -48,7 +51,7 @@ export default function CellRenderer(props) {
|
|
|
48
51
|
title: title
|
|
49
52
|
});
|
|
50
53
|
} else if (column.type === 'boolean') {
|
|
51
|
-
return /*#__PURE__*/
|
|
54
|
+
return /*#__PURE__*/jsx(CellBooleanRenderer, {
|
|
52
55
|
id: id,
|
|
53
56
|
value: value,
|
|
54
57
|
className: className,
|
|
@@ -60,7 +63,7 @@ export default function CellRenderer(props) {
|
|
|
60
63
|
title: title
|
|
61
64
|
});
|
|
62
65
|
} else if (column.type === 'edit') {
|
|
63
|
-
return /*#__PURE__*/
|
|
66
|
+
return /*#__PURE__*/jsx(CellEditRenderer, {
|
|
64
67
|
id: id,
|
|
65
68
|
onRowClick: onRowClick,
|
|
66
69
|
className: className,
|
|
@@ -71,7 +74,7 @@ export default function CellRenderer(props) {
|
|
|
71
74
|
title: title
|
|
72
75
|
});
|
|
73
76
|
}
|
|
74
|
-
return /*#__PURE__*/
|
|
77
|
+
return /*#__PURE__*/jsx(CellTextRenderer, {
|
|
75
78
|
id: id,
|
|
76
79
|
value: value,
|
|
77
80
|
className: className,
|
|
@@ -82,12 +85,12 @@ export default function CellRenderer(props) {
|
|
|
82
85
|
component: component
|
|
83
86
|
});
|
|
84
87
|
}
|
|
85
|
-
|
|
88
|
+
const cellDateFormatter = value => {
|
|
86
89
|
if (value) {
|
|
87
90
|
return getDateDisplayValue(value);
|
|
88
91
|
}
|
|
89
92
|
};
|
|
90
|
-
|
|
93
|
+
function CellDateRenderer({
|
|
91
94
|
id,
|
|
92
95
|
value,
|
|
93
96
|
className,
|
|
@@ -97,7 +100,7 @@ export function CellDateRenderer({
|
|
|
97
100
|
title
|
|
98
101
|
}) {
|
|
99
102
|
const theme = useTheme();
|
|
100
|
-
return /*#__PURE__*/
|
|
103
|
+
return /*#__PURE__*/jsx(TableCell, {
|
|
101
104
|
id: id,
|
|
102
105
|
align: alignment || 'left',
|
|
103
106
|
className: className,
|
|
@@ -105,7 +108,7 @@ export function CellDateRenderer({
|
|
|
105
108
|
whiteSpace: 'nowrap'
|
|
106
109
|
}, style, ...(Array.isArray(sx) ? sx : [sx])],
|
|
107
110
|
title: title,
|
|
108
|
-
children: /*#__PURE__*/
|
|
111
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
109
112
|
component: "p",
|
|
110
113
|
variant: "body1",
|
|
111
114
|
fontSize: "16px",
|
|
@@ -113,7 +116,7 @@ export function CellDateRenderer({
|
|
|
113
116
|
})
|
|
114
117
|
});
|
|
115
118
|
}
|
|
116
|
-
|
|
119
|
+
function CellTextRenderer({
|
|
117
120
|
id,
|
|
118
121
|
value,
|
|
119
122
|
className,
|
|
@@ -124,13 +127,13 @@ export function CellTextRenderer({
|
|
|
124
127
|
component
|
|
125
128
|
}) {
|
|
126
129
|
const theme = useTheme();
|
|
127
|
-
return /*#__PURE__*/
|
|
130
|
+
return /*#__PURE__*/jsx(TableCell, {
|
|
128
131
|
id: id,
|
|
129
132
|
align: alignment || 'left',
|
|
130
133
|
title: title ? title : typeof value === 'string' ? value : '',
|
|
131
134
|
className: className,
|
|
132
135
|
sx: [defaultStyles(theme), style, ...(Array.isArray(sx) ? sx : [sx])],
|
|
133
|
-
children: /*#__PURE__*/
|
|
136
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
134
137
|
component: component || 'p',
|
|
135
138
|
variant: "body1",
|
|
136
139
|
noWrap: true,
|
|
@@ -142,7 +145,7 @@ export function CellTextRenderer({
|
|
|
142
145
|
})
|
|
143
146
|
});
|
|
144
147
|
}
|
|
145
|
-
|
|
148
|
+
function CellBooleanRenderer({
|
|
146
149
|
id,
|
|
147
150
|
value,
|
|
148
151
|
className,
|
|
@@ -154,13 +157,13 @@ export function CellBooleanRenderer({
|
|
|
154
157
|
title
|
|
155
158
|
}) {
|
|
156
159
|
const theme = useTheme();
|
|
157
|
-
return /*#__PURE__*/
|
|
160
|
+
return /*#__PURE__*/jsx(TableCell, {
|
|
158
161
|
id: id,
|
|
159
162
|
align: alignment || 'left',
|
|
160
163
|
className: className,
|
|
161
164
|
sx: [defaultStyles(theme), style, ...(Array.isArray(sx) ? sx : [sx])],
|
|
162
165
|
title: title,
|
|
163
|
-
children: /*#__PURE__*/
|
|
166
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
164
167
|
component: "p",
|
|
165
168
|
variant: "body1",
|
|
166
169
|
fontSize: "16px",
|
|
@@ -168,7 +171,7 @@ export function CellBooleanRenderer({
|
|
|
168
171
|
})
|
|
169
172
|
});
|
|
170
173
|
}
|
|
171
|
-
|
|
174
|
+
function CellNotesRenderer({
|
|
172
175
|
id,
|
|
173
176
|
value,
|
|
174
177
|
className,
|
|
@@ -178,22 +181,22 @@ export function CellNotesRenderer({
|
|
|
178
181
|
title
|
|
179
182
|
}) {
|
|
180
183
|
const theme = useTheme();
|
|
181
|
-
return /*#__PURE__*/
|
|
184
|
+
return /*#__PURE__*/jsx(TableCell, {
|
|
182
185
|
id: id,
|
|
183
186
|
align: alignment || 'left',
|
|
184
187
|
className: className,
|
|
185
188
|
sx: [defaultStyles(theme), style, ...(Array.isArray(sx) ? sx : [sx])],
|
|
186
189
|
title: title,
|
|
187
|
-
children: /*#__PURE__*/
|
|
190
|
+
children: /*#__PURE__*/jsx(Typography, {
|
|
188
191
|
id: id,
|
|
189
192
|
component: "p",
|
|
190
193
|
variant: "body1",
|
|
191
194
|
fontSize: "16px",
|
|
192
|
-
children: value && value.length > 0 ? /*#__PURE__*/
|
|
195
|
+
children: value && value.length > 0 ? /*#__PURE__*/jsx(Notes, {}) : ''
|
|
193
196
|
})
|
|
194
197
|
});
|
|
195
198
|
}
|
|
196
|
-
|
|
199
|
+
function CellEditRenderer({
|
|
197
200
|
id,
|
|
198
201
|
onRowClick,
|
|
199
202
|
className,
|
|
@@ -204,29 +207,29 @@ export function CellEditRenderer({
|
|
|
204
207
|
title
|
|
205
208
|
}) {
|
|
206
209
|
const theme = useTheme();
|
|
207
|
-
return /*#__PURE__*/
|
|
210
|
+
return /*#__PURE__*/jsx(TableCell, {
|
|
208
211
|
id: id,
|
|
209
212
|
align: alignment || 'left',
|
|
210
213
|
className: className,
|
|
211
214
|
sx: [defaultStyles(theme), style, ...(Array.isArray(sx) ? sx : [sx])],
|
|
212
215
|
title: title,
|
|
213
|
-
children: /*#__PURE__*/
|
|
216
|
+
children: /*#__PURE__*/jsx(Link, {
|
|
214
217
|
id: `${id}-button`,
|
|
215
218
|
href: "#",
|
|
216
219
|
onClick: event => {
|
|
217
|
-
|
|
220
|
+
preventDefault(event);
|
|
218
221
|
if (onRowClick) {
|
|
219
222
|
onRowClick();
|
|
220
223
|
}
|
|
221
224
|
},
|
|
222
|
-
children: /*#__PURE__*/
|
|
225
|
+
children: /*#__PURE__*/jsxs(Box, {
|
|
223
226
|
display: "flex",
|
|
224
|
-
children: [/*#__PURE__*/
|
|
227
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
225
228
|
component: "p",
|
|
226
229
|
variant: "body1",
|
|
227
230
|
fontSize: "16px",
|
|
228
231
|
children: editText
|
|
229
|
-
}), /*#__PURE__*/
|
|
232
|
+
}), /*#__PURE__*/jsx(Edit, {
|
|
230
233
|
fontSize: "small",
|
|
231
234
|
sx: {
|
|
232
235
|
marginLeft: theme.spacing(1)
|
|
@@ -235,4 +238,6 @@ export function CellEditRenderer({
|
|
|
235
238
|
})
|
|
236
239
|
})
|
|
237
240
|
});
|
|
238
|
-
}
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
export { CellBooleanRenderer, CellDateRenderer, CellEditRenderer, CellNotesRenderer, CellTextRenderer, cellDateFormatter, CellRenderer as default };
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SortableContext } from '@dnd-kit/sortable';
|
|
3
|
-
import {
|
|
4
|
-
import { titleCase } from '../../utils/text';
|
|
5
|
-
import { CheckboxStyle } from '../Checkbox';
|
|
6
|
-
import TableHeaderItem from './TableHeaderItem';
|
|
7
|
-
import { getTableRowHeight } from './density';
|
|
8
|
-
import { jsx
|
|
9
|
-
|
|
3
|
+
import { useTheme, TableHead, TableRow, TableCell, Checkbox } from '@mui/material';
|
|
4
|
+
import { titleCase } from '../../utils/text.js';
|
|
5
|
+
import { CheckboxStyle } from '../Checkbox.js';
|
|
6
|
+
import TableHeaderItem from './TableHeaderItem.js';
|
|
7
|
+
import { getTableRowHeight } from './density.js';
|
|
8
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
9
|
+
|
|
10
|
+
function EnhancedTableHead(props) {
|
|
10
11
|
const theme = useTheme();
|
|
11
12
|
const {
|
|
12
13
|
order,
|
|
@@ -39,16 +40,16 @@ export default function EnhancedTableHead(props) {
|
|
|
39
40
|
}));
|
|
40
41
|
}
|
|
41
42
|
const [headCells, setHeadCells] = React.useState(columnsToHeadCells(props.columns));
|
|
42
|
-
return /*#__PURE__*/
|
|
43
|
-
children: /*#__PURE__*/
|
|
43
|
+
return /*#__PURE__*/jsx(TableHead, {
|
|
44
|
+
children: /*#__PURE__*/jsxs(TableRow, {
|
|
44
45
|
id: "table-header",
|
|
45
46
|
sx: {
|
|
46
47
|
height: getTableRowHeight(density)
|
|
47
48
|
},
|
|
48
|
-
children: [numSelected !== undefined && rowCount !== undefined && rowCount > 0 && onSelectAllClick && /*#__PURE__*/
|
|
49
|
+
children: [numSelected !== undefined && rowCount !== undefined && rowCount > 0 && onSelectAllClick && /*#__PURE__*/jsx(TableCell, {
|
|
49
50
|
padding: "checkbox",
|
|
50
51
|
sx: headerCellStyles,
|
|
51
|
-
children: /*#__PURE__*/
|
|
52
|
+
children: /*#__PURE__*/jsx(Checkbox, {
|
|
52
53
|
disableRipple: true,
|
|
53
54
|
sx: CheckboxStyle(theme),
|
|
54
55
|
color: "primary",
|
|
@@ -56,10 +57,10 @@ export default function EnhancedTableHead(props) {
|
|
|
56
57
|
checked: rowCount > 0 && numSelected === rowCount,
|
|
57
58
|
onChange: onSelectAllClick
|
|
58
59
|
})
|
|
59
|
-
}), /*#__PURE__*/
|
|
60
|
+
}), /*#__PURE__*/jsx(SortableContext, {
|
|
60
61
|
items: headCells,
|
|
61
62
|
children: headCells.map((headCell, i) => {
|
|
62
|
-
return /*#__PURE__*/
|
|
63
|
+
return /*#__PURE__*/jsx(TableHeaderItem, {
|
|
63
64
|
headCell: headCell,
|
|
64
65
|
order: order,
|
|
65
66
|
orderBy: orderBy,
|
|
@@ -70,4 +71,6 @@ export default function EnhancedTableHead(props) {
|
|
|
70
71
|
})]
|
|
71
72
|
})
|
|
72
73
|
});
|
|
73
|
-
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { EnhancedTableHead as default };
|