@happyvertical/smrt-svelte 0.55.18 → 0.55.20
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/agents/cookbook-shell.md +26 -2
- package/agents/overview-surfaces.md +13 -3
- package/agents/workspace.md +46 -0
- package/dist/components/app/AppShell.svelte +29 -7
- package/dist/components/app/AppShell.svelte.d.ts +13 -5
- package/dist/components/app/AppShell.svelte.d.ts.map +1 -1
- package/dist/components/app/DockToggles.svelte +89 -47
- package/dist/components/app/DockToggles.svelte.d.ts +1 -1
- package/dist/components/app/DockToggles.svelte.d.ts.map +1 -1
- package/dist/components/app/PhoneTabBar.svelte +37 -12
- package/dist/components/app/PhoneTabBar.svelte.d.ts +1 -1
- package/dist/components/app/PhoneTabBar.svelte.d.ts.map +1 -1
- package/dist/components/app/ShellSettingsPage.svelte +2 -2
- package/dist/components/app/ShellSettingsPage.svelte.d.ts +2 -2
- package/dist/components/app/ShellSettingsPage.svelte.d.ts.map +1 -1
- package/dist/components/app/dock-toggle.d.ts +45 -0
- package/dist/components/app/dock-toggle.d.ts.map +1 -1
- package/dist/components/app/dock-toggle.js +26 -1
- package/dist/components/app/index.d.ts +1 -0
- package/dist/components/app/index.d.ts.map +1 -1
- package/dist/components/app/shell-user.d.ts +14 -0
- package/dist/components/app/shell-user.d.ts.map +1 -0
- package/dist/components/app/shell-user.js +1 -0
- package/dist/components/cookbook/CookbookSectionOverview.svelte +22 -3
- package/dist/components/cookbook/CookbookSectionOverview.svelte.d.ts +11 -2
- package/dist/components/cookbook/CookbookSectionOverview.svelte.d.ts.map +1 -1
- package/dist/components/cookbook/CookbookSectionPage.svelte +27 -9
- package/dist/components/cookbook/CookbookSectionPage.svelte.d.ts.map +1 -1
- package/dist/components/cookbook/index.d.ts +3 -1
- package/dist/components/cookbook/index.d.ts.map +1 -1
- package/dist/components/cookbook/index.js +2 -1
- package/dist/components/cookbook/registry.d.ts +18 -4
- package/dist/components/cookbook/registry.d.ts.map +1 -1
- package/dist/components/cookbook/registry.js +40 -2
- package/dist/components/cookbook/types.d.ts +39 -4
- package/dist/components/cookbook/types.d.ts.map +1 -1
- package/dist/components/overview/OverviewGrid.svelte +1 -0
- package/dist/components/overview/index.d.ts +1 -1
- package/dist/components/overview/index.d.ts.map +1 -1
- package/dist/components/overview/types.d.ts +6 -0
- package/dist/components/overview/types.d.ts.map +1 -1
- package/dist/components/overview/widgets/ChartWidget.svelte +158 -18
- package/dist/components/overview/widgets/ChartWidget.svelte.d.ts.map +1 -1
- package/dist/components/overview/widgets/ShortcutsWidget.svelte +32 -3
- package/dist/components/overview/widgets/ShortcutsWidget.svelte.d.ts.map +1 -1
- package/dist/components/overview/widgets/core.d.ts +9 -1
- package/dist/components/overview/widgets/core.d.ts.map +1 -1
- package/dist/components/overview/widgets/core.js +20 -1
- package/dist/components/overview/widgets/data.d.ts +16 -6
- package/dist/components/overview/widgets/data.d.ts.map +1 -1
- package/dist/components/workspace/admin-shell/AdminShell.svelte +13 -0
- package/dist/components/workspace/admin-shell/AdminShell.svelte.d.ts.map +1 -1
- package/dist/components/workspace/admin-shell/ShellSettingsPanel.svelte +52 -7
- package/dist/components/workspace/admin-shell/ShellSettingsPanel.svelte.d.ts +6 -2
- package/dist/components/workspace/admin-shell/ShellSettingsPanel.svelte.d.ts.map +1 -1
- package/dist/components/workspace/admin-shell/WorkspaceAccountMenu.svelte +54 -5
- package/dist/components/workspace/admin-shell/WorkspaceAccountMenu.svelte.d.ts +7 -2
- package/dist/components/workspace/admin-shell/WorkspaceAccountMenu.svelte.d.ts.map +1 -1
- package/dist/components/workspace/admin-shell/mobile-shell.d.ts +1 -1
- package/dist/components/workspace/admin-shell/mobile-shell.d.ts.map +1 -1
- package/dist/components/workspace/admin-shell/state.svelte.d.ts +9 -0
- package/dist/components/workspace/admin-shell/state.svelte.d.ts.map +1 -1
- package/dist/components/workspace/admin-shell/state.svelte.js +14 -0
- package/dist/i18n/strings.overview.d.ts +5 -0
- package/dist/i18n/strings.overview.d.ts.map +1 -1
- package/dist/i18n/strings.overview.js +5 -0
- package/dist/i18n/strings.workspace.d.ts +2 -0
- package/dist/i18n/strings.workspace.d.ts.map +1 -1
- package/dist/i18n/strings.workspace.js +3 -0
- package/package.json +16 -16
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Precedence: `onpress` runs first and can cancel. Then, when the tool is
|
|
3
|
+
* registered and `ready !== false`, the dock toggles. Otherwise `href` is
|
|
4
|
+
* followed when given, else nothing happens.
|
|
5
|
+
*/
|
|
6
|
+
export function resolveDockToggle(toggle, registered) {
|
|
7
|
+
const ready = toggle.ready !== false;
|
|
8
|
+
const mode = registered && ready ? 'toggle' : toggle.href ? 'link' : 'inert';
|
|
9
|
+
return { mode, registered, ready, notReady: !ready || mode === 'link' };
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Run `onpress` for a click. Returns `true` when the rest of the press (dock
|
|
13
|
+
* toggle or navigation) should go ahead. Stopping also calls
|
|
14
|
+
* `event.preventDefault()` so a link does not navigate.
|
|
15
|
+
*/
|
|
16
|
+
export function runDockTogglePress(toggle, event, resolution) {
|
|
17
|
+
const result = toggle.onpress?.(event, {
|
|
18
|
+
registered: resolution.registered,
|
|
19
|
+
ready: resolution.ready,
|
|
20
|
+
});
|
|
21
|
+
if (result === false || event.defaultPrevented) {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
@@ -13,6 +13,7 @@ export type { OwnerSetupData, OwnerSetupFormResult, } from './owner-setup-types.
|
|
|
13
13
|
export { default as RuntimeDiagnosticsWebMcp } from './RuntimeDiagnosticsWebMcp.svelte';
|
|
14
14
|
export { createRuntimeDiagnosticsWebMcpTool, type RegisterRuntimeDiagnosticsWebMcpOptions, RUNTIME_DIAGNOSTICS_ENDPOINT, RUNTIME_DIAGNOSTICS_WEBMCP_TOOL_NAME, type RuntimeDiagnosticsWebMcpOwner, registerRuntimeDiagnosticsWebMcp, } from './runtime-diagnostics-webmcp.js';
|
|
15
15
|
export { default as ShellSettingsPage } from './ShellSettingsPage.svelte';
|
|
16
|
+
export type { ShellUser } from './shell-user.js';
|
|
16
17
|
export type { AppShellAccountMenu, AppShellCommandPalette, ShellSlotItem, } from './slot-item.js';
|
|
17
18
|
export { createOnNavigateViewTransition, type RunViewTransitionOptions, runViewTransition, VIEW_TRANSITION_ATTRIBUTE, type ViewTransitionNavigation, } from './view-transition.js';
|
|
18
19
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,0BAA0B,EAC/B,iBAAiB,EACjB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,YAAY,EACV,cAAc,EACd,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EACL,kCAAkC,EAClC,KAAK,uCAAuC,EAC5C,4BAA4B,EAC5B,oCAAoC,EACpC,KAAK,6BAA6B,EAClC,gCAAgC,GACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/app/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,KAAK,WAAW,EAChB,qBAAqB,EACrB,iBAAiB,EACjB,KAAK,0BAA0B,EAC/B,iBAAiB,EACjB,cAAc,GACf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxD,YAAY,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACpE,YAAY,EACV,cAAc,EACd,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AACxF,OAAO,EACL,kCAAkC,EAClC,KAAK,uCAAuC,EAC5C,4BAA4B,EAC5B,oCAAoC,EACpC,KAAK,6BAA6B,EAClC,gCAAgC,GACjC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,YAAY,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACjD,YAAY,EACV,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,8BAA8B,EAC9B,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,yBAAyB,EACzB,KAAK,wBAAwB,GAC9B,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The identity `AppShell` reads from its `user` prop: an id for the signed-in
|
|
3
|
+
* state, and the display fields the account menu shows. Structural on purpose,
|
|
4
|
+
* so the runtime's `SessionLayoutUser` (`{ id, email, name? }`) and a full
|
|
5
|
+
* `User` both satisfy it without a cast. `null` is signed out.
|
|
6
|
+
*/
|
|
7
|
+
export type ShellUser = {
|
|
8
|
+
/** The user id (a not-yet-persisted `User` carries `null`/`undefined`). */
|
|
9
|
+
readonly id: string | null | undefined;
|
|
10
|
+
readonly email?: string | null;
|
|
11
|
+
readonly name?: string | null;
|
|
12
|
+
readonly avatarUrl?: string | null;
|
|
13
|
+
} | null;
|
|
14
|
+
//# sourceMappingURL=shell-user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shell-user.d.ts","sourceRoot":"","sources":["../../../src/components/app/shell-user.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC,GAAG,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -11,18 +11,31 @@ import type { WidgetComponents, WidgetRegistry } from '../overview/registry.js';
|
|
|
11
11
|
import type { OverviewDefinition } from '../overview/types.js';
|
|
12
12
|
import { useShellLayout } from '../workspace/admin-shell/layout-context.js';
|
|
13
13
|
import { type CookbookOverviewStore, createSectionOverview } from './page.js';
|
|
14
|
-
import type {
|
|
14
|
+
import type {
|
|
15
|
+
CookbookEntry,
|
|
16
|
+
CookbookSectionHeadingInfo,
|
|
17
|
+
CookbookSectionPresentationProps,
|
|
18
|
+
} from './types.js';
|
|
15
19
|
|
|
16
|
-
interface Props {
|
|
20
|
+
interface Props extends CookbookSectionPresentationProps {
|
|
21
|
+
/** The section's default overview from the cookbook; read once at mount (key the component on the section id). */
|
|
17
22
|
definition: OverviewDefinition;
|
|
23
|
+
/** Widget types available on this overview, with their option schemas and loaders. */
|
|
18
24
|
registry: WidgetRegistry;
|
|
25
|
+
/** Where the user's edits to this overview are read from and written back to (the cookbook override). */
|
|
19
26
|
store: CookbookOverviewStore;
|
|
27
|
+
/** The section's menu entries by id, passed to loaders so shortcuts follow renames, hides and moves. */
|
|
20
28
|
entries: ReadonlyMap<string, CookbookEntry>;
|
|
29
|
+
/** Svelte component that renders each widget type. */
|
|
21
30
|
components: WidgetComponents;
|
|
31
|
+
/** Models the user may pick as a widget's data source in edit mode. */
|
|
22
32
|
models: readonly OverviewModelChoice[];
|
|
23
33
|
/** Host capabilities for widget loaders. */
|
|
24
34
|
hostContext: () => Record<string, unknown>;
|
|
35
|
+
/** Accessible name of the overview grid, usually the section title. */
|
|
25
36
|
label: string;
|
|
37
|
+
/** The section; needed for `heading`, which renders above the grid. */
|
|
38
|
+
section?: CookbookSectionHeadingInfo;
|
|
26
39
|
}
|
|
27
40
|
|
|
28
41
|
let {
|
|
@@ -34,6 +47,9 @@ let {
|
|
|
34
47
|
models,
|
|
35
48
|
hostContext,
|
|
36
49
|
label,
|
|
50
|
+
presentation = 'plain',
|
|
51
|
+
heading,
|
|
52
|
+
section,
|
|
37
53
|
}: Props = $props();
|
|
38
54
|
|
|
39
55
|
const layout = useShellLayout();
|
|
@@ -68,4 +84,7 @@ $effect(() => {
|
|
|
68
84
|
onDestroy(() => controller.destroy());
|
|
69
85
|
</script>
|
|
70
86
|
|
|
71
|
-
<
|
|
87
|
+
<div class="cookbook-section-overview" data-smrt-component="CookbookSectionOverview">
|
|
88
|
+
{#if heading && section}{@render heading({ section })}{/if}
|
|
89
|
+
<OverviewGrid {controller} {components} {models} {label} {presentation} />
|
|
90
|
+
</div>
|
|
@@ -2,17 +2,26 @@ import type { OverviewModelChoice } from '../overview/grid-types.js';
|
|
|
2
2
|
import type { WidgetComponents, WidgetRegistry } from '../overview/registry.js';
|
|
3
3
|
import type { OverviewDefinition } from '../overview/types.js';
|
|
4
4
|
import { type CookbookOverviewStore } from './page.js';
|
|
5
|
-
import type { CookbookEntry } from './types.js';
|
|
6
|
-
interface Props {
|
|
5
|
+
import type { CookbookEntry, CookbookSectionHeadingInfo, CookbookSectionPresentationProps } from './types.js';
|
|
6
|
+
interface Props extends CookbookSectionPresentationProps {
|
|
7
|
+
/** The section's default overview from the cookbook; read once at mount (key the component on the section id). */
|
|
7
8
|
definition: OverviewDefinition;
|
|
9
|
+
/** Widget types available on this overview, with their option schemas and loaders. */
|
|
8
10
|
registry: WidgetRegistry;
|
|
11
|
+
/** Where the user's edits to this overview are read from and written back to (the cookbook override). */
|
|
9
12
|
store: CookbookOverviewStore;
|
|
13
|
+
/** The section's menu entries by id, passed to loaders so shortcuts follow renames, hides and moves. */
|
|
10
14
|
entries: ReadonlyMap<string, CookbookEntry>;
|
|
15
|
+
/** Svelte component that renders each widget type. */
|
|
11
16
|
components: WidgetComponents;
|
|
17
|
+
/** Models the user may pick as a widget's data source in edit mode. */
|
|
12
18
|
models: readonly OverviewModelChoice[];
|
|
13
19
|
/** Host capabilities for widget loaders. */
|
|
14
20
|
hostContext: () => Record<string, unknown>;
|
|
21
|
+
/** Accessible name of the overview grid, usually the section title. */
|
|
15
22
|
label: string;
|
|
23
|
+
/** The section; needed for `heading`, which renders above the grid. */
|
|
24
|
+
section?: CookbookSectionHeadingInfo;
|
|
16
25
|
}
|
|
17
26
|
declare const CookbookSectionOverview: import("svelte").Component<Props, {}, "">;
|
|
18
27
|
type CookbookSectionOverview = ReturnType<typeof CookbookSectionOverview>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookbookSectionOverview.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/CookbookSectionOverview.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,WAAW,CAAC;AAC9E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"CookbookSectionOverview.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/CookbookSectionOverview.svelte.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAChF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D,OAAO,EAAE,KAAK,qBAAqB,EAAyB,MAAM,WAAW,CAAC;AAC9E,OAAO,KAAK,EACV,aAAa,EACb,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,YAAY,CAAC;AAGpB,UAAU,KAAM,SAAQ,gCAAgC;IACtD,kHAAkH;IAClH,UAAU,EAAE,kBAAkB,CAAC;IAC/B,sFAAsF;IACtF,QAAQ,EAAE,cAAc,CAAC;IACzB,yGAAyG;IACzG,KAAK,EAAE,qBAAqB,CAAC;IAC7B,wGAAwG;IACxG,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAC5C,sDAAsD;IACtD,UAAU,EAAE,gBAAgB,CAAC;IAC7B,uEAAuE;IACvE,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC;IACvC,4CAA4C;IAC5C,WAAW,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3C,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,OAAO,CAAC,EAAE,0BAA0B,CAAC;CACtC;AAkED,QAAA,MAAM,uBAAuB,2CAAwC,CAAC;AACtE,KAAK,uBAAuB,GAAG,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC1E,eAAe,uBAAuB,CAAC"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* A navigation section's own page in a cookbook app (#3749). The sidebar lists
|
|
4
4
|
* only sections, so this is where a section's entries are: an editable
|
|
5
|
-
* overview (the entries as
|
|
5
|
+
* overview (the entries as a plain list of shortcuts by default, framed cards
|
|
6
|
+
* with `presentation="card"`) with the shell's layout
|
|
6
7
|
* edit mode driving its grid. A section with no overview shows its menu.
|
|
7
8
|
*
|
|
8
9
|
* Render it from one route (`s/[slug]/+page.svelte`), inside `CookbookApp`.
|
|
@@ -18,7 +19,13 @@ import { getCookbookContext } from './context.js';
|
|
|
18
19
|
import { DEFAULT_SECTION_ICON, sectionIdFromSlug } from './sections.js';
|
|
19
20
|
import type { CookbookSectionPageProps } from './types.js';
|
|
20
21
|
|
|
21
|
-
let {
|
|
22
|
+
let {
|
|
23
|
+
sectionId,
|
|
24
|
+
slug,
|
|
25
|
+
children,
|
|
26
|
+
presentation = 'plain',
|
|
27
|
+
heading,
|
|
28
|
+
}: CookbookSectionPageProps = $props();
|
|
22
29
|
|
|
23
30
|
const { t } = useI18n();
|
|
24
31
|
const cookbook = getCookbookContext();
|
|
@@ -32,6 +39,12 @@ const icon = $derived(section?.icon ?? suggested?.icon ?? DEFAULT_SECTION_ICON);
|
|
|
32
39
|
const description = $derived(suggested?.description);
|
|
33
40
|
const page = $derived(cookbook.shell.overviews[id]);
|
|
34
41
|
const registry = $derived(cookbook.registry);
|
|
42
|
+
const headingInfo = $derived({
|
|
43
|
+
id,
|
|
44
|
+
title,
|
|
45
|
+
icon,
|
|
46
|
+
...(description ? { description } : {}),
|
|
47
|
+
});
|
|
35
48
|
const store = {
|
|
36
49
|
overview: (key: string) => cookbook.overrideFor(key),
|
|
37
50
|
setOverview: (key: string, override: OverviewOverride | null) =>
|
|
@@ -45,13 +58,17 @@ const store = {
|
|
|
45
58
|
|
|
46
59
|
<main class="cookbook-section" data-smrt-component="CookbookSectionPage">
|
|
47
60
|
{#if section}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
{
|
|
53
|
-
|
|
54
|
-
|
|
61
|
+
{#if heading}
|
|
62
|
+
{@render heading({ section: headingInfo })}
|
|
63
|
+
{:else}
|
|
64
|
+
<header>
|
|
65
|
+
<span class="mark"><ShellSectionIcon name={icon} size={28} /></span>
|
|
66
|
+
<div class="heading">
|
|
67
|
+
<h1>{title}</h1>
|
|
68
|
+
{#if description}<p>{description}</p>{/if}
|
|
69
|
+
</div>
|
|
70
|
+
</header>
|
|
71
|
+
{/if}
|
|
55
72
|
{#if page && registry}
|
|
56
73
|
{#key id}
|
|
57
74
|
<CookbookSectionOverview
|
|
@@ -63,6 +80,7 @@ const store = {
|
|
|
63
80
|
models={cookbook.models}
|
|
64
81
|
hostContext={cookbook.widgetContext}
|
|
65
82
|
label={`${title} overview`}
|
|
83
|
+
{presentation}
|
|
66
84
|
/>
|
|
67
85
|
{/key}
|
|
68
86
|
{#if layout.editing}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CookbookSectionPage.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/CookbookSectionPage.svelte.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CookbookSectionPage.svelte.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/CookbookSectionPage.svelte.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AAyF3D,QAAA,MAAM,mBAAmB,8DAAwC,CAAC;AAClE,KAAK,mBAAmB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAClE,eAAe,mBAAmB,CAAC"}
|
|
@@ -8,14 +8,16 @@
|
|
|
8
8
|
* `@happyvertical/smrt-svelte/cookbook/server` to load the cookbook and the
|
|
9
9
|
* installed packages' manifests in a `+layout.server.ts`.
|
|
10
10
|
*/
|
|
11
|
+
export type { ShortcutEntry } from '../overview/widgets/data.js';
|
|
11
12
|
export { applyCookbookTheme } from './brand-theme.js';
|
|
12
13
|
export { buildCookbookShell, humanize, pluralize } from './build.js';
|
|
13
14
|
export { default as CookbookApp } from './CookbookApp.svelte';
|
|
15
|
+
export { default as CookbookSectionOverview } from './CookbookSectionOverview.svelte';
|
|
14
16
|
export { default as CookbookSectionPage } from './CookbookSectionPage.svelte';
|
|
15
17
|
export { type CookbookManifest, catalogFromManifests, narrowCatalog, packageIdOf, } from './catalog.js';
|
|
16
18
|
export { type CookbookContext, getCookbookContext, tryGetCookbookContext, } from './context.js';
|
|
17
19
|
export { type CookbookOverviewStore, createSectionOverview, loadSectionWidget, } from './page.js';
|
|
18
|
-
export { type CookbookRegistry, type CookbookRegistryOptions, type CookbookWidgetContext, createCookbookRegistry, loadShortcuts, } from './registry.js';
|
|
20
|
+
export { type CookbookRegistry, type CookbookRegistryOptions, type CookbookWidgetContext, composeShortcutsLoader, createCookbookRegistry, loadShortcuts, } from './registry.js';
|
|
19
21
|
export { buildNavSections, DEFAULT_ENTRY_ICON, DEFAULT_SECTION_ICON, defaultEntryPath, defaultSectionPath, FEATURE_SECTION, navItemId, navSectionOf, sectionIdFromSlug, sectionLayoutId, sectionSlug, } from './sections.js';
|
|
20
22
|
export { brandThemeId, DEFAULT_COLOR_SCHEME, DEFAULT_THEME_PRESET, normalizeHex, resolveCookbookTheme, THEME_FONTS, } from './theme.js';
|
|
21
23
|
export type * from './types.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,YAAY,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACrE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,KAAK,gBAAgB,EACrB,oBAAoB,EACpB,aAAa,EACb,WAAW,GACZ,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,eAAe,EACpB,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,KAAK,qBAAqB,EAC1B,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,GACd,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,SAAS,EACT,YAAY,EACZ,iBAAiB,EACjB,eAAe,EACf,WAAW,GACZ,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,WAAW,GACZ,MAAM,YAAY,CAAC;AACpB,mBAAmB,YAAY,CAAC"}
|
|
@@ -11,10 +11,11 @@
|
|
|
11
11
|
export { applyCookbookTheme } from './brand-theme.js';
|
|
12
12
|
export { buildCookbookShell, humanize, pluralize } from './build.js';
|
|
13
13
|
export { default as CookbookApp } from './CookbookApp.svelte';
|
|
14
|
+
export { default as CookbookSectionOverview } from './CookbookSectionOverview.svelte';
|
|
14
15
|
export { default as CookbookSectionPage } from './CookbookSectionPage.svelte';
|
|
15
16
|
export { catalogFromManifests, narrowCatalog, packageIdOf, } from './catalog.js';
|
|
16
17
|
export { getCookbookContext, tryGetCookbookContext, } from './context.js';
|
|
17
18
|
export { createSectionOverview, loadSectionWidget, } from './page.js';
|
|
18
|
-
export { createCookbookRegistry, loadShortcuts, } from './registry.js';
|
|
19
|
+
export { composeShortcutsLoader, createCookbookRegistry, loadShortcuts, } from './registry.js';
|
|
19
20
|
export { buildNavSections, DEFAULT_ENTRY_ICON, DEFAULT_SECTION_ICON, defaultEntryPath, defaultSectionPath, FEATURE_SECTION, navItemId, navSectionOf, sectionIdFromSlug, sectionLayoutId, sectionSlug, } from './sections.js';
|
|
20
21
|
export { brandThemeId, DEFAULT_COLOR_SCHEME, DEFAULT_THEME_PRESET, normalizeHex, resolveCookbookTheme, THEME_FONTS, } from './theme.js';
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import { type RecipeExportResolver, type RecipeWidgetRegistration, type RecipeWidgetSource } from '../overview/recipe-widgets.js';
|
|
7
7
|
import { type WidgetRegistry } from '../overview/registry.js';
|
|
8
|
-
import type { WidgetLoadContext } from '../overview/types.js';
|
|
9
|
-
import { type CoreWidgetLoaders } from '../overview/widgets/core.js';
|
|
8
|
+
import type { WidgetLoad, WidgetLoadContext } from '../overview/types.js';
|
|
10
9
|
import { type ShortcutNavSection, type ShortcutsWidgetData } from '../overview/widgets/data.js';
|
|
10
|
+
import type { CookbookLoaders, CookbookShortcutsLoader } from './types.js';
|
|
11
11
|
/** What a section page hands its widgets' loaders besides the host's own context. */
|
|
12
12
|
export interface CookbookWidgetContext {
|
|
13
13
|
/** The shell's resolved sections (renames, hides and moves applied). */
|
|
@@ -19,9 +19,23 @@ export interface CookbookWidgetContext {
|
|
|
19
19
|
* `custom:` prefix; absent, the overview's own section.
|
|
20
20
|
*/
|
|
21
21
|
export declare function loadShortcuts(options: Record<string, unknown>, ctx: WidgetLoadContext): ShortcutsWidgetData;
|
|
22
|
+
/**
|
|
23
|
+
* The registry's shortcuts loader composed with a host's (#3888): the default
|
|
24
|
+
* entries come from the shell's sections as in {@link loadShortcuts}; the host
|
|
25
|
+
* loader receives them and returns the entries to show (counts, reorders,
|
|
26
|
+
* additions). Without a host loader this is `loadShortcuts`. A host loader
|
|
27
|
+
* that throws (or returns something that is not an entry list) leaves the
|
|
28
|
+
* defaults in place for that load, so a failed count query never empties the
|
|
29
|
+
* page; an aborted load still rejects.
|
|
30
|
+
*/
|
|
31
|
+
export declare function composeShortcutsLoader(host?: CookbookShortcutsLoader): WidgetLoad<ShortcutsWidgetData>;
|
|
22
32
|
export interface CookbookRegistryOptions {
|
|
23
|
-
/**
|
|
24
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Data loaders for `metric`, `records` and `chart` (omitted ones are not
|
|
35
|
+
* registered), and an optional `shortcuts` loader that receives the
|
|
36
|
+
* registry's default entries.
|
|
37
|
+
*/
|
|
38
|
+
loaders?: CookbookLoaders;
|
|
25
39
|
/** Recipes whose `widget` surfaces to register. */
|
|
26
40
|
widgets?: readonly RecipeWidgetSource[];
|
|
27
41
|
/** The host's module resolver for recipe exports. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/registry.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EAExB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAEL,KAAK,cAAc,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/registry.ts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5
5
|
*/
|
|
6
6
|
import { registerRecipeWidgets, } from '../overview/recipe-widgets.js';
|
|
7
7
|
import { createWidgetRegistry, } from '../overview/registry.js';
|
|
8
|
-
import { registerCoreWidgets
|
|
8
|
+
import { registerCoreWidgets } from '../overview/widgets/core.js';
|
|
9
9
|
import { shortcutsFromNav, } from '../overview/widgets/data.js';
|
|
10
10
|
/**
|
|
11
11
|
* `shortcuts`: the section's menu entries as cards, as the shell resolves
|
|
@@ -24,12 +24,50 @@ export function loadShortcuts(options, ctx) {
|
|
|
24
24
|
throw new Error(`unknown section ${named}`);
|
|
25
25
|
return shortcutsFromNav(sections, sectionId);
|
|
26
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* The registry's shortcuts loader composed with a host's (#3888): the default
|
|
29
|
+
* entries come from the shell's sections as in {@link loadShortcuts}; the host
|
|
30
|
+
* loader receives them and returns the entries to show (counts, reorders,
|
|
31
|
+
* additions). Without a host loader this is `loadShortcuts`. A host loader
|
|
32
|
+
* that throws (or returns something that is not an entry list) leaves the
|
|
33
|
+
* defaults in place for that load, so a failed count query never empties the
|
|
34
|
+
* page; an aborted load still rejects.
|
|
35
|
+
*/
|
|
36
|
+
export function composeShortcutsLoader(host) {
|
|
37
|
+
if (!host)
|
|
38
|
+
return loadShortcuts;
|
|
39
|
+
return async (options, ctx) => {
|
|
40
|
+
const base = loadShortcuts(options, ctx);
|
|
41
|
+
try {
|
|
42
|
+
const entries = await host(ctx, base.items.map((item) => ({ ...item })));
|
|
43
|
+
if (!Array.isArray(entries))
|
|
44
|
+
return base;
|
|
45
|
+
const seen = new Set();
|
|
46
|
+
const items = [];
|
|
47
|
+
for (const entry of entries) {
|
|
48
|
+
if (!entry || typeof entry.href !== 'string')
|
|
49
|
+
continue;
|
|
50
|
+
let id = typeof entry.id === 'string' && entry.id ? entry.id : entry.href;
|
|
51
|
+
if (seen.has(id))
|
|
52
|
+
id = `${id}#${items.length}`;
|
|
53
|
+
seen.add(id);
|
|
54
|
+
items.push({ ...entry, id });
|
|
55
|
+
}
|
|
56
|
+
return { items };
|
|
57
|
+
}
|
|
58
|
+
catch (error) {
|
|
59
|
+
if (ctx.signal?.aborted)
|
|
60
|
+
throw error;
|
|
61
|
+
return base;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
27
65
|
/** An isolated registry for one cookbook app. */
|
|
28
66
|
export async function createCookbookRegistry(options = {}) {
|
|
29
67
|
const registry = createWidgetRegistry();
|
|
30
68
|
registerCoreWidgets(registry, {
|
|
31
69
|
...options.loaders,
|
|
32
|
-
shortcuts:
|
|
70
|
+
shortcuts: composeShortcutsLoader(options.loaders?.shortcuts),
|
|
33
71
|
});
|
|
34
72
|
const recipeWidgets = options.widgets && options.widgets.length > 0 && options.resolveExport
|
|
35
73
|
? await registerRecipeWidgets(registry, options.widgets, options.resolveExport)
|
|
@@ -8,8 +8,9 @@ import type { Cookbook, CookbookPolicyRow, RecipeDefinition, RecipeShellSlot, Re
|
|
|
8
8
|
import type { ComponentProps } from 'svelte';
|
|
9
9
|
import type AppShell from '../app/AppShell.svelte';
|
|
10
10
|
import type { RecipeExportResolver } from '../overview/recipe-widgets.js';
|
|
11
|
-
import type { OverviewDefinition } from '../overview/types.js';
|
|
11
|
+
import type { OverviewDefinition, WidgetLoadContext } from '../overview/types.js';
|
|
12
12
|
import type { CoreWidgetLoaders } from '../overview/widgets/core.js';
|
|
13
|
+
import type { ShortcutEntry } from '../overview/widgets/data.js';
|
|
13
14
|
import type { ShellLayout } from '../workspace/admin-shell/layout.js';
|
|
14
15
|
import type { ShellNavGroup } from '../workspace/admin-shell/types.js';
|
|
15
16
|
/**
|
|
@@ -172,8 +173,31 @@ export interface CookbookShell {
|
|
|
172
173
|
/** Problems that did not stop the build (unknown recipes, models, ...). */
|
|
173
174
|
issues: string[];
|
|
174
175
|
}
|
|
176
|
+
/** The section a heading snippet draws (#3888). */
|
|
177
|
+
export interface CookbookSectionHeadingInfo {
|
|
178
|
+
/** The layout id (`section:sales`, `custom:shop`). */
|
|
179
|
+
id: string;
|
|
180
|
+
/** The section's title as the layout names it. */
|
|
181
|
+
title: string;
|
|
182
|
+
description?: string;
|
|
183
|
+
/** Shell icon name. */
|
|
184
|
+
icon: string;
|
|
185
|
+
}
|
|
186
|
+
/** Props of `CookbookSectionOverview` (the presentation half is shared with the page). */
|
|
187
|
+
export interface CookbookSectionPresentationProps {
|
|
188
|
+
/**
|
|
189
|
+
* How the overview's tiles are drawn outside edit mode: `'plain'` (default)
|
|
190
|
+
* lists a section's entries as unframed rows or tiles on the panel surface;
|
|
191
|
+
* `'card'` keeps the framed look. Editing always keeps its frame.
|
|
192
|
+
*/
|
|
193
|
+
presentation?: 'plain' | 'card';
|
|
194
|
+
/** Replaces the section heading with host content. */
|
|
195
|
+
heading?: import('svelte').Snippet<[{
|
|
196
|
+
section: CookbookSectionHeadingInfo;
|
|
197
|
+
}]>;
|
|
198
|
+
}
|
|
175
199
|
/** Props of `CookbookSectionPage`. */
|
|
176
|
-
export interface CookbookSectionPageProps {
|
|
200
|
+
export interface CookbookSectionPageProps extends CookbookSectionPresentationProps {
|
|
177
201
|
/** The layout id (`section:sales`, `custom:shop`). */
|
|
178
202
|
sectionId?: string;
|
|
179
203
|
/** The route slug (`section-sales`); used when `sectionId` is absent. */
|
|
@@ -190,9 +214,10 @@ export interface CookbookAppProps extends Omit<ComponentProps<typeof AppShell>,
|
|
|
190
214
|
/**
|
|
191
215
|
* Data loaders for the `metric`, `records` and `chart` widgets. With
|
|
192
216
|
* `metric` and `records`, section pages also show a record count and the
|
|
193
|
-
* latest records of the section's lead model.
|
|
217
|
+
* latest records of the section's lead model. `shortcuts` composes with the
|
|
218
|
+
* registry's own entries (see {@link CookbookShortcutsLoader}).
|
|
194
219
|
*/
|
|
195
|
-
loaders?:
|
|
220
|
+
loaders?: CookbookLoaders;
|
|
196
221
|
/** Host capabilities handed to widget loaders that run in the browser. */
|
|
197
222
|
widgetContext?: () => Record<string, unknown>;
|
|
198
223
|
/**
|
|
@@ -205,4 +230,14 @@ export interface CookbookAppProps extends Omit<ComponentProps<typeof AppShell>,
|
|
|
205
230
|
oncookbookchange?: (cookbook: Cookbook) => void;
|
|
206
231
|
children: import('svelte').Snippet;
|
|
207
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* A host's shortcuts loader (#3888). Receives the entries the registry derived
|
|
235
|
+
* from the shell's sections and returns the entries to show: add `count`,
|
|
236
|
+
* reorder, or replace them. A throw falls back to the defaults for that load.
|
|
237
|
+
*/
|
|
238
|
+
export type CookbookShortcutsLoader = (ctx: WidgetLoadContext, defaults: ShortcutEntry[]) => Promise<ShortcutEntry[]> | ShortcutEntry[];
|
|
239
|
+
/** The data loaders a cookbook app accepts. */
|
|
240
|
+
export type CookbookLoaders = Omit<CoreWidgetLoaders, 'shortcuts'> & {
|
|
241
|
+
shortcuts?: CookbookShortcutsLoader;
|
|
242
|
+
};
|
|
208
243
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/cookbook/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,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G,aAAa,EAAE,CAAC;AAEhD,+CAA+C;AAC/C,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE,WAAW,CAAC,GAAG;IACnE,SAAS,CAAC,EAAE,uBAAuB,CAAC;CACrC,CAAC"}
|
|
@@ -18,7 +18,7 @@ export * from './server.js';
|
|
|
18
18
|
export { default as WidgetOptionsForm } from './WidgetOptionsForm.svelte';
|
|
19
19
|
export { default as ChartWidget } from './widgets/ChartWidget.svelte';
|
|
20
20
|
export { type CoreWidgetLoaders, createChartWidget, createMetricWidget, createNoteWidget, createRecordListWidget, createShortcutsWidget, registerCoreWidgets, } from './widgets/core.js';
|
|
21
|
-
export { type ChartWidgetData, type MetricWidgetData, type RecordListWidgetData, type ShortcutNavSection, type ShortcutsWidgetData, shortcutsFromNav, } from './widgets/data.js';
|
|
21
|
+
export { type ChartWidgetData, type MetricWidgetData, type RecordListWidgetData, type ShortcutEntry, type ShortcutNavSection, type ShortcutsWidgetData, shortcutsFromNav, } from './widgets/data.js';
|
|
22
22
|
export { default as MetricWidget } from './widgets/MetricWidget.svelte';
|
|
23
23
|
export { default as NoteWidget } from './widgets/NoteWidget.svelte';
|
|
24
24
|
export { default as RecordListWidget } from './widgets/RecordListWidget.svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/overview/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,KAAK,4BAA4B,EACjC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,yBAAyB,GAC1B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,KAAK,wBAAwB,EAC7B,iBAAiB,EACjB,KAAK,iBAAiB,GACvB,MAAM,aAAa,CAAC;AACrB,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,mBAAmB,EACnB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,KAAK,SAAS,EACd,KAAK,UAAU,EACf,aAAa,EACb,QAAQ,GACT,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAClF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC3D,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC1E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACtE,OAAO,EACL,KAAK,iBAAiB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,gBAAgB,GACjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/overview/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;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B,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -151,6 +151,12 @@ export interface WidgetComponentProps<Data = unknown> {
|
|
|
151
151
|
name: string;
|
|
152
152
|
size?: number;
|
|
153
153
|
}>;
|
|
154
|
+
/**
|
|
155
|
+
* How the grid frames tiles right now (`card` when editing, whatever the
|
|
156
|
+
* grid's `presentation` is otherwise). Widgets that draw their own frame
|
|
157
|
+
* drop it under `plain`.
|
|
158
|
+
*/
|
|
159
|
+
presentation?: 'card' | 'plain';
|
|
154
160
|
}
|
|
155
161
|
/**
|
|
156
162
|
* Context a widget `load` runs with. The host builds it inside the page's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/overview/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AAExC;;;;;GAKG;AAEH,6DAA6D;AAC7D,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AACnC,8CAA8C;AAC9C,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAC/C,2CAA2C;AAC3C,eAAO,MAAM,mBAAmB,QAAqC,CAAC;AACtE,uEAAuE;AACvE,eAAO,MAAM,wBAAwB,QAAuC,CAAC;AAC7E,gFAAgF;AAChF,eAAO,MAAM,mBAAmB,QAA2B,CAAC;AAE5D,8EAA8E;AAC9E,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAC;AACnE,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,M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