@parallelworks/ui 0.21.0 → 0.21.2
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/README.md +5 -0
- package/dist/ai/components/AttachmentManager.js +6 -4
- package/dist/ai/components/AttachmentUpload.js +11 -7
- package/dist/ai/components/BlockedGroupBanner.js +2 -2
- package/dist/ai/components/BranchNavigator.js +4 -3
- package/dist/ai/components/ChatEmptyState.js +8 -5
- package/dist/ai/components/ChatInput.js +6 -4
- package/dist/ai/components/ChatMessage.js +18 -10
- package/dist/ai/components/ChatMessageList.js +4 -3
- package/dist/ai/components/ChatSidebar.js +18 -10
- package/dist/ai/components/ChatThread.js +4 -3
- package/dist/ai/components/ComposerChrome.js +2 -2
- package/dist/ai/components/ModelSelector.js +17 -12
- package/dist/ai/components/ShareDialog.js +4 -3
- package/dist/ai/components/agent/ActivityLine.js +3 -2
- package/dist/ai/components/agent/AgentMessageParts.js +9 -7
- package/dist/ai/ui/Dropdown.js +2 -2
- package/dist/ai/ui/Notice.js +5 -3
- package/dist/ai/ui/sidebar.js +2 -2
- package/dist/components/Button.js +3 -2
- package/dist/components/Callout.js +4 -3
- package/dist/components/CollapsiblePanel.js +2 -2
- package/dist/components/CopyToClipboard.js +8 -4
- package/dist/components/CreateModal.js +11 -7
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/Filter.js +2 -2
- package/dist/components/Indicator.js +14 -9
- package/dist/components/Input.js +6 -4
- package/dist/components/Listbox.js +2 -2
- package/dist/components/Loader.js +1 -1
- package/dist/components/PageHeader.js +10 -7
- package/dist/components/Sort.js +6 -4
- package/dist/components/StatusIcons.d.ts +11 -0
- package/dist/components/StatusIcons.js +20 -0
- package/dist/components/Tooltip.js +3 -3
- package/dist/components/dropdownUtils.js +2 -2
- package/dist/editor/FormCodePanel.js +6 -3
- package/dist/file-explorer/FileExplorer.js +72 -23
- package/dist/file-explorer/FilePreview/Inline.js +2 -2
- package/dist/file-explorer/FilePreview/StreamedBadge.js +2 -2
- package/dist/file-explorer/FilePreview/Viewer.js +14 -10
- package/dist/file-explorer/FilePreview/index.js +17 -10
- package/dist/file-explorer/FileRow.js +2 -2
- package/dist/file-explorer/FileRowsWindow.js +3 -2
- package/dist/file-explorer/TreeView.js +5 -3
- package/dist/file-explorer/helpers.js +43 -29
- package/dist/file-explorer/toasts.js +18 -11
- package/dist/form/Form.js +4 -3
- package/dist/form/SpecialTypes/FormikCustomInput.js +3 -2
- package/dist/graph/AnnotationBanner.js +9 -5
- package/dist/graph/DependencyGraph.js +6 -4
- package/dist/graph/JobSummary.js +4 -3
- package/dist/graph/TreeView.js +3 -2
- package/dist/icons/ai/AiOutlineRollback.js +16 -0
- package/dist/icons/bi/BiBell.js +16 -0
- package/dist/icons/bi/BiBellOff.js +16 -0
- package/dist/icons/bi/BiBuildings.js +20 -0
- package/dist/icons/bi/BiError.js +20 -0
- package/dist/icons/bi/BiExpandVertical.js +16 -0
- package/dist/icons/bi/BiPause.js +16 -0
- package/dist/icons/bi/BiPlay.js +16 -0
- package/dist/icons/bi/BiSolidCheckShield.js +16 -0
- package/dist/icons/bi/BiSolidTrashAlt.js +16 -0
- package/dist/icons/bi/BiStop.js +16 -0
- package/dist/icons/bs/BsArrowsCollapse.js +22 -0
- package/dist/icons/bs/BsBank2.js +19 -0
- package/dist/icons/bs/BsBriefcase.js +19 -0
- package/dist/icons/bs/BsBucket.js +19 -0
- package/dist/icons/bs/BsCalendarX.js +23 -0
- package/dist/icons/bs/BsChatLeft.js +19 -0
- package/dist/icons/bs/BsChevronDoubleDown.js +29 -0
- package/dist/icons/bs/BsChevronDoubleUp.js +29 -0
- package/dist/icons/bs/BsClipboardCheck.js +34 -0
- package/dist/icons/bs/BsCurrencyDollar.js +19 -0
- package/dist/icons/bs/BsDash.js +19 -0
- package/dist/icons/bs/BsFileEarmarkZip.js +23 -0
- package/dist/icons/bs/BsFiles.js +19 -0
- package/dist/icons/bs/BsGeoAlt.js +23 -0
- package/dist/icons/bs/BsGrid.js +19 -0
- package/dist/icons/bs/BsLayers.js +19 -0
- package/dist/icons/bs/BsLayoutThreeColumns.js +19 -0
- package/dist/icons/bs/BsListUl.js +22 -0
- package/dist/icons/bs/BsMortarboard.js +23 -0
- package/dist/icons/bs/BsMusicNoteBeamed.js +34 -0
- package/dist/icons/bs/BsOpenai.js +19 -0
- package/dist/icons/bs/BsPersonPlus.js +26 -0
- package/dist/icons/bs/BsSearch.js +19 -0
- package/dist/icons/bs/BsSend.js +19 -0
- package/dist/icons/bs/BsShieldSlash.js +22 -0
- package/dist/icons/bs/BsStar.js +19 -0
- package/dist/icons/bs/BsStarFill.js +19 -0
- package/dist/icons/bs/BsStopCircle.js +23 -0
- package/dist/icons/bs/BsTag.js +23 -0
- package/dist/icons/bs/BsTelephone.js +19 -0
- package/dist/icons/bs/BsTerminal.js +23 -0
- package/dist/icons/bs/BsTerminalFill.js +19 -0
- package/dist/icons/bs/BsThreeDots.js +19 -0
- package/dist/icons/bs/BsThreeDotsVertical.js +19 -0
- package/dist/icons/bs/BsZoomIn.js +37 -0
- package/dist/icons/fa/FaAmazon.js +16 -0
- package/dist/icons/fa/FaAngleDown.js +16 -0
- package/dist/icons/fa/FaAngleLeft.js +16 -0
- package/dist/icons/fa/FaAngleRight.js +16 -0
- package/dist/icons/fa/FaAngleUp.js +16 -0
- package/dist/icons/fa/FaArrowDown.js +16 -0
- package/dist/icons/fa/FaArrowLeft.js +16 -0
- package/dist/icons/fa/FaArrowRight.js +16 -0
- package/dist/icons/fa/FaArrowUp.js +16 -0
- package/dist/icons/fa/FaBalanceScale.js +16 -0
- package/dist/icons/fa/FaCaretDown.js +16 -0
- package/dist/icons/fa/FaCentos.js +16 -0
- package/dist/icons/fa/FaChartLine.js +16 -0
- package/dist/icons/fa/FaChartPie.js +16 -0
- package/dist/icons/fa/FaCheck.js +16 -0
- package/dist/icons/fa/FaChevronDown.js +16 -0
- package/dist/icons/fa/FaChevronUp.js +16 -0
- package/dist/icons/fa/FaChrome.js +16 -0
- package/dist/icons/fa/FaCircleNotch.js +16 -0
- package/dist/icons/fa/FaCloud.js +16 -0
- package/dist/icons/fa/FaCloudDownloadAlt.js +16 -0
- package/dist/icons/fa/FaCog.js +16 -0
- package/dist/icons/fa/FaCogs.js +16 -0
- package/dist/icons/fa/FaComments.js +16 -0
- package/dist/icons/fa/FaCompress.js +16 -0
- package/dist/icons/fa/FaDesktop.js +16 -0
- package/dist/icons/fa/FaDocker.js +16 -0
- package/dist/icons/fa/FaDollarSign.js +16 -0
- package/dist/icons/fa/FaEdge.js +16 -0
- package/dist/icons/fa/FaEdit.js +16 -0
- package/dist/icons/fa/FaExclamationTriangle.js +16 -0
- package/dist/icons/fa/FaExpand.js +16 -0
- package/dist/icons/fa/FaEye.js +16 -0
- package/dist/icons/fa/FaEyeSlash.js +16 -0
- package/dist/icons/fa/FaFile.js +16 -0
- package/dist/icons/fa/FaFilePdf.js +16 -0
- package/dist/icons/fa/FaFilter.js +16 -0
- package/dist/icons/fa/FaFirefoxBrowser.js +16 -0
- package/dist/icons/fa/FaFlask.js +16 -0
- package/dist/icons/fa/FaFolder.js +16 -0
- package/dist/icons/fa/FaGithub.js +16 -0
- package/dist/icons/fa/FaGitlab.js +16 -0
- package/dist/icons/fa/FaGlobe.js +16 -0
- package/dist/icons/fa/FaGlobeAmericas.js +16 -0
- package/dist/icons/fa/FaImage.js +16 -0
- package/dist/icons/fa/FaInfoCircle.js +16 -0
- package/dist/icons/fa/FaKey.js +16 -0
- package/dist/icons/fa/FaLayerGroup.js +16 -0
- package/dist/icons/fa/FaLink.js +16 -0
- package/dist/icons/fa/FaLinkedin.js +16 -0
- package/dist/icons/fa/FaLinux.js +16 -0
- package/dist/icons/fa/FaList.js +16 -0
- package/dist/icons/fa/FaLock.js +16 -0
- package/dist/icons/fa/FaOpenid.js +16 -0
- package/dist/icons/fa/FaOpera.js +16 -0
- package/dist/icons/fa/FaPaperclip.js +16 -0
- package/dist/icons/fa/FaPlus.js +16 -0
- package/dist/icons/fa/FaPowerOff.js +16 -0
- package/dist/icons/fa/FaPrint.js +16 -0
- package/dist/icons/fa/FaQrcode.js +16 -0
- package/dist/icons/fa/FaQuestionCircle.js +16 -0
- package/dist/icons/fa/FaRedhat.js +16 -0
- package/dist/icons/fa/FaRegCircle.js +16 -0
- package/dist/icons/fa/FaRegFileImage.js +16 -0
- package/dist/icons/fa/FaRegFolder.js +16 -0
- package/dist/icons/fa/FaRobot.js +16 -0
- package/dist/icons/fa/FaRocket.js +16 -0
- package/dist/icons/fa/FaRunning.js +16 -0
- package/dist/icons/fa/FaSafari.js +16 -0
- package/dist/icons/fa/FaSave.js +16 -0
- package/dist/icons/fa/FaSearch.js +16 -0
- package/dist/icons/fa/FaShieldAlt.js +16 -0
- package/dist/icons/fa/FaSlack.js +16 -0
- package/dist/icons/fa/FaStar.js +16 -0
- package/dist/icons/fa/FaStop.js +16 -0
- package/dist/icons/fa/FaSuse.js +16 -0
- package/dist/icons/fa/FaTerminal.js +16 -0
- package/dist/icons/fa/FaTimes.js +16 -0
- package/dist/icons/fa/FaUbuntu.js +16 -0
- package/dist/icons/fa/FaUndoAlt.js +16 -0
- package/dist/icons/fa/FaUnlink.js +16 -0
- package/dist/icons/fa/FaUser.js +16 -0
- package/dist/icons/fa/FaUsers.js +16 -0
- package/dist/icons/fa/FaWindows.js +16 -0
- package/dist/icons/fa6/FaApple.js +16 -0
- package/dist/icons/fa6/FaArrowsRotate.js +16 -0
- package/dist/icons/fa6/FaDebian.js +16 -0
- package/dist/icons/fa6/FaFilterCircleXmark.js +16 -0
- package/dist/icons/fa6/FaInbox.js +16 -0
- package/dist/icons/fa6/FaLocationDot.js +16 -0
- package/dist/icons/fa6/FaRegFilePdf.js +16 -0
- package/dist/icons/fa6/FaRegFolderOpen.js +16 -0
- package/dist/icons/fa6/FaUpRightFromSquare.js +16 -0
- package/dist/icons/fa6/FaWandMagicSparkles.js +16 -0
- package/dist/icons/fa6/FaXTwitter.js +16 -0
- package/dist/icons/fi/FiActivity.js +23 -0
- package/dist/icons/fi/FiAlertCircle.js +49 -0
- package/dist/icons/fi/FiChevronDown.js +23 -0
- package/dist/icons/fi/FiClock.js +31 -0
- package/dist/icons/fi/FiCopy.js +34 -0
- package/dist/icons/fi/FiDownload.js +40 -0
- package/dist/icons/fi/FiFile.js +27 -0
- package/dist/icons/fi/FiFileText.js +55 -0
- package/dist/icons/fi/FiHardDrive.js +55 -0
- package/dist/icons/fi/FiRotateCcw.js +27 -0
- package/dist/icons/fi/FiUpload.js +40 -0
- package/dist/icons/fi/FiX.js +37 -0
- package/dist/icons/fi/FiZap.js +23 -0
- package/dist/icons/gi/GiSpy.js +16 -0
- package/dist/icons/go/GoGitCommit.js +16 -0
- package/dist/icons/go/GoGitPullRequest.js +20 -0
- package/dist/icons/go/GoIssueOpened.js +16 -0
- package/dist/icons/go/GoPlus.js +16 -0
- package/dist/icons/go/GoRepoForked.js +28 -0
- package/dist/icons/go/GoSignOut.js +16 -0
- package/dist/icons/go/GoSkip.js +20 -0
- package/dist/icons/go/GoVideo.js +20 -0
- package/dist/icons/gr/GrCloudComputer.js +20 -0
- package/dist/icons/gr/GrInbox.js +20 -0
- package/dist/icons/gr/GrServerCluster.js +20 -0
- package/dist/icons/gr/GrStorage.js +20 -0
- package/dist/icons/gr/GrTasks.js +20 -0
- package/dist/icons/hi/HiCog.js +24 -0
- package/dist/icons/hi/HiDuplicate.js +24 -0
- package/dist/icons/hi/HiOutlineArchive.js +26 -0
- package/dist/icons/hi/HiOutlineClipboardCopy.js +26 -0
- package/dist/icons/hi/HiOutlineHome.js +26 -0
- package/dist/icons/hi/HiQuestionMarkCircle.js +24 -0
- package/dist/icons/hi/HiServer.js +24 -0
- package/dist/icons/hi2/HiMiniCheckCircle.js +24 -0
- package/dist/icons/hi2/HiMiniLanguage.js +28 -0
- package/dist/icons/hi2/HiMiniMinusCircle.js +24 -0
- package/dist/icons/hi2/HiMiniXCircle.js +24 -0
- package/dist/icons/hi2/HiSparkles.js +24 -0
- package/dist/icons/im/ImSpinner5.js +19 -0
- package/dist/icons/io/IoIosNotifications.js +16 -0
- package/dist/icons/io/IoMdBuild.js +16 -0
- package/dist/icons/io/IoMdClose.js +16 -0
- package/dist/icons/io5/IoCloudUploadOutline.js +32 -0
- package/dist/icons/io5/IoDocumentTextOutline.js +31 -0
- package/dist/icons/io5/IoFileTrayFullOutline.js +31 -0
- package/dist/icons/io5/IoHeart.js +16 -0
- package/dist/icons/io5/IoHeartDislike.js +16 -0
- package/dist/icons/io5/IoHeartOutline.js +22 -0
- package/dist/icons/io5/IoInformationCircleOutline.js +50 -0
- package/dist/icons/io5/IoSettingsOutline.js +22 -0
- package/dist/icons/io5/IoWarningOutline.js +40 -0
- package/dist/icons/lu/LuArrowRight.js +27 -0
- package/dist/icons/lu/LuBadgeCheck.js +27 -0
- package/dist/icons/lu/LuBrainCircuit.js +101 -0
- package/dist/icons/lu/LuCalendar.js +46 -0
- package/dist/icons/lu/LuCheck.js +23 -0
- package/dist/icons/lu/LuChevronLeft.js +23 -0
- package/dist/icons/lu/LuChevronRight.js +23 -0
- package/dist/icons/lu/LuExternalLink.js +35 -0
- package/dist/icons/lu/LuEye.js +31 -0
- package/dist/icons/lu/LuEyeOff.js +40 -0
- package/dist/icons/lu/LuFolderTree.js +40 -0
- package/dist/icons/lu/LuIdCard.js +55 -0
- package/dist/icons/lu/LuLogs.js +65 -0
- package/dist/icons/lu/LuMail.js +33 -0
- package/dist/icons/lu/LuMegaphone.js +27 -0
- package/dist/icons/lu/LuMoon.js +23 -0
- package/dist/icons/lu/LuPartyPopper.js +65 -0
- package/dist/icons/lu/LuSettings2.js +48 -0
- package/dist/icons/lu/LuSheet.js +72 -0
- package/dist/icons/lu/LuShield.js +23 -0
- package/dist/icons/lu/LuSun.js +69 -0
- package/dist/icons/lu/LuX.js +27 -0
- package/dist/icons/lu/LuZoomIn.js +59 -0
- package/dist/icons/lu/LuZoomOut.js +49 -0
- package/dist/icons/md/MdClear.js +23 -0
- package/dist/icons/md/MdDragHandle.js +23 -0
- package/dist/icons/md/MdInstallDesktop.js +31 -0
- package/dist/icons/md/MdOutlineAttachMoney.js +23 -0
- package/dist/icons/md/MdOutlineMoneyOff.js +23 -0
- package/dist/icons/md/MdPieChart.js +23 -0
- package/dist/icons/md/MdRefresh.js +23 -0
- package/dist/icons/md/MdReplay.js +23 -0
- package/dist/icons/md/MdSmartphone.js +23 -0
- package/dist/icons/pi/PiArrowBendUpRightBold.js +19 -0
- package/dist/icons/pi/PiPlugsConnectedFill.js +19 -0
- package/dist/icons/pi/PiRectangleDashed.js +19 -0
- package/dist/icons/pi/PiShareBold.js +19 -0
- package/dist/icons/si/SiAnthropic.js +19 -0
- package/dist/icons/si/SiHelm.js +19 -0
- package/dist/icons/si/SiKubernetes.js +19 -0
- package/dist/icons/tb/TbAlertTriangle.js +35 -0
- package/dist/icons/tb/TbAlertTriangleFilled.js +19 -0
- package/dist/icons/tb/TbApi.js +40 -0
- package/dist/icons/tb/TbBrain.js +50 -0
- package/dist/icons/tb/TbBuildingTunnel.js +65 -0
- package/dist/icons/tb/TbEdit.js +35 -0
- package/dist/icons/tb/TbLayoutSidebar.js +27 -0
- package/dist/icons/tb/TbLayoutSidebarLeftCollapse.js +35 -0
- package/dist/icons/tb/TbLayoutSidebarRightCollapse.js +35 -0
- package/dist/icons/tb/TbUser.js +27 -0
- package/dist/icons/tb/TbUserOff.js +35 -0
- package/dist/icons/tb/TbWorldShare.js +55 -0
- package/dist/icons/tb/TbWorldWww.js +65 -0
- package/dist/icons/ti/TiArrowSortedDown.js +20 -0
- package/dist/icons/ti/TiArrowSortedUp.js +20 -0
- package/dist/icons/ti/TiArrowUnsorted.js +20 -0
- package/dist/icons/ti/TiCancel.js +20 -0
- package/dist/icons/vsc/VscChromeMinimize.js +19 -0
- package/dist/icons/vsc/VscJson.js +19 -0
- package/dist/icons/vsc/VscLayoutSidebarLeft.js +19 -0
- package/dist/icons/vsc/VscPass.js +27 -0
- package/dist/icons/vsc/VscSplitHorizontal.js +19 -0
- package/dist/icons/vsc/VscTerminalPowershell.js +19 -0
- package/dist/icons.d.ts +6 -21
- package/dist/icons.js +257 -38
- package/dist/list/ActionToolbar.js +2 -2
- package/dist/list/ListPager.js +4 -3
- package/dist/list/ListTable.js +2 -2
- package/dist/list/ListViewControls.js +13 -8
- package/dist/list/RowContextMenu.js +21 -12
- package/dist/list/listSearch.js +6 -5
- package/dist/logviewer/LogViewer.js +21 -11
- package/package.json +2 -2
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
import { useNotify, useProvisionCorsRules, useStrings } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { BsFileEarmarkZip } from "../icons/bs/BsFileEarmarkZip.js";
|
|
3
|
+
import { FaRegFileImage } from "../icons/fa/FaRegFileImage.js";
|
|
4
|
+
import { FaRegFolder } from "../icons/fa/FaRegFolder.js";
|
|
5
|
+
import { FaUser } from "../icons/fa/FaUser.js";
|
|
6
|
+
import { FaRegFilePdf } from "../icons/fa6/FaRegFilePdf.js";
|
|
7
|
+
import { FaWandMagicSparkles } from "../icons/fa6/FaWandMagicSparkles.js";
|
|
8
|
+
import { FiFile } from "../icons/fi/FiFile.js";
|
|
9
|
+
import { FiFileText } from "../icons/fi/FiFileText.js";
|
|
10
|
+
import { FiHardDrive } from "../icons/fi/FiHardDrive.js";
|
|
11
|
+
import { GoVideo } from "../icons/go/GoVideo.js";
|
|
12
|
+
import { IoDocumentTextOutline } from "../icons/io5/IoDocumentTextOutline.js";
|
|
13
|
+
import { LuSheet } from "../icons/lu/LuSheet.js";
|
|
14
|
+
import { MdRefresh } from "../icons/md/MdRefresh.js";
|
|
15
|
+
import { PiShareBold } from "../icons/pi/PiShareBold.js";
|
|
16
|
+
import { TbAlertTriangle } from "../icons/tb/TbAlertTriangle.js";
|
|
3
17
|
import { positionKeys } from "../components/keys.js";
|
|
4
18
|
import Callout from "../components/Callout.js";
|
|
5
19
|
import { ListSkeleton } from "../list/ListTable.js";
|
|
@@ -15,73 +29,73 @@ var SIDEBAR_WIDTH_STORAGE_KEY = "fileExplorerSidebarWidth";
|
|
|
15
29
|
var contentTypeIconMap = [
|
|
16
30
|
{
|
|
17
31
|
pattern: /^image\//,
|
|
18
|
-
icon: /* @__PURE__ */ jsx(
|
|
32
|
+
icon: /* @__PURE__ */ jsx(FaRegFileImage, { className: "h-4 w-4 text-blue-500" })
|
|
19
33
|
},
|
|
20
34
|
{
|
|
21
35
|
pattern: /^video\//,
|
|
22
|
-
icon: /* @__PURE__ */ jsx(
|
|
36
|
+
icon: /* @__PURE__ */ jsx(GoVideo, { className: "h-4 w-4 text-purple-500" })
|
|
23
37
|
},
|
|
24
38
|
{
|
|
25
39
|
pattern: /^application\/pdf$/,
|
|
26
|
-
icon: /* @__PURE__ */ jsx(
|
|
40
|
+
icon: /* @__PURE__ */ jsx(FaRegFilePdf, { className: "h-4 w-4 text-red-500" })
|
|
27
41
|
},
|
|
28
42
|
{
|
|
29
43
|
pattern: /(spreadsheet|csv|excel)/,
|
|
30
|
-
icon: /* @__PURE__ */ jsx(
|
|
44
|
+
icon: /* @__PURE__ */ jsx(LuSheet, { className: "h-4 w-4 text-green-500" })
|
|
31
45
|
},
|
|
32
46
|
{
|
|
33
47
|
pattern: /(document|word)/,
|
|
34
|
-
icon: /* @__PURE__ */ jsx(
|
|
48
|
+
icon: /* @__PURE__ */ jsx(IoDocumentTextOutline, { className: "h-4 w-4 text-blue-400" })
|
|
35
49
|
},
|
|
36
50
|
{
|
|
37
51
|
pattern: /(javascript|json|css|html)/,
|
|
38
|
-
icon: /* @__PURE__ */ jsx(
|
|
52
|
+
icon: /* @__PURE__ */ jsx(FiFileText, { className: "h-4 w-4 text-yellow-500" })
|
|
39
53
|
},
|
|
40
54
|
{
|
|
41
55
|
pattern: /(zip|gzip|tar)/,
|
|
42
|
-
icon: /* @__PURE__ */ jsx(
|
|
56
|
+
icon: /* @__PURE__ */ jsx(BsFileEarmarkZip, { className: "h-4 w-4 text-purple-600" })
|
|
43
57
|
}
|
|
44
58
|
];
|
|
45
59
|
var extensionIconMap = [
|
|
46
60
|
{
|
|
47
61
|
pattern: /^(jpe?g|png|gif|svg|webp)$/i,
|
|
48
|
-
icon: /* @__PURE__ */ jsx(
|
|
62
|
+
icon: /* @__PURE__ */ jsx(FaRegFileImage, { className: "h-4 w-4 text-blue-500" })
|
|
49
63
|
},
|
|
50
64
|
{
|
|
51
65
|
pattern: /^(mp4|mov|avi|mkv)$/i,
|
|
52
|
-
icon: /* @__PURE__ */ jsx(
|
|
66
|
+
icon: /* @__PURE__ */ jsx(GoVideo, { className: "h-4 w-4 text-purple-500" })
|
|
53
67
|
},
|
|
54
68
|
{
|
|
55
69
|
pattern: /^pdf$/i,
|
|
56
|
-
icon: /* @__PURE__ */ jsx(
|
|
70
|
+
icon: /* @__PURE__ */ jsx(FaRegFilePdf, { className: "h-4 w-4 text-red-500" })
|
|
57
71
|
},
|
|
58
72
|
{
|
|
59
73
|
pattern: /^(xlsx?|csv|ods)$/i,
|
|
60
|
-
icon: /* @__PURE__ */ jsx(
|
|
74
|
+
icon: /* @__PURE__ */ jsx(LuSheet, { className: "h-4 w-4 text-green-500" })
|
|
61
75
|
},
|
|
62
76
|
{
|
|
63
77
|
pattern: /^(docx?|odt)$/i,
|
|
64
|
-
icon: /* @__PURE__ */ jsx(
|
|
78
|
+
icon: /* @__PURE__ */ jsx(IoDocumentTextOutline, { className: "h-4 w-4 text-blue-400" })
|
|
65
79
|
},
|
|
66
80
|
{
|
|
67
81
|
pattern: /^(js|ts|json|css|html|md|txt)$/i,
|
|
68
|
-
icon: /* @__PURE__ */ jsx(
|
|
82
|
+
icon: /* @__PURE__ */ jsx(FiFileText, { className: "h-4 w-4 text-yellow-500" })
|
|
69
83
|
},
|
|
70
84
|
{
|
|
71
85
|
pattern: /^(zip|gz|gzip|tar|rar)$/i,
|
|
72
|
-
icon: /* @__PURE__ */ jsx(
|
|
86
|
+
icon: /* @__PURE__ */ jsx(BsFileEarmarkZip, { className: "h-4 w-4 text-purple-600" })
|
|
73
87
|
}
|
|
74
88
|
];
|
|
75
89
|
function getNodeIcon(node, storageIconUrl, storageIconAlt = "Storage icon") {
|
|
76
90
|
const isUserNode = !node.storageId;
|
|
77
91
|
const isStorageNode = node.root;
|
|
78
|
-
if (isUserNode) return /* @__PURE__ */ jsx(
|
|
79
|
-
if (isStorageNode && node.storageType === "workspace") return /* @__PURE__ */ jsx(
|
|
92
|
+
if (isUserNode) return /* @__PURE__ */ jsx(FaUser, { className: "h-3 w-3 mr-2" });
|
|
93
|
+
if (isStorageNode && node.storageType === "workspace") return /* @__PURE__ */ jsx(FiHardDrive, { className: "h-4 w-4 mr-2" });
|
|
80
94
|
if (isStorageNode && node.storageNodeIcon) {
|
|
81
95
|
const storageNodeIcon = node.storageNodeIcon;
|
|
82
96
|
const fallbackSrc = storageIconUrl?.({ type: storageNodeIcon });
|
|
83
97
|
const iconSrc = node.storageImageUrl || fallbackSrc;
|
|
84
|
-
if (!iconSrc) return /* @__PURE__ */ jsx(
|
|
98
|
+
if (!iconSrc) return /* @__PURE__ */ jsx(FiHardDrive, { className: "h-4 w-4 mr-2" });
|
|
85
99
|
return /* @__PURE__ */ jsx("img", {
|
|
86
100
|
className: "h-4 w-4 mr-2",
|
|
87
101
|
src: iconSrc,
|
|
@@ -99,7 +113,7 @@ function getNodeIcon(node, storageIconUrl, storageIconAlt = "Storage icon") {
|
|
|
99
113
|
if (ext) {
|
|
100
114
|
for (const { pattern, icon } of extensionIconMap) if (pattern.test(ext)) return icon;
|
|
101
115
|
}
|
|
102
|
-
return /* @__PURE__ */ jsx(
|
|
116
|
+
return /* @__PURE__ */ jsx(FiFile, { className: "h-4 w-4 theme-muted-text" });
|
|
103
117
|
}
|
|
104
118
|
function renderUploadNodes(uploadNodes) {
|
|
105
119
|
const sorted = [...uploadNodes].sort((a, b) => a.relativePath.localeCompare(b.relativePath));
|
|
@@ -112,7 +126,7 @@ function renderUploadNodes(uploadNodes) {
|
|
|
112
126
|
while (common < folders.length && common < lastFolders.length && folders[common] === lastFolders[common]) common++;
|
|
113
127
|
const folderElements = folders.slice(common).map((folder, i) => /* @__PURE__ */ jsxs("div", {
|
|
114
128
|
style: { marginLeft: (common + i) * 16 },
|
|
115
|
-
children: [/* @__PURE__ */ jsx(
|
|
129
|
+
children: [/* @__PURE__ */ jsx(FaRegFolder, { className: "inline h-3 w-3 mr-1" }), /* @__PURE__ */ jsxs("span", {
|
|
116
130
|
className: "font-semibold",
|
|
117
131
|
children: [folder, "/"]
|
|
118
132
|
})]
|
|
@@ -144,7 +158,7 @@ function NoFileSelectedPreview() {
|
|
|
144
158
|
children: [
|
|
145
159
|
/* @__PURE__ */ jsx("div", {
|
|
146
160
|
className: "inline-flex items-center justify-center w-14 h-14 rounded-full theme-muted-panel mb-4",
|
|
147
|
-
children: /* @__PURE__ */ jsx(
|
|
161
|
+
children: /* @__PURE__ */ jsx(FiHardDrive, { className: "h-6 w-6 theme-muted-text" })
|
|
148
162
|
}),
|
|
149
163
|
/* @__PURE__ */ jsx("h2", {
|
|
150
164
|
className: "text-base font-semibold mb-1",
|
|
@@ -169,7 +183,7 @@ function NotFoundPreview({ path, onRetry }) {
|
|
|
169
183
|
children: [
|
|
170
184
|
/* @__PURE__ */ jsx("div", {
|
|
171
185
|
className: "inline-flex items-center justify-center w-14 h-14 rounded-full theme-muted-panel mb-4",
|
|
172
|
-
children: /* @__PURE__ */ jsx(
|
|
186
|
+
children: /* @__PURE__ */ jsx(FiHardDrive, { className: "h-6 w-6 theme-muted-text" })
|
|
173
187
|
}),
|
|
174
188
|
/* @__PURE__ */ jsx("h2", {
|
|
175
189
|
className: "text-base font-semibold mb-1",
|
|
@@ -183,7 +197,7 @@ function NotFoundPreview({ path, onRetry }) {
|
|
|
183
197
|
type: "button",
|
|
184
198
|
className: "btn btn-info gap-2",
|
|
185
199
|
onClick: onRetry,
|
|
186
|
-
children: [/* @__PURE__ */ jsx(
|
|
200
|
+
children: [/* @__PURE__ */ jsx(MdRefresh, { className: "h-4 w-4" }), t.retry]
|
|
187
201
|
})
|
|
188
202
|
]
|
|
189
203
|
})
|
|
@@ -237,12 +251,12 @@ function CorsIssuePreview({ selectedStorage, onRefresh }) {
|
|
|
237
251
|
type: "button",
|
|
238
252
|
className: "btn btn-info cursor-pointer flex items-center",
|
|
239
253
|
onClick: onRefresh ? () => onRefresh() : void 0,
|
|
240
|
-
children: [/* @__PURE__ */ jsx(
|
|
254
|
+
children: [/* @__PURE__ */ jsx(MdRefresh, { className: "h-4 w-4 mr-2" }), t.actions.retry]
|
|
241
255
|
}), provisionCorsRules && /* @__PURE__ */ jsxs("button", {
|
|
242
256
|
type: "button",
|
|
243
257
|
className: "btn btn-info cursor-pointer flex items-center",
|
|
244
258
|
onClick: handleAddCorsRules,
|
|
245
|
-
children: [/* @__PURE__ */ jsx(
|
|
259
|
+
children: [/* @__PURE__ */ jsx(FaWandMagicSparkles, { className: "h-4 w-4 mr-2" }), /* @__PURE__ */ jsx("span", { children: t.actions.addRules })]
|
|
246
260
|
})]
|
|
247
261
|
})]
|
|
248
262
|
});
|
|
@@ -398,7 +412,7 @@ function NoDataAvailablePreview({ selectedStorage, error, onRefresh, connectionI
|
|
|
398
412
|
children: [
|
|
399
413
|
/* @__PURE__ */ jsx("div", {
|
|
400
414
|
className: "inline-flex items-center justify-center w-14 h-14 rounded-full theme-muted-panel mb-4",
|
|
401
|
-
children: /* @__PURE__ */ jsx(
|
|
415
|
+
children: /* @__PURE__ */ jsx(FiFile, { className: "h-6 w-6 theme-muted-text" })
|
|
402
416
|
}),
|
|
403
417
|
/* @__PURE__ */ jsx("h2", {
|
|
404
418
|
className: "text-base font-semibold mb-1",
|
|
@@ -414,7 +428,7 @@ function NoDataAvailablePreview({ selectedStorage, error, onRefresh, connectionI
|
|
|
414
428
|
children: [
|
|
415
429
|
/* @__PURE__ */ jsx("div", {
|
|
416
430
|
className: "inline-flex items-center justify-center w-14 h-14 rounded-full bg-amber-500/10 mb-4",
|
|
417
|
-
children: /* @__PURE__ */ jsx(
|
|
431
|
+
children: /* @__PURE__ */ jsx(TbAlertTriangle, { className: "h-6 w-6 text-amber-500" })
|
|
418
432
|
}),
|
|
419
433
|
/* @__PURE__ */ jsx("h2", {
|
|
420
434
|
className: "text-base font-semibold mb-1",
|
|
@@ -428,7 +442,7 @@ function NoDataAvailablePreview({ selectedStorage, error, onRefresh, connectionI
|
|
|
428
442
|
type: "button",
|
|
429
443
|
className: "btn btn-info cursor-pointer flex items-center gap-2",
|
|
430
444
|
onClick: onRefresh ? () => onRefresh() : void 0,
|
|
431
|
-
children: [/* @__PURE__ */ jsx(
|
|
445
|
+
children: [/* @__PURE__ */ jsx(MdRefresh, { className: "h-4 w-4" }), t.empty.tryAgain]
|
|
432
446
|
})
|
|
433
447
|
]
|
|
434
448
|
})
|
|
@@ -492,7 +506,7 @@ function ShareFileButton({ node, onShare }) {
|
|
|
492
506
|
});
|
|
493
507
|
},
|
|
494
508
|
disabled: isPending,
|
|
495
|
-
children: [/* @__PURE__ */ jsx(
|
|
509
|
+
children: [/* @__PURE__ */ jsx(PiShareBold, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
496
510
|
className: "hidden md:inline",
|
|
497
511
|
children: t.empty.shareThisFile
|
|
498
512
|
})]
|
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
import { useStrings } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { BiExpandVertical } from "../icons/bi/BiExpandVertical.js";
|
|
3
|
+
import { FaAngleDown } from "../icons/fa/FaAngleDown.js";
|
|
4
|
+
import { FaAngleUp } from "../icons/fa/FaAngleUp.js";
|
|
5
|
+
import { HiMiniCheckCircle } from "../icons/hi2/HiMiniCheckCircle.js";
|
|
6
|
+
import { IoMdClose } from "../icons/io/IoMdClose.js";
|
|
7
|
+
import { IoCloudUploadOutline } from "../icons/io5/IoCloudUploadOutline.js";
|
|
8
|
+
import { TbAlertTriangle } from "../icons/tb/TbAlertTriangle.js";
|
|
9
|
+
import { VscChromeMinimize } from "../icons/vsc/VscChromeMinimize.js";
|
|
3
10
|
import { formatETA, formatFileSize } from "./lib/utils.js";
|
|
4
11
|
import cx from "classnames";
|
|
5
12
|
import { useState } from "react";
|
|
@@ -8,31 +15,31 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
|
8
15
|
function getSessionStatusInfo(session, queueLength, strings) {
|
|
9
16
|
switch (session.status) {
|
|
10
17
|
case "queued": return {
|
|
11
|
-
icon: /* @__PURE__ */ jsx(
|
|
18
|
+
icon: /* @__PURE__ */ jsx(IoCloudUploadOutline, { className: "w-5 h-5 text-blue-600" }),
|
|
12
19
|
title: strings.inQueue(session.queueIndex + 1, queueLength),
|
|
13
20
|
shortTitle: strings.queuedShort(session.queueIndex + 1, queueLength),
|
|
14
21
|
bgColor: "bg-blue-100"
|
|
15
22
|
};
|
|
16
23
|
case "uploading": return {
|
|
17
|
-
icon: /* @__PURE__ */ jsx(
|
|
24
|
+
icon: /* @__PURE__ */ jsx(IoCloudUploadOutline, { className: "w-5 h-5 text-blue-600" }),
|
|
18
25
|
title: strings.uploading,
|
|
19
26
|
shortTitle: strings.uploading,
|
|
20
27
|
bgColor: "bg-blue-100"
|
|
21
28
|
};
|
|
22
29
|
case "completed": return {
|
|
23
|
-
icon: /* @__PURE__ */ jsx(
|
|
30
|
+
icon: /* @__PURE__ */ jsx(HiMiniCheckCircle, { className: "w-5 h-5 text-green-600" }),
|
|
24
31
|
title: strings.completeTitle,
|
|
25
32
|
shortTitle: strings.completeShort,
|
|
26
33
|
bgColor: "bg-green-100"
|
|
27
34
|
};
|
|
28
35
|
case "failed": return {
|
|
29
|
-
icon: /* @__PURE__ */ jsx(
|
|
36
|
+
icon: /* @__PURE__ */ jsx(TbAlertTriangle, { className: "w-5 h-5 text-red-600" }),
|
|
30
37
|
title: strings.failedTitle,
|
|
31
38
|
shortTitle: strings.failedShort,
|
|
32
39
|
bgColor: "bg-red-100"
|
|
33
40
|
};
|
|
34
41
|
default: return {
|
|
35
|
-
icon: /* @__PURE__ */ jsx(
|
|
42
|
+
icon: /* @__PURE__ */ jsx(IoCloudUploadOutline, { className: "w-5 h-5 theme-muted-text" }),
|
|
36
43
|
title: strings.unknownTitle,
|
|
37
44
|
shortTitle: strings.unknownShort,
|
|
38
45
|
bgColor: "bg-(--theme-muted-panel-bg)"
|
|
@@ -134,7 +141,7 @@ function FileProgressBar({ fileProgress, fileName, onCancelFile }) {
|
|
|
134
141
|
className: "p-1 rounded-full hover:bg-red-100 relative cursor-pointer",
|
|
135
142
|
onClick: handleCancelClick,
|
|
136
143
|
title: `Cancel ${fileName}`,
|
|
137
|
-
children: /* @__PURE__ */ jsx(
|
|
144
|
+
children: /* @__PURE__ */ jsx(IoMdClose, { className: "w-4 h-4 text-red-500 hover:text-red-700" })
|
|
138
145
|
}),
|
|
139
146
|
showCancelConfirm && canCancel && /* @__PURE__ */ jsxs("div", {
|
|
140
147
|
className: "flex items-center gap-1",
|
|
@@ -230,7 +237,7 @@ function UploadSessionToast({ session, queueLength, onCancel, onCancelFile }) {
|
|
|
230
237
|
className: "flex items-center justify-between text-xs theme-muted-text hover:theme-text cursor-pointer",
|
|
231
238
|
onClick: handleExpandClick,
|
|
232
239
|
title: strings.expandDetails,
|
|
233
|
-
children: /* @__PURE__ */ jsx(
|
|
240
|
+
children: /* @__PURE__ */ jsx(BiExpandVertical, { className: "w-4 h-4" })
|
|
234
241
|
})]
|
|
235
242
|
})]
|
|
236
243
|
}),
|
|
@@ -291,7 +298,7 @@ function UploadSessionToast({ session, queueLength, onCancel, onCancelFile }) {
|
|
|
291
298
|
className: "flex items-center justify-between text-xs theme-muted-text hover:theme-text cursor-pointer mr-2",
|
|
292
299
|
onClick: handleExpandClick,
|
|
293
300
|
title: strings.minimizeDetails,
|
|
294
|
-
children: /* @__PURE__ */ jsx(
|
|
301
|
+
children: /* @__PURE__ */ jsx(VscChromeMinimize, { className: "w-4 h-4" })
|
|
295
302
|
})]
|
|
296
303
|
}),
|
|
297
304
|
/* @__PURE__ */ jsx("div", {
|
|
@@ -321,7 +328,7 @@ function UploadSessionToast({ session, queueLength, onCancel, onCancelFile }) {
|
|
|
321
328
|
className: "mb-4 p-3 bg-amber-50 border border-amber-200 rounded-lg",
|
|
322
329
|
children: /* @__PURE__ */ jsxs("div", {
|
|
323
330
|
className: "flex gap-2",
|
|
324
|
-
children: [/* @__PURE__ */ jsx(
|
|
331
|
+
children: [/* @__PURE__ */ jsx(TbAlertTriangle, { className: "w-4 h-4 text-amber-600 flex-shrink-0 mt-0.5" }), /* @__PURE__ */ jsx("p", {
|
|
325
332
|
className: "text-xs text-amber-800",
|
|
326
333
|
children: "Please don't refresh this page during upload to prevent any data loss."
|
|
327
334
|
})]
|
|
@@ -346,7 +353,7 @@ function UploadSessionToast({ session, queueLength, onCancel, onCancelFile }) {
|
|
|
346
353
|
type: "button",
|
|
347
354
|
className: "flex items-center justify-between text-xs theme-muted-text hover:theme-text cursor-pointer",
|
|
348
355
|
onClick: () => setIsExpanded(!isFileListExpanded),
|
|
349
|
-
children: [/* @__PURE__ */ jsxs("span", { children: [session.uploadNodes.length, " files"] }), isFileListExpanded ? /* @__PURE__ */ jsx(
|
|
356
|
+
children: [/* @__PURE__ */ jsxs("span", { children: [session.uploadNodes.length, " files"] }), isFileListExpanded ? /* @__PURE__ */ jsx(FaAngleUp, { className: "w-4 h-4" }) : /* @__PURE__ */ jsx(FaAngleDown, { className: "w-4 h-4" })]
|
|
350
357
|
}), isFileListExpanded && /* @__PURE__ */ jsx("div", {
|
|
351
358
|
className: "max-h-48 overflow-y-auto space-y-2",
|
|
352
359
|
children: session.uploadNodes.map((node) => {
|
package/dist/form/Form.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useStrings, useWorkflowEngine } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { BiSolidTrashAlt } from "../icons/bi/BiSolidTrashAlt.js";
|
|
3
|
+
import { FaAngleRight } from "../icons/fa/FaAngleRight.js";
|
|
3
4
|
import { TooltipInfo } from "../components/Tooltip.js";
|
|
4
5
|
import { UncontrolledCollapsiblePanel } from "../components/CollapsiblePanel.js";
|
|
5
6
|
import CustomListbox from "../components/Listbox.js";
|
|
@@ -201,7 +202,7 @@ function GroupHeader({ children, open, setOpen, title }) {
|
|
|
201
202
|
"aria-expanded": open,
|
|
202
203
|
className: "w-full flex items-center text-left transform ease-in transition cursor-pointer",
|
|
203
204
|
onClick: () => setOpen((open) => !open),
|
|
204
|
-
children: [/* @__PURE__ */ jsx(
|
|
205
|
+
children: [/* @__PURE__ */ jsx(FaAngleRight, { className: cx(open && "transform rotate-90 ", "px-1 text-[1.25rem] transition ease-in ") }), /* @__PURE__ */ jsx("span", { children: title })]
|
|
205
206
|
}), children]
|
|
206
207
|
});
|
|
207
208
|
}
|
|
@@ -279,7 +280,7 @@ function MultiSelectionDropdown({ name, label = "", invalid = false, options: in
|
|
|
279
280
|
"aria-label": t.remove,
|
|
280
281
|
className: "inline-flex bg-transparent p-0 cursor-pointer",
|
|
281
282
|
onClick: () => handleRemoveOption(option.value),
|
|
282
|
-
children: /* @__PURE__ */ jsx(
|
|
283
|
+
children: /* @__PURE__ */ jsx(BiSolidTrashAlt, { className: "link mr-4" })
|
|
283
284
|
}) })] }, String(option.value));
|
|
284
285
|
}) : /* @__PURE__ */ jsx("tr", { children: /* @__PURE__ */ jsxs(Table.Item, { children: [
|
|
285
286
|
"No ",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LuEye } from "../../icons/lu/LuEye.js";
|
|
2
|
+
import { LuEyeOff } from "../../icons/lu/LuEyeOff.js";
|
|
2
3
|
import { useFieldControlProps, useFieldRequired } from "../fieldContext.js";
|
|
3
4
|
import cx from "classnames";
|
|
4
5
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
@@ -105,7 +106,7 @@ function FormikCustomInput({ name, type, step, placeholder, onChange, disabled,
|
|
|
105
106
|
disabled,
|
|
106
107
|
tabIndex: -1,
|
|
107
108
|
"aria-label": showPassword ? "Hide value" : "Show value",
|
|
108
|
-
children: showPassword ? /* @__PURE__ */ jsx(
|
|
109
|
+
children: showPassword ? /* @__PURE__ */ jsx(LuEyeOff, { className: "h-4 w-4" }) : /* @__PURE__ */ jsx(LuEye, { className: "h-4 w-4" })
|
|
109
110
|
})]
|
|
110
111
|
});
|
|
111
112
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BiError } from "../icons/bi/BiError.js";
|
|
2
|
+
import { FaChevronDown } from "../icons/fa/FaChevronDown.js";
|
|
3
|
+
import { FaInfoCircle } from "../icons/fa/FaInfoCircle.js";
|
|
4
|
+
import { IoWarningOutline } from "../icons/io5/IoWarningOutline.js";
|
|
5
|
+
import { LuChevronRight } from "../icons/lu/LuChevronRight.js";
|
|
2
6
|
import { keyedByContent } from "../components/keys.js";
|
|
3
7
|
import cx from "classnames";
|
|
4
8
|
import { useState } from "react";
|
|
@@ -11,21 +15,21 @@ var typeOrder = {
|
|
|
11
15
|
};
|
|
12
16
|
var typeConfig = {
|
|
13
17
|
error: {
|
|
14
|
-
icon:
|
|
18
|
+
icon: BiError,
|
|
15
19
|
label: "Error",
|
|
16
20
|
accentClass: "text-red-500",
|
|
17
21
|
bgClass: "bg-red-500/5 dark:bg-red-500/10",
|
|
18
22
|
countBg: "bg-red-500/15 text-red-700 dark:text-red-400"
|
|
19
23
|
},
|
|
20
24
|
warning: {
|
|
21
|
-
icon:
|
|
25
|
+
icon: IoWarningOutline,
|
|
22
26
|
label: "Warning",
|
|
23
27
|
accentClass: "text-yellow-500",
|
|
24
28
|
bgClass: "bg-yellow-500/5 dark:bg-yellow-500/10",
|
|
25
29
|
countBg: "bg-yellow-500/15 text-yellow-700 dark:text-yellow-400"
|
|
26
30
|
},
|
|
27
31
|
notice: {
|
|
28
|
-
icon:
|
|
32
|
+
icon: FaInfoCircle,
|
|
29
33
|
label: "Notice",
|
|
30
34
|
accentClass: "text-blue-500",
|
|
31
35
|
bgClass: "bg-blue-500/5 dark:bg-blue-500/10",
|
|
@@ -71,7 +75,7 @@ function AnnotationBanner({ executedJobs }) {
|
|
|
71
75
|
notice: 0
|
|
72
76
|
};
|
|
73
77
|
for (const a of annotations) counts[a.type]++;
|
|
74
|
-
const ChevronIcon = expanded ?
|
|
78
|
+
const ChevronIcon = expanded ? FaChevronDown : LuChevronRight;
|
|
75
79
|
return /* @__PURE__ */ jsxs("div", {
|
|
76
80
|
className: cx("rounded-lg border border-[var(--theme-border)] overflow-hidden", "bg-[var(--theme-panel-bg)]"),
|
|
77
81
|
children: [/* @__PURE__ */ jsxs("button", {
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { useRunFile, useSlots, useStrings, useWorkflowEngine } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { FaArrowLeft } from "../icons/fa/FaArrowLeft.js";
|
|
3
|
+
import { FaArrowRight } from "../icons/fa/FaArrowRight.js";
|
|
4
|
+
import { IoDocumentTextOutline } from "../icons/io5/IoDocumentTextOutline.js";
|
|
3
5
|
import { TooltipInfo } from "../components/Tooltip.js";
|
|
4
6
|
import { BareModal, modalPanelClasses } from "../components/BareModal.js";
|
|
5
7
|
import { Indicator } from "../components/Indicator.js";
|
|
@@ -1053,13 +1055,13 @@ function DependencyGraph({ run, preview = false, removeBorder, viewMode = "dag",
|
|
|
1053
1055
|
type: "button",
|
|
1054
1056
|
className: "btn btn-neutral",
|
|
1055
1057
|
onClick: () => nextStep(true),
|
|
1056
|
-
children: [/* @__PURE__ */ jsx(
|
|
1058
|
+
children: [/* @__PURE__ */ jsx(FaArrowLeft, {}), /* @__PURE__ */ jsx("span", { children: "Prev" })]
|
|
1057
1059
|
}),
|
|
1058
1060
|
/* @__PURE__ */ jsxs("button", {
|
|
1059
1061
|
type: "button",
|
|
1060
1062
|
className: "btn btn-neutral",
|
|
1061
1063
|
onClick: () => nextStep(false),
|
|
1062
|
-
children: [/* @__PURE__ */ jsx(
|
|
1064
|
+
children: [/* @__PURE__ */ jsx(FaArrowRight, {}), /* @__PURE__ */ jsx("span", { children: "Next" })]
|
|
1063
1065
|
}),
|
|
1064
1066
|
/* @__PURE__ */ jsx("span", {
|
|
1065
1067
|
className: "pt-0.5 whitespace-pre-wrap text-xs",
|
|
@@ -1099,7 +1101,7 @@ function DependencyGraph({ run, preview = false, removeBorder, viewMode = "dag",
|
|
|
1099
1101
|
"aria-label": "General log",
|
|
1100
1102
|
onClick: () => setSublogOpen(generalLogPath),
|
|
1101
1103
|
className: "link",
|
|
1102
|
-
children: /* @__PURE__ */ jsx(
|
|
1104
|
+
children: /* @__PURE__ */ jsx(IoDocumentTextOutline, { className: "w-4 h-4" })
|
|
1103
1105
|
})]
|
|
1104
1106
|
}),
|
|
1105
1107
|
/* @__PURE__ */ jsx("div", {
|
package/dist/graph/JobSummary.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useNavigation, useSlots, useStrings, useWorkflowEngine } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { IoDocumentTextOutline } from "../icons/io5/IoDocumentTextOutline.js";
|
|
3
|
+
import { PiArrowBendUpRightBold } from "../icons/pi/PiArrowBendUpRightBold.js";
|
|
3
4
|
import { TOOLTIP_ID } from "../components/Tooltip.js";
|
|
4
5
|
import { Indicator } from "../components/Indicator.js";
|
|
5
6
|
import { Reveal } from "./Reveal.js";
|
|
@@ -74,7 +75,7 @@ function Joblist(inputs) {
|
|
|
74
75
|
inputs.onStepLogClick(jobName, i);
|
|
75
76
|
},
|
|
76
77
|
className: "link ml-1",
|
|
77
|
-
children: /* @__PURE__ */ jsx(
|
|
78
|
+
children: /* @__PURE__ */ jsx(IoDocumentTextOutline, { className: "w-[1.2em] h-[1.2em]" })
|
|
78
79
|
}),
|
|
79
80
|
/* @__PURE__ */ jsx(UsesIcon, {
|
|
80
81
|
uses: step.uses,
|
|
@@ -90,7 +91,7 @@ function Joblist(inputs) {
|
|
|
90
91
|
inputs.onSubworkflowIcon(jobName, i);
|
|
91
92
|
},
|
|
92
93
|
className: "link ml-1",
|
|
93
|
-
children: /* @__PURE__ */ jsx(
|
|
94
|
+
children: /* @__PURE__ */ jsx(PiArrowBendUpRightBold, { className: "w-[1.2em] h-[1.2em]" })
|
|
94
95
|
})
|
|
95
96
|
] })]
|
|
96
97
|
}), canExpand && inputs.renderSubworkflow(jobName, i)] }, stepKey);
|
package/dist/graph/TreeView.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { useRunFile, useSlots, useWorkflowEngine } from "../components/Provider.js";
|
|
2
|
-
import {
|
|
2
|
+
import { LuChevronRight } from "../icons/lu/LuChevronRight.js";
|
|
3
|
+
import { LoaderIcon } from "../components/StatusIcons.js";
|
|
3
4
|
import { Indicator } from "../components/Indicator.js";
|
|
4
5
|
import { LogViewer } from "../logviewer/LogViewer.js";
|
|
5
6
|
import { toAbsHumanDuration } from "../duration.js";
|
|
@@ -21,7 +22,7 @@ function Chevron({ open, hidden = false }) {
|
|
|
21
22
|
animate: { rotate: open ? 90 : 0 },
|
|
22
23
|
transition: { duration: .15 },
|
|
23
24
|
className: cx("flex-shrink-0", hidden ? "invisible" : "text-[var(--theme-muted-text-color)]"),
|
|
24
|
-
children: /* @__PURE__ */ jsx(
|
|
25
|
+
children: /* @__PURE__ */ jsx(LuChevronRight, { className: cx("w-4 h-4", open && "text-[var(--theme-element)]") })
|
|
25
26
|
});
|
|
26
27
|
}
|
|
27
28
|
function StepLogs({ slug, prefix, jobName, stepIndex }) {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/ai/AiOutlineRollback.js
|
|
3
|
+
/*! AiOutlineRollback: Ant Design Icons (https://github.com/ant-design/ant-design-icons), MIT https://opensource.org/licenses/MIT */
|
|
4
|
+
function AiOutlineRollback(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 1024 1024" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M793 242H366v-74c0-6.7-7.7-10.4-12.9-6.3l-142 112a8 8 0 0 0 0 12.6l142 112c5.2 4.1 12.9.4 12.9-6.3v-74h415v470H175c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h618c35.3 0 64-28.7 64-64V306c0-35.3-28.7-64-64-64z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { AiOutlineRollback };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiBell.js
|
|
3
|
+
/*! BiBell: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiBell(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { BiBell };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiBellOff.js
|
|
3
|
+
/*! BiBellOff: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiBellOff(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M12 22a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22zm9-4v-2a.996.996 0 0 0-.293-.707L19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258c-1.323.364-2.463 1.128-3.346 2.127L3.707 2.293 2.293 3.707l18 18 1.414-1.414-1.362-1.362A.993.993 0 0 0 21 18zM12 5c2.757 0 5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17h-.586L8.207 6.793C9.12 5.705 10.471 5 12 5zm-5.293 9.707A.996.996 0 0 0 7 14v-2.879L5.068 9.189C5.037 9.457 5 9.724 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h10.879l-2-2H5v-.586l1.707-1.707z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { BiBellOff };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiBuildings.js
|
|
3
|
+
/*! BiBuildings: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiBuildings(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M19 2H9c-1.103 0-2 .897-2 2v6H5c-1.103 0-2 .897-2 2v9a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4c0-1.103-.897-2-2-2zM5 12h6v8H5v-8zm14 8h-6v-8c0-1.103-.897-2-2-2H9V4h10v16z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}, {
|
|
13
|
+
"tag": "path",
|
|
14
|
+
"attr": { "d": "M11 6h2v2h-2zm4 0h2v2h-2zm0 4.031h2V12h-2zM15 14h2v2h-2zm-8 .001h2v2H7z" },
|
|
15
|
+
"child": []
|
|
16
|
+
}]
|
|
17
|
+
})(props);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { BiBuildings };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiError.js
|
|
3
|
+
/*! BiError: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiError(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M11.001 10h2v5h-2zM11 16h2v2h-2z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}, {
|
|
13
|
+
"tag": "path",
|
|
14
|
+
"attr": { "d": "M13.768 4.2C13.42 3.545 12.742 3.138 12 3.138s-1.42.407-1.768 1.063L2.894 18.064a1.986 1.986 0 0 0 .054 1.968A1.984 1.984 0 0 0 4.661 21h14.678c.708 0 1.349-.362 1.714-.968a1.989 1.989 0 0 0 .054-1.968L13.768 4.2zM4.661 19 12 5.137 19.344 19H4.661z" },
|
|
15
|
+
"child": []
|
|
16
|
+
}]
|
|
17
|
+
})(props);
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { BiError };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiExpandVertical.js
|
|
3
|
+
/*! BiExpandVertical: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiExpandVertical(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "m12 19.24-4.95-4.95-1.41 1.42L12 22.07l6.36-6.36-1.41-1.42L12 19.24zM5.64 8.29l1.41 1.42L12 4.76l4.95 4.95 1.41-1.42L12 1.93 5.64 8.29z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { BiExpandVertical };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiPause.js
|
|
3
|
+
/*! BiPause: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiPause(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M8 7h3v10H8zm5 0h3v10h-3z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { BiPause };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiPlay.js
|
|
3
|
+
/*! BiPlay: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiPlay(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M7 6v12l10-6z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { BiPlay };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenIcon } from "react-icons/lib";
|
|
2
|
+
//#region src/icons/bi/BiSolidCheckShield.js
|
|
3
|
+
/*! BiSolidCheckShield: BoxIcons (https://github.com/atisawd/boxicons), MIT https://github.com/atisawd/boxicons/blob/master/LICENSE */
|
|
4
|
+
function BiSolidCheckShield(props) {
|
|
5
|
+
return GenIcon({
|
|
6
|
+
"tag": "svg",
|
|
7
|
+
"attr": { "viewBox": "0 0 24 24" },
|
|
8
|
+
"child": [{
|
|
9
|
+
"tag": "path",
|
|
10
|
+
"attr": { "d": "M11.488 21.754c.294.157.663.156.957-.001 8.012-4.304 8.581-12.713 8.574-15.104a.988.988 0 0 0-.596-.903l-8.05-3.566a1.005 1.005 0 0 0-.813.001L3.566 5.747a.99.99 0 0 0-.592.892c-.034 2.379.445 10.806 8.514 15.115zM8.674 10.293l2.293 2.293 4.293-4.293 1.414 1.414-5.707 5.707-3.707-3.707 1.414-1.414z" },
|
|
11
|
+
"child": []
|
|
12
|
+
}]
|
|
13
|
+
})(props);
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { BiSolidCheckShield };
|