@vokril/ui-solid 0.2.1 → 0.4.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 +29 -0
- package/dist/{AttributeGrid-iOgTCpF7.js → AttributeGrid-BUyv-hUX.js} +3 -3
- package/dist/{AttributeGrid-DgORu6BF.cjs → AttributeGrid-Tk8KJx8e.cjs} +1 -1
- package/dist/{Button-CCm03bSE.js → Button-BZWXPn8y.js} +1 -1
- package/dist/{Button-DntBQ4fM.cjs → Button-X8QR6llv.cjs} +1 -1
- package/dist/{CommandPalette-D5BzLE0U.js → CommandPalette-BTjINvuw.js} +5 -5
- package/dist/{CommandPalette-4w3pEbna.cjs → CommandPalette-CSaQCEyY.cjs} +1 -1
- package/dist/{CopyButton-BxwyIJxL.cjs → CopyButton-3cX5MHAf.cjs} +1 -1
- package/dist/{CopyButton-ClqxiGPb.js → CopyButton-D3dIRRnn.js} +1 -1
- package/dist/{DateRangePicker-dLlHJR71.cjs → DateRangePicker-CHrwr34H.cjs} +1 -1
- package/dist/{DateRangePicker-Qho0OzUE.js → DateRangePicker-jnZfDhQA.js} +3 -3
- package/dist/{GuidedTour-YUs4zuez.js → GuidedTour-Be7OITLu.js} +2991 -2974
- package/dist/GuidedTour-CTHXtWoK.cjs +21 -0
- package/dist/{IconPicker-CO5TWhFx.js → IconPicker-BxofGXCS.js} +3 -3
- package/dist/{IconPicker-BreG8jKY.cjs → IconPicker-C_gAGvo0.cjs} +1 -1
- package/dist/{Modal-BqajyLjD.cjs → Modal-BSSY6C3D.cjs} +1 -1
- package/dist/{Modal-DdbgnOMR.js → Modal-BmtEt5Yo.js} +2 -2
- package/dist/{PageSkeleton-DfLEHkrh.js → PageSkeleton-CyTXvZYm.js} +4 -4
- package/dist/{PageSkeleton-VbWHl878.cjs → PageSkeleton-DzKYTuNy.cjs} +1 -1
- package/dist/{SearchableSelect-D6yjIQO1.cjs → SearchableSelect-9pgcO5JS.cjs} +1 -1
- package/dist/{SearchableSelect-CBpLrNvW.js → SearchableSelect-ByCRBEZI.js} +2 -2
- package/dist/{StatusBarNotificationBell-DQ94Snzi.cjs → StatusBarNotificationBell-jmfcQw6Y.cjs} +1 -1
- package/dist/{StatusBarNotificationBell-BWZj0Pc2.js → StatusBarNotificationBell-k_Ol9XDW.js} +7 -7
- package/dist/Stepper-C3dnwwiV.cjs +1 -0
- package/dist/{Stepper-CrXi8mfh.js → Stepper-CrTxBpDL.js} +137 -137
- package/dist/{TimeSeriesChart-BzzqarqB.cjs → TimeSeriesChart-CS4jQflv.cjs} +1 -1
- package/dist/{TimeSeriesChart-D18yHUrf.js → TimeSeriesChart-DBrDzBGE.js} +1 -1
- package/dist/{ToggleButton-l1cEdv9w.cjs → ToggleButton-CFvMUndy.cjs} +1 -1
- package/dist/{ToggleButton-BiEKoA4q.js → ToggleButton-DBWFnm_R.js} +4 -4
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.cts +27 -0
- package/dist/_internal/app/keybindings/context/useFocusClaim.d.ts +27 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.cts +15 -0
- package/dist/_internal/app/keybindings/context/useListCommands.d.ts +15 -0
- package/dist/_internal/app/keybindings/contextKey/builtins.d.cts +48 -2
- package/dist/_internal/app/keybindings/contextKey/builtins.d.ts +48 -2
- package/dist/_internal/app/keybindings/index.d.cts +4 -0
- package/dist/_internal/app/keybindings/index.d.ts +4 -0
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.cts +30 -0
- package/dist/_internal/app/keybindings/panelCommandsRegistry.d.ts +30 -0
- package/dist/builtins-DM7FDxEt.cjs +1 -0
- package/dist/builtins-XOM9gfIx.js +74 -0
- package/dist/{catalogNotify-B6x3enJ5.cjs → catalogNotify-C9RzbC6x.cjs} +1 -1
- package/dist/{catalogNotify-CcaMBipB.js → catalogNotify-CIhFuJ1b.js} +1 -1
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.js +1 -1
- package/dist/{createResizableSidebar-_yb33Qli.cjs → createResizableSidebar-DVATOkMf.cjs} +1 -1
- package/dist/{createResizableSidebar-onQNGhy_.js → createResizableSidebar-uf_OJsjO.js} +3 -3
- package/dist/{de-Cim4IGZg.js → de-CEltsqV5.js} +1 -0
- package/dist/{server/de-B5MOZZDV.cjs → de-DRobPEJV.cjs} +1 -1
- package/dist/descriptor-B1MaujhY.js +1106 -0
- package/dist/descriptor-lw1fA9mi.cjs +1 -0
- package/dist/desktop/index.cjs +1 -1
- package/dist/desktop/index.js +28 -28
- package/dist/feedback/index.cjs +1 -1
- package/dist/feedback/index.js +2 -2
- package/dist/{format-C46MmwwW.js → format-Dd946oS-.js} +1 -1
- package/dist/{format-Cy7RJpYG.cjs → format-aHRZi12I.cjs} +1 -1
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.js +7 -7
- 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 +3 -0
- package/dist/host/index.d.ts +3 -0
- package/dist/host/index.js +67 -61
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.js +1 -1
- package/dist/i18n/messageKeys.d.cts +1 -1
- package/dist/i18n/messageKeys.d.ts +1 -1
- package/dist/{i18n-DZZyw7Iu.cjs → i18n-B9ccWgcR.cjs} +1 -1
- package/dist/{server/i18n-B_XRSWWN.js → i18n-CYq-dVvv.js} +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +492 -481
- package/dist/layout/index.cjs +1 -1
- package/dist/layout/index.js +2 -2
- package/dist/navigation/index.cjs +1 -1
- package/dist/navigation/index.js +1 -1
- 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 +57 -53
- package/dist/notifications/notificationCommands.d.cts +14 -5
- package/dist/notifications/notificationCommands.d.ts +14 -5
- package/dist/overlay/index.cjs +1 -1
- package/dist/overlay/index.js +5 -5
- package/dist/server/{AttributeGrid-Cz49ZLQJ.cjs → AttributeGrid-CSidAjfz.cjs} +1 -1
- package/dist/server/{AttributeGrid-Bq6AC927.js → AttributeGrid-D6b2qQS9.js} +3 -3
- package/dist/server/{Button-CHjpZWyZ.js → Button-BhqhjFpY.js} +1 -1
- package/dist/server/{Button-C9c6mzTA.cjs → Button-CFOM8pOv.cjs} +1 -1
- package/dist/server/{CommandPalette-C69NFoDY.js → CommandPalette-D8O7Ct6B.js} +4 -4
- package/dist/server/{CommandPalette-C-Y0biXL.cjs → CommandPalette-DnTx84xR.cjs} +1 -1
- package/dist/server/{CopyButton-C3AnCUW9.cjs → CopyButton-C2jzn9tR.cjs} +1 -1
- package/dist/server/{CopyButton-DOeXnVFC.js → CopyButton-CChDa2p3.js} +1 -1
- package/dist/server/{DateRangePicker-tEwswamx.js → DateRangePicker-BK2Ul2uy.js} +2 -2
- package/dist/server/{DateRangePicker-BZIjmD5b.cjs → DateRangePicker-s-I_rNUK.cjs} +1 -1
- package/dist/server/GuidedTour-BW95cjPT.cjs +20 -0
- package/dist/server/{GuidedTour-C38isG70.js → GuidedTour-DW5y5xkJ.js} +2304 -2288
- package/dist/server/{IconPicker-tGQ6T_7R.js → IconPicker-BCUZcq-i.js} +3 -3
- package/dist/server/{IconPicker-DpsgVG2H.cjs → IconPicker-Bw8tZjCl.cjs} +1 -1
- package/dist/server/{Modal-C4E01jt8.js → Modal-CM54uXRu.js} +2 -2
- package/dist/server/{Modal-w2CtUJ-g.cjs → Modal-R86Fb2mX.cjs} +1 -1
- package/dist/server/{PageSkeleton-BIoewFZz.js → PageSkeleton-Bpgep9QW.js} +4 -4
- package/dist/server/{PageSkeleton-t1PiXgcp.cjs → PageSkeleton-KwYRrZua.cjs} +1 -1
- package/dist/server/{SearchableSelect-CTDUjMFB.js → SearchableSelect-Cog_rb31.js} +2 -2
- package/dist/server/{SearchableSelect-T6iS1AYR.cjs → SearchableSelect-fofn1Bjg.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-DL_OCMv7.cjs → StatusBarNotificationBell-BolKvDik.cjs} +1 -1
- package/dist/server/{StatusBarNotificationBell-Bm2ZiM-t.js → StatusBarNotificationBell-BqPU9Shw.js} +6 -6
- package/dist/server/{Stepper-Il_NS3YQ.js → Stepper-BdOBuNco.js} +1 -1
- package/dist/server/{Stepper-CZ695tkt.cjs → Stepper-DqwKOszc.cjs} +1 -1
- package/dist/server/{TimeSeriesChart-CWxwWo-G.js → TimeSeriesChart-C1LbL_xp.js} +1 -1
- package/dist/server/{TimeSeriesChart-Cjpjciv2.cjs → TimeSeriesChart-DtldQrxS.cjs} +1 -1
- package/dist/server/{ToggleButton-D7Qu7T2P.js → ToggleButton-B0YuAGY4.js} +3 -3
- package/dist/server/{ToggleButton-CXwvg-Hr.cjs → ToggleButton-CbX1kbpI.cjs} +1 -1
- package/dist/server/builtins-DM7FDxEt.cjs +1 -0
- package/dist/server/builtins-XOM9gfIx.js +74 -0
- package/dist/server/{catalogNotify-CTZ3DSTN.cjs → catalogNotify-BPPTINme.cjs} +1 -1
- package/dist/server/{catalogNotify-Dnyfrb-0.js → catalogNotify-mUcKuUmZ.js} +1 -1
- package/dist/server/charts/index.cjs +1 -1
- package/dist/server/charts/index.js +1 -1
- package/dist/server/{createResizableSidebar-CBSfZVJk.js → createResizableSidebar-BfTFOM7v.js} +3 -3
- package/dist/server/{createResizableSidebar-rfcmiXuS.cjs → createResizableSidebar-D28fY_SX.cjs} +1 -1
- package/dist/server/{de-Cim4IGZg.js → de-CEltsqV5.js} +1 -0
- package/dist/{de-B5MOZZDV.cjs → server/de-DRobPEJV.cjs} +1 -1
- package/dist/server/descriptor-DWkJAggS.js +992 -0
- package/dist/server/descriptor-IJq9wdXK.cjs +1 -0
- package/dist/server/desktop/index.cjs +1 -1
- package/dist/server/desktop/index.js +2 -2
- package/dist/server/feedback/index.cjs +1 -1
- package/dist/server/feedback/index.js +2 -2
- package/dist/server/forms/index.cjs +1 -1
- package/dist/server/forms/index.js +6 -6
- 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 +71 -65
- package/dist/server/i18n/index.cjs +1 -1
- package/dist/server/i18n/index.js +1 -1
- package/dist/server/{i18n-DZZyw7Iu.cjs → i18n-B9ccWgcR.cjs} +1 -1
- package/dist/{i18n-B_XRSWWN.js → server/i18n-CYq-dVvv.js} +2 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +822 -811
- package/dist/server/layout/index.cjs +1 -1
- package/dist/server/layout/index.js +2 -2
- package/dist/server/navigation/index.cjs +1 -1
- package/dist/server/navigation/index.js +1 -1
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +57 -53
- package/dist/server/overlay/index.cjs +1 -1
- package/dist/server/overlay/index.js +4 -4
- package/dist/server/{settingsSearchContributor-CDqRlqt7.cjs → settingsSearchContributor-DZj7Wc8l.cjs} +1 -1
- package/dist/server/{settingsSearchContributor-Dn-HFipc.js → settingsSearchContributor-DeMn-njw.js} +2 -2
- package/dist/{tr-MCRQ-3Mn.cjs → server/tr-BDbiY5YD.cjs} +1 -1
- package/dist/{tr-DlpnmKv6.js → server/tr-CxuAFkCi.js} +1 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +9 -8
- package/dist/server/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/server/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/server/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/dist/{settingsSearchContributor-BGImAgsw.js → settingsSearchContributor-C-UJc7Xc.js} +2 -2
- package/dist/{settingsSearchContributor-Ci6vEEQ1.cjs → settingsSearchContributor-Du0SDpJt.cjs} +1 -1
- package/dist/solid/_internal/app/keybindings/context/useFocusClaim.js +32 -0
- package/dist/solid/_internal/app/keybindings/context/useListCommands.js +22 -0
- package/dist/solid/_internal/app/keybindings/contextKey/builtins.js +10 -0
- package/dist/solid/_internal/app/keybindings/panelCommandsRegistry.js +25 -0
- package/dist/solid/desktop/menu/MenuBar.jsx +2 -1
- package/dist/solid/host/index.js +3 -0
- package/dist/solid/i18n/locales/de.json +1 -0
- package/dist/solid/i18n/locales/tr.json +1 -0
- package/dist/solid/navigation/Tabs.jsx +5 -0
- package/dist/solid/notifications/NotificationHost.jsx +36 -10
- package/dist/solid/notifications/index.js +1 -0
- package/dist/solid/notifications/notificationCommands.js +55 -17
- package/dist/solid/tree/TreeSurface.jsx +17 -0
- package/dist/solid/tree/createTreeController.js +7 -6
- package/dist/solid/tree/index.js +1 -0
- package/dist/solid/tree/selectAllInScope.js +47 -0
- package/dist/solid/tree/treeKeymap.js +0 -5
- package/dist/style.css +1 -1
- package/dist/{server/tr-MCRQ-3Mn.cjs → tr-BDbiY5YD.cjs} +1 -1
- package/dist/{server/tr-DlpnmKv6.js → tr-CxuAFkCi.js} +1 -0
- package/dist/tree/createTreeController.d.cts +5 -0
- package/dist/tree/createTreeController.d.ts +5 -0
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.d.cts +1 -0
- package/dist/tree/index.d.ts +1 -0
- package/dist/tree/index.js +9 -8
- package/dist/tree/selectAllInScope.d.cts +5 -0
- package/dist/tree/selectAllInScope.d.ts +5 -0
- package/dist/tree/treeKeymap.d.cts +2 -4
- package/dist/tree/treeKeymap.d.ts +2 -4
- package/dist/ui.css +1 -1
- package/dist/useListCommands-Bf7aOTXZ.js +61 -0
- package/dist/useListCommands-ucngC3t4.cjs +1 -0
- package/dist/visibleBrowserRegistry-BTfWUlI1.cjs +1 -0
- package/dist/visibleBrowserRegistry-Dw2Y4y_I.js +89 -0
- package/package.json +1 -1
- package/dist/GuidedTour-CYgy48bt.cjs +0 -21
- package/dist/Stepper-B_nRDFxN.cjs +0 -1
- package/dist/descriptor-NxSXaBdy.cjs +0 -1
- package/dist/descriptor-zKWZdo3E.js +0 -1059
- package/dist/server/GuidedTour-TAGGtEp2.cjs +0 -20
- package/dist/server/descriptor-B6FQLHie.cjs +0 -1
- package/dist/server/descriptor-DNWBt66Z.js +0 -951
- package/dist/server/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/server/visibleBrowserRegistry-DOZlLrpo.js +0 -113
- package/dist/visibleBrowserRegistry-CZFCFSo_.cjs +0 -1
- package/dist/visibleBrowserRegistry-DOZlLrpo.js +0 -113
|
@@ -3,7 +3,9 @@ export declare const PLATFORM_KEY = "platform";
|
|
|
3
3
|
export declare const IS_MAC_KEY = "isMac";
|
|
4
4
|
export declare const IS_WINDOWS_KEY = "isWindows";
|
|
5
5
|
export declare const IS_LINUX_KEY = "isLinux";
|
|
6
|
-
export declare function platformContextValues(
|
|
6
|
+
export declare function platformContextValues(
|
|
7
|
+
/** A `process.platform` value (`'darwin'`, `'win32'`, `'linux'` …); typed as a string so the kit's types need no Node typings. */
|
|
8
|
+
platform: string): Readonly<Record<string, ContextValue>>;
|
|
7
9
|
/**
|
|
8
10
|
* The reference editor's development context key: true in a development build (`app/env.ts:isDevBuild`, the
|
|
9
11
|
* renderer's one build-mode home), published once at the root. Gates the chords the reference binds for
|
|
@@ -56,6 +58,11 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
56
58
|
readonly sqlEditorFocus: "sqlEditorFocus";
|
|
57
59
|
readonly sqlBindPromptFocus: "sqlBindPromptFocus";
|
|
58
60
|
readonly dashboardFocus: "dashboardFocus";
|
|
61
|
+
/**
|
|
62
|
+
* A category of the dashboard's Categories panel has keyboard focus — `Alt+↑/↓` moves it
|
|
63
|
+
* (`surfaces/dashboardCategories.ts`). Not the rename box or the actions button: they own their keys.
|
|
64
|
+
*/
|
|
65
|
+
readonly dashboardCategoryFocus: "dashboardCategoryFocus";
|
|
59
66
|
readonly rssFeederFocus: "rssFeederFocus";
|
|
60
67
|
readonly rssItemSelected: "rssItemSelected";
|
|
61
68
|
readonly explorerFocus: "explorerFocus";
|
|
@@ -81,12 +88,29 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
81
88
|
* surfaces this was measured once and every surface was given its own key; same rule.
|
|
82
89
|
*/
|
|
83
90
|
readonly sshTerminalFocus: "sshTerminalFocus";
|
|
91
|
+
/**
|
|
92
|
+
* Focus is in an SSH terminal WORKSPACE — the SSH page's multi-tab terminal, not a detached SSH terminal: its tab
|
|
93
|
+
* and find verbs (`SshTerminalWorkspaceHandlers`) are scoped by it. Text fields do not count, as for `sshTerminalFocus`.
|
|
94
|
+
*/
|
|
95
|
+
readonly sshTerminalWorkspaceFocus: "sshTerminalWorkspaceFocus";
|
|
96
|
+
/**
|
|
97
|
+
* The reference's key: keyboard focus is in the terminal's find box — `Ctrl/Cmd+F` selects its text there. The
|
|
98
|
+
* terminal's own focus key is false in the box (`terminal/ui/terminalOwnFocus.ts`): the box owns its keys.
|
|
99
|
+
*/
|
|
100
|
+
readonly terminalFindFocused: "terminalFindFocused";
|
|
101
|
+
/** The SSH terminal's find box, its own key for the same reason `sshTerminalFocus` is. */
|
|
102
|
+
readonly sshTerminalFindFocused: "sshTerminalFindFocused";
|
|
84
103
|
/**
|
|
85
104
|
* The active terminal's xterm is in the alternate buffer (vim/less/htop) — the command-mark
|
|
86
105
|
* navigation bindings are guarded by `!terminalAltBufferActive` (reference
|
|
87
106
|
* `altBufferActive.negate()`): the arrow key goes to the full-screen app.
|
|
88
107
|
*/
|
|
89
108
|
readonly terminalAltBufferActive: "terminalAltBufferActive";
|
|
109
|
+
/**
|
|
110
|
+
* The reference's key: keyboard focus is in the terminal's accessible buffer view (`Alt+F2`) — `Alt+↓/↑` go to the
|
|
111
|
+
* next / previous command there (`surfaces/terminal.ts` `TERMINAL_ACCESSIBLE_BUFFER_BINDINGS`).
|
|
112
|
+
*/
|
|
113
|
+
readonly terminalAccessibleBufferFocus: "terminalAccessibleBufferFocus";
|
|
90
114
|
/** The active terminal tab is in a multi-pane group — the gate of the pane focus/size bindings. */
|
|
91
115
|
readonly terminalMultiPane: "terminalMultiPane";
|
|
92
116
|
/**
|
|
@@ -141,8 +165,30 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
141
165
|
readonly sqlSnippetsFocus: "sqlSnippetsFocus";
|
|
142
166
|
/** Focus is in the Set Comment dialog's comment field — `Ctrl/Cmd+Enter` sets the comment. */
|
|
143
167
|
readonly objectCommentFocus: "objectCommentFocus";
|
|
144
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Focus is in a cell value editor — the maximized editor, the grid's inline editor or a record view field —
|
|
170
|
+
* `Ctrl/Cmd+Enter` saves the value.
|
|
171
|
+
*/
|
|
145
172
|
readonly cellEditorFocus: "cellEditorFocus";
|
|
173
|
+
/**
|
|
174
|
+
* Focus is in a cell value text field — the grid's inline cell editor or a record view field — `Ctrl/Cmd+Backspace`
|
|
175
|
+
* sets the value to NULL (`surfaces/cellValueField.ts`). Not the maximized editor: its code editor keeps the chord.
|
|
176
|
+
*/
|
|
177
|
+
readonly cellValueFieldFocus: "cellValueFieldFocus";
|
|
178
|
+
/**
|
|
179
|
+
* Focus is in a JSON tree view — the cell detail, the inspector's Value tab or the result's JSON view —
|
|
180
|
+
* `Ctrl/Cmd+F` focuses its filter (`surfaces/jsonTree.ts`).
|
|
181
|
+
*/
|
|
182
|
+
readonly jsonTreeFocus: "jsonTreeFocus";
|
|
183
|
+
/** Focus is in a JSON tree view's filter — `Shift+Enter` goes to the previous match (plain `Enter` is the filter's own). */
|
|
184
|
+
readonly jsonTreeFilterFocus: "jsonTreeFilterFocus";
|
|
185
|
+
/**
|
|
186
|
+
* The reference's list keys: focus is in a list or a tree — every tree surface, the search results, the terminal
|
|
187
|
+
* tab list — and that list takes more than one selection. `list.*` verbs (`surfaces/list.ts`) act on the list focus
|
|
188
|
+
* last entered (`context/useListCommands.ts`).
|
|
189
|
+
*/
|
|
190
|
+
readonly listFocus: "listFocus";
|
|
191
|
+
readonly listSupportsMultiselect: "listSupportsMultiselect";
|
|
146
192
|
/** Focus is in the Source Control commit message box — `Ctrl/Cmd+Enter` commits (the reference's `scm.acceptInput`). */
|
|
147
193
|
readonly scmCommitInputFocus: "scmCommitInputFocus";
|
|
148
194
|
/** Focus is in the terminal command history palette — its row verbs (`Ctrl+Enter`, `Shift+Enter`, `Delete`). */
|
|
@@ -3,7 +3,9 @@ export declare const PLATFORM_KEY = "platform";
|
|
|
3
3
|
export declare const IS_MAC_KEY = "isMac";
|
|
4
4
|
export declare const IS_WINDOWS_KEY = "isWindows";
|
|
5
5
|
export declare const IS_LINUX_KEY = "isLinux";
|
|
6
|
-
export declare function platformContextValues(
|
|
6
|
+
export declare function platformContextValues(
|
|
7
|
+
/** A `process.platform` value (`'darwin'`, `'win32'`, `'linux'` …); typed as a string so the kit's types need no Node typings. */
|
|
8
|
+
platform: string): Readonly<Record<string, ContextValue>>;
|
|
7
9
|
/**
|
|
8
10
|
* The reference editor's development context key: true in a development build (`app/env.ts:isDevBuild`, the
|
|
9
11
|
* renderer's one build-mode home), published once at the root. Gates the chords the reference binds for
|
|
@@ -56,6 +58,11 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
56
58
|
readonly sqlEditorFocus: "sqlEditorFocus";
|
|
57
59
|
readonly sqlBindPromptFocus: "sqlBindPromptFocus";
|
|
58
60
|
readonly dashboardFocus: "dashboardFocus";
|
|
61
|
+
/**
|
|
62
|
+
* A category of the dashboard's Categories panel has keyboard focus — `Alt+↑/↓` moves it
|
|
63
|
+
* (`surfaces/dashboardCategories.ts`). Not the rename box or the actions button: they own their keys.
|
|
64
|
+
*/
|
|
65
|
+
readonly dashboardCategoryFocus: "dashboardCategoryFocus";
|
|
59
66
|
readonly rssFeederFocus: "rssFeederFocus";
|
|
60
67
|
readonly rssItemSelected: "rssItemSelected";
|
|
61
68
|
readonly explorerFocus: "explorerFocus";
|
|
@@ -81,12 +88,29 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
81
88
|
* surfaces this was measured once and every surface was given its own key; same rule.
|
|
82
89
|
*/
|
|
83
90
|
readonly sshTerminalFocus: "sshTerminalFocus";
|
|
91
|
+
/**
|
|
92
|
+
* Focus is in an SSH terminal WORKSPACE — the SSH page's multi-tab terminal, not a detached SSH terminal: its tab
|
|
93
|
+
* and find verbs (`SshTerminalWorkspaceHandlers`) are scoped by it. Text fields do not count, as for `sshTerminalFocus`.
|
|
94
|
+
*/
|
|
95
|
+
readonly sshTerminalWorkspaceFocus: "sshTerminalWorkspaceFocus";
|
|
96
|
+
/**
|
|
97
|
+
* The reference's key: keyboard focus is in the terminal's find box — `Ctrl/Cmd+F` selects its text there. The
|
|
98
|
+
* terminal's own focus key is false in the box (`terminal/ui/terminalOwnFocus.ts`): the box owns its keys.
|
|
99
|
+
*/
|
|
100
|
+
readonly terminalFindFocused: "terminalFindFocused";
|
|
101
|
+
/** The SSH terminal's find box, its own key for the same reason `sshTerminalFocus` is. */
|
|
102
|
+
readonly sshTerminalFindFocused: "sshTerminalFindFocused";
|
|
84
103
|
/**
|
|
85
104
|
* The active terminal's xterm is in the alternate buffer (vim/less/htop) — the command-mark
|
|
86
105
|
* navigation bindings are guarded by `!terminalAltBufferActive` (reference
|
|
87
106
|
* `altBufferActive.negate()`): the arrow key goes to the full-screen app.
|
|
88
107
|
*/
|
|
89
108
|
readonly terminalAltBufferActive: "terminalAltBufferActive";
|
|
109
|
+
/**
|
|
110
|
+
* The reference's key: keyboard focus is in the terminal's accessible buffer view (`Alt+F2`) — `Alt+↓/↑` go to the
|
|
111
|
+
* next / previous command there (`surfaces/terminal.ts` `TERMINAL_ACCESSIBLE_BUFFER_BINDINGS`).
|
|
112
|
+
*/
|
|
113
|
+
readonly terminalAccessibleBufferFocus: "terminalAccessibleBufferFocus";
|
|
90
114
|
/** The active terminal tab is in a multi-pane group — the gate of the pane focus/size bindings. */
|
|
91
115
|
readonly terminalMultiPane: "terminalMultiPane";
|
|
92
116
|
/**
|
|
@@ -141,8 +165,30 @@ export declare const FOCUS_CONTEXT_KEYS: {
|
|
|
141
165
|
readonly sqlSnippetsFocus: "sqlSnippetsFocus";
|
|
142
166
|
/** Focus is in the Set Comment dialog's comment field — `Ctrl/Cmd+Enter` sets the comment. */
|
|
143
167
|
readonly objectCommentFocus: "objectCommentFocus";
|
|
144
|
-
/**
|
|
168
|
+
/**
|
|
169
|
+
* Focus is in a cell value editor — the maximized editor, the grid's inline editor or a record view field —
|
|
170
|
+
* `Ctrl/Cmd+Enter` saves the value.
|
|
171
|
+
*/
|
|
145
172
|
readonly cellEditorFocus: "cellEditorFocus";
|
|
173
|
+
/**
|
|
174
|
+
* Focus is in a cell value text field — the grid's inline cell editor or a record view field — `Ctrl/Cmd+Backspace`
|
|
175
|
+
* sets the value to NULL (`surfaces/cellValueField.ts`). Not the maximized editor: its code editor keeps the chord.
|
|
176
|
+
*/
|
|
177
|
+
readonly cellValueFieldFocus: "cellValueFieldFocus";
|
|
178
|
+
/**
|
|
179
|
+
* Focus is in a JSON tree view — the cell detail, the inspector's Value tab or the result's JSON view —
|
|
180
|
+
* `Ctrl/Cmd+F` focuses its filter (`surfaces/jsonTree.ts`).
|
|
181
|
+
*/
|
|
182
|
+
readonly jsonTreeFocus: "jsonTreeFocus";
|
|
183
|
+
/** Focus is in a JSON tree view's filter — `Shift+Enter` goes to the previous match (plain `Enter` is the filter's own). */
|
|
184
|
+
readonly jsonTreeFilterFocus: "jsonTreeFilterFocus";
|
|
185
|
+
/**
|
|
186
|
+
* The reference's list keys: focus is in a list or a tree — every tree surface, the search results, the terminal
|
|
187
|
+
* tab list — and that list takes more than one selection. `list.*` verbs (`surfaces/list.ts`) act on the list focus
|
|
188
|
+
* last entered (`context/useListCommands.ts`).
|
|
189
|
+
*/
|
|
190
|
+
readonly listFocus: "listFocus";
|
|
191
|
+
readonly listSupportsMultiselect: "listSupportsMultiselect";
|
|
146
192
|
/** Focus is in the Source Control commit message box — `Ctrl/Cmd+Enter` commits (the reference's `scm.acceptInput`). */
|
|
147
193
|
readonly scmCommitInputFocus: "scmCommitInputFocus";
|
|
148
194
|
/** Focus is in the terminal command history palette — its row verbs (`Ctrl+Enter`, `Shift+Enter`, `Delete`). */
|
|
@@ -32,6 +32,10 @@ export interface IKeybindingsRegistry {
|
|
|
32
32
|
register(binding: {
|
|
33
33
|
readonly command: string;
|
|
34
34
|
readonly key: string;
|
|
35
|
+
/** Platform overrides of `key` (host app: KeybindingDefinition.mac / win / linux). */
|
|
36
|
+
readonly mac?: string;
|
|
37
|
+
readonly win?: string;
|
|
38
|
+
readonly linux?: string;
|
|
35
39
|
readonly when?: string;
|
|
36
40
|
readonly weight: number;
|
|
37
41
|
readonly source: KeybindingSource;
|
|
@@ -32,6 +32,10 @@ export interface IKeybindingsRegistry {
|
|
|
32
32
|
register(binding: {
|
|
33
33
|
readonly command: string;
|
|
34
34
|
readonly key: string;
|
|
35
|
+
/** Platform overrides of `key` (host app: KeybindingDefinition.mac / win / linux). */
|
|
36
|
+
readonly mac?: string;
|
|
37
|
+
readonly win?: string;
|
|
38
|
+
readonly linux?: string;
|
|
35
39
|
readonly when?: string;
|
|
36
40
|
readonly weight: number;
|
|
37
41
|
readonly source: KeybindingSource;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ui adapter: the panel command registries the kit itself claims.
|
|
3
|
+
*
|
|
4
|
+
* The host app keeps one module of registries, one per keybinding surface (explorer, SQL editor,
|
|
5
|
+
* terminal, list …): a surface claims its verbs while mounted and a command acts on the claim the
|
|
6
|
+
* user is in. ui ships the registry factory and the one registry its own components claim — the
|
|
7
|
+
* shared list verbs (`listHandlers`, `Ctrl/Cmd+A` on a tree). The other surfaces are the host's.
|
|
8
|
+
*
|
|
9
|
+
* `listHandlers` is a single instance: a host that registers the `list.*` commands reads THIS
|
|
10
|
+
* registry (`@vokril/ui-solid/host`), so its own lists and the kit's trees share one claim stack and
|
|
11
|
+
* one "last focused list".
|
|
12
|
+
*/
|
|
13
|
+
export interface PanelCommandRegistry<T extends object> {
|
|
14
|
+
set(handlers: T): () => void;
|
|
15
|
+
current(): T | null;
|
|
16
|
+
/**
|
|
17
|
+
* Top-down search over the stack (last-mounted first). Lets a surface that can be
|
|
18
|
+
* mounted more than once route a verb to the mount that is actually FOCUSED instead
|
|
19
|
+
* of the one that mounted last.
|
|
20
|
+
*/
|
|
21
|
+
find(predicate: (handlers: T) => boolean): T | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function createPanelCommandRegistry<T extends object>(): PanelCommandRegistry<T>;
|
|
24
|
+
/** The verbs every list and tree shares (the host's `list.*` commands act on the last focused list). */
|
|
25
|
+
export interface ListCommandHandlers {
|
|
26
|
+
isActive(): boolean;
|
|
27
|
+
/** `Ctrl/Cmd+A` — select every row the list's rule takes (a tree widens one level per press). */
|
|
28
|
+
selectAll(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare const listHandlers: PanelCommandRegistry<ListCommandHandlers>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ui adapter: the panel command registries the kit itself claims.
|
|
3
|
+
*
|
|
4
|
+
* The host app keeps one module of registries, one per keybinding surface (explorer, SQL editor,
|
|
5
|
+
* terminal, list …): a surface claims its verbs while mounted and a command acts on the claim the
|
|
6
|
+
* user is in. ui ships the registry factory and the one registry its own components claim — the
|
|
7
|
+
* shared list verbs (`listHandlers`, `Ctrl/Cmd+A` on a tree). The other surfaces are the host's.
|
|
8
|
+
*
|
|
9
|
+
* `listHandlers` is a single instance: a host that registers the `list.*` commands reads THIS
|
|
10
|
+
* registry (`@vokril/ui-solid/host`), so its own lists and the kit's trees share one claim stack and
|
|
11
|
+
* one "last focused list".
|
|
12
|
+
*/
|
|
13
|
+
export interface PanelCommandRegistry<T extends object> {
|
|
14
|
+
set(handlers: T): () => void;
|
|
15
|
+
current(): T | null;
|
|
16
|
+
/**
|
|
17
|
+
* Top-down search over the stack (last-mounted first). Lets a surface that can be
|
|
18
|
+
* mounted more than once route a verb to the mount that is actually FOCUSED instead
|
|
19
|
+
* of the one that mounted last.
|
|
20
|
+
*/
|
|
21
|
+
find(predicate: (handlers: T) => boolean): T | null;
|
|
22
|
+
}
|
|
23
|
+
export declare function createPanelCommandRegistry<T extends object>(): PanelCommandRegistry<T>;
|
|
24
|
+
/** The verbs every list and tree shares (the host's `list.*` commands act on the last focused list). */
|
|
25
|
+
export interface ListCommandHandlers {
|
|
26
|
+
isActive(): boolean;
|
|
27
|
+
/** `Ctrl/Cmd+A` — select every row the list's rule takes (a tree widens one level per press). */
|
|
28
|
+
selectAll(): void;
|
|
29
|
+
}
|
|
30
|
+
export declare const listHandlers: PanelCommandRegistry<ListCommandHandlers>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const K=require("solid-js/web"),n=require("solid-js"),y=require("./bugIndicatingError-D2X5Hfgg.cjs"),u=n.createContext(null);function x(t){return K.createComponent(u.Provider,{get value(){return t.value},get children(){return t.children}})}function F(){const t=n.useContext(u);if(!t)throw new y.BugIndicatingError("useKeybindings must be used inside <KeybindingsProvider>");return t}function S(){return n.useContext(u)}function _(t){const{contextKeys:s,key:c,containerRef:a,onFocusIn:r,countsAsFocus:d}=t;let o;const g=e=>d===void 0||e instanceof Element&&d(e),f=e=>{o=e;const l=i=>{s.setContext(c,g(i)),r==null||r()},E=i=>l(i.target),C=i=>{const b=i.relatedTarget;b&&e.contains(b)||s.setContext(c,!1)};e.addEventListener("focusin",E),e.addEventListener("focusout",C);const v=e.ownerDocument.activeElement;e.contains(v)&&l(v),n.onCleanup(()=>{e.removeEventListener("focusin",E),e.removeEventListener("focusout",C),s.setContext(c,!1),o===e&&(o=void 0)})};n.createRenderEffect(()=>{const e=a();e&&f(e)}),n.onMount(()=>{if(o)return;const e=a();e&&f(e)})}const O="accessibilityModeEnabled",T={notificationFocus:"notificationFocus",notificationToastsVisible:"notificationToastsVisible",listFocus:"listFocus",listSupportsMultiselect:"listSupportsMultiselect"};exports.ACCESSIBILITY_MODE_ENABLED_KEY=O;exports.FOCUS_CONTEXT_KEYS=T;exports.KeybindingsProvider=x;exports.createFocusContextKey=_;exports.useKeybindings=F;exports.useKeybindingsOptional=S;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { createComponent as g } from "solid-js/web";
|
|
2
|
+
import { useContext as C, createContext as K, createRenderEffect as x, onMount as y, onCleanup as F } from "solid-js";
|
|
3
|
+
import { B as p } from "./bugIndicatingError-h3J5qkL6.js";
|
|
4
|
+
const r = K(null);
|
|
5
|
+
function T(e) {
|
|
6
|
+
return g(r.Provider, {
|
|
7
|
+
get value() {
|
|
8
|
+
return e.value;
|
|
9
|
+
},
|
|
10
|
+
get children() {
|
|
11
|
+
return e.children;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function M() {
|
|
16
|
+
const e = C(r);
|
|
17
|
+
if (!e)
|
|
18
|
+
throw new p("useKeybindings must be used inside <KeybindingsProvider>");
|
|
19
|
+
return e;
|
|
20
|
+
}
|
|
21
|
+
function O() {
|
|
22
|
+
return C(r);
|
|
23
|
+
}
|
|
24
|
+
function _(e) {
|
|
25
|
+
const { contextKeys: s, key: i, containerRef: u, onFocusIn: c, countsAsFocus: a } = e;
|
|
26
|
+
let o;
|
|
27
|
+
const b = (t) => a === void 0 || t instanceof Element && a(t), f = (t) => {
|
|
28
|
+
o = t;
|
|
29
|
+
const d = (n) => {
|
|
30
|
+
s.setContext(i, b(n)), c == null || c();
|
|
31
|
+
}, l = (n) => d(n.target), E = (n) => {
|
|
32
|
+
const m = n.relatedTarget;
|
|
33
|
+
m && t.contains(m) || s.setContext(i, !1);
|
|
34
|
+
};
|
|
35
|
+
t.addEventListener("focusin", l), t.addEventListener("focusout", E);
|
|
36
|
+
const v = t.ownerDocument.activeElement;
|
|
37
|
+
t.contains(v) && d(v), F(() => {
|
|
38
|
+
t.removeEventListener("focusin", l), t.removeEventListener("focusout", E), s.setContext(i, !1), o === t && (o = void 0);
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
x(() => {
|
|
42
|
+
const t = u();
|
|
43
|
+
t && f(t);
|
|
44
|
+
}), y(() => {
|
|
45
|
+
if (o) return;
|
|
46
|
+
const t = u();
|
|
47
|
+
t && f(t);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
const w = "accessibilityModeEnabled", A = {
|
|
51
|
+
/**
|
|
52
|
+
* Notification toast stack (the reference's `notificationFocus` / `notificationToastsVisible`
|
|
53
|
+
* keys): keyboard focus is inside the stack · the painted stack is not empty (while the
|
|
54
|
+
* notification centre is visible the stack is hidden and the key is false). The gate of the
|
|
55
|
+
* `Ctrl+Shift+A` primary-action binding — together with accessibility mode.
|
|
56
|
+
*/
|
|
57
|
+
notificationFocus: "notificationFocus",
|
|
58
|
+
notificationToastsVisible: "notificationToastsVisible",
|
|
59
|
+
/**
|
|
60
|
+
* The reference's list keys: focus is in a list or a tree — every tree surface, the search results, the terminal
|
|
61
|
+
* tab list — and that list takes more than one selection. `list.*` verbs (`surfaces/list.ts`) act on the list focus
|
|
62
|
+
* last entered (`context/useListCommands.ts`).
|
|
63
|
+
*/
|
|
64
|
+
listFocus: "listFocus",
|
|
65
|
+
listSupportsMultiselect: "listSupportsMultiselect"
|
|
66
|
+
};
|
|
67
|
+
export {
|
|
68
|
+
w as A,
|
|
69
|
+
A as F,
|
|
70
|
+
T as K,
|
|
71
|
+
O as a,
|
|
72
|
+
_ as c,
|
|
73
|
+
M as u
|
|
74
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const se=require("./bugIndicatingError-D2X5Hfgg.cjs"),w=require("./rendererLogging-B4XML4_G.cjs"),a=require("./notificationSuppressions-DFbFpayS.cjs"),g=require("./notification-CrxHMXsk.cjs"),y=require("./i18n-
|
|
1
|
+
"use strict";const se=require("./bugIndicatingError-D2X5Hfgg.cjs"),w=require("./rendererLogging-B4XML4_G.cjs"),a=require("./notificationSuppressions-DFbFpayS.cjs"),g=require("./notification-CrxHMXsk.cjs"),y=require("./i18n-B9ccWgcR.cjs"),ce={info:{freq:660,ms:140},success:{freq:880,ms:180},warning:{freq:520,ms:220},error:{freq:320,ms:260}},Ae={info:"soundOnInfo",success:"soundOnSuccess",warning:"soundOnWarning",error:"soundOnError"},Ne={info:"customSoundInfo",success:"customSoundSuccess",warning:"customSoundWarning",error:"customSoundError"};function ae(t,e,i){if(!e[Ae[t]]||e.quietHoursMutesSounds&&i)return null;const r=e[Ne[t]].trim();if(r)return{kind:"custom",path:r};const n=ce[t];return{kind:"builtin",freq:n.freq,ms:n.ms}}const K=new Map,F=new Map;async function ue(t){const e=K.get(t);if(e)return e;let i=F.get(t);return i||(i=a.readAudioAsDataUrl(t).then(r=>(F.delete(t),r&&K.set(t,r),r)),F.set(t,i)),await i??void 0}function Re(){K.clear(),F.clear()}const j=w.getLogger("NotificationAudio");let U=null,H=!1;function De(){if(H)return null;if(U)return U;try{const t=window.AudioContext??window.webkitAudioContext;return t?(U=new t,U):(H=!0,null)}catch(t){return H=!0,j.warn("AudioContext could not be created; notification sounds are off:",t),null}}async function $e(t){const e=await ue(t);if(e)try{const i=new Audio(e);i.volume=.6,await i.play()}catch(i){j.warn("Custom notification sound could not be played:",i)}}function le(t=800,e=200){const i=De();if(i)try{const r=i.currentTime,n=i.createOscillator(),o=i.createGain();n.connect(o),o.connect(i.destination),n.frequency.value=t,o.gain.setValueAtTime(.3,r),o.gain.exponentialRampToValueAtTime(.01,r+e/1e3),n.start(r),n.stop(r+e/1e3)}catch(r){j.warn("Notification tone could not be played:",r)}}function de(){le(800,200)}function fe(t,e){const i=ae(t,g.notificationSettings.get(),e);if(i){if(i.kind==="custom"){$e(i.path);return}le(i.freq,i.ms)}}const ge=w.getLogger("NotificationTimeline");function Ie(t){return t.vendorError===void 0?null:a.resolveVendorError(t.vendorError)}const Oe=200;let W=[];const B=new Set;function D(){return[...W]}function $(t){const e=[...t].sort((s,c)=>c.createdAt-s.createdAt),i=e.filter(s=>s.pinned===!0),n=e.filter(s=>s.pinned!==!0).slice(0,Math.max(0,Oe-i.length));W=[...[...i].sort((s,c)=>(c.pinnedAt??c.createdAt)-(s.pinnedAt??s.createdAt)),...n];for(const s of Array.from(B))try{s(W)}catch(c){ge.warn("Zaman cizelgesi dinleyicisi firlatti:",c)}}let R=0,O=0;const V=new Set;function b(t,e,i="general",r="default",n,o){if(!t.trim())return;const s={id:`${Date.now()}-${Math.random().toString(36).slice(2,10)}`,message:w.scrubSecrets(t),tone:e,createdAt:Date.now(),source:i,priority:r,...n&&n.length>0?{actions:n}:{},...o?{vendorError:o}:{}};$([s,...D()]),R+=1,me()}function A(t){if(t)return[{label:t.label,onClick:t.onClick,primary:!0}]}function me(){const t=Math.max(0,R-O);for(const e of Array.from(V))try{e(t)}catch(i){ge.warn("Okunmadi sayaci dinleyicisi firlatti:",i)}ye(t)}let L=-1;function ye(t){const e=g.notificationSettings.get(),i=e.badgeCountEnabled?Math.min(t,e.badgeCountMax):0;i!==L&&(L=i,a.setOsBadgeCount(i))}function Ue(){const t=Math.max(0,R-O);L=-1,ye(t)}function Me(t){return V.add(t),t(Math.max(0,R-O)),()=>{V.delete(t)}}function qe(){O!==R&&(O=R,me())}function Fe(t){return B.add(t),t(D()),()=>{B.delete(t)}}function Pe(){$([])}function _e(t){const e=D().filter(i=>i.id!==t);$(e)}function He(t){if(t.length===0)return;const e=new Set(t),i=D().filter(r=>!e.has(r.id));$(i)}function Ke(t){if(!t)return;const e=D().filter(i=>i.source!==t);$(e)}function We(t){const i=D().map(r=>{if(r.id!==t)return r;const n=!r.pinned,{pinnedAt:o,...s}=r;return n?{...s,pinned:!0,pinnedAt:Date.now()}:{...s,pinned:!1}});$(i)}const P=new Map;function Be(){P.clear()}function Ve(t){if(P.has(t))return P.get(t)??null;let e;try{e=new RegExp(t,"i")}catch{e=null}return P.set(t,e),e}function Le(t,e){const i=t.conditions;if(i.source&&i.source!==e.source||i.severities&&i.severities.length>0&&!i.severities.includes(e.severity))return!1;if(i.titleRegex){const r=Ve(i.titleRegex);if(!r||!r.test(e.title))return!1}return!0}function ve(t,e){if(e.length===0)return t;let i={...t};for(const r of e)if(r.enabled&&Le(r,i)){if(r.actions.suppress===!0)return null;if(r.actions.setSeverity&&(i={...i,severity:r.actions.setSeverity}),r.actions.setPriority&&(i={...i,priority:r.actions.setPriority}),r.actions.addPrefix){const n=r.actions.addPrefix.trim();n&&(i={...i,title:`${n} ${i.title}`})}}return i}function te(t){const e=/^(\d{1,2}):(\d{2})$/.exec(t.trim());if(!e)return null;const i=Number(e[1]),r=Number(e[2]);return i>23||r>59?null:i*60+r}function X(t,e){if(!t.quietHoursEnabled||!t.quietHoursWeekdays.includes(e.getDay()))return!1;const i=te(t.quietHoursStart),r=te(t.quietHoursEnd);if(i===null||r===null||i===r)return!1;const n=e.getHours()*60+e.getMinutes();return i<r?n>=i&&n<r:n>=i||n<r}function Qe(t){return t.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&")}const Q={info:0,success:1,warning:2,error:3};function pe(t,e){return e.osNativeEnabled?t.priority==="urgent"&&e.osNativeUrgentAlways?{fire:!0,onlyWhenUnfocused:!1}:Q[t.severity]<Q[e.osNativeMinSeverity]?{fire:!1,onlyWhenUnfocused:!1}:{fire:!0,onlyWhenUnfocused:e.osNativeOnlyWhenUnfocused}:{fire:!1,onlyWhenUnfocused:!1}}const Ye={"sql-execution":"sql",users:"users",tablespaces:"tablespaces",rss:"rss-feeds",locking:"locking",monitoring:"monitoring"};function je(t,e){if(e)return e;if(t!==void 0)return Ye[t]}const Xe="notification.emailDigestSmtpPass",ze="notification.webhook.url.";function he(){const t=new Map;return{get:e=>Promise.resolve(t.get(e)),set:async(e,i)=>{t.set(e,i)},delete:async e=>{t.delete(e)},keys:async e=>[...t.keys()].filter(i=>i.startsWith(e))}}let z=he();function Ge(t){z=t??he()}function Je(t){return`${ze}${t}`}function Ze(){return z.get(Xe)}function et(t){return z.get(Je(t))}let Se="";function tt(t){Se=t.trim()}function G(){return Se}const it=w.getLogger("WebhookDelivery"),rt={info:"#007AB0",success:"#108846",warning:"#D27908",error:"#BE2E34"},nt={info:1668818,success:3046706,warning:16088064,error:12986408};function ot(t,e){const{severities:i,priorities:r,sources:n}=t.filters;return!(i.length>0&&!i.includes(e.severity)||r.length>0&&!r.includes(e.priority)||n.length>0&&!n.includes(e.source))}function st(t,e){switch(t.type){case"slack":return{text:e.title,attachments:[{color:rt[e.severity],fields:[{title:"Source",value:e.source,short:!0},{title:"Severity",value:e.severity,short:!0},{title:"Priority",value:e.priority,short:!0}],text:e.body??""}]};case"discord":return{embeds:[{title:e.title,description:e.body??"",color:nt[e.severity],fields:[{name:"Source",value:e.source,inline:!0},{name:"Severity",value:e.severity,inline:!0},{name:"Priority",value:e.priority,inline:!0}]}]};case"generic":default:return{title:e.title,body:e.body??"",severity:e.severity,priority:e.priority,source:e.source,timestamp:Date.now()}}}async function ct(t,e,i){try{const r=JSON.stringify(st(t,i));await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},body:r})}catch(r){it.warn("Webhook delivery failed:",r)}}async function at(t,e){const i=await et(t.id)??"";i&&await ct(t,i,e)}function ut(t){const i=g.notificationSettings.get().webhooks.filter(r=>r.enabled&&ot(r,t));if(i.length!==0)for(const r of i)at(r,t)}let Y=null;function lt(t){Y=t}const dt=w.getLogger("EmailDigest"),T=[],ie=500,re={info:0,success:1,warning:2,error:3};function ft(t){const e=g.notificationSettings.get();e.emailDigestEnabled&&(re[t.severity]<re[e.emailDigestMinSeverity]||(T.push(t),T.length>ie&&T.splice(0,T.length-ie)))}const M=t=>t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function gt(t){const e=G(),i=t.map(r=>`<tr>
|
|
2
2
|
<td style="padding:4px 8px">${new Date(r.at).toISOString().slice(11,19)}</td>
|
|
3
3
|
<td style="padding:4px 8px"><strong>${r.severity}</strong></td>
|
|
4
4
|
<td style="padding:4px 8px">${M(r.source)}</td>
|
|
@@ -2,7 +2,7 @@ import { B as oe } from "./bugIndicatingError-h3J5qkL6.js";
|
|
|
2
2
|
import { g as K, e as N } from "./rendererLogging-Edo4ALXU.js";
|
|
3
3
|
import { G as Ee, r as Y, H as ke, F as P, I as Ae, q as ce, t as X, s as Ce, J as De, f as ae, K as ue, j as Re, n as Z, m as $e, k as Ne, L as le, M as Ie, e as Oe } from "./notificationSuppressions-CBIJ4bC4.js";
|
|
4
4
|
import { n as f } from "./notification-DFbp3S_f.js";
|
|
5
|
-
import { t as m } from "./i18n-
|
|
5
|
+
import { t as m } from "./i18n-CYq-dVvv.js";
|
|
6
6
|
const Ue = {
|
|
7
7
|
info: { freq: 660, ms: 140 },
|
|
8
8
|
success: { freq: 880, ms: 180 },
|
package/dist/charts/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TimeSeriesChart-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../TimeSeriesChart-CS4jQflv.cjs");exports.TimeSeriesChart=e.TimeSeriesChart;exports.clampInterval=e.clampInterval;exports.seriesSegments=e.seriesSegments;exports.valueDomain=e.valueDomain;
|
package/dist/charts/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("solid-js/web"),G=require("@vokril/icons"),h=require("solid-js"),F=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),$=require("./headerIconOverrides-64lFnqTt.cjs"),A=require("./iconSetRegistry-CMUqn1IQ.cjs"),D=require("./i18n-DZZyw7Iu.cjs"),J=require("./IconPicker-BreG8jKY.cjs"),O=require("./Button-DntBQ4fM.cjs"),_=require("./keys-BeeC5_RZ.cjs"),X=require("./OverlayScrollArea-BSlaXG1h.cjs"),T=require("./rendererLogging-B4XML4_G.cjs"),C=require("./preferencesCache-DJPCTPYx.cjs"),Q=require("./windowRegistry-CGvOBUsw.cjs");var j=t.template("<div>");function U(e){const u=F.useDesktopContextMenu(),v=$.getHeaderIconOverrides(),[g,a]=h.createSignal(null),b=()=>g()===e.pageId,[k,r]=h.createSignal(null),d=h.createMemo(()=>v()[e.pageId]??(e.fallbackPageId?v()[e.fallbackPageId]:null)??null);h.createEffect(()=>{e.pageId,a(null)}),h.createEffect(()=>{const l=d();if(!l){r(null);return}const n=A.getIconSync(l.name);if(n){r(()=>n);return}r(null);let o=!1;h.onCleanup(()=>{o=!0}),A.loadIconSet().then(s=>{const y=d();o||!y||y.name!==l.name||r(()=>s[l.name]??null)})});const c=h.createMemo(()=>k()??e.fallbackIcon),m=l=>{if(e.interactive===!1)return;l.preventDefault(),l.stopPropagation();const n=e.pageId;A.isIconSetLoaded()||A.loadIconSet();const o=[],s=e.onSettings;s&&(o.push({label:D.t("Settings…"),onSelect:s}),o.push({type:"separator"})),o.push({label:D.t("Change icon"),onSelect:()=>{e.pageId===n&&a(n)}}),o.push({label:D.t("Reset to default icon"),disabled:!v()[e.pageId],onSelect:()=>{e.pageId===n&&$.clearHeaderIconOverride(n)}}),u.open(l.clientX,l.clientY,o,l)},f=l=>{const n=g();!n||n!==e.pageId||($.setHeaderIconOverride(n,{set:"tb",name:l}),a(null))};return[(()=>{var l=j();return l.$$contextmenu=m,t.insert(l,t.createComponent(t.Dynamic,{get component(){return c()},get class(){return e.iconClass},"aria-hidden":"true"})),t.effect(n=>{var o=e.class,s=e.ariaLabel;return o!==n.e&&t.className(l,n.e=o),s!==n.t&&t.setAttribute(l,"aria-label",n.t=s),n},{e:void 0,t:void 0}),l})(),t.createComponent(h.Show,{get when(){return b()},get children(){return t.createComponent(J.IconPicker,{open:b,onClose:()=>a(null),onSelect:f,get currentIconName(){var l;return((l=d())==null?void 0:l.name)??null}})}})]}t.delegateEvents(["contextmenu"]);const Z="vk_header_7CNKc",p="vk_headerLeft_-fa7V",ee="vk_headerActions_aaFA-",te="vk_headerIcon_c1sgk",ne="vk_headerIconSvg_7jyQp",ae="vk_titleRow_0A-NY",re="vk_backButton_GIWbu",ie="vk_title_k1DVA",oe="vk_subtitle_RXfOz",le="vk_refreshIconButton_bVyMc",ce="vk_compact_e7ku-",I={header:Z,headerLeft:p,headerActions:ee,headerIcon:te,headerIconSvg:ne,titleRow:ae,backButton:re,title:ie,subtitle:oe,refreshIconButton:le,compact:ce};var se=t.template("<div><h2>"),de=t.template("<p>"),ue=t.template("<div>"),ve=t.template("<header><div><div>"),ge=t.template("<h2>");function he(e){return(()=>{var u=ve(),v=u.firstChild,g=v.firstChild;return t.insert(v,t.createComponent(h.Show,{get when(){return t.memo(()=>e.fallbackIcon!=null)()&&e.pageId!=null},get children(){return t.createComponent(U,{get pageId(){return e.pageId},get fallbackPageId(){return e.fallbackIconPageId},get fallbackIcon(){return e.fallbackIcon},get class(){return I.headerIcon},get iconClass(){return I.headerIconSvg},get ariaLabel(){return e.iconAriaLabel},get onSettings(){return e.onSettings}})}}),g),t.insert(g,t.createComponent(h.Show,{get when(){return e.onBack!=null},get fallback(){return(()=>{var a=ge();return t.insert(a,()=>e.title),t.effect(()=>t.className(a,I.title)),a})()},get children(){var a=se(),b=a.firstChild;return t.insert(a,t.createComponent(O.Button,{variant:"secondary",size:"sm",get class(){return I.backButton},onClick:()=>e.onBack(),get children(){return["← ",t.memo(()=>e.backLabel??D.t("Back"))]}}),b),t.insert(b,()=>e.title),t.effect(k=>{var r=I.titleRow,d=I.title;return r!==k.e&&t.className(a,k.e=r),d!==k.t&&t.className(b,k.t=d),k},{e:void 0,t:void 0}),a}}),null),t.insert(g,t.createComponent(h.Show,{get when(){return e.subtitle!=null},get children(){var a=de();return t.insert(a,()=>e.subtitle),t.effect(()=>t.className(a,I.subtitle)),a}}),null),t.insert(u,t.createComponent(h.Show,{get when(){return e.onRefresh!=null||e.actions!=null},get children(){var a=ue();return t.insert(a,t.createComponent(h.Show,{get when(){return e.onRefresh!=null},get children(){return t.createComponent(O.Button,{size:"md",variant:"secondary",iconOnly:!0,get class(){return I.refreshIconButton},get disabled(){return e.refreshDisabled},get loading(){return e.refreshing},loadingDelay:0,get"aria-label"(){return e.refreshAriaLabel??D.t("Refresh")},onClick:()=>e.onRefresh(),get children(){return t.createComponent(G.VpRefresh,{"aria-hidden":"true"})}})}}),null),t.insert(a,()=>e.actions,null),t.effect(()=>t.className(a,I.headerActions)),a}}),null),t.effect(a=>{var b=I.header,k={[I.compact]:e.variant==="compact"},r=I.headerLeft;return b!==a.e&&t.className(u,a.e=b),a.t=t.classList(u,k,a.t),r!==a.a&&t.className(v,a.a=r),a},{e:void 0,t:void 0,a:void 0}),u})()}const fe="vk_handle_fHazX",me="vk_dragging_7oGBz",be="vk_horizontal_nwaLt",ke="vk_vertical_wzd-m",ye="vk_indicator_aLgDs",L={handle:fe,dragging:me,horizontal:be,vertical:ke,indicator:ye};var Se=t.template("<div role=separator tabindex=0><div aria-hidden=true>");function we(e){const[u,v]=h.createSignal(!1),g=()=>e.orientation??"horizontal";let a;h.onCleanup(()=>{a==null||a()});const b=r=>{r.preventDefault();const d=r.currentTarget;d.setPointerCapture(r.pointerId),v(!0);let c=r.clientX,m=r.clientY;const f=n=>{var w;const o=n.clientX-c,s=n.clientY-m;c=n.clientX,m=n.clientY;const y=g()==="horizontal"?o:s;(w=e.onResize)==null||w.call(e,y)},l=n=>{try{d.releasePointerCapture(n.pointerId)}catch{}d.removeEventListener("pointermove",f),d.removeEventListener("pointerup",l),d.removeEventListener("pointercancel",l),a=void 0,v(!1)};a=()=>{d.removeEventListener("pointermove",f),d.removeEventListener("pointerup",l),d.removeEventListener("pointercancel",l)},d.addEventListener("pointermove",f),d.addEventListener("pointerup",l),d.addEventListener("pointercancel",l)},k=r=>{var c,m,f,l;const d=r.shiftKey?10:2;g()==="horizontal"?_.isKey(r,"ArrowLeft")?(r.preventDefault(),(c=e.onResize)==null||c.call(e,-d)):_.isKey(r,"ArrowRight")&&(r.preventDefault(),(m=e.onResize)==null||m.call(e,d)):_.isKey(r,"ArrowUp")?(r.preventDefault(),(f=e.onResize)==null||f.call(e,-d)):_.isKey(r,"ArrowDown")&&(r.preventDefault(),(l=e.onResize)==null||l.call(e,d))};return(()=>{var r=Se(),d=r.firstChild;return r.$$keydown=k,t.addEventListener(r,"dblclick",e.onDoubleClick,!0),r.$$pointerdown=b,t.effect(c=>{var m=g(),f=e.value,l=e.min,n=e.max,o=e.ariaLabel??"Resize separator",s=`${L.handle} ${g()==="horizontal"?L.horizontal:L.vertical} ${u()?L.dragging:""} ${e.class??""}`,y=L.indicator;return m!==c.e&&t.setAttribute(r,"aria-orientation",c.e=m),f!==c.t&&t.setAttribute(r,"aria-valuenow",c.t=f),l!==c.a&&t.setAttribute(r,"aria-valuemin",c.a=l),n!==c.o&&t.setAttribute(r,"aria-valuemax",c.o=n),o!==c.i&&t.setAttribute(r,"aria-label",c.i=o),s!==c.n&&t.className(r,c.n=s),y!==c.s&&t.className(d,c.s=y),c},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),r})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);const Ie="vk_container_DGAoE",ze="vk_horizontal_GnS2m",_e="vk_vertical_oOyQM",Ce="vk_firstPane_kDkKK",Le="vk_secondPane_61mm8",De="vk_paneScroll_-7IJF",Re="vk_separator_Gadcl",Ae="vk_separatorHorizontal_0e62B",Pe="vk_separatorVertical_zIDqL",$e="vk_dragging_iMvN6",Ee="vk_handle_7YOEJ",z={container:Ie,horizontal:ze,vertical:_e,firstPane:Ce,secondPane:Le,paneScroll:De,separator:Re,separatorHorizontal:Ae,separatorVertical:Pe,dragging:$e,handle:Ee};var Ke=t.template("<div><div></div><div role=separator tabindex=0><div aria-hidden=true></div></div><div>");function Ne(e){const u=()=>e.direction??"horizontal",v=()=>e.minSize??15,g=()=>e.maxSize??85,[a,b]=h.createSignal(Math.min(g(),Math.max(v(),e.initialSize??50))),[k,r]=h.createSignal(!1);let d;const c=n=>{var s;const o=Math.min(g(),Math.max(v(),n));b(o),(s=e.onResize)==null||s.call(e,o)},m=()=>{c(50)},f=n=>{n.preventDefault();const o=n.currentTarget;o.setPointerCapture(n.pointerId),r(!0);const s=w=>{if(!d)return;const i=d.getBoundingClientRect();let S;u()==="horizontal"?S=(w.clientX-i.left)/i.width*100:S=(w.clientY-i.top)/i.height*100,c(S)},y=w=>{try{o.releasePointerCapture(w.pointerId)}catch(i){T.bestEffortFailed("ignore if capture already released",i)}o.removeEventListener("pointermove",s),o.removeEventListener("pointerup",y),o.removeEventListener("pointercancel",y),r(!1)};o.addEventListener("pointermove",s),o.addEventListener("pointerup",y),o.addEventListener("pointercancel",y)},l=n=>{if(_.isKey(n,"Home")){n.preventDefault(),c(v());return}if(_.isKey(n,"End")){n.preventDefault(),c(g());return}const o=n.shiftKey?5:1;u()==="horizontal"?_.isKey(n,"ArrowLeft")?(n.preventDefault(),c(a()-o)):_.isKey(n,"ArrowRight")&&(n.preventDefault(),c(a()+o)):_.isKey(n,"ArrowUp")?(n.preventDefault(),c(a()-o)):_.isKey(n,"ArrowDown")&&(n.preventDefault(),c(a()+o))};return(()=>{var n=Ke(),o=n.firstChild,s=o.nextSibling,y=s.firstChild,w=s.nextSibling;return t.use(i=>{d=i},n),t.insert(o,t.createComponent(X.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.first}})),s.$$keydown=l,s.$$dblclick=m,s.$$pointerdown=f,t.insert(w,t.createComponent(X.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.second}})),t.effect(i=>{var S=`${z.container} ${u()==="horizontal"?z.horizontal:z.vertical} ${k()?z.dragging:""} ${e.class??""}`,R=z.firstPane,P={[u()==="horizontal"?"width":"height"]:`${a()}%`},K=u(),N=Math.round(a()),x=v(),B=g(),M=e.ariaLabel??"Resize pane",q=`${z.separator} ${u()==="horizontal"?z.separatorHorizontal:z.separatorVertical}`,H=z.handle,W=z.secondPane;return S!==i.e&&t.className(n,i.e=S),R!==i.t&&t.className(o,i.t=R),i.a=t.style(o,P,i.a),K!==i.o&&t.setAttribute(s,"aria-orientation",i.o=K),N!==i.i&&t.setAttribute(s,"aria-valuenow",i.i=N),x!==i.n&&t.setAttribute(s,"aria-valuemin",i.n=x),B!==i.s&&t.setAttribute(s,"aria-valuemax",i.s=B),M!==i.h&&t.setAttribute(s,"aria-label",i.h=M),q!==i.r&&t.className(s,i.r=q),H!==i.d&&t.className(y,i.d=H),W!==i.l&&t.className(w,i.l=W),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0}),n})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);function E(e,u,v){return Math.max(u,Math.min(v,e))}function xe(e,u,v,g){return typeof e!="number"||Number.isNaN(e)?u:E(e,v,g)}function Y(e,u,v,g){var a;return xe((a=C.getUiLayout().sidebarWidths)==null?void 0:a[e],u,v,g)}function V(e){var u;return((u=C.getUiLayout().sidebarCollapsed)==null?void 0:u[e])===!0}function Be(e){const[u,v]=h.createSignal(Y(e.storageKey,e.defaultWidth,e.min,e.max)),[g,a]=h.createSignal(V(e.collapsedKey)),[b,k]=h.createSignal(!1),r=i=>{if(b())return;const S=i.detail;S&&(S.key!==e.storageKey&&S.key!==e.collapsedKey||h.batch(()=>{v(Y(e.storageKey,e.defaultWidth,e.min,e.max)),a(V(e.collapsedKey))}))},d=C.getSidebarLayoutChangeEventName();window.addEventListener(d,r),h.onCleanup(()=>window.removeEventListener(d,r));let c=null,m=null,f=typeof window<"u"?window:globalThis;const l=()=>{c&&f.removeEventListener("mousemove",c),m&&f.removeEventListener("mouseup",m),c=null,m=null},n=(i,S)=>{i.preventDefault(),k(!0),f=Q.getWindow$1(S);const R=S.getBoundingClientRect().left;c=P=>{v(E(P.clientX-R,e.min,e.max))},m=()=>{k(!1),C.setSidebarWidth(e.storageKey,u()),l()},f.addEventListener("mousemove",c),f.addEventListener("mouseup",m)},o=()=>{const i=!g();a(i),C.setSidebarCollapsed(e.collapsedKey,i)},s=i=>{const S=E(i,e.min,e.max);v(S),C.setSidebarWidth(e.storageKey,S)},y=i=>{s(u()+i)},w=()=>{s(e.defaultWidth)};return h.onCleanup(l),{width:u,collapsed:g,isResizing:b,startResize:n,resizeBy:y,resetWidth:w,toggleCollapse:o}}exports.PageHeader=he;exports.PageHeaderIcon=U;exports.ResizableSplitPane=Ne;exports.ResizeHandle=we;exports.createResizableSidebar=Be;
|
|
1
|
+
"use strict";const t=require("solid-js/web"),G=require("@vokril/icons"),h=require("solid-js"),F=require("./DesktopContextMenuContext-DMGNVjaR.cjs"),$=require("./headerIconOverrides-64lFnqTt.cjs"),A=require("./iconSetRegistry-CMUqn1IQ.cjs"),D=require("./i18n-B9ccWgcR.cjs"),J=require("./IconPicker-C_gAGvo0.cjs"),O=require("./Button-X8QR6llv.cjs"),_=require("./keys-BeeC5_RZ.cjs"),X=require("./OverlayScrollArea-BSlaXG1h.cjs"),T=require("./rendererLogging-B4XML4_G.cjs"),C=require("./preferencesCache-DJPCTPYx.cjs"),Q=require("./windowRegistry-CGvOBUsw.cjs");var j=t.template("<div>");function U(e){const u=F.useDesktopContextMenu(),v=$.getHeaderIconOverrides(),[g,a]=h.createSignal(null),b=()=>g()===e.pageId,[k,r]=h.createSignal(null),d=h.createMemo(()=>v()[e.pageId]??(e.fallbackPageId?v()[e.fallbackPageId]:null)??null);h.createEffect(()=>{e.pageId,a(null)}),h.createEffect(()=>{const l=d();if(!l){r(null);return}const n=A.getIconSync(l.name);if(n){r(()=>n);return}r(null);let o=!1;h.onCleanup(()=>{o=!0}),A.loadIconSet().then(s=>{const y=d();o||!y||y.name!==l.name||r(()=>s[l.name]??null)})});const c=h.createMemo(()=>k()??e.fallbackIcon),m=l=>{if(e.interactive===!1)return;l.preventDefault(),l.stopPropagation();const n=e.pageId;A.isIconSetLoaded()||A.loadIconSet();const o=[],s=e.onSettings;s&&(o.push({label:D.t("Settings…"),onSelect:s}),o.push({type:"separator"})),o.push({label:D.t("Change icon"),onSelect:()=>{e.pageId===n&&a(n)}}),o.push({label:D.t("Reset to default icon"),disabled:!v()[e.pageId],onSelect:()=>{e.pageId===n&&$.clearHeaderIconOverride(n)}}),u.open(l.clientX,l.clientY,o,l)},f=l=>{const n=g();!n||n!==e.pageId||($.setHeaderIconOverride(n,{set:"tb",name:l}),a(null))};return[(()=>{var l=j();return l.$$contextmenu=m,t.insert(l,t.createComponent(t.Dynamic,{get component(){return c()},get class(){return e.iconClass},"aria-hidden":"true"})),t.effect(n=>{var o=e.class,s=e.ariaLabel;return o!==n.e&&t.className(l,n.e=o),s!==n.t&&t.setAttribute(l,"aria-label",n.t=s),n},{e:void 0,t:void 0}),l})(),t.createComponent(h.Show,{get when(){return b()},get children(){return t.createComponent(J.IconPicker,{open:b,onClose:()=>a(null),onSelect:f,get currentIconName(){var l;return((l=d())==null?void 0:l.name)??null}})}})]}t.delegateEvents(["contextmenu"]);const Z="vk_header_7CNKc",p="vk_headerLeft_-fa7V",ee="vk_headerActions_aaFA-",te="vk_headerIcon_c1sgk",ne="vk_headerIconSvg_7jyQp",ae="vk_titleRow_0A-NY",re="vk_backButton_GIWbu",ie="vk_title_k1DVA",oe="vk_subtitle_RXfOz",le="vk_refreshIconButton_bVyMc",ce="vk_compact_e7ku-",I={header:Z,headerLeft:p,headerActions:ee,headerIcon:te,headerIconSvg:ne,titleRow:ae,backButton:re,title:ie,subtitle:oe,refreshIconButton:le,compact:ce};var se=t.template("<div><h2>"),de=t.template("<p>"),ue=t.template("<div>"),ve=t.template("<header><div><div>"),ge=t.template("<h2>");function he(e){return(()=>{var u=ve(),v=u.firstChild,g=v.firstChild;return t.insert(v,t.createComponent(h.Show,{get when(){return t.memo(()=>e.fallbackIcon!=null)()&&e.pageId!=null},get children(){return t.createComponent(U,{get pageId(){return e.pageId},get fallbackPageId(){return e.fallbackIconPageId},get fallbackIcon(){return e.fallbackIcon},get class(){return I.headerIcon},get iconClass(){return I.headerIconSvg},get ariaLabel(){return e.iconAriaLabel},get onSettings(){return e.onSettings}})}}),g),t.insert(g,t.createComponent(h.Show,{get when(){return e.onBack!=null},get fallback(){return(()=>{var a=ge();return t.insert(a,()=>e.title),t.effect(()=>t.className(a,I.title)),a})()},get children(){var a=se(),b=a.firstChild;return t.insert(a,t.createComponent(O.Button,{variant:"secondary",size:"sm",get class(){return I.backButton},onClick:()=>e.onBack(),get children(){return["← ",t.memo(()=>e.backLabel??D.t("Back"))]}}),b),t.insert(b,()=>e.title),t.effect(k=>{var r=I.titleRow,d=I.title;return r!==k.e&&t.className(a,k.e=r),d!==k.t&&t.className(b,k.t=d),k},{e:void 0,t:void 0}),a}}),null),t.insert(g,t.createComponent(h.Show,{get when(){return e.subtitle!=null},get children(){var a=de();return t.insert(a,()=>e.subtitle),t.effect(()=>t.className(a,I.subtitle)),a}}),null),t.insert(u,t.createComponent(h.Show,{get when(){return e.onRefresh!=null||e.actions!=null},get children(){var a=ue();return t.insert(a,t.createComponent(h.Show,{get when(){return e.onRefresh!=null},get children(){return t.createComponent(O.Button,{size:"md",variant:"secondary",iconOnly:!0,get class(){return I.refreshIconButton},get disabled(){return e.refreshDisabled},get loading(){return e.refreshing},loadingDelay:0,get"aria-label"(){return e.refreshAriaLabel??D.t("Refresh")},onClick:()=>e.onRefresh(),get children(){return t.createComponent(G.VpRefresh,{"aria-hidden":"true"})}})}}),null),t.insert(a,()=>e.actions,null),t.effect(()=>t.className(a,I.headerActions)),a}}),null),t.effect(a=>{var b=I.header,k={[I.compact]:e.variant==="compact"},r=I.headerLeft;return b!==a.e&&t.className(u,a.e=b),a.t=t.classList(u,k,a.t),r!==a.a&&t.className(v,a.a=r),a},{e:void 0,t:void 0,a:void 0}),u})()}const fe="vk_handle_fHazX",me="vk_dragging_7oGBz",be="vk_horizontal_nwaLt",ke="vk_vertical_wzd-m",ye="vk_indicator_aLgDs",L={handle:fe,dragging:me,horizontal:be,vertical:ke,indicator:ye};var Se=t.template("<div role=separator tabindex=0><div aria-hidden=true>");function we(e){const[u,v]=h.createSignal(!1),g=()=>e.orientation??"horizontal";let a;h.onCleanup(()=>{a==null||a()});const b=r=>{r.preventDefault();const d=r.currentTarget;d.setPointerCapture(r.pointerId),v(!0);let c=r.clientX,m=r.clientY;const f=n=>{var w;const o=n.clientX-c,s=n.clientY-m;c=n.clientX,m=n.clientY;const y=g()==="horizontal"?o:s;(w=e.onResize)==null||w.call(e,y)},l=n=>{try{d.releasePointerCapture(n.pointerId)}catch{}d.removeEventListener("pointermove",f),d.removeEventListener("pointerup",l),d.removeEventListener("pointercancel",l),a=void 0,v(!1)};a=()=>{d.removeEventListener("pointermove",f),d.removeEventListener("pointerup",l),d.removeEventListener("pointercancel",l)},d.addEventListener("pointermove",f),d.addEventListener("pointerup",l),d.addEventListener("pointercancel",l)},k=r=>{var c,m,f,l;const d=r.shiftKey?10:2;g()==="horizontal"?_.isKey(r,"ArrowLeft")?(r.preventDefault(),(c=e.onResize)==null||c.call(e,-d)):_.isKey(r,"ArrowRight")&&(r.preventDefault(),(m=e.onResize)==null||m.call(e,d)):_.isKey(r,"ArrowUp")?(r.preventDefault(),(f=e.onResize)==null||f.call(e,-d)):_.isKey(r,"ArrowDown")&&(r.preventDefault(),(l=e.onResize)==null||l.call(e,d))};return(()=>{var r=Se(),d=r.firstChild;return r.$$keydown=k,t.addEventListener(r,"dblclick",e.onDoubleClick,!0),r.$$pointerdown=b,t.effect(c=>{var m=g(),f=e.value,l=e.min,n=e.max,o=e.ariaLabel??"Resize separator",s=`${L.handle} ${g()==="horizontal"?L.horizontal:L.vertical} ${u()?L.dragging:""} ${e.class??""}`,y=L.indicator;return m!==c.e&&t.setAttribute(r,"aria-orientation",c.e=m),f!==c.t&&t.setAttribute(r,"aria-valuenow",c.t=f),l!==c.a&&t.setAttribute(r,"aria-valuemin",c.a=l),n!==c.o&&t.setAttribute(r,"aria-valuemax",c.o=n),o!==c.i&&t.setAttribute(r,"aria-label",c.i=o),s!==c.n&&t.className(r,c.n=s),y!==c.s&&t.className(d,c.s=y),c},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0}),r})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);const Ie="vk_container_DGAoE",ze="vk_horizontal_GnS2m",_e="vk_vertical_oOyQM",Ce="vk_firstPane_kDkKK",Le="vk_secondPane_61mm8",De="vk_paneScroll_-7IJF",Re="vk_separator_Gadcl",Ae="vk_separatorHorizontal_0e62B",Pe="vk_separatorVertical_zIDqL",$e="vk_dragging_iMvN6",Ee="vk_handle_7YOEJ",z={container:Ie,horizontal:ze,vertical:_e,firstPane:Ce,secondPane:Le,paneScroll:De,separator:Re,separatorHorizontal:Ae,separatorVertical:Pe,dragging:$e,handle:Ee};var Ke=t.template("<div><div></div><div role=separator tabindex=0><div aria-hidden=true></div></div><div>");function Ne(e){const u=()=>e.direction??"horizontal",v=()=>e.minSize??15,g=()=>e.maxSize??85,[a,b]=h.createSignal(Math.min(g(),Math.max(v(),e.initialSize??50))),[k,r]=h.createSignal(!1);let d;const c=n=>{var s;const o=Math.min(g(),Math.max(v(),n));b(o),(s=e.onResize)==null||s.call(e,o)},m=()=>{c(50)},f=n=>{n.preventDefault();const o=n.currentTarget;o.setPointerCapture(n.pointerId),r(!0);const s=w=>{if(!d)return;const i=d.getBoundingClientRect();let S;u()==="horizontal"?S=(w.clientX-i.left)/i.width*100:S=(w.clientY-i.top)/i.height*100,c(S)},y=w=>{try{o.releasePointerCapture(w.pointerId)}catch(i){T.bestEffortFailed("ignore if capture already released",i)}o.removeEventListener("pointermove",s),o.removeEventListener("pointerup",y),o.removeEventListener("pointercancel",y),r(!1)};o.addEventListener("pointermove",s),o.addEventListener("pointerup",y),o.addEventListener("pointercancel",y)},l=n=>{if(_.isKey(n,"Home")){n.preventDefault(),c(v());return}if(_.isKey(n,"End")){n.preventDefault(),c(g());return}const o=n.shiftKey?5:1;u()==="horizontal"?_.isKey(n,"ArrowLeft")?(n.preventDefault(),c(a()-o)):_.isKey(n,"ArrowRight")&&(n.preventDefault(),c(a()+o)):_.isKey(n,"ArrowUp")?(n.preventDefault(),c(a()-o)):_.isKey(n,"ArrowDown")&&(n.preventDefault(),c(a()+o))};return(()=>{var n=Ke(),o=n.firstChild,s=o.nextSibling,y=s.firstChild,w=s.nextSibling;return t.use(i=>{d=i},n),t.insert(o,t.createComponent(X.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.first}})),s.$$keydown=l,s.$$dblclick=m,s.$$pointerdown=f,t.insert(w,t.createComponent(X.OverlayScrollArea,{get rootClass(){return z.paneScroll},get children(){return e.second}})),t.effect(i=>{var S=`${z.container} ${u()==="horizontal"?z.horizontal:z.vertical} ${k()?z.dragging:""} ${e.class??""}`,R=z.firstPane,P={[u()==="horizontal"?"width":"height"]:`${a()}%`},K=u(),N=Math.round(a()),x=v(),B=g(),M=e.ariaLabel??"Resize pane",q=`${z.separator} ${u()==="horizontal"?z.separatorHorizontal:z.separatorVertical}`,H=z.handle,W=z.secondPane;return S!==i.e&&t.className(n,i.e=S),R!==i.t&&t.className(o,i.t=R),i.a=t.style(o,P,i.a),K!==i.o&&t.setAttribute(s,"aria-orientation",i.o=K),N!==i.i&&t.setAttribute(s,"aria-valuenow",i.i=N),x!==i.n&&t.setAttribute(s,"aria-valuemin",i.n=x),B!==i.s&&t.setAttribute(s,"aria-valuemax",i.s=B),M!==i.h&&t.setAttribute(s,"aria-label",i.h=M),q!==i.r&&t.className(s,i.r=q),H!==i.d&&t.className(y,i.d=H),W!==i.l&&t.className(w,i.l=W),i},{e:void 0,t:void 0,a:void 0,o:void 0,i:void 0,n:void 0,s:void 0,h:void 0,r:void 0,d:void 0,l:void 0}),n})()}t.delegateEvents(["pointerdown","dblclick","keydown"]);function E(e,u,v){return Math.max(u,Math.min(v,e))}function xe(e,u,v,g){return typeof e!="number"||Number.isNaN(e)?u:E(e,v,g)}function Y(e,u,v,g){var a;return xe((a=C.getUiLayout().sidebarWidths)==null?void 0:a[e],u,v,g)}function V(e){var u;return((u=C.getUiLayout().sidebarCollapsed)==null?void 0:u[e])===!0}function Be(e){const[u,v]=h.createSignal(Y(e.storageKey,e.defaultWidth,e.min,e.max)),[g,a]=h.createSignal(V(e.collapsedKey)),[b,k]=h.createSignal(!1),r=i=>{if(b())return;const S=i.detail;S&&(S.key!==e.storageKey&&S.key!==e.collapsedKey||h.batch(()=>{v(Y(e.storageKey,e.defaultWidth,e.min,e.max)),a(V(e.collapsedKey))}))},d=C.getSidebarLayoutChangeEventName();window.addEventListener(d,r),h.onCleanup(()=>window.removeEventListener(d,r));let c=null,m=null,f=typeof window<"u"?window:globalThis;const l=()=>{c&&f.removeEventListener("mousemove",c),m&&f.removeEventListener("mouseup",m),c=null,m=null},n=(i,S)=>{i.preventDefault(),k(!0),f=Q.getWindow$1(S);const R=S.getBoundingClientRect().left;c=P=>{v(E(P.clientX-R,e.min,e.max))},m=()=>{k(!1),C.setSidebarWidth(e.storageKey,u()),l()},f.addEventListener("mousemove",c),f.addEventListener("mouseup",m)},o=()=>{const i=!g();a(i),C.setSidebarCollapsed(e.collapsedKey,i)},s=i=>{const S=E(i,e.min,e.max);v(S),C.setSidebarWidth(e.storageKey,S)},y=i=>{s(u()+i)},w=()=>{s(e.defaultWidth)};return h.onCleanup(l),{width:u,collapsed:g,isResizing:b,startResize:n,resizeBy:y,resetWidth:w,toggleCollapse:o}}exports.PageHeader=he;exports.PageHeaderIcon=U;exports.ResizableSplitPane=Ne;exports.ResizeHandle=we;exports.createResizableSidebar=Be;
|
|
@@ -4,9 +4,9 @@ import { createSignal as R, createMemo as T, createEffect as J, onCleanup as B,
|
|
|
4
4
|
import { u as de } from "./DesktopContextMenuContext-DJ3PnqAv.js";
|
|
5
5
|
import { a as se, c as ue, s as ve } from "./headerIconOverrides-BCzeaBA1.js";
|
|
6
6
|
import { g as he, l as Q, i as ge } from "./iconSetRegistry-r8c82MmK.js";
|
|
7
|
-
import { t as x } from "./i18n-
|
|
8
|
-
import { I as fe } from "./IconPicker-
|
|
9
|
-
import { B as j } from "./Button-
|
|
7
|
+
import { t as x } from "./i18n-CYq-dVvv.js";
|
|
8
|
+
import { I as fe } from "./IconPicker-BxofGXCS.js";
|
|
9
|
+
import { B as j } from "./Button-BZWXPn8y.js";
|
|
10
10
|
import { i as D } from "./keys-Bfgdfak_.js";
|
|
11
11
|
import { O as q } from "./OverlayScrollArea-c8Za77qs.js";
|
|
12
12
|
import { d as me } from "./rendererLogging-Edo4ALXU.js";
|
|
@@ -352,6 +352,7 @@ const e = "Kodierung", n = "aktiviert", t = "deaktiviert", i = "Sichten", o = "B
|
|
|
352
352
|
"No data is lost; the cache fills again as sessions run.": "Es gehen keine Daten verloren; der Cache füllt sich wieder, während Sitzungen laufen.",
|
|
353
353
|
created_at: xn,
|
|
354
354
|
"Accept Notification Primary Action": "Primäraktion der Benachrichtigung annehmen",
|
|
355
|
+
"Clear Notification": "Benachrichtigung löschen",
|
|
355
356
|
"Accepted formats: {accept}": "Akzeptierte Formate: {accept}",
|
|
356
357
|
"Add tag (press Enter or comma)...": "Tag hinzufügen (Eingabe oder Komma drücken)...",
|
|
357
358
|
Breadcrumbs: Pn,
|