@hamur/adapter-angular 0.0.1 → 0.0.2
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/dist/src/adapter.js +3 -1
- package/dist/types/src/app.d.ts +3 -0
- package/dist/types/src/client-parts.d.ts +3 -0
- package/dist/types/src/compile.d.ts +4 -2
- package/dist/types/src/error-page.d.ts +5 -2
- package/dist/types/src/form.d.ts +12 -9
- package/dist/types/src/indicators.d.ts +15 -8
- package/dist/types/src/island.d.ts +9 -6
- package/dist/types/src/link.d.ts +25 -22
- package/dist/types/src/markdown.d.ts +6 -3
- package/dist/types/src/navigate.d.ts +6 -3
- package/dist/types/src/outlet.d.ts +10 -5
- package/dist/types/src/server-island.d.ts +6 -3
- package/dist/types/src/time.d.ts +28 -25
- package/package.json +30 -9
- package/src/app.ts +11 -5
- package/src/client-parts.ts +83 -103
- package/src/compile.ts +9 -5
- package/src/error-page.ts +23 -10
- package/src/form.ts +166 -237
- package/src/indicators.ts +198 -229
- package/src/island.ts +78 -84
- package/src/link.ts +204 -241
- package/src/markdown.ts +129 -159
- package/src/navigate.ts +20 -17
- package/src/outlet.ts +297 -325
- package/src/server-island.ts +62 -49
- package/src/time.ts +108 -101
package/dist/src/adapter.js
CHANGED
|
@@ -151,7 +151,7 @@ function selectorOf(selectors) {
|
|
|
151
151
|
|
|
152
152
|
// packages/adapter-angular/src/compile.ts
|
|
153
153
|
var COMPILE_ID = /^(?!.*[\\/]node_modules[\\/]).*\.[cm]?ts$/;
|
|
154
|
-
var LINK_ID = /[\\/]node_modules[\\/]
|
|
154
|
+
var LINK_ID = /[\\/]node_modules[\\/](?:.+\.m?js|(?:.+[\\/])?@hamur[\\/][^\\/]+[\\/]src[\\/].+\.ts)$/;
|
|
155
155
|
var SCRIPT = /\.[cm]?ts$/;
|
|
156
156
|
var DECORATED = /^\s*@(?:Component|Directive|Pipe|NgModule|Injectable)\s*\(/m;
|
|
157
157
|
var ENTRY = /^(?:(pages|layouts)\/.+|(app|error))\.[cm]?ts$/;
|
|
@@ -334,6 +334,8 @@ function compilerHost(ng, options, setup) {
|
|
|
334
334
|
const entry = setup.files.get(key) ?? { code: "" };
|
|
335
335
|
if (fileName.endsWith(".map"))
|
|
336
336
|
entry.map = text;
|
|
337
|
+
else if (fileName.endsWith(".d.ts"))
|
|
338
|
+
entry.types = text;
|
|
337
339
|
else if (/\.[cm]?js$/.test(fileName))
|
|
338
340
|
entry.code = text.replace(MAP_COMMENT, "");
|
|
339
341
|
else
|
package/dist/types/src/app.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
/** The one Angular root, inside the core's root element; it renders the tree's first entry. */
|
|
2
3
|
export declare class HamurApp {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HamurApp, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HamurApp, "hamur-app", never, {}, {}, never, never, true, never>;
|
|
3
6
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { InjectionToken, type Resource, type Signal } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* `<div *hamurDevOnly>…</div>` renders its template only in a dev build. A production client keeps the template's code:
|
|
4
5
|
* a component named in it is a static import of the compiled one.
|
|
5
6
|
*/
|
|
6
7
|
export declare class DevOnly {
|
|
7
8
|
constructor();
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DevOnly, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DevOnly, "[hamurDevOnly]", never, {}, {}, never, never, true, never>;
|
|
8
11
|
}
|
|
9
12
|
/**
|
|
10
13
|
* The value of a promise a loader returned, as Angular's `Resource<T>`: read with `@if (value.hasValue()) … @else if
|
|
@@ -2,6 +2,8 @@ import type { AdapterBuildContext, AdapterTransform } from "hamur/adapter";
|
|
|
2
2
|
export interface AngularEmit {
|
|
3
3
|
code: string;
|
|
4
4
|
map?: string;
|
|
5
|
+
/** The declarations, emitted by `compilePartial` only. */
|
|
6
|
+
types?: string;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* The app's program, shared by the client and server builds of one `hamur build`: the client and server steps
|
|
@@ -93,5 +95,5 @@ export declare function compileStep(ctx: AdapterBuildContext): AdapterTransform;
|
|
|
93
95
|
export declare function hydrationStep(): AdapterTransform;
|
|
94
96
|
/** Angular's linker on a partial-compiled package file (`ɵɵngDeclare*`), kept per path and size for the life of the process. */
|
|
95
97
|
export declare function linkStep(ctx: AdapterBuildContext): AdapterTransform;
|
|
96
|
-
/** The package's own components in `compilationMode: "partial"`, as `scripts/release.ts` publishes them: real source path to JavaScript. */
|
|
97
|
-
export declare function compilePartial(packageDir: string, from?: string): Promise<Map<string,
|
|
98
|
+
/** The package's own components in `compilationMode: "partial"`, as `scripts/release.ts` publishes them: real source path to JavaScript and declarations. */
|
|
99
|
+
export declare function compilePartial(packageDir: string, from?: string): Promise<Map<string, AngularEmit>>;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ErrorPageProps } from "hamur/app";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export default class DefaultErrorPage {
|
|
3
|
-
readonly error: import("@angular/core
|
|
4
|
-
readonly clearError: import("@angular/core
|
|
4
|
+
readonly error: import("@angular/core").InputSignal<ErrorPageProps>;
|
|
5
|
+
readonly clearError: import("@angular/core").InputSignal<(() => void) | undefined>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DefaultErrorPage, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DefaultErrorPage, "ng-component", never, { "error": { "alias": "error"; "required": true; "isSignal": true; }; "clearError": { "alias": "clearError"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
5
8
|
}
|
package/dist/types/src/form.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Signal } from "@angular/core";
|
|
2
2
|
import type { ActionOptions, ActionRunner, FormStatus, Handler } from "hamur/adapter";
|
|
3
3
|
import type { ActionFailure, FieldsOf, HamurError, PendingRun, RouteLocation } from "hamur/app";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
type FormHandler = Handler<any, any>;
|
|
5
6
|
type FormAction = string | RouteLocation | FormHandler;
|
|
6
7
|
/**
|
|
@@ -8,15 +9,15 @@ type FormAction = string | RouteLocation | FormHandler;
|
|
|
8
9
|
* `<form>`; with a handler it posts to the page with `_fn=<id>` without JavaScript and calls the handler's stub with it.
|
|
9
10
|
*/
|
|
10
11
|
export declare class Form {
|
|
11
|
-
readonly action: import("@angular/core
|
|
12
|
-
readonly method: import("@angular/core
|
|
13
|
-
readonly encType: import("@angular/core
|
|
14
|
-
readonly replace: import("@angular/core
|
|
15
|
-
readonly reset: import("@angular/core
|
|
16
|
-
readonly reloadDocument: import("@angular/core
|
|
17
|
-
readonly refresh: import("@angular/core
|
|
18
|
-
readonly restore: import("@angular/core
|
|
19
|
-
readonly instance: import("@angular/core
|
|
12
|
+
readonly action: import("@angular/core").InputSignalWithTransform<FormAction | undefined, FormAction | undefined>;
|
|
13
|
+
readonly method: import("@angular/core").InputSignal<"get" | "post" | undefined>;
|
|
14
|
+
readonly encType: import("@angular/core").InputSignal<"application/x-www-form-urlencoded" | "multipart/form-data" | undefined>;
|
|
15
|
+
readonly replace: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
16
|
+
readonly reset: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
readonly reloadDocument: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
readonly refresh: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
19
|
+
readonly restore: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly instance: import("@angular/core").InputSignal<string | number | undefined>;
|
|
20
21
|
private readonly app;
|
|
21
22
|
private readonly route;
|
|
22
23
|
private readonly router;
|
|
@@ -31,6 +32,8 @@ export declare class Form {
|
|
|
31
32
|
/** The handler, `refresh` and `instance` of the moment of the submission, as `action` and `_fn` show them. */
|
|
32
33
|
private post;
|
|
33
34
|
protected flag(value: boolean): "" | null;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Form, never>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Form, "form[hamurForm]", never, { "action": { "alias": "hamurForm"; "required": false; "isSignal": true; }; "method": { "alias": "method"; "required": false; "isSignal": true; }; "encType": { "alias": "encType"; "required": false; "isSignal": true; }; "replace": { "alias": "replace"; "required": false; "isSignal": true; }; "reset": { "alias": "reset"; "required": false; "isSignal": true; }; "reloadDocument": { "alias": "reloadDocument"; "required": false; "isSignal": true; }; "refresh": { "alias": "refresh"; "required": false; "isSignal": true; }; "restore": { "alias": "restore"; "required": false; "isSignal": true; }; "instance": { "alias": "instance"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
34
37
|
}
|
|
35
38
|
/** The run of the `Form` the component is created in; idle outside one. */
|
|
36
39
|
export declare function injectFormStatus(): Signal<FormStatus>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type OnInit, type Signal } from "@angular/core";
|
|
2
2
|
import type { AnnouncerActions, AnnouncerPoliteness, LoadingIndicatorActions, LoadingIndicatorOptions, RouteAnnouncerActions, RouteAnnouncerPoliteness } from "hamur/adapter";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/** The bar's state as signals, and its `start`, `finish`, `set` and `clear`; it follows the navigation while a component that called it is alive. */
|
|
4
5
|
export declare function injectLoadingIndicator(options?: LoadingIndicatorOptions): {
|
|
5
6
|
progress: Signal<number>;
|
|
@@ -11,15 +12,17 @@ export declare function injectLoadingIndicator(options?: LoadingIndicatorOptions
|
|
|
11
12
|
* written through `element.style` after the first render, so the server's element has no `style` attribute.
|
|
12
13
|
*/
|
|
13
14
|
export declare class LoadingIndicator implements OnInit {
|
|
14
|
-
readonly color: import("@angular/core
|
|
15
|
-
readonly errorColor: import("@angular/core
|
|
16
|
-
readonly height: import("@angular/core
|
|
17
|
-
readonly duration: import("@angular/core
|
|
18
|
-
readonly throttle: import("@angular/core
|
|
19
|
-
readonly estimatedProgress: import("@angular/core
|
|
15
|
+
readonly color: import("@angular/core").InputSignal<string | undefined>;
|
|
16
|
+
readonly errorColor: import("@angular/core").InputSignal<string | undefined>;
|
|
17
|
+
readonly height: import("@angular/core").InputSignal<number | undefined>;
|
|
18
|
+
readonly duration: import("@angular/core").InputSignal<number | undefined>;
|
|
19
|
+
readonly throttle: import("@angular/core").InputSignal<number | undefined>;
|
|
20
|
+
readonly estimatedProgress: import("@angular/core").InputSignal<((duration: number, elapsed: number) => number) | undefined>;
|
|
20
21
|
private readonly injector;
|
|
21
22
|
private readonly element;
|
|
22
23
|
ngOnInit(): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingIndicator, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingIndicator, "hamur-loading-indicator", never, { "color": { "alias": "color"; "required": false; "isSignal": true; }; "errorColor": { "alias": "errorColor"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "throttle": { "alias": "throttle"; "required": false; "isSignal": true; }; "estimatedProgress": { "alias": "estimatedProgress"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
23
26
|
}
|
|
24
27
|
/** The page's route announcer as signals, and `set`, `polite` and `assertive`. */
|
|
25
28
|
export declare function injectRouteAnnouncer(): {
|
|
@@ -32,7 +35,7 @@ export declare function injectRouteAnnouncer(): {
|
|
|
32
35
|
* element keeps it visible.
|
|
33
36
|
*/
|
|
34
37
|
export declare class RouteAnnouncer {
|
|
35
|
-
readonly politeness: import("@angular/core
|
|
38
|
+
readonly politeness: import("@angular/core").InputSignal<RouteAnnouncerPoliteness | undefined>;
|
|
36
39
|
protected readonly id: string;
|
|
37
40
|
private readonly store;
|
|
38
41
|
private readonly state;
|
|
@@ -42,9 +45,11 @@ export declare class RouteAnnouncer {
|
|
|
42
45
|
private readonly tick;
|
|
43
46
|
protected readonly message: Signal<string>;
|
|
44
47
|
protected readonly live: Signal<RouteAnnouncerPoliteness>;
|
|
45
|
-
protected readonly role: Signal<"
|
|
48
|
+
protected readonly role: Signal<"status" | "alert" | undefined>;
|
|
46
49
|
protected readonly owner: Signal<boolean>;
|
|
47
50
|
constructor();
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RouteAnnouncer, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RouteAnnouncer, "hamur-route-announcer", never, { "politeness": { "alias": "politeness"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
48
53
|
}
|
|
49
54
|
/** The page's announcer as signals, and `set`, `polite` and `assertive` (`polite` unless `politeness` says otherwise). */
|
|
50
55
|
export declare function injectAnnouncer({ politeness }?: {
|
|
@@ -66,4 +71,6 @@ export declare class Announcer {
|
|
|
66
71
|
private readonly polite;
|
|
67
72
|
private readonly assertive;
|
|
68
73
|
constructor();
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Announcer, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Announcer, "hamur-announcer", never, {}, {}, never, never, true, never>;
|
|
69
76
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { InjectionToken, Renderer2, type OnInit, type TemplateRef, type Type } from "@angular/core";
|
|
2
2
|
import type { IslandOn } from "hamur/adapter";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/** A component that writes its own nodes below its host: a template it renders there is a view the application checks. */
|
|
4
5
|
export declare abstract class HostWriter {
|
|
5
6
|
protected readonly host: HTMLElement;
|
|
@@ -19,15 +20,15 @@ export declare const HAMUR_ISLAND_ELEMENT: InjectionToken<string>;
|
|
|
19
20
|
*/
|
|
20
21
|
export declare class Island extends HostWriter implements OnInit {
|
|
21
22
|
/** The default export of a file under `app/islands/`. */
|
|
22
|
-
readonly component: import("@angular/core
|
|
23
|
-
readonly props: import("@angular/core
|
|
23
|
+
readonly component: import("@angular/core").InputSignal<Type<unknown>>;
|
|
24
|
+
readonly props: import("@angular/core").InputSignal<Record<string, unknown> | undefined>;
|
|
24
25
|
/** The island directive: when the island hydrates, `"only"` to mount it in the browser alone, or a directive a module adds; default `"load"`. */
|
|
25
|
-
readonly on: import("@angular/core
|
|
26
|
-
readonly fallback: import("@angular/core
|
|
26
|
+
readonly on: import("@angular/core").InputSignal<IslandOn | undefined>;
|
|
27
|
+
readonly fallback: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
27
28
|
/** The island's id across swaps; a swap to a page with the same id keeps its element and state. */
|
|
28
|
-
readonly persist: import("@angular/core
|
|
29
|
+
readonly persist: import("@angular/core").InputSignal<string | undefined>;
|
|
29
30
|
/** With `persist`, a swap keeps the island's old props. */
|
|
30
|
-
readonly persistProps: import("@angular/core
|
|
31
|
+
readonly persistProps: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
31
32
|
private readonly app;
|
|
32
33
|
private readonly id;
|
|
33
34
|
private readonly tasks;
|
|
@@ -36,4 +37,6 @@ export declare class Island extends HostWriter implements OnInit {
|
|
|
36
37
|
private readonly element;
|
|
37
38
|
constructor();
|
|
38
39
|
ngOnInit(): void;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Island, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Island, "hamur-island", never, { "component": { "alias": "component"; "required": true; "isSignal": true; }; "props": { "alias": "props"; "required": false; "isSignal": true; }; "on": { "alias": "on"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; "persist": { "alias": "persist"; "required": false; "isSignal": true; }; "persistProps": { "alias": "persistProps"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
39
42
|
}
|
package/dist/types/src/link.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type Signal } from "@angular/core";
|
|
2
2
|
import type { RouteLocation, ViewTransitionCall } from "hamur/app";
|
|
3
3
|
import type { CheckedTarget, LinkSlot, Navigation, PrefetchOn, UseLinkOptions } from "hamur/adapter";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
type AriaCurrent = "page" | "step" | "location" | "date" | "time" | "true";
|
|
5
6
|
type Query = (prev: never) => Record<string, unknown>;
|
|
6
7
|
/**
|
|
@@ -8,33 +9,33 @@ type Query = (prev: never) => Record<string, unknown>;
|
|
|
8
9
|
* core navigator takes the click. A `target`, `rel` or `aria-current` written on the element stays.
|
|
9
10
|
*/
|
|
10
11
|
export declare class Link<T extends string = string> {
|
|
11
|
-
readonly to: import("@angular/core
|
|
12
|
+
readonly to: import("@angular/core").InputSignal<({
|
|
12
13
|
name: string;
|
|
13
14
|
query?: Record<string, string | string[]>;
|
|
14
15
|
hash?: string;
|
|
15
16
|
} & {
|
|
16
17
|
params?: Record<string, string | string[]> | undefined;
|
|
17
|
-
})>;
|
|
18
|
-
readonly replace: import("@angular/core
|
|
19
|
-
readonly prefetch: import("@angular/core
|
|
20
|
-
readonly prefetchOn: import("@angular/core
|
|
21
|
-
readonly prefetchDelay: import("@angular/core
|
|
22
|
-
readonly viewTransition: import("@angular/core
|
|
23
|
-
readonly query: import("@angular/core
|
|
24
|
-
readonly state: import("@angular/core
|
|
25
|
-
readonly relative: import("@angular/core
|
|
26
|
-
readonly mask: import("@angular/core
|
|
27
|
-
readonly unmaskOnReload: import("@angular/core
|
|
28
|
-
readonly activeClass: import("@angular/core
|
|
29
|
-
readonly exactActiveClass: import("@angular/core
|
|
30
|
-
readonly pendingClass: import("@angular/core
|
|
31
|
-
readonly prefetchedClass: import("@angular/core
|
|
32
|
-
readonly ariaCurrentValue: import("@angular/core
|
|
33
|
-
readonly external: import("@angular/core
|
|
34
|
-
readonly noRel: import("@angular/core
|
|
35
|
-
readonly scroll: import("@angular/core
|
|
36
|
-
readonly keepFocus: import("@angular/core
|
|
37
|
-
readonly beforeNavigate: import("@angular/core
|
|
18
|
+
}) | T>;
|
|
19
|
+
readonly replace: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly prefetch: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
21
|
+
readonly prefetchOn: import("@angular/core").InputSignal<PrefetchOn | undefined>;
|
|
22
|
+
readonly prefetchDelay: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
23
|
+
readonly viewTransition: import("@angular/core").InputSignal<ViewTransitionCall | undefined>;
|
|
24
|
+
readonly query: import("@angular/core").InputSignal<Query | undefined>;
|
|
25
|
+
readonly state: import("@angular/core").InputSignal<Record<string, unknown> | undefined>;
|
|
26
|
+
readonly relative: import("@angular/core").InputSignal<"route" | undefined>;
|
|
27
|
+
readonly mask: import("@angular/core").InputSignal<string | undefined>;
|
|
28
|
+
readonly unmaskOnReload: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
29
|
+
readonly activeClass: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
readonly exactActiveClass: import("@angular/core").InputSignal<string | undefined>;
|
|
31
|
+
readonly pendingClass: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
readonly prefetchedClass: import("@angular/core").InputSignal<string | undefined>;
|
|
33
|
+
readonly ariaCurrentValue: import("@angular/core").InputSignal<AriaCurrent>;
|
|
34
|
+
readonly external: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
readonly noRel: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
36
|
+
readonly scroll: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
37
|
+
readonly keepFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
38
|
+
readonly beforeNavigate: import("@angular/core").OutputEmitterRef<Navigation>;
|
|
38
39
|
private readonly app;
|
|
39
40
|
private readonly route;
|
|
40
41
|
private readonly resolve;
|
|
@@ -55,6 +56,8 @@ export declare class Link<T extends string = string> {
|
|
|
55
56
|
private readonly attrs;
|
|
56
57
|
constructor();
|
|
57
58
|
protected attr(name: string): string | undefined;
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Link<any>, never>;
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Link<any>, "a[hamurLink]", never, { "to": { "alias": "hamurLink"; "required": true; "isSignal": true; }; "replace": { "alias": "replace"; "required": false; "isSignal": true; }; "prefetch": { "alias": "prefetch"; "required": false; "isSignal": true; }; "prefetchOn": { "alias": "prefetchOn"; "required": false; "isSignal": true; }; "prefetchDelay": { "alias": "prefetchDelay"; "required": false; "isSignal": true; }; "viewTransition": { "alias": "viewTransition"; "required": false; "isSignal": true; }; "query": { "alias": "query"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "relative": { "alias": "relative"; "required": false; "isSignal": true; }; "mask": { "alias": "mask"; "required": false; "isSignal": true; }; "unmaskOnReload": { "alias": "unmaskOnReload"; "required": false; "isSignal": true; }; "activeClass": { "alias": "activeClass"; "required": false; "isSignal": true; }; "exactActiveClass": { "alias": "exactActiveClass"; "required": false; "isSignal": true; }; "pendingClass": { "alias": "pendingClass"; "required": false; "isSignal": true; }; "prefetchedClass": { "alias": "prefetchedClass"; "required": false; "isSignal": true; }; "ariaCurrentValue": { "alias": "ariaCurrentValue"; "required": false; "isSignal": true; }; "external": { "alias": "external"; "required": false; "isSignal": true; }; "noRel": { "alias": "noRel"; "required": false; "isSignal": true; }; "scroll": { "alias": "scroll"; "required": false; "isSignal": true; }; "keepFocus": { "alias": "keepFocus"; "required": false; "isSignal": true; }; }, { "beforeNavigate": "beforeNavigate"; }, never, never, true, never>;
|
|
58
61
|
}
|
|
59
62
|
/** The `LinkSlot` of a link to `to`, for an element that renders its own `<a>`; `app.link` sets its defaults. */
|
|
60
63
|
export declare function injectLink<T extends string = string>(to: CheckedTarget<T> | RouteLocation | (() => CheckedTarget<T> | RouteLocation), options?: UseLinkOptions | (() => UseLinkOptions)): Signal<LinkSlot>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { type Type } from "@angular/core";
|
|
2
2
|
import type { MarkdownDocument, MdNode } from "hamur/markdown";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export interface MarkdownRendererProps {
|
|
4
5
|
/** A Markdown AST node, a list of nodes, or a document, which renders its `ast`. */
|
|
5
6
|
value: MdNode | MdNode[] | MarkdownDocument;
|
|
@@ -18,9 +19,9 @@ type Components = Record<string, Type<unknown>>;
|
|
|
18
19
|
* the host in hydration and the browser builds them again from the same AST.
|
|
19
20
|
*/
|
|
20
21
|
export declare class MarkdownRenderer {
|
|
21
|
-
readonly value: import("@angular/core
|
|
22
|
-
readonly components: import("@angular/core
|
|
23
|
-
readonly raw: import("@angular/core
|
|
22
|
+
readonly value: import("@angular/core").InputSignal<MdNode | MarkdownDocument | MdNode[]>;
|
|
23
|
+
readonly components: import("@angular/core").InputSignal<Components | undefined>;
|
|
24
|
+
readonly raw: import("@angular/core").InputSignal<((html: string) => string | {
|
|
24
25
|
readonly __brand: "TrustedHTML";
|
|
25
26
|
}) | undefined>;
|
|
26
27
|
private readonly host;
|
|
@@ -33,5 +34,7 @@ export declare class MarkdownRenderer {
|
|
|
33
34
|
constructor();
|
|
34
35
|
private append;
|
|
35
36
|
private appendComponent;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownRenderer, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MarkdownRenderer, "hamur-markdown", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "components": { "alias": "components"; "required": false; "isSignal": true; }; "raw": { "alias": "raw"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
36
39
|
}
|
|
37
40
|
export {};
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
import { type OnInit } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
/** Navigates to `to` once after mount; during SSR it throws the redirect `navigateTo` throws there. */
|
|
3
4
|
export declare class Navigate<T extends string = string> implements OnInit {
|
|
4
|
-
readonly to: import("@angular/core
|
|
5
|
+
readonly to: import("@angular/core").InputSignal<({
|
|
5
6
|
name: string;
|
|
6
7
|
query?: Record<string, string | string[]>;
|
|
7
8
|
hash?: string;
|
|
8
9
|
} & {
|
|
9
10
|
params?: Record<string, string | string[]> | undefined;
|
|
10
|
-
})>;
|
|
11
|
-
readonly replace: import("@angular/core
|
|
11
|
+
}) | T>;
|
|
12
|
+
readonly replace: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
12
13
|
constructor();
|
|
13
14
|
ngOnInit(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Navigate<any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Navigate<any>, "hamur-navigate", never, { "to": { "alias": "to"; "required": true; "isSignal": true; }; "replace": { "alias": "replace"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
17
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { type OnInit, type Signal } from "@angular/core";
|
|
2
2
|
import type { KeptUnit, RenderContext, RenderTree, RouteValue } from "hamur/adapter";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* Places the next level of the tree as its next sibling; the `hamur-outlet` element stays empty. With `name` it places
|
|
5
6
|
* the chain of that slot of the entry it sits in; `context` reaches the entries below through `injectOutletContext()`.
|
|
6
7
|
*/
|
|
7
8
|
export declare class Outlet implements OnInit {
|
|
8
|
-
readonly name: import("@angular/core
|
|
9
|
-
readonly context: import("@angular/core
|
|
9
|
+
readonly name: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
+
readonly context: import("@angular/core").InputSignal<unknown>;
|
|
10
11
|
private readonly tree;
|
|
11
12
|
private readonly fail;
|
|
12
13
|
private readonly app;
|
|
@@ -52,15 +53,17 @@ export declare class Outlet implements OnInit {
|
|
|
52
53
|
private answer;
|
|
53
54
|
private clear;
|
|
54
55
|
private setInputs;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Outlet, never>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<Outlet, "hamur-outlet", never, { "name": { "alias": "name"; "required": false; "isSignal": true; }; "context": { "alias": "context"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
55
58
|
}
|
|
56
59
|
/**
|
|
57
60
|
* The `<div data-hamur-keepalive="<key>">` of a page whose route keeps its pages, `display:contents` while it is shown
|
|
58
61
|
* and `hidden` while kept. A kept unit reads its own tree, route and payload; a shown one reads the page's, from its own level down.
|
|
59
62
|
*/
|
|
60
63
|
export declare class KeptPage {
|
|
61
|
-
readonly name: import("@angular/core
|
|
62
|
-
readonly unit: import("@angular/core
|
|
63
|
-
readonly hidden: import("@angular/core
|
|
64
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
65
|
+
readonly unit: import("@angular/core").InputSignal<KeptUnit | undefined>;
|
|
66
|
+
readonly hidden: import("@angular/core").InputSignal<boolean>;
|
|
64
67
|
private readonly source;
|
|
65
68
|
private readonly app;
|
|
66
69
|
readonly activation: import("./activation.ts").Activation;
|
|
@@ -68,4 +71,6 @@ export declare class KeptPage {
|
|
|
68
71
|
readonly route: Signal<RouteValue>;
|
|
69
72
|
readonly payload: Signal<RenderContext["payload"]>;
|
|
70
73
|
constructor();
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KeptPage, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KeptPage, "div[data-hamur-keepalive]", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "hidden": { "alias": "hidden"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
71
76
|
}
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { type OnInit, type TemplateRef } from "@angular/core";
|
|
2
2
|
import { HostWriter } from "./island.ts";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* A component rendered on the server in its own request; the page holds `fallback`, the core swaps the answer in, and Angular
|
|
5
6
|
* never renders or hydrates it. While hydrating, the server's element keeps its attributes and nodes.
|
|
6
7
|
*/
|
|
7
8
|
export declare class ServerIsland extends HostWriter implements OnInit {
|
|
8
9
|
/** The name of a component under `app/server-islands/`. */
|
|
9
|
-
readonly name: import("@angular/core
|
|
10
|
-
readonly props: import("@angular/core
|
|
10
|
+
readonly name: import("@angular/core").InputSignal<string>;
|
|
11
|
+
readonly props: import("@angular/core").InputSignal<Record<string, unknown> | undefined>;
|
|
11
12
|
/** Rendered with the page; replaced by the island's HTML once the browser has it. */
|
|
12
|
-
readonly fallback: import("@angular/core
|
|
13
|
+
readonly fallback: import("@angular/core").InputSignal<TemplateRef<unknown> | undefined>;
|
|
13
14
|
private readonly app;
|
|
14
15
|
private readonly id;
|
|
15
16
|
private readonly tasks;
|
|
@@ -18,4 +19,6 @@ export declare class ServerIsland extends HostWriter implements OnInit {
|
|
|
18
19
|
private readonly kept;
|
|
19
20
|
constructor();
|
|
20
21
|
ngOnInit(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ServerIsland, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ServerIsland, "hamur-server-island", never, { "name": { "alias": "name"; "required": true; "isSignal": true; }; "props": { "alias": "props"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
24
|
}
|
package/dist/types/src/time.d.ts
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
1
2
|
/**
|
|
2
3
|
* `<time [hamurTime]="date">` writes the `datetime`, `data-locale` and `data-time-zone` attributes and the formatted text;
|
|
3
4
|
* `relative` refreshes the text every `relativeInterval` ms in the browser. The other inputs are the `Intl.DateTimeFormat` options.
|
|
4
5
|
*/
|
|
5
6
|
export declare class Time {
|
|
6
|
-
readonly datetime: import("@angular/core
|
|
7
|
-
readonly locale: import("@angular/core
|
|
8
|
-
readonly timeZone: import("@angular/core
|
|
9
|
-
readonly relative: import("@angular/core
|
|
10
|
-
readonly relativeInterval: import("@angular/core
|
|
11
|
-
readonly calendar: import("@angular/core
|
|
12
|
-
readonly dayPeriod: import("@angular/core
|
|
13
|
-
readonly numberingSystem: import("@angular/core
|
|
14
|
-
readonly dateStyle: import("@angular/core
|
|
15
|
-
readonly timeStyle: import("@angular/core
|
|
16
|
-
readonly hourCycle: import("@angular/core
|
|
17
|
-
readonly hour12: import("@angular/core
|
|
18
|
-
readonly localeMatcher: import("@angular/core
|
|
19
|
-
readonly formatMatcher: import("@angular/core
|
|
20
|
-
readonly weekday: import("@angular/core
|
|
21
|
-
readonly era: import("@angular/core
|
|
22
|
-
readonly year: import("@angular/core
|
|
23
|
-
readonly month: import("@angular/core
|
|
24
|
-
readonly day: import("@angular/core
|
|
25
|
-
readonly hour: import("@angular/core
|
|
26
|
-
readonly minute: import("@angular/core
|
|
27
|
-
readonly second: import("@angular/core
|
|
28
|
-
readonly fractionalSecondDigits: import("@angular/core
|
|
29
|
-
readonly timeZoneName: import("@angular/core
|
|
7
|
+
readonly datetime: import("@angular/core").InputSignal<string | number | Date>;
|
|
8
|
+
readonly locale: import("@angular/core").InputSignal<string | undefined>;
|
|
9
|
+
readonly timeZone: import("@angular/core").InputSignal<string | undefined>;
|
|
10
|
+
readonly relative: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
|
+
readonly relativeInterval: import("@angular/core").InputSignalWithTransform<number | undefined, unknown>;
|
|
12
|
+
readonly calendar: import("@angular/core").InputSignal<string | undefined>;
|
|
13
|
+
readonly dayPeriod: import("@angular/core").InputSignal<"narrow" | "short" | "long" | undefined>;
|
|
14
|
+
readonly numberingSystem: import("@angular/core").InputSignal<string | undefined>;
|
|
15
|
+
readonly dateStyle: import("@angular/core").InputSignal<"short" | "long" | "full" | "medium" | undefined>;
|
|
16
|
+
readonly timeStyle: import("@angular/core").InputSignal<"short" | "long" | "full" | "medium" | undefined>;
|
|
17
|
+
readonly hourCycle: import("@angular/core").InputSignal<"h11" | "h12" | "h23" | "h24" | undefined>;
|
|
18
|
+
readonly hour12: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
19
|
+
readonly localeMatcher: import("@angular/core").InputSignal<"best fit" | "lookup" | undefined>;
|
|
20
|
+
readonly formatMatcher: import("@angular/core").InputSignal<"best fit" | "basic" | undefined>;
|
|
21
|
+
readonly weekday: import("@angular/core").InputSignal<"narrow" | "short" | "long" | undefined>;
|
|
22
|
+
readonly era: import("@angular/core").InputSignal<"narrow" | "short" | "long" | undefined>;
|
|
23
|
+
readonly year: import("@angular/core").InputSignal<"numeric" | "2-digit" | undefined>;
|
|
24
|
+
readonly month: import("@angular/core").InputSignal<"narrow" | "short" | "long" | "numeric" | "2-digit" | undefined>;
|
|
25
|
+
readonly day: import("@angular/core").InputSignal<"numeric" | "2-digit" | undefined>;
|
|
26
|
+
readonly hour: import("@angular/core").InputSignal<"numeric" | "2-digit" | undefined>;
|
|
27
|
+
readonly minute: import("@angular/core").InputSignal<"numeric" | "2-digit" | undefined>;
|
|
28
|
+
readonly second: import("@angular/core").InputSignal<"numeric" | "2-digit" | undefined>;
|
|
29
|
+
readonly fractionalSecondDigits: import("@angular/core").InputSignalWithTransform<1 | 2 | 3 | undefined, unknown>;
|
|
30
|
+
readonly timeZoneName: import("@angular/core").InputSignal<"short" | "long" | "shortOffset" | "longOffset" | "shortGeneric" | "longGeneric" | undefined>;
|
|
30
31
|
private readonly app;
|
|
31
32
|
private readonly route;
|
|
32
33
|
private readonly now;
|
|
33
34
|
private readonly props;
|
|
34
|
-
protected readonly view: import("@angular/core
|
|
35
|
+
protected readonly view: import("@angular/core").Signal<import("hamur/adapter").TimeView>;
|
|
35
36
|
private readonly interval;
|
|
36
37
|
constructor();
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<Time, never>;
|
|
39
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Time, "time[hamurTime]", never, { "datetime": { "alias": "hamurTime"; "required": true; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "timeZone": { "alias": "timeZone"; "required": false; "isSignal": true; }; "relative": { "alias": "relative"; "required": false; "isSignal": true; }; "relativeInterval": { "alias": "relativeInterval"; "required": false; "isSignal": true; }; "calendar": { "alias": "calendar"; "required": false; "isSignal": true; }; "dayPeriod": { "alias": "dayPeriod"; "required": false; "isSignal": true; }; "numberingSystem": { "alias": "numberingSystem"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "timeStyle": { "alias": "timeStyle"; "required": false; "isSignal": true; }; "hourCycle": { "alias": "hourCycle"; "required": false; "isSignal": true; }; "hour12": { "alias": "hour12"; "required": false; "isSignal": true; }; "localeMatcher": { "alias": "localeMatcher"; "required": false; "isSignal": true; }; "formatMatcher": { "alias": "formatMatcher"; "required": false; "isSignal": true; }; "weekday": { "alias": "weekday"; "required": false; "isSignal": true; }; "era": { "alias": "era"; "required": false; "isSignal": true; }; "year": { "alias": "year"; "required": false; "isSignal": true; }; "month": { "alias": "month"; "required": false; "isSignal": true; }; "day": { "alias": "day"; "required": false; "isSignal": true; }; "hour": { "alias": "hour"; "required": false; "isSignal": true; }; "minute": { "alias": "minute"; "required": false; "isSignal": true; }; "second": { "alias": "second"; "required": false; "isSignal": true; }; "fractionalSecondDigits": { "alias": "fractionalSecondDigits"; "required": false; "isSignal": true; }; "timeZoneName": { "alias": "timeZoneName"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
37
40
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hamur/adapter-angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -11,31 +11,52 @@
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
13
|
"types": "./dist/types/src/index.d.ts",
|
|
14
|
-
"
|
|
14
|
+
"bun": "./src/index.ts",
|
|
15
|
+
"hamur-source": "./src/index.ts",
|
|
16
|
+
"node": "./dist/src/index.js",
|
|
17
|
+
"default": "./src/index.ts"
|
|
15
18
|
},
|
|
16
19
|
"./adapter": {
|
|
17
20
|
"types": "./dist/types/src/adapter.d.ts",
|
|
18
|
-
"
|
|
21
|
+
"bun": "./src/adapter.ts",
|
|
22
|
+
"hamur-source": "./src/adapter.ts",
|
|
23
|
+
"node": "./dist/src/adapter.js",
|
|
24
|
+
"default": "./src/adapter.ts"
|
|
19
25
|
},
|
|
20
26
|
"./error-page": {
|
|
21
27
|
"types": "./dist/types/src/error-page.d.ts",
|
|
22
|
-
"
|
|
28
|
+
"bun": "./src/error-page.ts",
|
|
29
|
+
"hamur-source": "./src/error-page.ts",
|
|
30
|
+
"node": "./dist/src/error-page.js",
|
|
31
|
+
"default": "./src/error-page.ts"
|
|
23
32
|
},
|
|
24
33
|
"./runtime/server": {
|
|
25
34
|
"types": "./dist/types/src/runtime/server.d.ts",
|
|
26
|
-
"
|
|
35
|
+
"bun": "./src/runtime/server.ts",
|
|
36
|
+
"hamur-source": "./src/runtime/server.ts",
|
|
37
|
+
"node": "./dist/src/runtime/server.js",
|
|
38
|
+
"default": "./src/runtime/server.ts"
|
|
27
39
|
},
|
|
28
40
|
"./runtime/client": {
|
|
29
41
|
"types": "./dist/types/src/runtime/client.d.ts",
|
|
30
|
-
"
|
|
42
|
+
"bun": "./src/runtime/client.ts",
|
|
43
|
+
"hamur-source": "./src/runtime/client.ts",
|
|
44
|
+
"node": "./dist/src/runtime/client.js",
|
|
45
|
+
"default": "./src/runtime/client.ts"
|
|
31
46
|
},
|
|
32
47
|
"./runtime/island": {
|
|
33
48
|
"types": "./dist/types/src/runtime/island.d.ts",
|
|
34
|
-
"
|
|
49
|
+
"bun": "./src/runtime/island.ts",
|
|
50
|
+
"hamur-source": "./src/runtime/island.ts",
|
|
51
|
+
"node": "./dist/src/runtime/island.js",
|
|
52
|
+
"default": "./src/runtime/island.ts"
|
|
35
53
|
},
|
|
36
54
|
"./runtime/keepalive": {
|
|
37
55
|
"types": "./dist/types/src/keepalive.d.ts",
|
|
38
|
-
"
|
|
56
|
+
"bun": "./src/keepalive.ts",
|
|
57
|
+
"hamur-source": "./src/keepalive.ts",
|
|
58
|
+
"node": "./dist/src/keepalive.js",
|
|
59
|
+
"default": "./src/keepalive.ts"
|
|
39
60
|
},
|
|
40
61
|
"./package.json": "./package.json"
|
|
41
62
|
},
|
|
@@ -53,6 +74,6 @@
|
|
|
53
74
|
"@angular/compiler-cli": "^22.3.0",
|
|
54
75
|
"rxjs": "^7.8.2",
|
|
55
76
|
"typescript": "~6.0.3",
|
|
56
|
-
"hamur": "^0.0.
|
|
77
|
+
"hamur": "^0.0.2"
|
|
57
78
|
}
|
|
58
79
|
}
|
package/src/app.ts
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { Component } from "@angular/core"
|
|
2
|
-
import { Outlet } from "./outlet.ts"
|
|
3
|
-
|
|
1
|
+
import { Component } from "@angular/core";
|
|
2
|
+
import { Outlet } from "./outlet.ts";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
4
|
/** The one Angular root, inside the core's root element; it renders the tree's first entry. */
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
export class HamurApp {
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: HamurApp, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
7
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.3.2", type: HamurApp, isStandalone: true, selector: "hamur-app", ngImport: i0, template: "<hamur-outlet />", isInline: true, dependencies: [{ kind: "component", type: Outlet, selector: "hamur-outlet", inputs: ["name", "context"] }] });
|
|
8
|
+
}
|
|
9
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: HamurApp, decorators: [{
|
|
10
|
+
type: Component,
|
|
11
|
+
args: [{ selector: "hamur-app", imports: [Outlet], template: "<hamur-outlet />" }]
|
|
12
|
+
}] });
|