@hamur/adapter-angular 0.0.0-stage → 0.0.1
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/LICENSE +22 -0
- package/README.md +42 -2
- package/dist/chunks/browser-index-7h7x2xz2.js +131 -0
- package/dist/chunks/browser-index-nann848q.js +205 -0
- package/dist/chunks/browser-index-qn8q5fa2.js +580 -0
- package/dist/src/adapter.js +1073 -0
- package/dist/src/error-page.js +34 -0
- package/dist/src/index.js +1729 -0
- package/dist/src/keepalive.js +0 -0
- package/dist/src/runtime/client.js +21 -0
- package/dist/src/runtime/island.js +92 -0
- package/dist/src/runtime/server.js +175 -0
- package/dist/types/src/activation.d.ts +20 -0
- package/dist/types/src/adapter.d.ts +7 -0
- package/dist/types/src/app.d.ts +3 -0
- package/dist/types/src/async-data.d.ts +21 -0
- package/dist/types/src/client-parts.d.ts +32 -0
- package/dist/types/src/compile.d.ts +97 -0
- package/dist/types/src/context.d.ts +74 -0
- package/dist/types/src/data.d.ts +65 -0
- package/dist/types/src/definition.d.ts +13 -0
- package/dist/types/src/error-page.d.ts +5 -0
- package/dist/types/src/error.d.ts +4 -0
- package/dist/types/src/form.d.ts +65 -0
- package/dist/types/src/head.d.ts +12 -0
- package/dist/types/src/hmr.d.ts +14 -0
- package/dist/types/src/hydration.d.ts +16 -0
- package/dist/types/src/index.d.ts +24 -0
- package/dist/types/src/indicators.d.ts +69 -0
- package/dist/types/src/island.d.ts +39 -0
- package/dist/types/src/keepalive.d.ts +1 -0
- package/dist/types/src/link.d.ts +65 -0
- package/dist/types/src/markdown-page.d.ts +10 -0
- package/dist/types/src/markdown.d.ts +37 -0
- package/dist/types/src/mask.d.ts +12 -0
- package/dist/types/src/navigate.d.ts +14 -0
- package/dist/types/src/outlet.d.ts +71 -0
- package/dist/types/src/request.d.ts +31 -0
- package/dist/types/src/routing.d.ts +47 -0
- package/dist/types/src/runtime/client.d.ts +29 -0
- package/dist/types/src/runtime/hydration-dev.d.ts +1 -0
- package/dist/types/src/runtime/hydration.d.ts +8 -0
- package/dist/types/src/runtime/island.d.ts +8 -0
- package/dist/types/src/runtime/server.d.ts +15 -0
- package/dist/types/src/server-island.d.ts +21 -0
- package/dist/types/src/state.d.ts +14 -0
- package/dist/types/src/svg.d.ts +15 -0
- package/dist/types/src/time.d.ts +37 -0
- package/dist/types/src/wrapper.d.ts +21 -0
- package/package.json +56 -4
- package/src/activation.ts +83 -0
- package/src/adapter.ts +107 -0
- package/src/app.ts +6 -0
- package/src/async-data.ts +105 -0
- package/src/client-parts.ts +127 -0
- package/src/compile.ts +959 -0
- package/src/context.ts +189 -0
- package/src/data.ts +389 -0
- package/src/definition.ts +144 -0
- package/src/error-page.ts +17 -0
- package/src/error.ts +15 -0
- package/src/form.ts +253 -0
- package/src/head.ts +63 -0
- package/src/hmr.ts +61 -0
- package/src/hydration.ts +120 -0
- package/src/index.ts +98 -0
- package/src/indicators.ts +251 -0
- package/src/island.ts +95 -0
- package/src/keepalive.ts +1 -0
- package/src/link.ts +251 -0
- package/src/markdown-page.ts +31 -0
- package/src/markdown.ts +170 -0
- package/src/mask.ts +36 -0
- package/src/navigate.ts +19 -0
- package/src/outlet.ts +344 -0
- package/src/request.ts +170 -0
- package/src/routing.ts +218 -0
- package/src/runtime/client.ts +140 -0
- package/src/runtime/contract.d.ts +4 -0
- package/src/runtime/hydration-dev.ts +18 -0
- package/src/runtime/hydration.ts +7 -0
- package/src/runtime/island.ts +109 -0
- package/src/runtime/server.ts +228 -0
- package/src/server-island.ts +54 -0
- package/src/state.ts +70 -0
- package/src/svg.ts +65 -0
- package/src/time.ts +108 -0
- package/src/wrapper.ts +187 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// packages/adapter-angular/src/error-page.ts
|
|
3
|
+
import { Component, input } from "@angular/core";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
|
|
6
|
+
class DefaultErrorPage {
|
|
7
|
+
error = input.required(...ngDevMode ? [{ debugName: "error" }] : []);
|
|
8
|
+
clearError = input(...ngDevMode ? [undefined, { debugName: "clearError" }] : []);
|
|
9
|
+
static \u{275}fac = i0.\u{275}\u{275}ngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: DefaultErrorPage, deps: [], target: i0.\u{275}\u{275}FactoryTarget.Component });
|
|
10
|
+
static \u{275}cmp = i0.\u{275}\u{275}ngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: DefaultErrorPage, isStandalone: true, selector: "ng-component", inputs: { error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: true, transformFunction: null }, clearError: { classPropertyName: "clearError", publicName: "clearError", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `<main style="font-family: system-ui, sans-serif; text-align: center; padding: 4rem 1rem">
|
|
11
|
+
<h1 style="font-size: 4rem; margin: 0">{{ error().status }}</h1>
|
|
12
|
+
<p>{{ error().message }}</p>
|
|
13
|
+
@if (error().stack) {
|
|
14
|
+
<pre>{{ error().stack }}</pre>
|
|
15
|
+
}
|
|
16
|
+
<a href="/">Back home</a>
|
|
17
|
+
</main>`, isInline: true });
|
|
18
|
+
}
|
|
19
|
+
i0.\u{275}\u{275}ngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: DefaultErrorPage, decorators: [{
|
|
20
|
+
type: Component,
|
|
21
|
+
args: [{
|
|
22
|
+
template: `<main style="font-family: system-ui, sans-serif; text-align: center; padding: 4rem 1rem">
|
|
23
|
+
<h1 style="font-size: 4rem; margin: 0">{{ error().status }}</h1>
|
|
24
|
+
<p>{{ error().message }}</p>
|
|
25
|
+
@if (error().stack) {
|
|
26
|
+
<pre>{{ error().stack }}</pre>
|
|
27
|
+
}
|
|
28
|
+
<a href="/">Back home</a>
|
|
29
|
+
</main>`
|
|
30
|
+
}]
|
|
31
|
+
}], propDecorators: { error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: true }] }], clearError: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearError", required: false }] }] } });
|
|
32
|
+
export {
|
|
33
|
+
DefaultErrorPage as default
|
|
34
|
+
};
|