@vokril/ui-solid 0.29.0 → 0.32.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/CHANGELOG.md +121 -0
- package/README.md +90 -0
- package/dist/AttributeGrid-CNkALmJq.cjs +1 -0
- package/dist/AttributeGrid-DnuTPJ_P.js +320 -0
- package/dist/Button-CX7mylBT.js +308 -0
- package/dist/Button-lMUW5P3O.cjs +1 -0
- package/dist/CommandPalette-DAR9VMqY.cjs +2 -0
- package/dist/CommandPalette-DlLcdd4o.js +4029 -0
- package/dist/CopyButton-BVvv5M8g.js +63 -0
- package/dist/CopyButton-Dnd8_2Lj.cjs +1 -0
- package/dist/DateRangePicker-BlJWtJBA.cjs +9 -0
- package/dist/DateRangePicker-CHmUU4PA.js +552 -0
- package/dist/GuidedTour-9rqvNB_m.js +483 -0
- package/dist/GuidedTour-DbXeuTc7.cjs +1 -0
- package/dist/{HostPortal-CXGUUhP8.js → HostPortal-De65s6CU.js} +1 -1
- package/dist/HostPortal-Dm4BmY8M.cjs +1 -0
- package/dist/{IconPicker-DYqNi5ud.js → IconPicker-CsYW8CXe.js} +4 -4
- package/dist/IconPicker-D-GU1mD3.cjs +1 -0
- package/dist/Input-C3rEQffK.js +382 -0
- package/dist/Input-CHtvL4_4.cjs +1 -0
- package/dist/Modal-3L6p7Dwt.js +599 -0
- package/dist/Modal-CtrWEnJ7.cjs +1 -0
- package/dist/OverlayScrollArea-Cr0VAApT.cjs +1 -0
- package/dist/OverlayScrollArea-CrrPFLq9.js +180 -0
- package/dist/{PageSkeleton-CLnJO6uD.js → PageSkeleton-BRuqaDzr.js} +372 -371
- package/dist/PageSkeleton-Cz2bckO4.cjs +30 -0
- package/dist/Popover-CLTXG8W0.cjs +1 -0
- package/dist/Popover-DkqGvMNy.js +207 -0
- package/dist/SearchableSelect-C-lV1vSv.cjs +1 -0
- package/dist/SearchableSelect-Du12kcI9.js +328 -0
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +50 -0
- package/dist/{StatusBarNotificationBell-7Izs_msz.js → StatusBarNotificationBell-CgsYrrpj.js} +5205 -4850
- package/dist/Stepper-DzI-gtKd.js +586 -0
- package/dist/Stepper-rpu7lpzB.cjs +1 -0
- package/dist/{Textarea-CeAGf08O.cjs → Textarea-D4nYoQ0J.cjs} +1 -1
- package/dist/{Textarea-B5QqqKnI.js → Textarea-DOzZCc-O.js} +1 -1
- package/dist/TimeSeriesChart-BJqQpeEJ.cjs +1 -0
- package/dist/TimeSeriesChart-DvAhuyVl.js +442 -0
- package/dist/ToggleButton-B-hBpdzk.js +2144 -0
- package/dist/ToggleButton-BMH1A-IX.cjs +1 -0
- package/dist/_internal/app/onboarding/pageTourState.d.cts +0 -2
- package/dist/_internal/app/onboarding/pageTourState.d.ts +0 -2
- package/dist/_internal/app/onboarding/pageTourTypes.d.cts +2 -1
- package/dist/_internal/app/onboarding/pageTourTypes.d.ts +2 -1
- package/dist/_internal/contract/notification.d.cts +28 -3
- package/dist/_internal/contract/notification.d.ts +28 -3
- package/dist/_internal/contract/notificationCatalog.d.cts +2 -0
- package/dist/_internal/contract/notificationCatalog.d.ts +2 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +0 -8
- package/dist/_internal/platform/settings/settingsTypes.d.ts +0 -8
- package/dist/a11y/index.cjs +1 -1
- package/dist/a11y/index.js +1 -1
- package/dist/anchoredLayout-CBjQ1etD.cjs +1 -0
- package/dist/anchoredLayout-E0mqCWxk.js +233 -0
- package/dist/base.css +3 -3
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/context/DesktopContextMenuContext.d.cts +8 -1
- package/dist/context/DesktopContextMenuContext.d.ts +8 -1
- package/dist/createDialogShellFocus-DI1rUvYf.js +282 -0
- package/dist/createDialogShellFocus-kzkNSLWS.cjs +1 -0
- package/dist/createResizableSidebar--Ve6DbDu.js +504 -0
- package/dist/createResizableSidebar-DlVAuq5t.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +229 -228
- package/dist/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +4 -4
- package/dist/{focusModality-BISb6-yg.cjs → focusModality-D704CJVN.cjs} +1 -1
- package/dist/{focusModality-FoLPWF-_.js → focusModality-ROUF6YGR.js} +1 -1
- package/dist/forms/Input.d.cts +20 -0
- package/dist/forms/Input.d.ts +20 -0
- package/dist/forms/InputMessage.d.cts +19 -0
- package/dist/forms/InputMessage.d.ts +19 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +9 -9
- package/dist/grid/index.cjs +1 -1
- package/dist/grid/index.js +1 -1
- package/dist/host/index.cjs +1 -1
- package/dist/host/index.d.cts +1 -0
- package/dist/host/index.d.ts +1 -0
- package/dist/host/index.js +38 -39
- package/dist/host/kitHost.d.cts +8 -0
- package/dist/host/kitHost.d.ts +8 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +936 -928
- package/dist/kitHost-BMMWpU4w.js +47 -0
- package/dist/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/layout/resizeCarry.d.cts +17 -0
- package/dist/layout/resizeCarry.d.ts +17 -0
- package/dist/mainRealmDom-BcPuVvcy.cjs +1 -0
- package/dist/mainRealmDom-DydRT2Us.js +54 -0
- package/dist/nativeTitleHold-A9jUISgQ.js +170 -0
- package/dist/nativeTitleHold-B7Ou-W9b.cjs +1 -0
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- package/dist/notificationCatalog-CRERhjp6.js +168 -0
- package/dist/notificationCatalog-DqTkd7M6.cjs +1 -0
- package/dist/notifications/NotificationItem.d.cts +9 -0
- package/dist/notifications/NotificationItem.d.ts +9 -0
- package/dist/notifications/NotificationsCenter.d.cts +18 -0
- package/dist/notifications/NotificationsCenter.d.ts +18 -0
- package/dist/notifications/RunningProgressCards.d.cts +3 -0
- package/dist/notifications/RunningProgressCards.d.ts +3 -0
- package/dist/notifications/fireNotification.d.cts +35 -16
- package/dist/notifications/fireNotification.d.ts +35 -16
- package/dist/notifications/holdWhileShown.d.cts +18 -0
- package/dist/notifications/holdWhileShown.d.ts +18 -0
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.d.cts +1 -0
- package/dist/notifications/index.d.ts +1 -0
- package/dist/notifications/index.js +55 -52
- package/dist/notifications/nativeEngine.d.cts +38 -5
- package/dist/notifications/nativeEngine.d.ts +38 -5
- package/dist/notifications/notificationEntryList.d.cts +104 -0
- package/dist/notifications/notificationEntryList.d.ts +104 -0
- package/dist/notifications/notificationService.d.cts +23 -2
- package/dist/notifications/notificationService.d.ts +23 -2
- package/dist/notifications/toast.d.cts +3 -0
- package/dist/notifications/toast.d.ts +3 -0
- package/dist/notifications/toastCorner.d.cts +8 -0
- package/dist/notifications/toastCorner.d.ts +8 -0
- package/dist/notifications/toastFilterPolicy.d.cts +33 -1
- package/dist/notifications/toastFilterPolicy.d.ts +33 -1
- package/dist/overlay/Modal.d.cts +19 -0
- package/dist/overlay/Modal.d.ts +19 -0
- package/dist/overlay/backgroundInert.d.cts +6 -2
- package/dist/overlay/backgroundInert.d.ts +6 -2
- package/dist/overlay/command-palette/CommandPalette.d.cts +12 -0
- package/dist/overlay/command-palette/CommandPalette.d.ts +12 -0
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.d.cts +2 -1
- package/dist/overlay/index.d.ts +2 -1
- package/dist/overlay/index.js +80 -75
- package/dist/overlay/modalDefaults.d.cts +23 -0
- package/dist/overlay/modalDefaults.d.ts +23 -0
- package/dist/overlay/modalViewport.d.cts +16 -2
- package/dist/overlay/modalViewport.d.ts +16 -2
- package/dist/overlay/nativeTitleHold.d.cts +24 -0
- package/dist/overlay/nativeTitleHold.d.ts +24 -0
- package/dist/ownerAnimationFrame-DzFcMSmn.js +19 -0
- package/dist/ownerAnimationFrame-T6jf6qYC.cjs +1 -0
- package/dist/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/rowSource-BRGZHclZ.js +1231 -0
- package/dist/rowSource-C3zlzAtR.cjs +1 -0
- package/dist/server/AttributeGrid-B9j_c2wM.js +281 -0
- package/dist/server/AttributeGrid-BALCTvOI.cjs +1 -0
- package/dist/server/Button-DHefmmYz.cjs +1 -0
- package/dist/server/Button-ft_8RNJj.js +226 -0
- package/dist/server/CommandPalette-CHdfYtxs.js +3305 -0
- package/dist/server/CommandPalette-D0Prl7by.cjs +1 -0
- package/dist/server/CopyButton-CiYcsQcI.js +64 -0
- package/dist/server/CopyButton-D2q7tQ0m.cjs +1 -0
- package/dist/server/DateRangePicker-C6wZI7No.js +487 -0
- package/dist/server/DateRangePicker-CF70G2yr.cjs +9 -0
- package/dist/server/GuidedTour-BmDAWNfN.cjs +1 -0
- package/dist/server/GuidedTour-DYBhprVK.js +400 -0
- package/dist/server/{HostPortal-CXGUUhP8.js → HostPortal-C4xdfRyM.js} +1 -1
- package/dist/server/HostPortal-CwyePpDX.cjs +1 -0
- package/dist/server/{IconPicker-B4aXspLw.js → IconPicker--Xso9fUf.js} +5 -5
- package/dist/server/IconPicker-BTI4cNgf.cjs +1 -0
- package/dist/server/Input-UX0Hk53M.cjs +1 -0
- package/dist/server/Input-V9Szcw6w.js +249 -0
- package/dist/server/Modal-CBnNlaTx.cjs +1 -0
- package/dist/server/Modal-D9CjieKK.js +426 -0
- package/dist/server/OverlayScrollArea-DuwGRSMm.cjs +1 -0
- package/dist/server/OverlayScrollArea-h6G3yk6U.js +66 -0
- package/dist/server/{PageSkeleton-DoxlE_bD.js → PageSkeleton-CFs7AdTA.js} +267 -266
- package/dist/server/PageSkeleton-D0KOKLsb.cjs +30 -0
- package/dist/server/Popover-BBDBIpT6.cjs +1 -0
- package/dist/server/Popover-e9JpRh11.js +439 -0
- package/dist/server/SearchableSelect-B2ZFnp6i.js +205 -0
- package/dist/server/SearchableSelect-BBu5cP6P.cjs +1 -0
- package/dist/server/{StatusBarNotificationBell-D8Jt3PXI.js → StatusBarNotificationBell-CJJFE4rf.js} +5043 -4698
- package/dist/server/StatusBarNotificationBell-Cxs_bVKX.cjs +49 -0
- package/dist/server/Stepper-C04rOZcI.cjs +1 -0
- package/dist/server/Stepper-CVAOsf3o.js +381 -0
- package/dist/server/{Textarea-BQf2lL59.cjs → Textarea-BG6F8taO.cjs} +1 -1
- package/dist/server/{Textarea-BTH48NET.js → Textarea-DM4zpgWo.js} +1 -1
- package/dist/server/TimeSeriesChart-kuuqH7we.js +242 -0
- package/dist/server/TimeSeriesChart-tWbSF6fJ.cjs +1 -0
- package/dist/server/ToggleButton-BdqufQ7G.js +1344 -0
- package/dist/server/ToggleButton-Bo24NK3o.cjs +1 -0
- package/dist/server/{VpTrash-Dlq8o6Uv.js → VpTrash-CZMWCIpF.js} +84 -70
- package/dist/server/VpTrash-DiczWhwm.cjs +1 -0
- package/dist/server/a11y/index.cjs +1 -1
- package/dist/server/a11y/index.js +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/createDialogShellFocus-DvoNWpIu.cjs +1 -0
- package/dist/server/createDialogShellFocus-J8wqPlsa.js +370 -0
- package/dist/server/{createResizableSidebar-BImbKlLe.js → createResizableSidebar-CIrhLNKW.js} +104 -102
- package/dist/server/createResizableSidebar-DcZ2Cnpf.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +154 -153
- package/dist/server/dialogFocusRestore-BhxVTSiP.js +10 -0
- package/dist/server/dialogFocusRestore-DP5b1bDo.cjs +1 -0
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +4 -4
- package/dist/server/{focusModality-nWNVX3JG.js → focusModality-Bu4Kuwm4.js} +1 -1
- package/dist/server/{focusModality-D-nxv8Er.cjs → focusModality-G2i60_7y.cjs} +1 -1
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +9 -9
- package/dist/server/grid/index.cjs +1 -1
- package/dist/server/grid/index.js +1 -1
- package/dist/server/host/index.cjs +1 -1
- package/dist/server/host/index.js +38 -39
- package/dist/server/{index-UIjsx3oJ.js → index-CPUZyKo7.js} +3604 -3617
- package/dist/server/index-CVbkasNJ.cjs +1 -0
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +656 -649
- package/dist/server/kitHost-BMMWpU4w.js +47 -0
- package/dist/server/kitHost-u0-mKvEK.cjs +1 -0
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/mainRealmDom-BuGEeM_r.cjs +1 -0
- package/dist/server/{EmptyState-Csydyy_7.js → mainRealmDom-CzckS_ss.js} +12 -8
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notificationCatalog-CEDltsJS.cjs +1 -0
- package/dist/server/notificationCatalog-Cl1dH4aJ.js +122 -0
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +55 -52
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +72 -68
- package/dist/server/pageTourState-BuA-GBYO.cjs +5 -0
- package/dist/server/{pageTourState-BcBF8w89.js → pageTourState-DsSKdPOu.js} +160 -169
- package/dist/server/rowSource-C1F4l0xZ.cjs +1 -0
- package/dist/server/rowSource-CoeHYNsV.js +1123 -0
- package/dist/server/tokens/index.cjs +1 -1
- package/dist/server/tokens/index.js +29 -26
- package/dist/server/tokens/palette/index.cjs +1 -0
- package/dist/server/tokens/palette/index.js +31 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/solid/_internal/app/onboarding/PageTourHost.jsx +11 -10
- package/dist/solid/_internal/app/onboarding/pageTourState.js +12 -23
- package/dist/solid/charts/TimeSeriesChart.jsx +23 -22
- package/dist/solid/desktop/WindowControls.jsx +6 -3
- package/dist/solid/feedback/Badge.jsx +12 -19
- package/dist/solid/feedback/ErrorBoundary.jsx +18 -14
- package/dist/solid/forms/Button.jsx +18 -23
- package/dist/solid/forms/Checkbox.jsx +5 -4
- package/dist/solid/forms/Combobox.jsx +12 -10
- package/dist/solid/forms/CopyButton.jsx +7 -4
- package/dist/solid/forms/DatePicker.jsx +12 -7
- package/dist/solid/forms/Dropzone.jsx +17 -13
- package/dist/solid/forms/FilePickerButton.jsx +5 -4
- package/dist/solid/forms/HiddenFileInput.jsx +3 -1
- package/dist/solid/forms/Input.jsx +31 -5
- package/dist/solid/forms/Input.module.css.js +1 -0
- package/dist/solid/forms/InputMessage.jsx +87 -0
- package/dist/solid/forms/MultiSearchableSelect.jsx +8 -7
- package/dist/solid/forms/NumberInput.jsx +25 -19
- package/dist/solid/forms/Picker.jsx +8 -6
- package/dist/solid/forms/PressableSurface.jsx +17 -23
- package/dist/solid/forms/RadioGroup.jsx +4 -3
- package/dist/solid/forms/SearchInput.jsx +4 -3
- package/dist/solid/forms/SearchableSelect.jsx +4 -3
- package/dist/solid/forms/SegmentedControl.jsx +4 -3
- package/dist/solid/forms/TagInput.jsx +22 -16
- package/dist/solid/forms/ToggleButton.jsx +4 -3
- package/dist/solid/forms/date-range-picker/DateRangePicker.jsx +12 -10
- package/dist/solid/grid/Pagination.jsx +7 -3
- package/dist/solid/host/kitHost.jsx +5 -1
- package/dist/solid/layout/PageHeaderIcon.jsx +11 -9
- package/dist/solid/layout/ResizableSplitPane.jsx +4 -4
- package/dist/solid/layout/ResizeHandle.jsx +15 -4
- package/dist/solid/layout/resizeCarry.js +31 -0
- package/dist/solid/navigation/Accordion.jsx +8 -5
- package/dist/solid/navigation/Tabs.jsx +11 -8
- package/dist/solid/notifications/NotificationHost.jsx +5 -18
- package/dist/solid/notifications/NotificationItem.jsx +62 -58
- package/dist/solid/notifications/NotificationPanel.jsx +27 -9
- package/dist/solid/notifications/NotificationsCenter.jsx +72 -12
- package/dist/solid/notifications/RunningProgressCards.jsx +1 -1
- package/dist/solid/notifications/StatusBarNotificationBell.jsx +12 -6
- package/dist/solid/notifications/catalogAdapter.js +1 -0
- package/dist/solid/notifications/createNotificationPreviewRuntime.js +2 -0
- package/dist/solid/notifications/fireNotification.js +21 -16
- package/dist/solid/notifications/holdWhileShown.js +30 -0
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/nativeEngine.js +52 -1
- package/dist/solid/notifications/notificationEntryList.js +184 -0
- package/dist/solid/notifications/notificationService.js +20 -4
- package/dist/solid/notifications/toast.js +58 -7
- package/dist/solid/notifications/toastCorner.js +3 -0
- package/dist/solid/notifications/toastFilterPolicy.js +12 -0
- package/dist/solid/overlay/ConfirmDialog.jsx +21 -16
- package/dist/solid/overlay/DangerousActionDialogParts.jsx +5 -3
- package/dist/solid/overlay/Disclosure.jsx +4 -3
- package/dist/solid/overlay/Drawer.jsx +2 -1
- package/dist/solid/overlay/DropdownMenu.jsx +6 -4
- package/dist/solid/overlay/FloatingWindow.jsx +3 -3
- package/dist/solid/overlay/HoverTooltip.jsx +9 -7
- package/dist/solid/overlay/Modal.jsx +81 -34
- package/dist/solid/overlay/OverlayScrollArea.jsx +5 -3
- package/dist/solid/overlay/Tooltip.jsx +5 -4
- package/dist/solid/overlay/command-palette/CommandPalette.jsx +11 -11
- package/dist/solid/overlay/context-menu/DesktopContextMenu.jsx +73 -57
- package/dist/solid/overlay/index.js +2 -1
- package/dist/solid/overlay/menu/MenuParts.jsx +11 -8
- package/dist/solid/overlay/modalDefaults.jsx +10 -0
- package/dist/solid/overlay/modalViewport.js +17 -4
- package/dist/solid/overlay/nativeTitleHold.js +33 -0
- package/dist/solid/overlay/popover/Popover.jsx +17 -11
- package/dist/solid/overlay/tooltipDirective.js +3 -11
- package/dist/solid/overlay/tour/GuidedTour.jsx +18 -14
- package/dist/solid/tokens/index.js +1 -0
- package/dist/solid/tokens/palette/index.js +1 -0
- package/dist/solid/tokens/palette/paletteContract.js +27 -0
- package/dist/solid/tree/TreeRow.jsx +19 -16
- package/dist/solid/tree/TreeSurface.jsx +15 -14
- package/dist/solid/widgets/SettingsField.jsx +11 -10
- package/dist/style.css +4 -3
- package/dist/theme.css +3 -2
- package/dist/tokens/index.cjs +1 -1
- package/dist/tokens/index.d.cts +1 -0
- package/dist/tokens/index.d.ts +1 -0
- package/dist/tokens/index.js +29 -26
- package/dist/tokens/palette/index.cjs +1 -0
- package/dist/tokens/palette/index.d.cts +12 -0
- package/dist/tokens/palette/index.d.ts +12 -0
- package/dist/tokens/palette/index.js +31 -0
- package/dist/tokens/palette/paletteContract.d.cts +17 -0
- package/dist/tokens/palette/paletteContract.d.ts +17 -0
- package/dist/tokens/tokens.css +3 -2
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/AttributeGrid-CASILa4u.js +0 -320
- package/dist/AttributeGrid-eND8YDby.cjs +0 -1
- package/dist/Button-Bb68ymNP.cjs +0 -1
- package/dist/Button-D-T0tyGF.js +0 -305
- package/dist/CommandPalette-5FQRgPG9.cjs +0 -2
- package/dist/CommandPalette-Cj618AOz.js +0 -4017
- package/dist/CopyButton-B5gS2ft3.cjs +0 -1
- package/dist/CopyButton-g-WSiBDZ.js +0 -63
- package/dist/DateRangePicker-CJD9ADgB.js +0 -550
- package/dist/DateRangePicker-Frc0HVxp.cjs +0 -9
- package/dist/EmptyState-B9TxGJ5v.cjs +0 -1
- package/dist/EmptyState-Dph6HU74.js +0 -50
- package/dist/GuidedTour-B6q7lYhn.cjs +0 -1
- package/dist/GuidedTour-CFCvRJN4.js +0 -483
- package/dist/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/IconPicker-CIbJb1ei.cjs +0 -1
- package/dist/Input-CZruORyy.cjs +0 -1
- package/dist/Input-DkPhsdfk.js +0 -227
- package/dist/Modal-CY6ePolt.cjs +0 -1
- package/dist/Modal-NzZzHSwb.js +0 -559
- package/dist/OverlayScrollArea-BSlaXG1h.cjs +0 -1
- package/dist/OverlayScrollArea-c8Za77qs.js +0 -180
- package/dist/PageSkeleton-BPbb28-H.cjs +0 -30
- package/dist/Popover-CWrR51eG.cjs +0 -1
- package/dist/Popover-Cttb6NYT.js +0 -206
- package/dist/SearchableSelect-BvCm4enQ.js +0 -327
- package/dist/SearchableSelect-CVqdVMOC.cjs +0 -1
- package/dist/StatusBarNotificationBell-BJiORN4s.cjs +0 -50
- package/dist/Stepper-Ci5JpLbS.cjs +0 -1
- package/dist/Stepper-D9i1Xclm.js +0 -583
- package/dist/TimeSeriesChart-DOwi2lJs.js +0 -441
- package/dist/TimeSeriesChart-huvheefm.cjs +0 -1
- package/dist/ToggleButton-BFWh1_o5.cjs +0 -1
- package/dist/ToggleButton-CFM8P3JY.js +0 -2137
- package/dist/anchoredLayout-Dstwa5OH.cjs +0 -1
- package/dist/anchoredLayout-FC-qv8xm.js +0 -250
- package/dist/createDialogShellFocus-B4piXDU4.js +0 -282
- package/dist/createDialogShellFocus-CJaw9-B9.cjs +0 -1
- package/dist/createResizableSidebar-BDUlX9-G.js +0 -472
- package/dist/createResizableSidebar-BVJBU2kP.cjs +0 -1
- package/dist/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/kitHost-BfJExE1G.cjs +0 -1
- package/dist/kitHost-CVAEi9sF.js +0 -23
- package/dist/mainRealmDom-C12lr9lm.js +0 -171
- package/dist/mainRealmDom-S6teqEr4.cjs +0 -1
- package/dist/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/rowSource-D__7o4h0.js +0 -1230
- package/dist/rowSource-DiwTu_r8.cjs +0 -1
- package/dist/server/AttributeGrid-B7sb3btp.cjs +0 -1
- package/dist/server/AttributeGrid-CMi-UtWb.js +0 -281
- package/dist/server/Button-0AXWRw9Q.cjs +0 -1
- package/dist/server/Button-3yNrnn4P.js +0 -220
- package/dist/server/CommandPalette-CozogFlk.js +0 -3265
- package/dist/server/CommandPalette-DQK6N98N.cjs +0 -1
- package/dist/server/CopyButton-B6xd9Z6j.js +0 -64
- package/dist/server/CopyButton-D8IN6Vnd.cjs +0 -1
- package/dist/server/DateRangePicker-C35q8BTw.js +0 -484
- package/dist/server/DateRangePicker-KLZzyuPJ.cjs +0 -9
- package/dist/server/EmptyState-BnAHklc5.cjs +0 -1
- package/dist/server/GuidedTour-DfV0yzqh.cjs +0 -1
- package/dist/server/GuidedTour-DmLbBttx.js +0 -400
- package/dist/server/HostPortal-CgJwxt-f.cjs +0 -1
- package/dist/server/IconPicker-B1soopAp.cjs +0 -1
- package/dist/server/Input-CjvD8w18.cjs +0 -1
- package/dist/server/Input-DaEN2JJd.js +0 -127
- package/dist/server/Modal-BheFQLs1.js +0 -415
- package/dist/server/Modal-BswxV8Pn.cjs +0 -1
- package/dist/server/OverlayScrollArea-221dfKyz.js +0 -65
- package/dist/server/OverlayScrollArea-D4e9D9Nd.cjs +0 -1
- package/dist/server/PageSkeleton-DBo7hQq-.cjs +0 -30
- package/dist/server/Popover-BsxIKBbl.cjs +0 -1
- package/dist/server/Popover-Cg28aPUZ.js +0 -439
- package/dist/server/SearchableSelect-09ECcDlB.cjs +0 -1
- package/dist/server/SearchableSelect-vjhS4c-H.js +0 -205
- package/dist/server/StatusBarNotificationBell-LJHLMT9F.cjs +0 -49
- package/dist/server/Stepper-DxNrskdq.cjs +0 -1
- package/dist/server/Stepper-n5f9r-ye.js +0 -375
- package/dist/server/TimeSeriesChart-BQVXUFoj.cjs +0 -1
- package/dist/server/TimeSeriesChart-PAb95s6x.js +0 -242
- package/dist/server/ToggleButton-FywO2CCI.js +0 -1335
- package/dist/server/ToggleButton-TE3Xf2yD.cjs +0 -1
- package/dist/server/VpTrash-D49oUUJh.cjs +0 -1
- package/dist/server/createDialogShellFocus-BFo8awdj.js +0 -369
- package/dist/server/createDialogShellFocus-BiBAZOCI.cjs +0 -1
- package/dist/server/createResizableSidebar-GFgZIj-5.cjs +0 -1
- package/dist/server/dialogFocusRestore--dH59ER2.js +0 -35
- package/dist/server/dialogFocusRestore-CL-ExfAA.cjs +0 -1
- package/dist/server/index-2mQPVEDR.cjs +0 -1
- package/dist/server/kitHost-BfJExE1G.cjs +0 -1
- package/dist/server/kitHost-CVAEi9sF.js +0 -23
- package/dist/server/mainRealmDom-DPNaDWtw.js +0 -121
- package/dist/server/mainRealmDom-DwZVMPnO.cjs +0 -1
- package/dist/server/pageTourState-CrbEU7QW.cjs +0 -5
- package/dist/server/rowSource-D-wcDmFU.js +0 -1122
- package/dist/server/rowSource-DltiY0o3.cjs +0 -1
- package/dist/tooltipCoordinator-BzxEyKhA.js +0 -144
- package/dist/tooltipCoordinator-DslqMlsI.cjs +0 -1
|
@@ -19,6 +19,7 @@ import { openExternalUrl } from '../_internal/app/platform/electronBridge';
|
|
|
19
19
|
import { useKitHost } from '../host/kitHost';
|
|
20
20
|
import { realmNotificationShell } from './notificationCardServices';
|
|
21
21
|
import { RunningProgressCards, useRunningProgressCards, } from './RunningProgressCards';
|
|
22
|
+
import { followNotificationListFocus, moveNotificationEntryFocus, notificationEntryMark, notificationListMark, timelineEntryAriaLabel, } from './notificationEntryList';
|
|
22
23
|
import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
|
|
23
24
|
import { useSettingsSubscription } from '../_internal/app/settings/useSettingsSubscription';
|
|
24
25
|
import { useDesktopContextMenu } from '../context/DesktopContextMenuContext';
|
|
@@ -33,6 +34,7 @@ import { LogFilterBar } from '.';
|
|
|
33
34
|
import { OverlayScrollArea } from '../overlay/OverlayScrollArea';
|
|
34
35
|
import { compileNotificationSearchMatcher, filterNotificationTimeline, } from './notificationTimelineFilter';
|
|
35
36
|
import { toggleInSet } from './setToggleInSet';
|
|
37
|
+
import { holdWhileShown } from './holdWhileShown';
|
|
36
38
|
import styles from './NotificationPanel.module.css.js';
|
|
37
39
|
import { useHostDocument } from '../_internal/app/windows/window/HostWindowContext';
|
|
38
40
|
function formatNotificationTime(createdAt) {
|
|
@@ -67,6 +69,8 @@ const ALL_TONES = ['error', 'warning', 'info', 'success'];
|
|
|
67
69
|
const HEADER_OVERFLOW_BASE = 189;
|
|
68
70
|
const HEADER_OVERFLOW_STEP = 27;
|
|
69
71
|
export function NotificationPanel(props) {
|
|
72
|
+
const timelineProp = createMemo(() => props.notificationTimeline);
|
|
73
|
+
const timelineRecords = () => timelineProp()();
|
|
70
74
|
const hostDocument = useHostDocument();
|
|
71
75
|
const host = useKitHost();
|
|
72
76
|
const { notifications } = host;
|
|
@@ -91,7 +95,7 @@ export function NotificationPanel(props) {
|
|
|
91
95
|
const desktopMenu = useDesktopContextMenu();
|
|
92
96
|
const running = useRunningProgressCards();
|
|
93
97
|
const compiledSearch = createMemo(() => compileNotificationSearchMatcher(searchQuery(), regexMode()));
|
|
94
|
-
const filteredEntries = createMemo(() => filterNotificationTimeline(
|
|
98
|
+
const filteredEntries = createMemo(() => filterNotificationTimeline(timelineRecords(), {
|
|
95
99
|
tones: toneSelection(),
|
|
96
100
|
sources: sourceFilter(),
|
|
97
101
|
priorities: priorityFilter(),
|
|
@@ -100,7 +104,7 @@ export function NotificationPanel(props) {
|
|
|
100
104
|
}));
|
|
101
105
|
const availableSources = createMemo(() => {
|
|
102
106
|
const set = new Set();
|
|
103
|
-
for (const e of
|
|
107
|
+
for (const e of timelineRecords())
|
|
104
108
|
set.add(e.source);
|
|
105
109
|
return Array.from(set).sort();
|
|
106
110
|
});
|
|
@@ -122,6 +126,13 @@ export function NotificationPanel(props) {
|
|
|
122
126
|
}
|
|
123
127
|
return groupTimelineEntries(filteredEntries(), s.timelineGroupBy);
|
|
124
128
|
});
|
|
129
|
+
let panelEl;
|
|
130
|
+
let listEl;
|
|
131
|
+
followNotificationListFocus({
|
|
132
|
+
container: () => listEl,
|
|
133
|
+
drawn: () => [running(), displayRows(), expandedGroupKeys()],
|
|
134
|
+
fallback: (container) => container.focus(),
|
|
135
|
+
});
|
|
125
136
|
const toggleGroupExpanded = (groupId) => {
|
|
126
137
|
toggleInSet(setExpandedGroupKeys, groupId);
|
|
127
138
|
};
|
|
@@ -259,7 +270,11 @@ export function NotificationPanel(props) {
|
|
|
259
270
|
};
|
|
260
271
|
onMount(() => {
|
|
261
272
|
const unsubscribe = timeline.subscribeUnread(setUnreadCount);
|
|
262
|
-
|
|
273
|
+
const stopShown = holdWhileShown(panelEl, () => notifications.stack.registerShownCenter());
|
|
274
|
+
onCleanup(() => {
|
|
275
|
+
unsubscribe();
|
|
276
|
+
stopShown();
|
|
277
|
+
});
|
|
263
278
|
});
|
|
264
279
|
const ackUnread = () => {
|
|
265
280
|
if (unreadCount() > 0)
|
|
@@ -403,7 +418,7 @@ export function NotificationPanel(props) {
|
|
|
403
418
|
};
|
|
404
419
|
const bulkPinSelected = (pin) => {
|
|
405
420
|
const sel = selectedIds();
|
|
406
|
-
const entries =
|
|
421
|
+
const entries = timelineRecords().filter((e) => sel.has(e.id));
|
|
407
422
|
for (const e of entries) {
|
|
408
423
|
if ((e.pinned ?? false) !== pin)
|
|
409
424
|
timeline.togglePin(e.id);
|
|
@@ -546,7 +561,7 @@ export function NotificationPanel(props) {
|
|
|
546
561
|
id: 'clear',
|
|
547
562
|
icon: () => <VpTrash class={styles.notificationActionIcon}/>,
|
|
548
563
|
label: () => t('Clear all notifications'),
|
|
549
|
-
disabled: () =>
|
|
564
|
+
disabled: () => timelineRecords().length === 0,
|
|
550
565
|
onSelect: clearAllNotifications,
|
|
551
566
|
},
|
|
552
567
|
]);
|
|
@@ -575,7 +590,7 @@ export function NotificationPanel(props) {
|
|
|
575
590
|
onSelect: action.onSelect,
|
|
576
591
|
})));
|
|
577
592
|
};
|
|
578
|
-
return (<aside class={styles.rightRail} tabIndex={-1} onClick={ackUnread} onKeyDown={ackUnread}>
|
|
593
|
+
return (<aside ref={panelEl} class={styles.rightRail} tabIndex={-1} onClick={ackUnread} onKeyDown={ackUnread}>
|
|
579
594
|
<section class={styles.notificationPanel} data-tour-target="notifications-panel">
|
|
580
595
|
<Panel.Header class={styles.notificationPanelHeader} ref={(el) => (headerEl = el)}>
|
|
581
596
|
<PressableSurface type="button" class={styles.notificationPanelTitleWrap} data-tour-target="notifications-settings" onClick={openTitleMenu} ref={(el) => el.setAttribute('data-desktop-menu-depth', 'trigger')} title={t('Notification menu')} aria-haspopup="menu">
|
|
@@ -640,7 +655,10 @@ export function NotificationPanel(props) {
|
|
|
640
655
|
</Button>
|
|
641
656
|
</Show>
|
|
642
657
|
</LogFilterBar>
|
|
643
|
-
|
|
658
|
+
|
|
659
|
+
<OverlayScrollArea viewportClass={styles.notificationTimeline} viewportRef={(element) => {
|
|
660
|
+
listEl = element;
|
|
661
|
+
}} {...notificationListMark} role="group" tabIndex={0} aria-label={t('Notifications')} data-tour-target="notifications-timeline" onKeyDown={(event) => moveNotificationEntryFocus(event, event.currentTarget)}>
|
|
644
662
|
<RunningProgressCards items={running()}/>
|
|
645
663
|
<Show when={filteredEntries().length > 0} fallback={<Show when={hasActiveFilter() || running().length === 0}>
|
|
646
664
|
<p class={styles.notificationEmpty}>
|
|
@@ -687,9 +705,9 @@ export function NotificationPanel(props) {
|
|
|
687
705
|
</aside>);
|
|
688
706
|
function renderEntryRow(entry) {
|
|
689
707
|
const vendorMatch = () => vendorMatchOf(entry);
|
|
690
|
-
return (<article class={`${styles.notificationItem} ${selectMode() && selectedIds().has(entry.id)
|
|
708
|
+
return (<article {...notificationEntryMark} class={`${styles.notificationItem} ${selectMode() && selectedIds().has(entry.id)
|
|
691
709
|
? (styles.notificationItemSelected ?? '')
|
|
692
|
-
: ''}`} onContextMenu={(event) => {
|
|
710
|
+
: ''}`} tabIndex={-1} aria-label={timelineEntryAriaLabel(entry)} onContextMenu={(event) => {
|
|
693
711
|
showEntryContextMenu(event, entry);
|
|
694
712
|
}}>
|
|
695
713
|
<div class={styles.notificationItemTop}>
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { For, Show, createMemo, createSignal, onCleanup, onMount, } from 'solid-js';
|
|
1
|
+
import { For, Show, createEffect, createMemo, createSignal, on, onCleanup, onMount, } from 'solid-js';
|
|
2
2
|
import { Dynamic } from 'solid-js/web';
|
|
3
3
|
import { VpInfo, VpWarning, VpError, VpPass, VpTreeClose, VpGear, } from '@vokril/icons';
|
|
4
|
-
import { VpBell, VpBellOff, VpChevronDown, VpTrash } from '@vokril/icons';
|
|
4
|
+
import { VpBell, VpBellOff, VpChevronDown, VpChevronUp, VpTrash, } from '@vokril/icons';
|
|
5
|
+
import { toastCornerEdge } from './toastCorner';
|
|
5
6
|
import { notificationSettingsUpdateFailed } from './notifications.notifications';
|
|
6
7
|
import { entryVendorMatch, } from './notificationTimeline';
|
|
7
8
|
import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
|
|
@@ -15,6 +16,8 @@ import { realmNotificationShell } from './notificationCardServices';
|
|
|
15
16
|
import { RunningProgressCards, useRunningProgressCards, } from './RunningProgressCards';
|
|
16
17
|
import { useDesktopContextMenu } from '../context/DesktopContextMenuContext';
|
|
17
18
|
import { OverlayScrollArea } from '../overlay/OverlayScrollArea';
|
|
19
|
+
import { restoreFocusTo } from '../overlay/dialogFocusRestore';
|
|
20
|
+
import { focusFirstNotificationEntry, followNotificationListFocus, moveNotificationEntryFocus, notificationEntryMark, timelineEntryAriaLabel, } from './notificationEntryList';
|
|
18
21
|
import { Button } from '../forms/Button';
|
|
19
22
|
import { EmptyState } from '../feedback/EmptyState';
|
|
20
23
|
import { t } from '../i18n/i18n';
|
|
@@ -46,31 +49,83 @@ export function NotificationsCenter(props) {
|
|
|
46
49
|
const host = useKitHost();
|
|
47
50
|
const { notifications } = host;
|
|
48
51
|
const shell = realmNotificationShell(host);
|
|
52
|
+
const corner = () => props.corner ?? 'bottom-right';
|
|
49
53
|
const log = host.log.withTag('NotificationsCenter');
|
|
50
54
|
const openExternal = (url) => openExternalUrl(host.desktop, log, url);
|
|
51
55
|
const [entries, setEntries] = createSignal([]);
|
|
52
|
-
const [
|
|
56
|
+
const [dndSetting, setDndSetting] = createSignal(notificationSettings.get().doNotDisturb);
|
|
57
|
+
const [filtered, setFiltered] = createSignal(notifications.getFilter() !== 'off');
|
|
53
58
|
const desktopMenu = useDesktopContextMenu();
|
|
54
59
|
const running = useRunningProgressCards();
|
|
55
60
|
onMount(() => {
|
|
56
61
|
const unsubscribe = notifications.timeline.subscribe(setEntries);
|
|
57
|
-
|
|
62
|
+
const filterChange = notifications.onDidChangeFilter((filter) => setFiltered(filter !== 'off'));
|
|
63
|
+
const shown = notifications.stack.registerShownCenter();
|
|
64
|
+
onCleanup(() => {
|
|
65
|
+
unsubscribe();
|
|
66
|
+
filterChange.dispose();
|
|
67
|
+
shown.dispose();
|
|
68
|
+
});
|
|
58
69
|
});
|
|
59
70
|
useSettingsSubscription(notificationSettings, () => {
|
|
60
|
-
|
|
71
|
+
setDndSetting(notificationSettings.get().doNotDisturb);
|
|
61
72
|
});
|
|
73
|
+
const dnd = () => dndSetting() || filtered();
|
|
74
|
+
const silenced = createMemo(dnd);
|
|
75
|
+
createEffect(on(silenced, (isSilenced, wasSilenced) => {
|
|
76
|
+
if (wasSilenced === false && isSilenced)
|
|
77
|
+
props.onHide();
|
|
78
|
+
}));
|
|
62
79
|
const ordered = createMemo(() => [...entries()].sort((a, b) => b.createdAt - a.createdAt));
|
|
80
|
+
let centerEl;
|
|
81
|
+
const listFocus = followNotificationListFocus({
|
|
82
|
+
container: () => centerEl,
|
|
83
|
+
drawn: () => [running(), ordered()],
|
|
84
|
+
fallback: (container) => container.focus({ preventScroll: true }),
|
|
85
|
+
});
|
|
86
|
+
onMount(() => {
|
|
87
|
+
const doc = centerEl.ownerDocument;
|
|
88
|
+
const outside = doc.activeElement;
|
|
89
|
+
const returnTo = outside === doc.body ? null : outside;
|
|
90
|
+
let shown = true;
|
|
91
|
+
queueMicrotask(() => {
|
|
92
|
+
if (!shown)
|
|
93
|
+
return;
|
|
94
|
+
if (!focusFirstNotificationEntry(centerEl, { preventScroll: true })) {
|
|
95
|
+
centerEl.focus({ preventScroll: true });
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
onCleanup(() => {
|
|
99
|
+
shown = false;
|
|
100
|
+
if (listFocus.holdsFocus())
|
|
101
|
+
restoreFocusTo(returnTo);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
const entryCount = () => running().length + ordered().length;
|
|
105
|
+
createEffect(on(entryCount, (count, before) => {
|
|
106
|
+
if (before !== undefined && before > 0 && count === 0)
|
|
107
|
+
props.onHide();
|
|
108
|
+
}));
|
|
63
109
|
const severityIcon = (tone) => SEVERITY_ICON[tone];
|
|
64
|
-
const
|
|
110
|
+
const writeDoNotDisturb = (doNotDisturb) => {
|
|
65
111
|
const current = notificationSettings.get();
|
|
66
112
|
void notificationSettings
|
|
67
|
-
.update({ ...current, doNotDisturb
|
|
113
|
+
.update({ ...current, doNotDisturb })
|
|
68
114
|
.catch((error) => {
|
|
69
115
|
notifications.notify(notificationSettingsUpdateFailed, {
|
|
70
116
|
cause: error,
|
|
71
117
|
});
|
|
72
118
|
});
|
|
73
119
|
};
|
|
120
|
+
const toggleDoNotDisturb = () => {
|
|
121
|
+
if (!dnd()) {
|
|
122
|
+
writeDoNotDisturb(true);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
notifications.setFilter('off');
|
|
126
|
+
if (dndSetting())
|
|
127
|
+
writeDoNotDisturb(false);
|
|
128
|
+
};
|
|
74
129
|
const openNotificationSettings = () => host.openNotificationSettings();
|
|
75
130
|
const buildEntryActions = (entry) => {
|
|
76
131
|
const list = [
|
|
@@ -137,7 +192,10 @@ export function NotificationsCenter(props) {
|
|
|
137
192
|
},
|
|
138
193
|
]);
|
|
139
194
|
};
|
|
140
|
-
return (<section
|
|
195
|
+
return (<section ref={(element) => {
|
|
196
|
+
centerEl = element;
|
|
197
|
+
props.ref?.(element);
|
|
198
|
+
}} class={styles.center} tabIndex={-1} aria-label={t('Notifications')} data-notification-center>
|
|
141
199
|
<Panel.Header class={styles.header}>
|
|
142
200
|
<h3 class={styles.title}>
|
|
143
201
|
{t('Notifications')}
|
|
@@ -156,18 +214,20 @@ export function NotificationsCenter(props) {
|
|
|
156
214
|
<VpGear class={styles.actionIcon}/>
|
|
157
215
|
</Button>
|
|
158
216
|
<Button variant="ghost" size="sm" iconOnly onClick={props.onHide} title={t('Hide notifications')} aria-label={t('Hide notifications')}>
|
|
159
|
-
<VpChevronDown class={styles.actionIcon}/>
|
|
217
|
+
<Show when={toastCornerEdge(corner()) === 'top'} fallback={<VpChevronDown class={styles.actionIcon}/>}>
|
|
218
|
+
<VpChevronUp class={styles.actionIcon}/>
|
|
219
|
+
</Show>
|
|
160
220
|
</Button>
|
|
161
221
|
</div>
|
|
162
222
|
</Panel.Header>
|
|
163
223
|
<Show when={running().length > 0 || ordered().length > 0} fallback={<EmptyState size="sm" title={t('No new notifications')}/>}>
|
|
164
|
-
<OverlayScrollArea viewportClass={styles.list}>
|
|
165
|
-
<RunningProgressCards items={running()}/>
|
|
224
|
+
<OverlayScrollArea viewportClass={styles.list} onKeyDown={(event) => moveNotificationEntryFocus(event, event.currentTarget)}>
|
|
225
|
+
<RunningProgressCards items={running()} corner={corner()}/>
|
|
166
226
|
<For each={ordered()}>
|
|
167
227
|
{(entry) => {
|
|
168
228
|
const source = resolveNotificationSource(entry.source);
|
|
169
229
|
const actions = buildEntryActions(entry);
|
|
170
|
-
return (<article class={styles.card} onContextMenu={(event) => {
|
|
230
|
+
return (<article {...notificationEntryMark} class={styles.card} tabIndex={-1} aria-label={timelineEntryAriaLabel(entry)} onContextMenu={(event) => {
|
|
171
231
|
event.preventDefault();
|
|
172
232
|
showCardMenu(event.clientX, event.clientY, entry);
|
|
173
233
|
}}>
|
|
@@ -24,6 +24,6 @@ export function RunningProgressCards(props) {
|
|
|
24
24
|
const controller = realmCardController(host, () => notificationSettings.get());
|
|
25
25
|
const shell = realmNotificationShell(host);
|
|
26
26
|
return (<For each={props.items}>
|
|
27
|
-
{(item) => (<NotificationItem item={item} controller={controller} shell={shell} inCenter/>)}
|
|
27
|
+
{(item) => (<NotificationItem item={item} controller={controller} shell={shell} inCenter corner={props.corner}/>)}
|
|
28
28
|
</For>);
|
|
29
29
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createEffect, createSignal, on, onCleanup, onMount } from 'solid-js';
|
|
1
|
+
import { Show, createEffect, createMemo, createSignal, on, onCleanup, onMount } from 'solid-js';
|
|
2
2
|
import { PressableSurface } from '../forms/PressableSurface';
|
|
3
3
|
import { VpBell, VpBellOff } from '@vokril/icons';
|
|
4
4
|
import { Popover } from '../overlay/popover/Popover';
|
|
@@ -10,28 +10,34 @@ import { hiddenRunningProgress } from './nativeEngine';
|
|
|
10
10
|
import { t } from '../i18n/i18n';
|
|
11
11
|
import styles from './StatusBarNotificationBell.module.css.js';
|
|
12
12
|
export function StatusBarNotificationBell(props) {
|
|
13
|
-
const
|
|
13
|
+
const openProp = createMemo(() => props.open);
|
|
14
|
+
const notifications = useKitHost().notifications;
|
|
15
|
+
const { timeline, stack } = notifications;
|
|
14
16
|
const [ownOpen, setOwnOpen] = createSignal(false);
|
|
15
|
-
const open = () =>
|
|
17
|
+
const open = () => openProp() ?? ownOpen();
|
|
16
18
|
const [unread, setUnread] = createSignal(0);
|
|
17
|
-
const [
|
|
19
|
+
const [dndSetting, setDndSetting] = createSignal(notificationSettings.get().doNotDisturb);
|
|
20
|
+
const [filtered, setFiltered] = createSignal(notifications.getFilter() !== 'off');
|
|
18
21
|
const [outOfSight, setOutOfSight] = createSignal(0);
|
|
19
22
|
let buttonRef;
|
|
20
23
|
onMount(() => {
|
|
21
24
|
const unsubscribeUnread = timeline.subscribeUnread(setUnread);
|
|
22
25
|
const unsubscribeStack = stack.subscribe((items) => setOutOfSight(hiddenRunningProgress(items).length));
|
|
26
|
+
const filterChange = notifications.onDidChangeFilter((filter) => setFiltered(filter !== 'off'));
|
|
23
27
|
onCleanup(() => {
|
|
24
28
|
unsubscribeUnread();
|
|
25
29
|
unsubscribeStack();
|
|
30
|
+
filterChange.dispose();
|
|
26
31
|
});
|
|
27
32
|
});
|
|
28
33
|
useSettingsSubscription(notificationSettings, () => {
|
|
29
|
-
|
|
34
|
+
setDndSetting(notificationSettings.get().doNotDisturb);
|
|
30
35
|
});
|
|
36
|
+
const dnd = () => dndSetting() || filtered();
|
|
31
37
|
const setOpen = (next) => {
|
|
32
38
|
if (next === open())
|
|
33
39
|
return;
|
|
34
|
-
if (
|
|
40
|
+
if (openProp() === undefined)
|
|
35
41
|
setOwnOpen(next);
|
|
36
42
|
props.onOpenChange?.(next);
|
|
37
43
|
};
|
|
@@ -20,6 +20,7 @@ function toToastOptions(definition, payload) {
|
|
|
20
20
|
...(payload.dontShowAgainKey
|
|
21
21
|
? { dontShowAgainKey: payload.dontShowAgainKey }
|
|
22
22
|
: {}),
|
|
23
|
+
...(payload.remindKey ? { remindKey: payload.remindKey } : {}),
|
|
23
24
|
...(payload.defaultRoute ? { defaultRoute: payload.defaultRoute } : {}),
|
|
24
25
|
...(payload.icon ? { icon: payload.icon } : {}),
|
|
25
26
|
...(payload.markdown !== undefined ? { markdown: payload.markdown } : {}),
|
|
@@ -37,6 +37,8 @@ function progressHandle(handle, payload) {
|
|
|
37
37
|
}),
|
|
38
38
|
state: () => handle.state(),
|
|
39
39
|
onDidChangeState: handle.onDidChangeState,
|
|
40
|
+
visible: () => handle.visible(),
|
|
41
|
+
onDidChangeVisibility: handle.onDidChangeVisibility,
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
44
|
const inert = () => undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { scrubSecrets } from '../_internal/base/scrubSecrets';
|
|
2
2
|
import { notificationSettings } from '../_internal/app/settings/descriptors/notification';
|
|
3
3
|
import { isInQuietHours } from './quietHours';
|
|
4
|
-
import { decideFilter as decideToastFilter, deriveImplicitRemindKey, } from './toastFilterPolicy';
|
|
4
|
+
import { cardRemindKey, decideFilter as decideToastFilter, deriveImplicitRemindKey, filteredPriority, } from './toastFilterPolicy';
|
|
5
5
|
import { shouldFireOsNative } from './osNativePolicy';
|
|
6
6
|
import { resolveDefaultRoute } from './defaultRoutes';
|
|
7
7
|
import { isKeyDismissed, isKeyRemindSuppressed, isSourceMuted, } from './notificationSuppressions';
|
|
@@ -9,34 +9,38 @@ import { isSpamDropHandle, } from './nativeEngine';
|
|
|
9
9
|
function inQuietHoursNow() {
|
|
10
10
|
return isInQuietHours(notificationSettings.get(), new Date());
|
|
11
11
|
}
|
|
12
|
-
function choiceGates(source, title,
|
|
12
|
+
function choiceGates(source, title, keys) {
|
|
13
|
+
const { dontShowAgainKey, remindKey } = keys;
|
|
13
14
|
return {
|
|
14
15
|
dismissed: dontShowAgainKey !== undefined && isKeyDismissed(dontShowAgainKey),
|
|
15
|
-
remindSuppressed:
|
|
16
|
-
isKeyRemindSuppressed(
|
|
17
|
-
|
|
16
|
+
remindSuppressed: remindKey !== undefined
|
|
17
|
+
? isKeyRemindSuppressed(remindKey)
|
|
18
|
+
: (dontShowAgainKey !== undefined &&
|
|
19
|
+
isKeyRemindSuppressed(dontShowAgainKey)) ||
|
|
20
|
+
isKeyRemindSuppressed(deriveImplicitRemindKey(source, title)),
|
|
18
21
|
};
|
|
19
22
|
}
|
|
20
|
-
export function decideFilter(
|
|
21
|
-
return decideToastFilter({
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
export function decideFilter(issue) {
|
|
24
|
+
return decideToastFilter({
|
|
25
|
+
priority: filteredPriority(issue.priority, issue.severity, issue.filter),
|
|
26
|
+
recordTimeline: issue.recordTimeline,
|
|
27
|
+
}, notificationSettings.get(), {
|
|
28
|
+
...choiceGates(issue.source, issue.title, issue),
|
|
29
|
+
sourceMuted: isSourceMuted(issue.source),
|
|
24
30
|
inQuietHours: inQuietHoursNow(),
|
|
25
31
|
});
|
|
26
32
|
}
|
|
27
|
-
export function turnedDownOnCard(source, title,
|
|
28
|
-
const gates = choiceGates(source, title,
|
|
33
|
+
export function turnedDownOnCard(source, title, keys) {
|
|
34
|
+
const gates = choiceGates(source, title, keys);
|
|
29
35
|
return gates.dismissed || gates.remindSuppressed;
|
|
30
36
|
}
|
|
31
37
|
export function turnedDownCard(item) {
|
|
32
38
|
const dontShowAgainKey = item.neverShowAgainKey;
|
|
33
39
|
return ((dontShowAgainKey !== undefined && isKeyDismissed(dontShowAgainKey)) ||
|
|
34
|
-
isKeyRemindSuppressed(
|
|
35
|
-
item.remindKey ??
|
|
36
|
-
deriveImplicitRemindKey(item.source ?? 'general', item.title)));
|
|
40
|
+
isKeyRemindSuppressed(cardRemindKey(item)));
|
|
37
41
|
}
|
|
38
|
-
export function silencedBySettings(source, priority) {
|
|
39
|
-
return !decideToastFilter({ priority, recordTimeline: undefined }, notificationSettings.get(), {
|
|
42
|
+
export function silencedBySettings(source, severity, priority, filter) {
|
|
43
|
+
return !decideToastFilter({ priority: filteredPriority(priority, severity, filter), recordTimeline: undefined }, notificationSettings.get(), {
|
|
40
44
|
dismissed: false,
|
|
41
45
|
remindSuppressed: false,
|
|
42
46
|
sourceMuted: isSourceMuted(source),
|
|
@@ -75,6 +79,7 @@ export function cardPresentation(options) {
|
|
|
75
79
|
...(options.dontShowAgainKey
|
|
76
80
|
? { neverShowAgainKey: options.dontShowAgainKey }
|
|
77
81
|
: {}),
|
|
82
|
+
...(options.remindKey ? { remindKey: options.remindKey } : {}),
|
|
78
83
|
...(options.icon ? { icon: options.icon } : {}),
|
|
79
84
|
...(options.announce ? { announce: options.announce } : {}),
|
|
80
85
|
...(resolvedRoute ? { defaultRoute: resolvedRoute } : {}),
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export function hasShownBox(element) {
|
|
2
|
+
if (!element.isConnected)
|
|
3
|
+
return false;
|
|
4
|
+
const box = element.getBoundingClientRect();
|
|
5
|
+
return box.width > 0 && box.height > 0;
|
|
6
|
+
}
|
|
7
|
+
export function holdWhileShown(element, hold) {
|
|
8
|
+
let held;
|
|
9
|
+
const sync = () => {
|
|
10
|
+
const shown = hasShownBox(element);
|
|
11
|
+
if (shown && held === undefined) {
|
|
12
|
+
held = hold();
|
|
13
|
+
}
|
|
14
|
+
else if (!shown && held !== undefined) {
|
|
15
|
+
const release = held;
|
|
16
|
+
held = undefined;
|
|
17
|
+
release.dispose();
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const Observer = element.ownerDocument.defaultView?.ResizeObserver;
|
|
21
|
+
const observer = Observer === undefined ? undefined : new Observer(sync);
|
|
22
|
+
observer?.observe(element);
|
|
23
|
+
sync();
|
|
24
|
+
return () => {
|
|
25
|
+
observer?.disconnect();
|
|
26
|
+
const release = held;
|
|
27
|
+
held = undefined;
|
|
28
|
+
release?.dispose();
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -27,4 +27,5 @@ export { registerFenceAliases } from '../_internal/app/markdown/inlineMarkdown';
|
|
|
27
27
|
export { NotificationItem, } from './NotificationItem';
|
|
28
28
|
export { NotificationPanel } from './NotificationPanel';
|
|
29
29
|
export { NotificationsCenter } from './NotificationsCenter';
|
|
30
|
+
export { focusFirstNotificationEntry } from './notificationEntryList';
|
|
30
31
|
export { StatusBarNotificationBell, } from './StatusBarNotificationBell';
|
|
@@ -127,6 +127,28 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
reevaluateSchedules();
|
|
130
|
+
reportVisibility();
|
|
131
|
+
}
|
|
132
|
+
let shownCenters = 0;
|
|
133
|
+
function isVisible(item) {
|
|
134
|
+
if (shownCenters > 0)
|
|
135
|
+
return true;
|
|
136
|
+
if (item.priority === 'acknowledgment-required') {
|
|
137
|
+
return snapshot().find((card) => card.priority === 'acknowledgment-required')?.id === item.id;
|
|
138
|
+
}
|
|
139
|
+
return item.outOfSightSince === undefined;
|
|
140
|
+
}
|
|
141
|
+
function reportVisibility() {
|
|
142
|
+
for (const [id, run] of runs) {
|
|
143
|
+
const item = items.get(id);
|
|
144
|
+
if (item === undefined)
|
|
145
|
+
continue;
|
|
146
|
+
const visible = isVisible(item);
|
|
147
|
+
if (run.visible === visible)
|
|
148
|
+
continue;
|
|
149
|
+
run.visible = visible;
|
|
150
|
+
run.visibility.fire(visible);
|
|
151
|
+
}
|
|
130
152
|
}
|
|
131
153
|
function isSticky(item) {
|
|
132
154
|
if (isNotificationSticky(item, getSettings()))
|
|
@@ -149,7 +171,12 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
149
171
|
const current = runs.get(id);
|
|
150
172
|
if (current)
|
|
151
173
|
return current;
|
|
152
|
-
const run = {
|
|
174
|
+
const run = {
|
|
175
|
+
state: 'open',
|
|
176
|
+
changed: new Emitter(),
|
|
177
|
+
visible: false,
|
|
178
|
+
visibility: new Emitter(),
|
|
179
|
+
};
|
|
153
180
|
runs.set(id, run);
|
|
154
181
|
return run;
|
|
155
182
|
}
|
|
@@ -163,8 +190,13 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
163
190
|
function announceEnd(run) {
|
|
164
191
|
if (!run)
|
|
165
192
|
return;
|
|
193
|
+
if (run.visible) {
|
|
194
|
+
run.visible = false;
|
|
195
|
+
run.visibility.fire(false);
|
|
196
|
+
}
|
|
166
197
|
run.changed.fire(run.state);
|
|
167
198
|
run.changed.dispose();
|
|
199
|
+
run.visibility.dispose();
|
|
168
200
|
}
|
|
169
201
|
function closeCard(id, state) {
|
|
170
202
|
cancelHide(id);
|
|
@@ -275,6 +307,8 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
275
307
|
close: () => undefined,
|
|
276
308
|
state: () => 'suppressed',
|
|
277
309
|
onDidChangeState: () => NO_SUBSCRIPTION,
|
|
310
|
+
visible: () => false,
|
|
311
|
+
onDidChangeVisibility: () => NO_SUBSCRIPTION,
|
|
278
312
|
};
|
|
279
313
|
}
|
|
280
314
|
const id = dedupId ?? nextId();
|
|
@@ -312,6 +346,8 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
312
346
|
},
|
|
313
347
|
state: () => run.state,
|
|
314
348
|
onDidChangeState: (listener, thisArgs) => run.state === 'open' ? run.changed.event(listener, thisArgs) : NO_SUBSCRIPTION,
|
|
349
|
+
visible: () => run.visible,
|
|
350
|
+
onDidChangeVisibility: (listener, thisArgs) => run.state === 'open' ? run.visibility.event(listener, thisArgs) : NO_SUBSCRIPTION,
|
|
315
351
|
};
|
|
316
352
|
}
|
|
317
353
|
function subscribeNotifications(listener) {
|
|
@@ -394,6 +430,20 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
394
430
|
if (recordSight())
|
|
395
431
|
emit();
|
|
396
432
|
}
|
|
433
|
+
function registerShownCenter() {
|
|
434
|
+
shownCenters += 1;
|
|
435
|
+
reportVisibility();
|
|
436
|
+
let shown = true;
|
|
437
|
+
return {
|
|
438
|
+
dispose: () => {
|
|
439
|
+
if (!shown)
|
|
440
|
+
return;
|
|
441
|
+
shown = false;
|
|
442
|
+
shownCenters -= 1;
|
|
443
|
+
reportVisibility();
|
|
444
|
+
},
|
|
445
|
+
};
|
|
446
|
+
}
|
|
397
447
|
function dispose() {
|
|
398
448
|
for (const id of timers.keys())
|
|
399
449
|
cancelHide(id);
|
|
@@ -415,6 +465,7 @@ export function createNativeNotificationEngine(dependencies) {
|
|
|
415
465
|
suppress: suppressNotifications,
|
|
416
466
|
reject: rejectNotification,
|
|
417
467
|
refresh,
|
|
468
|
+
registerShownCenter,
|
|
418
469
|
dispose,
|
|
419
470
|
};
|
|
420
471
|
}
|