@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
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { createEffect, on, onCleanup, onMount } from 'solid-js';
|
|
2
|
+
import { namedKeyOf } from '../_internal/base/keys';
|
|
3
|
+
import { t } from '../i18n/i18n';
|
|
4
|
+
import { NOTIFICATION_SEVERITY_LABELS } from './notificationSeverityLabels';
|
|
5
|
+
import { resolveNotificationSource } from './notificationSources';
|
|
6
|
+
const ENTRY_ATTRIBUTE = 'data-notification-entry';
|
|
7
|
+
const LIST_ATTRIBUTE = 'data-notification-list';
|
|
8
|
+
export const notificationEntryMark = { [ENTRY_ATTRIBUTE]: '' };
|
|
9
|
+
export const notificationListMark = { [LIST_ATTRIBUTE]: '' };
|
|
10
|
+
const ENTRY_SELECTOR = `[${ENTRY_ATTRIBUTE}]`;
|
|
11
|
+
const LIST_SELECTOR = `[${LIST_ATTRIBUTE}]`;
|
|
12
|
+
function entriesUnder(root) {
|
|
13
|
+
return Array.from(root.querySelectorAll(ENTRY_SELECTOR));
|
|
14
|
+
}
|
|
15
|
+
function listUnder(root) {
|
|
16
|
+
const self = root;
|
|
17
|
+
if (typeof self.matches === 'function' && self.matches(LIST_SELECTOR))
|
|
18
|
+
return root;
|
|
19
|
+
return root.querySelector(LIST_SELECTOR) ?? undefined;
|
|
20
|
+
}
|
|
21
|
+
export function focusFirstNotificationEntry(root, options) {
|
|
22
|
+
const target = entriesUnder(root)[0] ?? listUnder(root);
|
|
23
|
+
if (target === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
target.focus(options);
|
|
26
|
+
return target.ownerDocument.activeElement === target;
|
|
27
|
+
}
|
|
28
|
+
export function notificationListFocusStep(event, current, count, paging) {
|
|
29
|
+
if (count === 0)
|
|
30
|
+
return null;
|
|
31
|
+
switch (namedKeyOf(event)) {
|
|
32
|
+
case 'ArrowDown':
|
|
33
|
+
return current === null ? 0 : Math.min(count - 1, current + 1);
|
|
34
|
+
case 'ArrowUp':
|
|
35
|
+
return current === null ? count - 1 : Math.max(0, current - 1);
|
|
36
|
+
case 'Home':
|
|
37
|
+
return 0;
|
|
38
|
+
case 'End':
|
|
39
|
+
return count - 1;
|
|
40
|
+
case 'PageUp':
|
|
41
|
+
return paging === 'ends' ? 0 : paging(current, -1);
|
|
42
|
+
case 'PageDown':
|
|
43
|
+
return paging === 'ends' ? count - 1 : paging(current, 1);
|
|
44
|
+
default:
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function lastEndingBy(page, edge) {
|
|
49
|
+
let found = 0;
|
|
50
|
+
page.extents.forEach((extent, index) => {
|
|
51
|
+
if (extent.bottom <= edge)
|
|
52
|
+
found = index;
|
|
53
|
+
});
|
|
54
|
+
return found;
|
|
55
|
+
}
|
|
56
|
+
function firstStartingFrom(page, edge) {
|
|
57
|
+
if (edge <= 0)
|
|
58
|
+
return 0;
|
|
59
|
+
const found = page.extents.findIndex((extent) => extent.top >= edge);
|
|
60
|
+
return found < 0 ? page.extents.length - 1 : found;
|
|
61
|
+
}
|
|
62
|
+
export function notificationListPageStep(page, current, direction) {
|
|
63
|
+
const final = page.extents.length - 1;
|
|
64
|
+
if (direction === 1) {
|
|
65
|
+
const last = lastEndingBy(page, page.scrollTop + page.height);
|
|
66
|
+
if (current === null || last > current)
|
|
67
|
+
return last;
|
|
68
|
+
const scrolled = Math.min(page.maxScrollTop, page.scrollTop + page.height);
|
|
69
|
+
if (scrolled <= page.scrollTop || current >= final)
|
|
70
|
+
return current;
|
|
71
|
+
return Math.min(final, Math.max(current + 1, lastEndingBy(page, scrolled + page.height)));
|
|
72
|
+
}
|
|
73
|
+
const first = firstStartingFrom(page, page.scrollTop);
|
|
74
|
+
if (current === null || first < current)
|
|
75
|
+
return first;
|
|
76
|
+
const scrolled = Math.max(0, page.scrollTop - page.height);
|
|
77
|
+
if (scrolled >= page.scrollTop || current <= 0)
|
|
78
|
+
return current;
|
|
79
|
+
return Math.max(0, Math.min(current - 1, firstStartingFrom(page, scrolled)));
|
|
80
|
+
}
|
|
81
|
+
function measureNotificationListPage(viewport, entries) {
|
|
82
|
+
const origin = viewport.getBoundingClientRect().top + viewport.clientTop - viewport.scrollTop;
|
|
83
|
+
return {
|
|
84
|
+
extents: entries.map((entry) => {
|
|
85
|
+
const rect = entry.getBoundingClientRect();
|
|
86
|
+
return { top: rect.top - origin, bottom: rect.bottom - origin };
|
|
87
|
+
}),
|
|
88
|
+
scrollTop: viewport.scrollTop,
|
|
89
|
+
height: viewport.clientHeight,
|
|
90
|
+
maxScrollTop: Math.max(0, viewport.scrollHeight - viewport.clientHeight),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function isEditable(element) {
|
|
94
|
+
const tag = element.tagName;
|
|
95
|
+
return tag === 'INPUT' || tag === 'TEXTAREA' || element.isContentEditable;
|
|
96
|
+
}
|
|
97
|
+
export function moveNotificationEntryFocus(event, viewport) {
|
|
98
|
+
if (event.defaultPrevented)
|
|
99
|
+
return;
|
|
100
|
+
const target = event.target;
|
|
101
|
+
if (target === null || typeof target.closest !== 'function')
|
|
102
|
+
return;
|
|
103
|
+
if (isEditable(target))
|
|
104
|
+
return;
|
|
105
|
+
const entries = entriesUnder(viewport);
|
|
106
|
+
const entry = target.closest(ENTRY_SELECTOR);
|
|
107
|
+
let current;
|
|
108
|
+
if (entry !== null) {
|
|
109
|
+
current = entries.indexOf(entry);
|
|
110
|
+
if (current < 0)
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
else if (target === viewport && target.matches(LIST_SELECTOR)) {
|
|
114
|
+
current = null;
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
const next = notificationListFocusStep(event, current, entries.length, (from, direction) => notificationListPageStep(measureNotificationListPage(viewport, entries), from, direction));
|
|
120
|
+
if (next === null)
|
|
121
|
+
return;
|
|
122
|
+
event.preventDefault();
|
|
123
|
+
event.stopPropagation();
|
|
124
|
+
const destination = entries[next];
|
|
125
|
+
if (destination === undefined)
|
|
126
|
+
return;
|
|
127
|
+
destination.focus({ preventScroll: true });
|
|
128
|
+
destination.scrollIntoView({ block: 'nearest' });
|
|
129
|
+
}
|
|
130
|
+
export function followNotificationListFocus(options) {
|
|
131
|
+
let inside = false;
|
|
132
|
+
let lastEntry = null;
|
|
133
|
+
let lastIndex = -1;
|
|
134
|
+
const remember = (container, element) => {
|
|
135
|
+
lastEntry = element.closest(ENTRY_SELECTOR);
|
|
136
|
+
lastIndex = lastEntry === null ? -1 : entriesUnder(container).indexOf(lastEntry);
|
|
137
|
+
};
|
|
138
|
+
onMount(() => {
|
|
139
|
+
const container = options.container();
|
|
140
|
+
if (container === undefined)
|
|
141
|
+
return;
|
|
142
|
+
const doc = container.ownerDocument;
|
|
143
|
+
const onFocusIn = (event) => {
|
|
144
|
+
const target = event.target;
|
|
145
|
+
inside = target !== null && typeof target.closest === 'function' && container.contains(target);
|
|
146
|
+
if (inside && target !== null)
|
|
147
|
+
remember(container, target);
|
|
148
|
+
};
|
|
149
|
+
doc.addEventListener('focusin', onFocusIn, true);
|
|
150
|
+
onCleanup(() => doc.removeEventListener('focusin', onFocusIn, true));
|
|
151
|
+
});
|
|
152
|
+
createEffect(on(options.drawn, () => {
|
|
153
|
+
const container = options.container();
|
|
154
|
+
if (container === undefined || !inside)
|
|
155
|
+
return;
|
|
156
|
+
const doc = container.ownerDocument;
|
|
157
|
+
const active = doc.activeElement;
|
|
158
|
+
if (active !== null && container.contains(active)) {
|
|
159
|
+
remember(container, active);
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
162
|
+
if (active !== null && active !== doc.body)
|
|
163
|
+
return;
|
|
164
|
+
const entries = entriesUnder(container);
|
|
165
|
+
const target = lastEntry !== null && entries.includes(lastEntry)
|
|
166
|
+
? lastEntry
|
|
167
|
+
: (entries[lastIndex - 1] ?? entries[0]);
|
|
168
|
+
if (target !== undefined)
|
|
169
|
+
target.focus();
|
|
170
|
+
else
|
|
171
|
+
options.fallback(container);
|
|
172
|
+
}, { defer: true }));
|
|
173
|
+
return { holdsFocus: () => inside };
|
|
174
|
+
}
|
|
175
|
+
export function timelineEntryAriaLabel(entry) {
|
|
176
|
+
const message = t('{severity}: {title}', {
|
|
177
|
+
severity: t(NOTIFICATION_SEVERITY_LABELS[entry.tone]),
|
|
178
|
+
title: entry.message,
|
|
179
|
+
});
|
|
180
|
+
const source = t('Source: {source}', {
|
|
181
|
+
source: resolveNotificationSource(entry.source).label,
|
|
182
|
+
});
|
|
183
|
+
return `${message}, ${source}`;
|
|
184
|
+
}
|
|
@@ -16,10 +16,10 @@ import { errorActionFailed } from './notifications.notifications';
|
|
|
16
16
|
import { silencedBySettings, turnedDownCard } from './fireNotification';
|
|
17
17
|
import { nextQuietHoursStart } from './quietHours';
|
|
18
18
|
const QUIET_HOURS_RECHECK_MS = 60 * 60_000;
|
|
19
|
-
function silencedCard(item) {
|
|
19
|
+
function silencedCard(item, filter) {
|
|
20
20
|
return (!item.isolated &&
|
|
21
21
|
item.priority !== 'acknowledgment-required' &&
|
|
22
|
-
silencedBySettings(item.source ?? 'general', item.priority ?? 'default'));
|
|
22
|
+
silencedBySettings(item.source ?? 'general', item.severity, item.priority ?? 'default', filter));
|
|
23
23
|
}
|
|
24
24
|
export class NotificationService {
|
|
25
25
|
deps;
|
|
@@ -28,6 +28,9 @@ export class NotificationService {
|
|
|
28
28
|
stack;
|
|
29
29
|
timeline;
|
|
30
30
|
onDidRequestNavigation;
|
|
31
|
+
onDidChangeFilter;
|
|
32
|
+
filter = 'off';
|
|
33
|
+
filterChange = new Emitter();
|
|
31
34
|
engine;
|
|
32
35
|
analytics = new NotificationAnalytics();
|
|
33
36
|
sounds;
|
|
@@ -49,7 +52,7 @@ export class NotificationService {
|
|
|
49
52
|
getSettings: () => notificationSettings.get(),
|
|
50
53
|
recordAutoFade: (source) => this.analytics.recordAutoFade(source),
|
|
51
54
|
warn: (message, error) => log.warn(message, error),
|
|
52
|
-
isSilenced: silencedCard,
|
|
55
|
+
isSilenced: (item) => silencedCard(item, this.filter),
|
|
53
56
|
isTurnedDown: turnedDownCard,
|
|
54
57
|
centerReachable: deps.centerReachable,
|
|
55
58
|
});
|
|
@@ -83,6 +86,7 @@ export class NotificationService {
|
|
|
83
86
|
timeline: this.timeline,
|
|
84
87
|
vendorErrors: deps.vendorErrors,
|
|
85
88
|
openExternal: (url) => openExternalUrl(deps.desktop, log, url),
|
|
89
|
+
filter: () => this.filter,
|
|
86
90
|
});
|
|
87
91
|
this.delivery = createCatalogDelivery({
|
|
88
92
|
toast: this.toast,
|
|
@@ -91,6 +95,7 @@ export class NotificationService {
|
|
|
91
95
|
onActionFailed: (cause) => this.notify(errorActionFailed, { cause }),
|
|
92
96
|
});
|
|
93
97
|
this.onDidRequestNavigation = this.navigation.event;
|
|
98
|
+
this.onDidChangeFilter = this.filterChange.event;
|
|
94
99
|
this.onSettingsChanged = () => {
|
|
95
100
|
clearCompiledRuleRegexCache();
|
|
96
101
|
this.sounds.invalidate();
|
|
@@ -146,6 +151,16 @@ export class NotificationService {
|
|
|
146
151
|
requestNavigation(route) {
|
|
147
152
|
this.navigation.fire(route);
|
|
148
153
|
}
|
|
154
|
+
getFilter() {
|
|
155
|
+
return this.filter;
|
|
156
|
+
}
|
|
157
|
+
setFilter(filter) {
|
|
158
|
+
if (filter === this.filter)
|
|
159
|
+
return;
|
|
160
|
+
this.filter = filter;
|
|
161
|
+
this.takeBackSilencedCards();
|
|
162
|
+
this.filterChange.fire(filter);
|
|
163
|
+
}
|
|
149
164
|
dispose() {
|
|
150
165
|
window.removeEventListener(notificationSettings.changeEvent, this.onSettingsChanged);
|
|
151
166
|
this.stopWatchingCards();
|
|
@@ -154,9 +169,10 @@ export class NotificationService {
|
|
|
154
169
|
this.audio.dispose();
|
|
155
170
|
this.engine.dispose();
|
|
156
171
|
this.navigation.dispose();
|
|
172
|
+
this.filterChange.dispose();
|
|
157
173
|
}
|
|
158
174
|
takeBackSilencedCards() {
|
|
159
|
-
this.engine.suppress(silencedCard);
|
|
175
|
+
this.engine.suppress((item) => silencedCard(item, this.filter));
|
|
160
176
|
}
|
|
161
177
|
watchQuietHoursStart() {
|
|
162
178
|
this.stopWatchingQuietHours();
|
|
@@ -52,7 +52,15 @@ export const suppressedProgressHandle = {
|
|
|
52
52
|
updateActions: () => undefined,
|
|
53
53
|
state: () => 'suppressed',
|
|
54
54
|
onDidChangeState: () => ({ dispose: () => undefined }),
|
|
55
|
+
visible: () => false,
|
|
56
|
+
onDidChangeVisibility: () => ({ dispose: () => undefined }),
|
|
55
57
|
};
|
|
58
|
+
function issueKeysOf(options) {
|
|
59
|
+
return {
|
|
60
|
+
dontShowAgainKey: options.dontShowAgainKey,
|
|
61
|
+
remindKey: options.remindKey,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
56
64
|
function applyNotificationRulesFromSettings(input) {
|
|
57
65
|
return applyNotificationRules(input, notificationSettings.get().notificationRules);
|
|
58
66
|
}
|
|
@@ -70,7 +78,15 @@ export function createToast(deps) {
|
|
|
70
78
|
});
|
|
71
79
|
if (!ruled)
|
|
72
80
|
return '';
|
|
73
|
-
const decision = decideFilter(
|
|
81
|
+
const decision = decideFilter({
|
|
82
|
+
source: ruled.source,
|
|
83
|
+
title: ruled.title,
|
|
84
|
+
severity: ruled.severity,
|
|
85
|
+
priority: ruled.priority,
|
|
86
|
+
recordTimeline: options.recordTimeline,
|
|
87
|
+
filter: deps.filter(),
|
|
88
|
+
...issueKeysOf(options),
|
|
89
|
+
});
|
|
74
90
|
if (decision.recordTimeline)
|
|
75
91
|
timeline.add(ruled.title, ruled.severity, ruled.source, ruled.priority, toTimelineActions(options.action));
|
|
76
92
|
if (!settings.showSuccessToasts && ruled.priority !== 'urgent')
|
|
@@ -101,7 +117,15 @@ export function createToast(deps) {
|
|
|
101
117
|
if (!ruled)
|
|
102
118
|
return '';
|
|
103
119
|
const { source, priority } = ruled;
|
|
104
|
-
const decision = decideFilter(
|
|
120
|
+
const decision = decideFilter({
|
|
121
|
+
source,
|
|
122
|
+
title: ruled.title,
|
|
123
|
+
severity: ruled.severity,
|
|
124
|
+
priority,
|
|
125
|
+
recordTimeline: options.recordTimeline,
|
|
126
|
+
filter: deps.filter(),
|
|
127
|
+
...issueKeysOf(options),
|
|
128
|
+
});
|
|
105
129
|
if (decision.recordTimeline)
|
|
106
130
|
timeline.add(timelineText, ruled.severity, source, priority, toTimelineActions(options.action), options.vendorError);
|
|
107
131
|
const handle = fire(sinks, {
|
|
@@ -125,7 +149,15 @@ export function createToast(deps) {
|
|
|
125
149
|
const settings = notificationSettings.get();
|
|
126
150
|
const source = options.source ?? 'sql-execution';
|
|
127
151
|
const priority = options.priority ?? 'default';
|
|
128
|
-
const decision = decideFilter(
|
|
152
|
+
const decision = decideFilter({
|
|
153
|
+
source,
|
|
154
|
+
title: text,
|
|
155
|
+
severity: 'success',
|
|
156
|
+
priority,
|
|
157
|
+
recordTimeline: options.recordTimeline,
|
|
158
|
+
filter: deps.filter(),
|
|
159
|
+
...issueKeysOf(options),
|
|
160
|
+
});
|
|
129
161
|
if (decision.recordTimeline)
|
|
130
162
|
timeline.add(text, 'success', source, priority, toTimelineActions(options.action));
|
|
131
163
|
if (settings.notificationsEnabled &&
|
|
@@ -150,11 +182,20 @@ export function createToast(deps) {
|
|
|
150
182
|
const source = options.source ?? 'general';
|
|
151
183
|
const priority = options.priority ?? 'default';
|
|
152
184
|
const explicitId = options.id !== undefined ? String(options.id) : undefined;
|
|
153
|
-
const
|
|
185
|
+
const keys = issueKeysOf(options);
|
|
186
|
+
const decision = decideFilter({
|
|
187
|
+
source,
|
|
188
|
+
title: text,
|
|
189
|
+
severity: 'info',
|
|
190
|
+
priority,
|
|
191
|
+
recordTimeline: options.recordTimeline,
|
|
192
|
+
filter: deps.filter(),
|
|
193
|
+
...keys,
|
|
194
|
+
});
|
|
154
195
|
if (decision.recordTimeline)
|
|
155
196
|
timeline.add(text, 'info', source, priority);
|
|
156
197
|
if (!decision.showToast &&
|
|
157
|
-
(turnedDownOnCard(source, text,
|
|
198
|
+
(turnedDownOnCard(source, text, keys) ||
|
|
158
199
|
priority === 'acknowledgment-required')) {
|
|
159
200
|
if (explicitId !== undefined)
|
|
160
201
|
sinks.engine.reject(explicitId);
|
|
@@ -172,7 +213,7 @@ export function createToast(deps) {
|
|
|
172
213
|
priority,
|
|
173
214
|
sticky: true,
|
|
174
215
|
progress: onCancel ? { onCancel } : {},
|
|
175
|
-
remindKey: deriveImplicitRemindKey(source, text),
|
|
216
|
+
remindKey: keys.remindKey ?? keys.dontShowAgainKey ?? deriveImplicitRemindKey(source, text),
|
|
176
217
|
...(actions.length > 0 ? { actions } : {}),
|
|
177
218
|
});
|
|
178
219
|
return {
|
|
@@ -210,6 +251,8 @@ export function createToast(deps) {
|
|
|
210
251
|
},
|
|
211
252
|
state: () => handle.state(),
|
|
212
253
|
onDidChangeState: handle.onDidChangeState,
|
|
254
|
+
visible: () => handle.visible(),
|
|
255
|
+
onDidChangeVisibility: handle.onDidChangeVisibility,
|
|
213
256
|
};
|
|
214
257
|
},
|
|
215
258
|
};
|
|
@@ -223,7 +266,15 @@ function plainVerb(deps, severity, message, options) {
|
|
|
223
266
|
});
|
|
224
267
|
if (!ruled)
|
|
225
268
|
return '';
|
|
226
|
-
const decision = decideFilter(
|
|
269
|
+
const decision = decideFilter({
|
|
270
|
+
source: ruled.source,
|
|
271
|
+
title: ruled.title,
|
|
272
|
+
severity: ruled.severity,
|
|
273
|
+
priority: ruled.priority,
|
|
274
|
+
recordTimeline: options.recordTimeline,
|
|
275
|
+
filter: deps.filter(),
|
|
276
|
+
...issueKeysOf(options),
|
|
277
|
+
});
|
|
227
278
|
if (decision.recordTimeline)
|
|
228
279
|
deps.timeline.add(ruled.title, ruled.severity, ruled.source, ruled.priority, toTimelineActions(options.action));
|
|
229
280
|
const handle = fire(deps.sinks, {
|
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
export function filteredPriority(priority, severity, filter) {
|
|
2
|
+
return filter === 'errors-only' &&
|
|
3
|
+
(priority === 'default' || priority === 'optional') &&
|
|
4
|
+
severity !== 'error'
|
|
5
|
+
? 'silent'
|
|
6
|
+
: priority;
|
|
7
|
+
}
|
|
1
8
|
export function deriveImplicitRemindKey(source, title) {
|
|
2
9
|
return `__remind:${source}:${title}`;
|
|
3
10
|
}
|
|
11
|
+
export function cardRemindKey(card) {
|
|
12
|
+
return (card.remindKey ??
|
|
13
|
+
card.neverShowAgainKey ??
|
|
14
|
+
deriveImplicitRemindKey(card.source ?? 'general', card.title));
|
|
15
|
+
}
|
|
4
16
|
export function decideFilter(input, settings, gates) {
|
|
5
17
|
const { priority } = input;
|
|
6
18
|
const allowTimeline = input.recordTimeline !== false;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createEffect, createSignal, createUniqueId, on, onCleanup, } from 'solid-js';
|
|
1
|
+
import { Show, createEffect, createMemo, createSignal, createUniqueId, on, onCleanup, } from 'solid-js';
|
|
2
2
|
import { OverlayPortal } from './OverlayPortal';
|
|
3
3
|
import { Button } from '../forms/Button';
|
|
4
4
|
import { Checkbox } from '../forms/Checkbox';
|
|
@@ -17,6 +17,10 @@ import { ActionPlaceRow } from './ActionPlaceRow';
|
|
|
17
17
|
import { isKey } from '../_internal/base/keys';
|
|
18
18
|
const hostDocOf = (host) => (host?.() ?? getMainWindow().window).document;
|
|
19
19
|
export function ConfirmDialog(props) {
|
|
20
|
+
const variant = createMemo(() => props.variant ?? 'default');
|
|
21
|
+
const sticky = createMemo(() => Boolean(props.sticky));
|
|
22
|
+
const cancelLabel = createMemo(() => props.cancelLabel ?? t('Cancel'));
|
|
23
|
+
const checkboxOption = createMemo(() => props.checkbox);
|
|
20
24
|
const titleId = createUniqueId();
|
|
21
25
|
const placeId = createUniqueId();
|
|
22
26
|
const messageId = createUniqueId();
|
|
@@ -40,9 +44,9 @@ export function ConfirmDialog(props) {
|
|
|
40
44
|
const [checked, setChecked] = createSignal(false);
|
|
41
45
|
createEffect(on(() => props.open(), (open) => {
|
|
42
46
|
if (open)
|
|
43
|
-
setChecked(
|
|
47
|
+
setChecked(checkboxOption()?.checked ?? false);
|
|
44
48
|
}));
|
|
45
|
-
const answer = () =>
|
|
49
|
+
const answer = () => checkboxOption() ? { checkboxChecked: checked() } : {};
|
|
46
50
|
const focusScope = createDialogFocusScope({
|
|
47
51
|
open: () => props.open(),
|
|
48
52
|
ownerDocument: () => hostDocOf(props.host),
|
|
@@ -52,12 +56,12 @@ export function ConfirmDialog(props) {
|
|
|
52
56
|
const handleOverlayMouseDown = (event) => {
|
|
53
57
|
const onOverlay = event.target === event.currentTarget;
|
|
54
58
|
overlayGuard.noteMouseDown(onOverlay);
|
|
55
|
-
if (onOverlay &&
|
|
59
|
+
if (onOverlay && sticky())
|
|
56
60
|
event.preventDefault();
|
|
57
61
|
};
|
|
58
62
|
const handleOverlayClick = (event) => {
|
|
59
63
|
if (overlayGuard.shouldCloseOnClick(event.target === event.currentTarget) &&
|
|
60
|
-
!
|
|
64
|
+
!sticky()) {
|
|
61
65
|
props.onCancel(answer());
|
|
62
66
|
}
|
|
63
67
|
};
|
|
@@ -69,7 +73,7 @@ export function ConfirmDialog(props) {
|
|
|
69
73
|
});
|
|
70
74
|
if (intent === 'dismiss') {
|
|
71
75
|
event.stopPropagation();
|
|
72
|
-
if (!
|
|
76
|
+
if (!sticky())
|
|
73
77
|
props.onCancel(answer());
|
|
74
78
|
return;
|
|
75
79
|
}
|
|
@@ -82,7 +86,7 @@ export function ConfirmDialog(props) {
|
|
|
82
86
|
});
|
|
83
87
|
if (intent === 'dismiss') {
|
|
84
88
|
event.stopPropagation();
|
|
85
|
-
if (!
|
|
89
|
+
if (!sticky())
|
|
86
90
|
props.onCancel(answer());
|
|
87
91
|
return;
|
|
88
92
|
}
|
|
@@ -96,11 +100,11 @@ export function ConfirmDialog(props) {
|
|
|
96
100
|
if (!el.isConnected)
|
|
97
101
|
return;
|
|
98
102
|
const buttons = Array.from(el.querySelectorAll('button:not([disabled])'));
|
|
99
|
-
const isDanger = (
|
|
103
|
+
const isDanger = variant() === 'danger';
|
|
100
104
|
const targetBtn = isDanger
|
|
101
|
-
?
|
|
105
|
+
? sticky()
|
|
102
106
|
? undefined
|
|
103
|
-
: (buttons.find((b) => b.textContent === (
|
|
107
|
+
: (buttons.find((b) => b.textContent === (cancelLabel())) ?? buttons[0])
|
|
104
108
|
: (buttons[buttons.length - 1] ?? buttons[0]);
|
|
105
109
|
(targetBtn ?? el).focus();
|
|
106
110
|
});
|
|
@@ -128,19 +132,19 @@ export function ConfirmDialog(props) {
|
|
|
128
132
|
</pre>
|
|
129
133
|
</OverlayScrollArea>)}
|
|
130
134
|
</Show>
|
|
131
|
-
<Show when={
|
|
135
|
+
<Show when={checkboxOption()}>
|
|
132
136
|
{(checkbox) => (<Checkbox class={styles.checkbox} checked={checked()} onChange={setChecked}>
|
|
133
137
|
{checkbox().label}
|
|
134
138
|
</Checkbox>)}
|
|
135
139
|
</Show>
|
|
136
140
|
</div>
|
|
137
141
|
<div class={styles.footer}>
|
|
138
|
-
<Show when={!
|
|
142
|
+
<Show when={!sticky()}>
|
|
139
143
|
<Button size="lg" variant="secondary" onClick={() => props.onCancel(answer())}>
|
|
140
|
-
{
|
|
144
|
+
{cancelLabel()}
|
|
141
145
|
</Button>
|
|
142
146
|
</Show>
|
|
143
|
-
<Button size="lg" variant={(
|
|
147
|
+
<Button size="lg" variant={variant() === 'danger'
|
|
144
148
|
? 'dangerSolid'
|
|
145
149
|
: 'primary'} disabled={remaining() > 0} onClick={() => props.onConfirm(answer())}>
|
|
146
150
|
{remaining() > 0
|
|
@@ -230,6 +234,7 @@ export function SaveDiscardDialog(props) {
|
|
|
230
234
|
</Show>);
|
|
231
235
|
}
|
|
232
236
|
export function InputDialog(props) {
|
|
237
|
+
const multiline = createMemo(() => Boolean(props.multiline));
|
|
233
238
|
const titleId = createUniqueId();
|
|
234
239
|
const [value, setValue] = createSignal(props.defaultValue ?? '');
|
|
235
240
|
createEffect(on(() => props.open(), (open) => {
|
|
@@ -252,7 +257,7 @@ export function InputDialog(props) {
|
|
|
252
257
|
};
|
|
253
258
|
const handleKeyDown = (event) => {
|
|
254
259
|
const intent = resolveDialogShellKeyIntent(event.key, {
|
|
255
|
-
confirmOnEnter: !
|
|
260
|
+
confirmOnEnter: !multiline(),
|
|
256
261
|
});
|
|
257
262
|
if (intent === 'dismiss') {
|
|
258
263
|
event.stopPropagation();
|
|
@@ -294,7 +299,7 @@ export function InputDialog(props) {
|
|
|
294
299
|
<Show when={props.message !== undefined}>
|
|
295
300
|
<p class={styles.message}>{props.message}</p>
|
|
296
301
|
</Show>
|
|
297
|
-
<Show when={
|
|
302
|
+
<Show when={multiline()} fallback={<Input ref={captureAndFocus} type={props.secret ? 'password' : 'text'} class={styles.promptField} value={value()} placeholder={props.placeholder ?? ''} aria-label={props.title} onInput={(e) => setValue(e.currentTarget.value)}/>}>
|
|
298
303
|
<Textarea ref={captureAndFocus} rows={8} mono class={styles.promptField} value={value()} placeholder={props.placeholder ?? ''} aria-label={props.title} onInput={(e) => setValue(e.currentTarget.value)}/>
|
|
299
304
|
</Show>
|
|
300
305
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { For, Show } from 'solid-js';
|
|
1
|
+
import { For, Show, createMemo } from 'solid-js';
|
|
2
2
|
import { Button } from '../forms/Button';
|
|
3
3
|
import { Checkbox } from '../forms/Checkbox';
|
|
4
4
|
import { Input } from '../forms/Input';
|
|
@@ -37,6 +37,7 @@ export function StepFooter(props) {
|
|
|
37
37
|
</div>);
|
|
38
38
|
}
|
|
39
39
|
export function NameStep(props) {
|
|
40
|
+
const setTypedName = createMemo(() => props.setTypedName);
|
|
40
41
|
return (<>
|
|
41
42
|
<p class={styles.resourceLine}>
|
|
42
43
|
{t('To confirm, type the {label} below:', {
|
|
@@ -46,15 +47,16 @@ export function NameStep(props) {
|
|
|
46
47
|
</p>
|
|
47
48
|
<label class={styles.field}>
|
|
48
49
|
<span class={styles.fieldLabel}>{props.request().resourceLabel}</span>
|
|
49
|
-
<Input ref={props.inputRef} class={props.inputClass()} type="text" autocomplete="off" spellcheck={false} value={props.typedName()} onInput={(event) =>
|
|
50
|
+
<Input ref={props.inputRef} class={props.inputClass()} type="text" autocomplete="off" spellcheck={false} value={props.typedName()} onInput={(event) => setTypedName()(event.currentTarget.value)} aria-label={props.request().resourceLabel}/>
|
|
50
51
|
</label>
|
|
51
52
|
</>);
|
|
52
53
|
}
|
|
53
54
|
export function OptionList(props) {
|
|
55
|
+
const toggleOption = createMemo(() => props.toggleOption);
|
|
54
56
|
return (<Show when={props.options().length > 0}>
|
|
55
57
|
<div class={styles.optionsList}>
|
|
56
58
|
<For each={props.options()}>
|
|
57
|
-
{(opt) => (<Checkbox class={styles.optionRow} checked={!!props.optionState()[opt.id]} onChange={() =>
|
|
59
|
+
{(opt) => (<Checkbox class={styles.optionRow} checked={!!props.optionState()[opt.id]} onChange={() => toggleOption()(opt.id)} ariaLabel={opt.label}>
|
|
58
60
|
<span class={styles.optionLabel}>
|
|
59
61
|
<span>{opt.label}</span>
|
|
60
62
|
<Show when={opt.description}>
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { Show, createSignal, createUniqueId } from 'solid-js';
|
|
1
|
+
import { Show, createMemo, createSignal, createUniqueId } from 'solid-js';
|
|
2
2
|
import { VpChevronRight } from '@vokril/icons';
|
|
3
3
|
import styles from './Disclosure.module.css.js';
|
|
4
4
|
export function Disclosure(props) {
|
|
5
|
-
const
|
|
5
|
+
const openProp = createMemo(() => props.open);
|
|
6
|
+
const controlled = () => openProp() !== undefined;
|
|
6
7
|
const [internalOpen, setInternalOpen] = createSignal(props.defaultOpen ?? true);
|
|
7
|
-
const isOpen = () => controlled() ?
|
|
8
|
+
const isOpen = () => controlled() ? openProp() === true : internalOpen();
|
|
8
9
|
const bodyId = createUniqueId();
|
|
9
10
|
const toggle = () => {
|
|
10
11
|
const next = !isOpen();
|
|
@@ -10,6 +10,7 @@ import { createDialogFocusScope } from './dialogFocusScope';
|
|
|
10
10
|
import { trapTabFocusWithin } from './modalFocusContainment';
|
|
11
11
|
import { resolveDialogShellKeyIntent } from './dialogShellKeyIntent';
|
|
12
12
|
import { createOverlayCloseGuard } from './overlayCloseGuard';
|
|
13
|
+
import { modalBackgroundExemption } from './backgroundInert';
|
|
13
14
|
import styles from './Drawer.module.css.js';
|
|
14
15
|
import { isKey } from '../_internal/base/keys';
|
|
15
16
|
export function Drawer(props) {
|
|
@@ -94,7 +95,7 @@ export function Drawer(props) {
|
|
|
94
95
|
});
|
|
95
96
|
return (<Show when={openedIn()}>
|
|
96
97
|
{(doc) => (<Portal mount={props.container ?? doc().body}>
|
|
97
|
-
<div class={`${styles.backdrop} ${contained() ? (styles.contained ?? '') : ''}`} onMouseDown={handleOverlayMouseDown} onClick={handleOverlayClick} aria-hidden="true"/>
|
|
98
|
+
<div class={`${styles.backdrop} ${contained() ? (styles.contained ?? '') : ''}`} onMouseDown={handleOverlayMouseDown} onClick={handleOverlayClick} aria-hidden="true" {...modalBackgroundExemption('dialog-backdrop')}/>
|
|
98
99
|
<div ref={captureAndFocus} class={`${styles.drawer} ${placementClass()} ${sizeClass()} ${contained() ? (styles.contained ?? '') : ''} ${props.class ?? ''}`} role="dialog" aria-modal={contained() ? undefined : 'true'} aria-label={props.ariaLabel ?? props.title ?? t('Drawer')} tabIndex={-1} onKeyDown={handleKeyDown}>
|
|
99
100
|
<header class={styles.header}>
|
|
100
101
|
<Show when={props.title} fallback={<div />}>
|
|
@@ -38,19 +38,21 @@ function toBlocks(items) {
|
|
|
38
38
|
return blocks;
|
|
39
39
|
}
|
|
40
40
|
export function DropdownMenu(props) {
|
|
41
|
+
const openProp = createMemo(() => props.open);
|
|
42
|
+
const disabled = createMemo(() => Boolean(props.disabled));
|
|
41
43
|
const [internalOpen, setInternalOpen] = createSignal(false);
|
|
42
44
|
let triggerEl = null;
|
|
43
|
-
const isOpen = () =>
|
|
45
|
+
const isOpen = () => openProp() ?? internalOpen();
|
|
44
46
|
const setOpen = (next) => {
|
|
45
47
|
if (props.onOpenChange) {
|
|
46
48
|
props.onOpenChange(next);
|
|
47
49
|
}
|
|
48
|
-
if (
|
|
50
|
+
if (openProp() === undefined) {
|
|
49
51
|
setInternalOpen(next);
|
|
50
52
|
}
|
|
51
53
|
};
|
|
52
54
|
const toggle = () => {
|
|
53
|
-
if (
|
|
55
|
+
if (disabled())
|
|
54
56
|
return;
|
|
55
57
|
setOpen(!isOpen());
|
|
56
58
|
};
|
|
@@ -68,7 +70,7 @@ export function DropdownMenu(props) {
|
|
|
68
70
|
{(action) => (<MenuItem id={action.id} label={action.label} description={action.description} icon={action.icon} reserveIcon={hasIcons()} checked={action.checked} reserveCheck={hasChecks()} selected={action.selected} meta={action.shortcut} danger={action.danger} disabled={action.disabled} onSelect={() => handleSelect(action)}/>)}
|
|
69
71
|
</For>);
|
|
70
72
|
return (<div class={props.class} style={{ display: 'inline-block' }}>
|
|
71
|
-
<Show when={props.trigger} fallback={<Button ref={(el) => (triggerEl = el)} variant={props.variant ?? 'secondary'} size={props.size ?? 'sm'} disabled={
|
|
73
|
+
<Show when={props.trigger} fallback={<Button ref={(el) => (triggerEl = el)} variant={props.variant ?? 'secondary'} size={props.size ?? 'sm'} disabled={disabled()} onClick={toggle} aria-haspopup="menu" aria-expanded={isOpen()} aria-label={props.ariaLabel ?? props.label ?? t('Actions')} trailingIcon={<VpChevronDown aria-hidden="true"/>}>
|
|
72
74
|
{props.label ?? t('Actions')}
|
|
73
75
|
</Button>}>
|
|
74
76
|
{(renderTrigger) => renderTrigger()({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Show, createSignal, createEffect, onCleanup, } from 'solid-js';
|
|
1
|
+
import { Show, createMemo, createSignal, createEffect, onCleanup, } from 'solid-js';
|
|
2
2
|
import { VpArrowsMaximize, VpArrowsMinimize, VpClose, VpExternalLink, VpMinus, } from '@vokril/icons';
|
|
3
3
|
import { OverlayScrollArea } from './OverlayScrollArea';
|
|
4
4
|
import { useOverlayRegistration } from './overlayStack';
|
|
@@ -15,8 +15,8 @@ export function FloatingWindow(props) {
|
|
|
15
15
|
const [isMinimized, setIsMinimized] = createSignal(false);
|
|
16
16
|
const [isMaximized, setIsMaximized] = createSignal(false);
|
|
17
17
|
const [isDragging, setIsDragging] = createSignal(false);
|
|
18
|
-
const minW = () => props.minWidth ?? 240;
|
|
19
|
-
const minH = () => props.minHeight ?? 140;
|
|
18
|
+
const minW = createMemo(() => props.minWidth ?? 240);
|
|
19
|
+
const minH = createMemo(() => props.minHeight ?? 140);
|
|
20
20
|
let dragStartX = 0;
|
|
21
21
|
let dragStartY = 0;
|
|
22
22
|
let startPosX = 0;
|