@g9tm/lynxcontrols 2.5.6 → 2.5.8
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/catalog/cards/G9AppBar.md +1 -1
- package/catalog/cards/G9AppearancePage.md +17 -0
- package/catalog/cards/G9Badge.md +1 -1
- package/catalog/cards/G9Button.md +2 -2
- package/catalog/cards/G9Card.md +1 -1
- package/catalog/cards/G9CarryContexts.md +10 -0
- package/catalog/cards/G9CheckBox.md +1 -1
- package/catalog/cards/G9Chip.md +1 -1
- package/catalog/cards/G9ChipStrip.md +16 -0
- package/catalog/cards/G9CodeBlock.md +17 -0
- package/catalog/cards/G9CommandPalette.md +3 -1
- package/catalog/cards/G9ConnectionBanner.md +1 -1
- package/catalog/cards/G9ContrastPanel.md +15 -0
- package/catalog/cards/G9DashboardCustomizeSheet.md +17 -0
- package/catalog/cards/G9DashboardGrid.md +17 -0
- package/catalog/cards/G9DragList.md +4 -2
- package/catalog/cards/G9Editor.md +1 -1
- package/catalog/cards/G9ErrorBoundary.md +3 -2
- package/catalog/cards/G9FormField.md +2 -2
- package/catalog/cards/G9ListRow.md +1 -1
- package/catalog/cards/G9Menu.md +1 -1
- package/catalog/cards/G9MenuList.md +2 -0
- package/catalog/cards/G9NotificationCenter.md +17 -0
- package/catalog/cards/G9NotificationCenterPanel.md +17 -0
- package/catalog/cards/G9PathNavigator.md +13 -0
- package/catalog/cards/G9PersonalThemeSheet.md +17 -0
- package/catalog/cards/G9Popover.md +1 -1
- package/catalog/cards/G9Provider.md +1 -1
- package/catalog/cards/G9RangeSlider.md +2 -2
- package/catalog/cards/G9ReaderSheet.md +17 -0
- package/catalog/cards/G9ReaderView.md +17 -0
- package/catalog/cards/G9SafeButton.md +2 -2
- package/catalog/cards/G9SearchEntry.md +1 -1
- package/catalog/cards/G9SecretValue.md +17 -0
- package/catalog/cards/G9ShortcutList.md +4 -0
- package/catalog/cards/G9ShortcutsSheet.md +3 -1
- package/catalog/cards/G9StatusPill.md +1 -1
- package/catalog/cards/G9Stepper.md +1 -1
- package/catalog/cards/G9SwitchRow.md +1 -1
- package/catalog/cards/G9Tag.md +1 -1
- package/catalog/cards/G9TextEntry.md +1 -1
- package/catalog/cards/G9UpdateBar.md +2 -1
- package/catalog/cards/G9VirtualList.md +1 -1
- package/catalog/cards/G9WallpaperSwatch.md +16 -0
- package/catalog/cards/G9WidgetSkeleton.md +9 -0
- package/catalog/cards/G9WidgetSlot.md +13 -0
- package/catalog/cards/PopupFrame.md +2 -2
- package/catalog/catalog.json +9460 -2155
- package/catalog/index.md +20 -3
- package/dist/.tsbuildinfo +1 -1
- package/dist/appearance/appearance.css +264 -0
- package/dist/appearance/appearance.css.map +1 -0
- package/dist/appearance/appearance.d.ts +148 -0
- package/dist/appearance/appearance.d.ts.map +1 -0
- package/dist/appearance/appearance.jsx +604 -0
- package/dist/appearance/index.d.ts +2 -0
- package/dist/appearance/index.d.ts.map +1 -0
- package/dist/appearance/index.jsx +1 -0
- package/dist/base/control.d.ts +15 -0
- package/dist/base/control.d.ts.map +1 -1
- package/dist/base/control.jsx +13 -1
- package/dist/base/index.d.ts +1 -1
- package/dist/base/index.d.ts.map +1 -1
- package/dist/base/index.jsx +1 -1
- package/dist/base/selection-item.d.ts +5 -0
- package/dist/base/selection-item.d.ts.map +1 -1
- package/dist/button/button.css +4 -0
- package/dist/button/button.css.map +1 -1
- package/dist/cascade/cascade.css +2 -0
- package/dist/cascade/cascade.css.map +1 -1
- package/dist/commands/commands.css +46 -0
- package/dist/commands/commands.css.map +1 -1
- package/dist/commands/index.d.ts +2 -2
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.jsx +2 -2
- package/dist/commands/keys.d.ts +15 -1
- package/dist/commands/keys.d.ts.map +1 -1
- package/dist/commands/keys.jsx +20 -1
- package/dist/commands/palette.d.ts +73 -7
- package/dist/commands/palette.d.ts.map +1 -1
- package/dist/commands/palette.jsx +174 -20
- package/dist/dashboard/dashboard.css +101 -0
- package/dist/dashboard/dashboard.css.map +1 -0
- package/dist/dashboard/dashboard.d.ts +73 -0
- package/dist/dashboard/dashboard.d.ts.map +1 -0
- package/dist/dashboard/dashboard.jsx +297 -0
- package/dist/dashboard/index.d.ts +3 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.jsx +2 -0
- package/dist/dashboard/model.d.ts +53 -0
- package/dist/dashboard/model.d.ts.map +1 -0
- package/dist/dashboard/model.jsx +76 -0
- package/dist/display/code.css +109 -0
- package/dist/display/code.css.map +1 -0
- package/dist/display/code.d.ts +43 -0
- package/dist/display/code.d.ts.map +1 -0
- package/dist/display/code.jsx +101 -0
- package/dist/display/extras.d.ts +7 -2
- package/dist/display/extras.d.ts.map +1 -1
- package/dist/display/extras.jsx +13 -4
- package/dist/display/figures.d.ts.map +1 -1
- package/dist/display/figures.jsx +10 -2
- package/dist/display/index.d.ts +1 -0
- package/dist/display/index.d.ts.map +1 -1
- package/dist/display/index.jsx +1 -0
- package/dist/display/motion-figures.css +2 -0
- package/dist/display/motion-figures.css.map +1 -1
- package/dist/display/motion-figures.d.ts.map +1 -1
- package/dist/display/motion-figures.jsx +14 -7
- package/dist/display/status.d.ts +1 -1
- package/dist/display/status.d.ts.map +1 -1
- package/dist/display/status.jsx +15 -3
- package/dist/display/theme-preview.css +4 -0
- package/dist/display/theme-preview.css.map +1 -1
- package/dist/effects/effects.d.ts.map +1 -1
- package/dist/effects/effects.jsx +8 -1
- package/dist/fields/extra-entries.css +1 -0
- package/dist/fields/extra-entries.css.map +1 -1
- package/dist/fields/extra-entries.d.ts +4 -1
- package/dist/fields/extra-entries.d.ts.map +1 -1
- package/dist/fields/extra-entries.jsx +54 -19
- package/dist/fields/fields.css +21 -0
- package/dist/fields/fields.css.map +1 -1
- package/dist/fields/outlined-field.d.ts +9 -0
- package/dist/fields/outlined-field.d.ts.map +1 -1
- package/dist/fields/outlined-field.jsx +6 -1
- package/dist/fields/pin-entry.d.ts.map +1 -1
- package/dist/fields/pin-entry.jsx +36 -3
- package/dist/fields/text-entry.d.ts +4 -0
- package/dist/fields/text-entry.d.ts.map +1 -1
- package/dist/fields/text-entry.jsx +32 -25
- package/dist/fields/use-text-input.d.ts +3 -2
- package/dist/fields/use-text-input.d.ts.map +1 -1
- package/dist/fields/use-text-input.jsx +3 -0
- package/dist/header/app-bar.d.ts +6 -0
- package/dist/header/app-bar.d.ts.map +1 -1
- package/dist/header/app-bar.jsx +22 -8
- package/dist/header/header.css +14 -0
- package/dist/header/header.css.map +1 -1
- package/dist/host/bottom-overlays.d.ts +5 -0
- package/dist/host/bottom-overlays.d.ts.map +1 -1
- package/dist/host/bottom-overlays.jsx +17 -1
- package/dist/host/carry-contexts.d.ts +28 -0
- package/dist/host/carry-contexts.d.ts.map +1 -0
- package/dist/host/carry-contexts.jsx +76 -0
- package/dist/host/host.d.ts.map +1 -1
- package/dist/host/host.jsx +5 -1
- package/dist/host/index.d.ts +2 -0
- package/dist/host/index.d.ts.map +1 -1
- package/dist/host/index.jsx +2 -0
- package/dist/icon/icon.d.ts.map +1 -1
- package/dist/icon/icon.jsx +13 -9
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/layout/containers.d.ts.map +1 -1
- package/dist/layout/containers.jsx +2 -1
- package/dist/layout/layout.css +7 -0
- package/dist/layout/layout.css.map +1 -1
- package/dist/list/gestures.d.ts +39 -6
- package/dist/list/gestures.d.ts.map +1 -1
- package/dist/list/gestures.jsx +284 -89
- package/dist/list/index.d.ts +3 -2
- package/dist/list/index.d.ts.map +1 -1
- package/dist/list/index.jsx +2 -1
- package/dist/list/keyboard.d.ts +50 -0
- package/dist/list/keyboard.d.ts.map +1 -0
- package/dist/list/keyboard.jsx +117 -0
- package/dist/list/list.css +50 -5
- package/dist/list/list.css.map +1 -1
- package/dist/list/rows.d.ts +13 -1
- package/dist/list/rows.d.ts.map +1 -1
- package/dist/list/rows.jsx +42 -23
- package/dist/list/virtual-list.d.ts +27 -1
- package/dist/list/virtual-list.d.ts.map +1 -1
- package/dist/list/virtual-list.jsx +49 -4
- package/dist/notifications/index.d.ts +3 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.jsx +2 -0
- package/dist/notifications/model.d.ts +47 -0
- package/dist/notifications/model.d.ts.map +1 -0
- package/dist/notifications/model.jsx +51 -0
- package/dist/notifications/notification-center.d.ts +98 -0
- package/dist/notifications/notification-center.d.ts.map +1 -0
- package/dist/notifications/notification-center.jsx +424 -0
- package/dist/notifications/notifications.css +266 -0
- package/dist/notifications/notifications.css.map +1 -0
- package/dist/orb/orb.css +2 -0
- package/dist/orb/orb.css.map +1 -1
- package/dist/pickers/pickers.css +15 -0
- package/dist/pickers/pickers.css.map +1 -1
- package/dist/plus-button/plus-button.css +2 -0
- package/dist/plus-button/plus-button.css.map +1 -1
- package/dist/plus-button/plus-button.d.ts.map +1 -1
- package/dist/plus-button/plus-button.jsx +2 -1
- package/dist/popover/popover.css +23 -1
- package/dist/popover/popover.css.map +1 -1
- package/dist/popover/popover.d.ts +14 -0
- package/dist/popover/popover.d.ts.map +1 -1
- package/dist/popover/popover.jsx +73 -12
- package/dist/popover/position.d.ts +6 -2
- package/dist/popover/position.d.ts.map +1 -1
- package/dist/popover/position.jsx +15 -4
- package/dist/popup/popup.css +3 -0
- package/dist/popup/popup.css.map +1 -1
- package/dist/provider/direction-scope.d.ts +8 -0
- package/dist/provider/direction-scope.d.ts.map +1 -1
- package/dist/provider/direction-scope.jsx +13 -2
- package/dist/provider/index.d.ts +1 -1
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/provider.css +7 -0
- package/dist/provider/provider.css.map +1 -1
- package/dist/provider/provider.d.ts +6 -1
- package/dist/provider/provider.d.ts.map +1 -1
- package/dist/provider/provider.jsx +22 -2
- package/dist/provider/settings.d.ts +14 -0
- package/dist/provider/settings.d.ts.map +1 -1
- package/dist/provider/settings.jsx +4 -1
- package/dist/range-slider/index.d.ts +1 -1
- package/dist/range-slider/index.d.ts.map +1 -1
- package/dist/range-slider/range-slider.css +69 -0
- package/dist/range-slider/range-slider.css.map +1 -1
- package/dist/range-slider/range-slider.d.ts +22 -0
- package/dist/range-slider/range-slider.d.ts.map +1 -1
- package/dist/range-slider/range-slider.jsx +34 -5
- package/dist/reader/index.d.ts +2 -0
- package/dist/reader/index.d.ts.map +1 -0
- package/dist/reader/index.jsx +1 -0
- package/dist/reader/reader.css +74 -0
- package/dist/reader/reader.css.map +1 -0
- package/dist/reader/reader.d.ts +76 -0
- package/dist/reader/reader.d.ts.map +1 -0
- package/dist/reader/reader.jsx +149 -0
- package/dist/route/index.d.ts +2 -0
- package/dist/route/index.d.ts.map +1 -1
- package/dist/route/index.jsx +2 -0
- package/dist/route/path-navigator.css +42 -0
- package/dist/route/path-navigator.css.map +1 -0
- package/dist/route/path-navigator.d.ts +25 -0
- package/dist/route/path-navigator.d.ts.map +1 -0
- package/dist/route/path-navigator.jsx +98 -0
- package/dist/route/path-router.d.ts +162 -0
- package/dist/route/path-router.d.ts.map +1 -0
- package/dist/route/path-router.jsx +327 -0
- package/dist/selection/selection-sheet.d.ts.map +1 -1
- package/dist/selection/selection-sheet.jsx +23 -10
- package/dist/selection/selection.css +18 -1
- package/dist/selection/selection.css.map +1 -1
- package/dist/sheet/frame.d.ts.map +1 -1
- package/dist/sheet/frame.jsx +9 -8
- package/dist/sheet/options.d.ts +6 -1
- package/dist/sheet/options.d.ts.map +1 -1
- package/dist/sheet/options.jsx +2 -1
- package/dist/sheet/panel-frame.d.ts.map +1 -1
- package/dist/sheet/panel-frame.jsx +5 -4
- package/dist/sheet/sizing.d.ts +3 -3
- package/dist/sheet/sizing.d.ts.map +1 -1
- package/dist/sheet/sizing.jsx +1 -0
- package/dist/shell/shell.css +18 -1
- package/dist/shell/shell.css.map +1 -1
- package/dist/shell/shell.d.ts +10 -1
- package/dist/shell/shell.d.ts.map +1 -1
- package/dist/shell/shell.jsx +13 -9
- package/dist/survey/survey.css +15 -0
- package/dist/survey/survey.css.map +1 -1
- package/dist/survey/survey.d.ts +6 -0
- package/dist/survey/survey.d.ts.map +1 -1
- package/dist/survey/survey.jsx +24 -6
- package/dist/swipe/swipe.css +2 -0
- package/dist/swipe/swipe.css.map +1 -1
- package/dist/tab-bar/flat.d.ts.map +1 -1
- package/dist/tab-bar/flat.jsx +53 -38
- package/dist/tab-bar/tab-bar.css +2 -0
- package/dist/tab-bar/tab-bar.css.map +1 -1
- package/dist/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/tab-bar/tab-bar.jsx +28 -6
- package/dist/tabs/tab-view.jsx +10 -3
- package/dist/tabs/tabs.css +5 -0
- package/dist/tabs/tabs.css.map +1 -1
- package/dist/toast/index.d.ts +1 -1
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/service.d.ts.map +1 -1
- package/dist/toast/service.jsx +18 -5
- package/dist/toast/store.d.ts +22 -0
- package/dist/toast/store.d.ts.map +1 -1
- package/dist/toast/store.jsx +35 -3
- package/dist/toast/toast.css +22 -0
- package/dist/toast/toast.css.map +1 -1
- package/dist/toggle/checkbox.d.ts +5 -0
- package/dist/toggle/checkbox.d.ts.map +1 -1
- package/dist/toggle/checkbox.jsx +7 -2
- package/dist/toggle/choice.css +35 -0
- package/dist/toggle/choice.css.map +1 -1
- package/dist/toggle/choice.d.ts +45 -0
- package/dist/toggle/choice.d.ts.map +1 -1
- package/dist/toggle/choice.jsx +97 -23
- package/dist/toggle/index.d.ts +1 -1
- package/dist/toggle/index.d.ts.map +1 -1
- package/dist/toggle/index.jsx +1 -1
- package/package.json +22 -2
- package/skills/g9-lynx-app/references/catalog-index.md +24 -8
- package/skills/g9-lynx-app/references/components/appearance.md +70 -0
- package/skills/g9-lynx-app/references/components/barcode.md +1 -1
- package/skills/g9-lynx-app/references/components/button.md +4 -4
- package/skills/g9-lynx-app/references/components/calendar-1.md +205 -0
- package/skills/g9-lynx-app/references/components/calendar-2.md +36 -0
- package/skills/g9-lynx-app/references/components/canvas.md +33 -0
- package/skills/g9-lynx-app/references/components/chat-1.md +199 -0
- package/skills/g9-lynx-app/references/components/chat-2.md +119 -0
- package/skills/g9-lynx-app/references/components/commands.md +10 -2
- package/skills/g9-lynx-app/references/components/commerce.md +1 -1
- package/skills/g9-lynx-app/references/components/dashboard.md +61 -0
- package/skills/g9-lynx-app/references/components/display-1.md +22 -21
- package/skills/g9-lynx-app/references/components/display-2.md +36 -39
- package/skills/g9-lynx-app/references/components/display-3.md +41 -2
- package/skills/g9-lynx-app/references/components/fields.md +5 -5
- package/skills/g9-lynx-app/references/components/header.md +1 -1
- package/skills/g9-lynx-app/references/components/host.md +11 -0
- package/skills/g9-lynx-app/references/components/layout-1.md +1 -1
- package/skills/g9-lynx-app/references/components/list.md +7 -5
- package/skills/g9-lynx-app/references/components/map.md +19 -1
- package/skills/g9-lynx-app/references/components/media-1.md +203 -0
- package/skills/g9-lynx-app/references/components/media-2.md +66 -0
- package/skills/g9-lynx-app/references/components/notifications.md +37 -0
- package/skills/g9-lynx-app/references/components/popover.md +4 -2
- package/skills/g9-lynx-app/references/components/popup.md +2 -2
- package/skills/g9-lynx-app/references/components/projects.md +73 -0
- package/skills/g9-lynx-app/references/components/provider.md +1 -1
- package/skills/g9-lynx-app/references/components/range-slider.md +2 -2
- package/skills/g9-lynx-app/references/components/reader.md +37 -0
- package/skills/g9-lynx-app/references/components/richtext.md +54 -0
- package/skills/g9-lynx-app/references/components/route.md +14 -0
- package/skills/g9-lynx-app/references/components/shell.md +3 -2
- package/skills/g9-lynx-app/references/components/toggle.md +20 -3
- package/skills/g9-lynx-app/references/provider-and-host.md +4 -3
- package/skills/g9-lynx-app/references/components/calendar.md +0 -128
- package/skills/g9-lynx-app/references/components/chat.md +0 -98
- package/skills/g9-lynx-app/references/components/media.md +0 -115
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import "./commands.css";
|
|
2
2
|
import { g9Haptic, searchKey } from "@g9tm/lynxcontrols-foundation";
|
|
3
|
-
import { memo, useEffect, useMemo, useState } from "@lynx-js/react";
|
|
3
|
+
import { memo, useEffect, useMemo, useRef, useState } from "@lynx-js/react";
|
|
4
4
|
import { g9ChildId, g9IdProps, g9RowStyle } from "../base/control.jsx";
|
|
5
|
+
import { G9ActivityIndicator } from "../display/activity-indicator.jsx";
|
|
5
6
|
import { G9Keycap } from "../display/keycap.jsx";
|
|
6
7
|
import { useG9Back, useG9LayerItem } from "../host/hooks.jsx";
|
|
7
8
|
import { G9Icon } from "../icon/icon.jsx";
|
|
@@ -36,22 +37,127 @@ function rankCommands(commands, query, limit = 50) {
|
|
|
36
37
|
scored.sort((a, b)=>b.s - a.s || a.i - b.i);
|
|
37
38
|
return scored.slice(0, limit).map((x)=>x.c);
|
|
38
39
|
}
|
|
40
|
+
const RECENT = '~g9-recent';
|
|
41
|
+
function paletteResults(commands, query, options = {}) {
|
|
42
|
+
var _options_recents, _options_answers, _options_groups;
|
|
43
|
+
const ranked = rankCommands(commands, query);
|
|
44
|
+
const recentIds = '' === query.trim() ? null != (_options_recents = options.recents) ? _options_recents : [] : [];
|
|
45
|
+
const recent = recentIds.map((id)=>commands.find((c)=>c.id === id)).filter((c)=>void 0 !== c).map((c)=>({
|
|
46
|
+
...c,
|
|
47
|
+
group: RECENT
|
|
48
|
+
}));
|
|
49
|
+
const seen = new Set(recent.map((c)=>c.id));
|
|
50
|
+
const rest = [
|
|
51
|
+
...ranked,
|
|
52
|
+
...(null != (_options_answers = options.answers) ? _options_answers : []).flat()
|
|
53
|
+
].filter((c)=>{
|
|
54
|
+
if (seen.has(c.id)) return false;
|
|
55
|
+
seen.add(c.id);
|
|
56
|
+
return true;
|
|
57
|
+
});
|
|
58
|
+
const order = new Map((null != (_options_groups = options.groups) ? _options_groups : []).map((g, i)=>[
|
|
59
|
+
g.id,
|
|
60
|
+
i
|
|
61
|
+
]));
|
|
62
|
+
const rank = (c)=>{
|
|
63
|
+
var _order_get;
|
|
64
|
+
return void 0 === c.group ? Number.MAX_SAFE_INTEGER : null != (_order_get = order.get(c.group)) ? _order_get : order.size;
|
|
65
|
+
};
|
|
66
|
+
const sorted = rest.map((c, i)=>({
|
|
67
|
+
c,
|
|
68
|
+
i
|
|
69
|
+
})).sort((a, b)=>rank(a.c) - rank(b.c) || a.i - b.i);
|
|
70
|
+
return [
|
|
71
|
+
...recent,
|
|
72
|
+
...sorted.map((x)=>x.c)
|
|
73
|
+
];
|
|
74
|
+
}
|
|
39
75
|
let seq = 0;
|
|
40
76
|
function G9CommandPalette(props) {
|
|
41
|
-
var _g9ChildId, _props_placeholder, _props_emptyText;
|
|
77
|
+
var _props_query, _props_providers, _g9ChildId, _props_placeholder, _props_emptyText;
|
|
42
78
|
const { wide } = useG9Layout();
|
|
43
79
|
const dir = useG9Direction();
|
|
44
|
-
const [
|
|
80
|
+
const [ownQuery, setOwnQuery] = useState('');
|
|
81
|
+
const query = null != (_props_query = props.query) ? _props_query : ownQuery;
|
|
82
|
+
const setQuery = (q)=>{
|
|
83
|
+
var _props_onQueryChange;
|
|
84
|
+
if (void 0 === props.query) setOwnQuery(q);
|
|
85
|
+
null == (_props_onQueryChange = props.onQueryChange) || _props_onQueryChange.call(props, q);
|
|
86
|
+
};
|
|
45
87
|
const [active, setActive] = useState(0);
|
|
46
|
-
const
|
|
88
|
+
const [answers, setAnswers] = useState({});
|
|
89
|
+
const [pending, setPending] = useState(0);
|
|
90
|
+
const providers = null != (_props_providers = props.providers) ? _props_providers : [];
|
|
91
|
+
const providerKey = providers.map((p)=>p.id).join('|');
|
|
92
|
+
const latest = useRef(providers);
|
|
93
|
+
latest.current = providers;
|
|
94
|
+
useEffect(()=>{
|
|
95
|
+
if (!props.open || 0 === latest.current.length) return;
|
|
96
|
+
const signal = {
|
|
97
|
+
aborted: false
|
|
98
|
+
};
|
|
99
|
+
const timers = [];
|
|
100
|
+
const asked = latest.current.filter((p)=>true === p.empty || '' !== query.trim());
|
|
101
|
+
setAnswers((a)=>Object.fromEntries(Object.entries(a).filter(([id])=>asked.some((p)=>p.id === id))));
|
|
102
|
+
setPending(asked.length);
|
|
103
|
+
for (const p of asked){
|
|
104
|
+
var _p_debounceMs;
|
|
105
|
+
timers.push(setTimeout(()=>{
|
|
106
|
+
Promise.resolve().then(()=>p.search(query, signal)).then((list)=>{
|
|
107
|
+
if (signal.aborted) return;
|
|
108
|
+
const grouped = list.map((c)=>p.group && !c.group ? {
|
|
109
|
+
...c,
|
|
110
|
+
group: p.group
|
|
111
|
+
} : c);
|
|
112
|
+
setAnswers((a)=>({
|
|
113
|
+
...a,
|
|
114
|
+
[p.id]: grouped
|
|
115
|
+
}));
|
|
116
|
+
}, ()=>void 0).then(()=>{
|
|
117
|
+
if (!signal.aborted) setPending((n)=>Math.max(0, n - 1));
|
|
118
|
+
});
|
|
119
|
+
}, null != (_p_debounceMs = p.debounceMs) ? _p_debounceMs : 150));
|
|
120
|
+
}
|
|
121
|
+
return ()=>{
|
|
122
|
+
signal.aborted = true;
|
|
123
|
+
for (const t of timers)clearTimeout(t);
|
|
124
|
+
};
|
|
125
|
+
}, [
|
|
126
|
+
props.open,
|
|
127
|
+
query,
|
|
128
|
+
providerKey
|
|
129
|
+
]);
|
|
130
|
+
const results = useMemo(()=>paletteResults(props.commands, query, {
|
|
131
|
+
answers: providers.map((p)=>{
|
|
132
|
+
var _answers_p_id;
|
|
133
|
+
return null != (_answers_p_id = answers[p.id]) ? _answers_p_id : [];
|
|
134
|
+
}),
|
|
135
|
+
...props.groups ? {
|
|
136
|
+
groups: props.groups
|
|
137
|
+
} : {},
|
|
138
|
+
...props.recents ? {
|
|
139
|
+
recents: props.recents
|
|
140
|
+
} : {}
|
|
141
|
+
}), [
|
|
47
142
|
props.commands,
|
|
48
|
-
query
|
|
143
|
+
query,
|
|
144
|
+
answers,
|
|
145
|
+
providerKey,
|
|
146
|
+
props.groups,
|
|
147
|
+
props.recents
|
|
49
148
|
]);
|
|
149
|
+
const headingOf = (group)=>{
|
|
150
|
+
var _props_recentsLabel, _ref;
|
|
151
|
+
var _props_groups_find, _props_groups;
|
|
152
|
+
return group === RECENT ? null != (_props_recentsLabel = props.recentsLabel) ? _props_recentsLabel : '' : null != (_ref = null == (_props_groups = props.groups) ? void 0 : null == (_props_groups_find = _props_groups.find((g)=>g.id === group)) ? void 0 : _props_groups_find.label) ? _ref : group;
|
|
153
|
+
};
|
|
50
154
|
const key = useMemo(()=>`g9-palette-${++seq}`, []);
|
|
51
155
|
useEffect(()=>{
|
|
52
156
|
if (!props.open) {
|
|
53
|
-
|
|
157
|
+
if (void 0 === props.query) setOwnQuery('');
|
|
54
158
|
setActive(0);
|
|
159
|
+
setAnswers({});
|
|
160
|
+
setPending(0);
|
|
55
161
|
}
|
|
56
162
|
}, [
|
|
57
163
|
props.open
|
|
@@ -76,10 +182,12 @@ function G9CommandPalette(props) {
|
|
|
76
182
|
inputId
|
|
77
183
|
]);
|
|
78
184
|
const run = (c)=>{
|
|
185
|
+
var _props_onRun;
|
|
79
186
|
if (!c) return;
|
|
80
187
|
g9Haptic('select');
|
|
81
188
|
props.onClose();
|
|
82
189
|
c.run();
|
|
190
|
+
null == (_props_onRun = props.onRun) || _props_onRun.call(props, c);
|
|
83
191
|
};
|
|
84
192
|
useG9Keys((e)=>{
|
|
85
193
|
const k = e.key.toLowerCase();
|
|
@@ -99,15 +207,21 @@ function G9CommandPalette(props) {
|
|
|
99
207
|
const body = <view className="g9-palette__body">
|
|
100
208
|
<view className="g9-palette__search" style={g9RowStyle(dir)}>
|
|
101
209
|
<G9Icon icon="search" size={18} color="var(--g9-text-tertiary)"/>
|
|
102
|
-
<input className="g9-palette__input" id={inputId} placeholder={null != (_props_placeholder = props.placeholder) ? _props_placeholder : ''}
|
|
210
|
+
<input className="g9-palette__input" id={inputId} placeholder={null != (_props_placeholder = props.placeholder) ? _props_placeholder : ''} {...void 0 !== props.query ? {
|
|
211
|
+
value: props.query
|
|
212
|
+
} : {}} bindinput={(e)=>setQuery(e.detail.value)} confirm-type="go" bindconfirm={()=>run(results[active])}/>
|
|
103
213
|
</view>
|
|
104
214
|
<scroll-view className="g9-palette__results" scroll-orientation="vertical">
|
|
105
|
-
{0 === results.length ? <text className="g9-palette__empty">{null != (_props_emptyText = props.emptyText) ? _props_emptyText : '—'}</text> : null}
|
|
215
|
+
{0 === results.length && 0 === pending ? <text className="g9-palette__empty">{null != (_props_emptyText = props.emptyText) ? _props_emptyText : '—'}</text> : null}
|
|
106
216
|
{results.map((c, i)=>{
|
|
107
217
|
var _results_;
|
|
108
|
-
const heading = c.group && c.group !== (null == (_results_ = results[i - 1]) ? void 0 : _results_.group) ? c.group : null;
|
|
109
|
-
return <PaletteRow key={c.id} command={c} heading={heading} active={i === active} paletteId={props.id} platform={props.platform} direction={dir} onRun={()=>run(c)}/>;
|
|
218
|
+
const heading = c.group && c.group !== (null == (_results_ = results[i - 1]) ? void 0 : _results_.group) ? headingOf(c.group) || null : null;
|
|
219
|
+
return <PaletteRow key={`${c.group === RECENT ? 'r:' : ''}${c.id}`} command={c} heading={heading} active={i === active} paletteId={props.id} platform={props.platform} direction={dir} onRun={()=>run(c)}/>;
|
|
110
220
|
})}
|
|
221
|
+
{pending > 0 ? <view className="g9-palette__loading" style={g9RowStyle(dir)} accessibility-element={true}>
|
|
222
|
+
<G9ActivityIndicator running={true} size={16}/>
|
|
223
|
+
{props.loadingText ? <text className="g9-palette__subtitle">{props.loadingText}</text> : null}
|
|
224
|
+
</view> : null}
|
|
111
225
|
</scroll-view>
|
|
112
226
|
</view>;
|
|
113
227
|
const element = props.open && wide ? <view className="g9-palette-layer" key={key}>
|
|
@@ -147,18 +261,50 @@ const PaletteRow = memo(function(p) {
|
|
|
147
261
|
</view>
|
|
148
262
|
</view>;
|
|
149
263
|
});
|
|
264
|
+
function ShortcutKeys(props) {
|
|
265
|
+
const alternatives = 'string' == typeof props.combo ? [
|
|
266
|
+
props.combo
|
|
267
|
+
] : props.combo;
|
|
268
|
+
const parts = [];
|
|
269
|
+
alternatives.forEach((alt, a)=>{
|
|
270
|
+
if (a > 0) parts.push(<text key={`or${a}`} className="g9-shortcuts__joiner">
|
|
271
|
+
{props.orText}
|
|
272
|
+
</text>);
|
|
273
|
+
const steps = alt.trim().split(/\s+/);
|
|
274
|
+
steps.forEach((step, i)=>{
|
|
275
|
+
if (i > 0) parts.push(<text key={`then${a}-${i}`} className="g9-shortcuts__joiner">
|
|
276
|
+
{props.thenText}
|
|
277
|
+
</text>);
|
|
278
|
+
parts.push(<G9Keycap key={`k${a}-${i}`} combo={step} size="md" {...props.platform ? {
|
|
279
|
+
platform: props.platform
|
|
280
|
+
} : {}}/>);
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
return <view className="g9-shortcuts__keys" style={g9RowStyle(props.dir)}>
|
|
284
|
+
{parts}
|
|
285
|
+
</view>;
|
|
286
|
+
}
|
|
150
287
|
function G9ShortcutList(props) {
|
|
151
288
|
const dir = useG9Direction();
|
|
289
|
+
const { wide } = useG9Layout();
|
|
290
|
+
const two = 2 === props.columns || 1 !== props.columns && wide;
|
|
291
|
+
const group = (g)=><view key={g.title} className="g9-shortcuts__group">
|
|
292
|
+
<text className="g9-palette__heading">{g.title}</text>
|
|
293
|
+
{g.items.map((it)=>{
|
|
294
|
+
var _props_orText, _props_thenText;
|
|
295
|
+
return <view key={'string' == typeof it.combo ? it.combo : it.combo.join('|')} className="g9-shortcuts__row" style={g9RowStyle(dir)}>
|
|
296
|
+
<text className="g9-shortcuts__label">{it.label}</text>
|
|
297
|
+
<ShortcutKeys combo={it.combo} platform={props.platform} orText={null != (_props_orText = props.orText) ? _props_orText : '/'} thenText={null != (_props_thenText = props.thenText) ? _props_thenText : '→'} dir={dir}/>
|
|
298
|
+
</view>;
|
|
299
|
+
})}
|
|
300
|
+
</view>;
|
|
301
|
+
const half = Math.ceil(props.groups.length / 2);
|
|
152
302
|
return <view className="g9-shortcuts">
|
|
153
|
-
{props.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
platform: props.platform
|
|
159
|
-
} : {}}/>
|
|
160
|
-
</view>)}
|
|
161
|
-
</view>)}
|
|
303
|
+
{props.hint ? <text className="g9-shortcuts__hint">{props.hint}</text> : null}
|
|
304
|
+
{two ? <view className="g9-shortcuts__columns" style={g9RowStyle(dir)}>
|
|
305
|
+
<view className="g9-shortcuts__column">{props.groups.slice(0, half).map(group)}</view>
|
|
306
|
+
<view className="g9-shortcuts__column">{props.groups.slice(half).map(group)}</view>
|
|
307
|
+
</view> : props.groups.map(group)}
|
|
162
308
|
</view>;
|
|
163
309
|
}
|
|
164
310
|
function G9ShortcutsSheet(props) {
|
|
@@ -169,7 +315,15 @@ function G9ShortcutsSheet(props) {
|
|
|
169
315
|
} : {}}>
|
|
170
316
|
<G9ShortcutList groups={props.groups} {...props.platform ? {
|
|
171
317
|
platform: props.platform
|
|
318
|
+
} : {}} {...props.hint ? {
|
|
319
|
+
hint: props.hint
|
|
320
|
+
} : {}} {...props.orText ? {
|
|
321
|
+
orText: props.orText
|
|
322
|
+
} : {}} {...props.thenText ? {
|
|
323
|
+
thenText: props.thenText
|
|
324
|
+
} : {}} {...void 0 !== props.columns ? {
|
|
325
|
+
columns: props.columns
|
|
172
326
|
} : {}}/>
|
|
173
327
|
</G9ActionSheet>;
|
|
174
328
|
}
|
|
175
|
-
export { G9CommandPalette, G9ShortcutList, G9ShortcutsSheet, rankCommands };
|
|
329
|
+
export { G9CommandPalette, G9ShortcutList, G9ShortcutsSheet, paletteResults, rankCommands };
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
.g9-dash {
|
|
2
|
+
flex-direction: column;
|
|
3
|
+
width: 100%;
|
|
4
|
+
display: flex;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.g9-dash__columns {
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: flex-start;
|
|
10
|
+
display: flex;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.g9-dash__column {
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
flex: 1;
|
|
16
|
+
min-width: 0;
|
|
17
|
+
display: flex;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.g9-dash__card {
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
min-width: 0;
|
|
23
|
+
display: flex;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.g9-dash__skeleton {
|
|
27
|
+
background-color: var(--g9-surface-container);
|
|
28
|
+
border-radius: 16px;
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
row-gap: 12px;
|
|
31
|
+
padding: 16px;
|
|
32
|
+
display: flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.g9-dash__sheet {
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
row-gap: 12px;
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.g9-dash__hint {
|
|
42
|
+
font-size: 13px;
|
|
43
|
+
font-family: var(--g9-font-text);
|
|
44
|
+
color: var(--g9-text-secondary);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.g9-dash__row {
|
|
48
|
+
background-color: var(--g9-surface-container);
|
|
49
|
+
border-radius: 14px;
|
|
50
|
+
align-items: center;
|
|
51
|
+
column-gap: 8px;
|
|
52
|
+
margin-bottom: 8px;
|
|
53
|
+
padding: 10px;
|
|
54
|
+
display: flex;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.g9-dash__row--dragging {
|
|
58
|
+
background-color: var(--g9-primary-container);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.g9-dash__row-body {
|
|
62
|
+
flex: 1;
|
|
63
|
+
align-items: center;
|
|
64
|
+
column-gap: 8px;
|
|
65
|
+
min-width: 0;
|
|
66
|
+
display: flex;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.g9-dash__row-body--stack {
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
align-items: stretch;
|
|
72
|
+
row-gap: 8px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.g9-dash__name {
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight: 600;
|
|
78
|
+
font-family: var(--g9-font-text-600);
|
|
79
|
+
color: var(--g9-text-primary);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.g9-dash__name--flex {
|
|
83
|
+
flex: 1;
|
|
84
|
+
min-width: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.g9-dash__tools {
|
|
88
|
+
align-items: center;
|
|
89
|
+
column-gap: 2px;
|
|
90
|
+
display: flex;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.g9-dash__footer {
|
|
94
|
+
justify-content: space-between;
|
|
95
|
+
align-items: center;
|
|
96
|
+
width: 100%;
|
|
97
|
+
display: flex;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
/*# sourceMappingURL=dashboard.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["webpack://./src/dashboard/dashboard.css"],"names":[],"mappings":"AACA;EAAE,sBAAsB;EACtB,WAAW;EACX,aAAa;AACf;;AAGA;EAAE,mBAAmB;EACnB,uBAAuB;EACvB,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,OAAO;EACP,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,6CAA6C;EAC7C,mBAAmB;EACnB,sBAAsB;EACtB,aAAa;EACb,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,eAAe;EACf,gCAAgC;EAChC,+BAA+B;AACjC;;AAGA;EAAE,6CAA6C;EAC7C,mBAAmB;EACnB,mBAAmB;EACnB,eAAe;EACf,kBAAkB;EAClB,aAAa;EACb,aAAa;AACf;;AAGA;EAAE,6CAA6C;AAC/C;;AAGA;EAAE,OAAO;EACP,mBAAmB;EACnB,eAAe;EACf,YAAY;EACZ,aAAa;AACf;;AAGA;EAAE,sBAAsB;EACtB,oBAAoB;EACpB,YAAY;AACd;;AAGA;EAAE,eAAe;EACf,gBAAgB;EAChB,oCAAoC;EACpC,6BAA6B;AAC/B;;AAGA;EAAE,OAAO;EACP,YAAY;AACd;;AAGA;EAAE,mBAAmB;EACnB,eAAe;EACf,aAAa;AACf;;AAGA;EAAE,8BAA8B;EAC9B,mBAAmB;EACnB,WAAW;EACX,aAAa;AACf","sourcesContent":["/* G9DashboardGrid and G9DashboardCustomizeSheet (2.5.8). */\n.g9-dash {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.g9-dash__columns {\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n}\n\n.g9-dash__column {\n display: flex;\n flex-direction: column;\n flex: 1;\n min-width: 0px;\n}\n\n.g9-dash__card {\n display: flex;\n flex-direction: column;\n min-width: 0px;\n}\n\n.g9-dash__skeleton {\n display: flex;\n flex-direction: column;\n row-gap: 12px;\n padding: 16px;\n border-radius: 16px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-dash__sheet {\n display: flex;\n flex-direction: column;\n row-gap: 12px;\n}\n\n.g9-dash__hint {\n font-size: 13px;\n font-family: var(--g9-font-text);\n color: var(--g9-text-secondary);\n}\n\n.g9-dash__row {\n display: flex;\n align-items: center;\n column-gap: 8px;\n margin-bottom: 8px;\n padding: 10px;\n border-radius: 14px;\n background-color: var(--g9-surface-container);\n}\n\n.g9-dash__row--dragging {\n background-color: var(--g9-primary-container);\n}\n\n.g9-dash__row-body {\n display: flex;\n align-items: center;\n flex: 1;\n min-width: 0px;\n column-gap: 8px;\n}\n\n.g9-dash__row-body--stack {\n flex-direction: column;\n align-items: stretch;\n row-gap: 8px;\n}\n\n.g9-dash__name {\n font-size: 14px;\n font-weight: 600;\n font-family: var(--g9-font-text-600);\n color: var(--g9-text-primary);\n}\n\n.g9-dash__name--flex {\n flex: 1;\n min-width: 0px;\n}\n\n.g9-dash__tools {\n display: flex;\n align-items: center;\n column-gap: 2px;\n}\n\n.g9-dash__footer {\n display: flex;\n align-items: center;\n justify-content: space-between;\n width: 100%;\n}\n"],"sourceRoot":""}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { type ReactNode } from '@lynx-js/react';
|
|
2
|
+
import { type G9ErrorBoundaryProps } from '../display/extras.js';
|
|
3
|
+
import type { G9SheetOptions } from '../sheet/options.js';
|
|
4
|
+
import { type G9DashboardLayout, type G9DashboardWidget, type G9PlacedWidget, type G9WidgetSize } from './model.js';
|
|
5
|
+
import './dashboard.css';
|
|
6
|
+
/** The card shown while a widget's code loads. */
|
|
7
|
+
export declare function G9WidgetSkeleton(): ReactNode;
|
|
8
|
+
/** Props of {@link G9WidgetSlot}. */
|
|
9
|
+
export interface G9WidgetSlotProps {
|
|
10
|
+
readonly widget: G9DashboardWidget;
|
|
11
|
+
/** While the code loads (default {@link G9WidgetSkeleton}). */
|
|
12
|
+
readonly skeleton?: ReactNode;
|
|
13
|
+
/** A widget that failed to load or to draw. */
|
|
14
|
+
readonly onError?: (id: string, error: unknown) => void;
|
|
15
|
+
/** In its place once it failed (default nothing). */
|
|
16
|
+
readonly fallback?: G9ErrorBoundaryProps['fallback'];
|
|
17
|
+
}
|
|
18
|
+
/** One widget: drawn at once, or after its code arrives (a skeleton meanwhile); a failure leaves the slot. */
|
|
19
|
+
export declare function G9WidgetSlot(props: G9WidgetSlotProps): ReactNode;
|
|
20
|
+
/** Props of {@link G9DashboardGrid}. */
|
|
21
|
+
export interface G9DashboardGridProps {
|
|
22
|
+
readonly id?: string;
|
|
23
|
+
readonly widgets: readonly G9DashboardWidget[];
|
|
24
|
+
readonly layout?: G9DashboardLayout | null;
|
|
25
|
+
/** `'auto'` (default): two columns on wide windows, one on phones. */
|
|
26
|
+
readonly columns?: 'auto' | 1 | 2;
|
|
27
|
+
/** Between cards (dp). Default 12. */
|
|
28
|
+
readonly gap?: number;
|
|
29
|
+
/** Wraps each card (a frame, a title); default none. */
|
|
30
|
+
readonly renderCard?: (placed: G9PlacedWidget, content: ReactNode) => ReactNode;
|
|
31
|
+
readonly skeleton?: ReactNode;
|
|
32
|
+
readonly onWidgetError?: (id: string, error: unknown) => void;
|
|
33
|
+
readonly fallback?: G9ErrorBoundaryProps['fallback'];
|
|
34
|
+
/** When nothing is shown (every widget hidden). */
|
|
35
|
+
readonly empty?: ReactNode;
|
|
36
|
+
}
|
|
37
|
+
/** The dashboard: the person's widgets in their order and widths, full-width cards alone, half-width ones in two columns. */
|
|
38
|
+
export declare function G9DashboardGrid(props: G9DashboardGridProps): ReactNode;
|
|
39
|
+
/** The customize sheet's words (English by default). */
|
|
40
|
+
export interface G9DashboardCustomizeWords {
|
|
41
|
+
readonly title?: string;
|
|
42
|
+
readonly hint?: string;
|
|
43
|
+
readonly half?: string;
|
|
44
|
+
readonly full?: string;
|
|
45
|
+
readonly reset?: string;
|
|
46
|
+
readonly close?: string;
|
|
47
|
+
readonly moveUp?: (name: string) => string;
|
|
48
|
+
readonly moveDown?: (name: string) => string;
|
|
49
|
+
/** The drag handle's spoken name. */
|
|
50
|
+
readonly drag?: string;
|
|
51
|
+
readonly show?: (name: string) => string;
|
|
52
|
+
}
|
|
53
|
+
/** Props of {@link G9DashboardCustomizeSheet}. */
|
|
54
|
+
export interface G9DashboardCustomizeSheetProps {
|
|
55
|
+
readonly id?: string;
|
|
56
|
+
readonly open: boolean;
|
|
57
|
+
readonly onClose: () => void;
|
|
58
|
+
readonly widgets: readonly G9DashboardWidget[];
|
|
59
|
+
readonly layout?: G9DashboardLayout | null;
|
|
60
|
+
/** Every change at once: the full order, the hidden ids, the widths that differ from the widgets' own. */
|
|
61
|
+
readonly onChange: (layout: {
|
|
62
|
+
order: string[];
|
|
63
|
+
hidden: string[];
|
|
64
|
+
sizes: Record<string, G9WidgetSize>;
|
|
65
|
+
}) => void;
|
|
66
|
+
/** Offer the width choice. Default true. */
|
|
67
|
+
readonly sizes?: boolean;
|
|
68
|
+
readonly words?: G9DashboardCustomizeWords;
|
|
69
|
+
readonly options?: G9SheetOptions;
|
|
70
|
+
}
|
|
71
|
+
/** Customize a dashboard: drag (or step) to reorder, show or hide each widget, pick half or full width, reset. */
|
|
72
|
+
export declare function G9DashboardCustomizeSheet(props: G9DashboardCustomizeSheetProps): ReactNode;
|
|
73
|
+
//# sourceMappingURL=dashboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dashboard.d.ts","sourceRoot":"","sources":["../../src/dashboard/dashboard.tsx"],"names":[],"mappings":"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"}
|