@hamur/adapter-angular 0.0.1 → 0.0.3
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 +88 -37
- 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 +13 -3
- package/dist/types/src/data.d.ts +3 -3
- package/dist/types/src/error-page.d.ts +5 -2
- package/dist/types/src/form.d.ts +16 -13
- package/dist/types/src/hmr.d.ts +1 -1
- 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 +123 -60
- package/src/data.ts +3 -3
- package/src/error-page.ts +23 -10
- package/src/form.ts +166 -237
- package/src/hmr.ts +3 -2
- 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/src/server-island.ts
CHANGED
|
@@ -1,54 +1,67 @@
|
|
|
1
|
-
import { Component, PendingTasks, effect, inject, input
|
|
2
|
-
import { renderServerIsland, serverIslandProps } from "hamur/adapter"
|
|
3
|
-
import { injectId } from "./client-parts.ts"
|
|
4
|
-
import { HAMUR_APP, HAMUR_FAIL, onServer } from "./context.ts"
|
|
5
|
-
import { HostWriter } from "./island.ts"
|
|
6
|
-
|
|
1
|
+
import { Component, PendingTasks, effect, inject, input } from "@angular/core";
|
|
2
|
+
import { renderServerIsland, serverIslandProps } from "hamur/adapter";
|
|
3
|
+
import { injectId } from "./client-parts.ts";
|
|
4
|
+
import { HAMUR_APP, HAMUR_FAIL, onServer } from "./context.ts";
|
|
5
|
+
import { HostWriter } from "./island.ts";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* A component rendered on the server in its own request; the page holds `fallback`, the core swaps the answer in, and Angular
|
|
9
9
|
* never renders or hydrates it. While hydrating, the server's element keeps its attributes and nodes.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
11
|
+
export class ServerIsland extends HostWriter {
|
|
12
|
+
/** The name of a component under `app/server-islands/`. */
|
|
13
|
+
name = input.required(/* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
15
|
+
props = input(/* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [undefined, { debugName: "props" }] : /* istanbul ignore next */ []));
|
|
17
|
+
/** Rendered with the page; replaced by the island's HTML once the browser has it. */
|
|
18
|
+
fallback = input(/* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [undefined, { debugName: "fallback" }] : /* istanbul ignore next */ []));
|
|
20
|
+
app = inject(HAMUR_APP, { optional: true });
|
|
21
|
+
id = injectId();
|
|
22
|
+
tasks = inject(PendingTasks);
|
|
23
|
+
fail = inject(HAMUR_FAIL, { optional: true });
|
|
24
|
+
server = onServer();
|
|
25
|
+
kept;
|
|
26
|
+
constructor() {
|
|
27
|
+
super();
|
|
28
|
+
if (!this.app)
|
|
29
|
+
throw new Error("ServerIsland must be rendered inside a Hamur app");
|
|
30
|
+
this.kept = !this.server && this.app.asyncData.hydrating;
|
|
31
|
+
if (this.server || this.kept)
|
|
32
|
+
return;
|
|
33
|
+
effect(() => {
|
|
34
|
+
const name = this.name();
|
|
35
|
+
const props = this.props();
|
|
36
|
+
this.renderer.setAttribute(this.host, "name", name);
|
|
37
|
+
if (props && Object.keys(props).length)
|
|
38
|
+
this.renderer.setAttribute(this.host, "props", serverIslandProps(name, props));
|
|
39
|
+
else
|
|
40
|
+
this.renderer.removeAttribute(this.host, "props");
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
ngOnInit() {
|
|
44
|
+
if (this.kept)
|
|
45
|
+
return;
|
|
46
|
+
const fallback = this.fallback();
|
|
47
|
+
if (fallback)
|
|
48
|
+
this.append(fallback);
|
|
49
|
+
if (!this.server)
|
|
50
|
+
return;
|
|
51
|
+
const { attributes } = renderServerIsland(this.app, this.id, this.name(), this.props());
|
|
52
|
+
const done = this.tasks.add();
|
|
53
|
+
attributes
|
|
54
|
+
.then((written) => {
|
|
55
|
+
for (const [name, value] of Object.entries(written))
|
|
56
|
+
this.renderer.setAttribute(this.host, name, value);
|
|
57
|
+
})
|
|
58
|
+
.catch((error) => this.fail?.(error))
|
|
59
|
+
.finally(done);
|
|
60
|
+
}
|
|
61
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: ServerIsland, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.2", type: ServerIsland, isStandalone: true, selector: "hamur-server-island", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, props: { classPropertyName: "props", publicName: "props", isSignal: true, isRequired: false, transformFunction: null }, fallback: { classPropertyName: "fallback", publicName: "fallback", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "", isInline: true });
|
|
54
63
|
}
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: ServerIsland, decorators: [{
|
|
65
|
+
type: Component,
|
|
66
|
+
args: [{ selector: "hamur-server-island", template: "" }]
|
|
67
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], props: [{ type: i0.Input, args: [{ isSignal: true, alias: "props", required: false }] }], fallback: [{ type: i0.Input, args: [{ isSignal: true, alias: "fallback", required: false }] }] } });
|
package/src/time.ts
CHANGED
|
@@ -1,108 +1,115 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
input,
|
|
8
|
-
numberAttribute,
|
|
9
|
-
signal,
|
|
10
|
-
} from "@angular/core"
|
|
11
|
-
import { timeView, watchTime } from "hamur/adapter"
|
|
12
|
-
import type { TimeInput } from "hamur/adapter"
|
|
13
|
-
import { HAMUR_APP, HAMUR_ROUTE, required } from "./context.ts"
|
|
14
|
-
|
|
15
|
-
type Format = Intl.DateTimeFormatOptions
|
|
16
|
-
|
|
17
|
-
const optionalBoolean = (value: unknown): boolean | undefined =>
|
|
18
|
-
value === undefined ? undefined : booleanAttribute(value)
|
|
19
|
-
const optionalNumber = (value: unknown): number | undefined =>
|
|
20
|
-
value === undefined ? undefined : numberAttribute(value)
|
|
21
|
-
|
|
1
|
+
import { Directive, afterRenderEffect, booleanAttribute, computed, inject, input, numberAttribute, signal, } from "@angular/core";
|
|
2
|
+
import { timeView, watchTime } from "hamur/adapter";
|
|
3
|
+
import { HAMUR_APP, HAMUR_ROUTE, required } from "./context.ts";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
const optionalBoolean = (value) => value === undefined ? undefined : booleanAttribute(value);
|
|
6
|
+
const optionalNumber = (value) => value === undefined ? undefined : numberAttribute(value);
|
|
22
7
|
/**
|
|
23
8
|
* `<time [hamurTime]="date">` writes the `datetime`, `data-locale` and `data-time-zone` attributes and the formatted text;
|
|
24
9
|
* `relative` refreshes the text every `relativeInterval` ms in the browser. The other inputs are the `Intl.DateTimeFormat` options.
|
|
25
10
|
*/
|
|
26
|
-
@Directive({
|
|
27
|
-
selector: "time[hamurTime]",
|
|
28
|
-
host: {
|
|
29
|
-
"[attr.datetime]": "view().iso",
|
|
30
|
-
"[attr.data-locale]": "view().locale",
|
|
31
|
-
"[attr.data-time-zone]": "view().timeZone",
|
|
32
|
-
"[textContent]": "view().text",
|
|
33
|
-
},
|
|
34
|
-
})
|
|
35
11
|
export class Time {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
12
|
+
datetime = input.required({ ...(ngDevMode ? { debugName: "datetime" } : /* istanbul ignore next */ {}), alias: "hamurTime" });
|
|
13
|
+
locale = input(/* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [undefined, { debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
15
|
+
timeZone = input(/* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [undefined, { debugName: "timeZone" }] : /* istanbul ignore next */ []));
|
|
17
|
+
relative = input(false, { ...(ngDevMode ? { debugName: "relative" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
18
|
+
relativeInterval = input(undefined, { ...(ngDevMode ? { debugName: "relativeInterval" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
19
|
+
calendar = input(/* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [undefined, { debugName: "calendar" }] : /* istanbul ignore next */ []));
|
|
21
|
+
dayPeriod = input(/* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [undefined, { debugName: "dayPeriod" }] : /* istanbul ignore next */ []));
|
|
23
|
+
numberingSystem = input(/* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [undefined, { debugName: "numberingSystem" }] : /* istanbul ignore next */ []));
|
|
25
|
+
dateStyle = input(/* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [undefined, { debugName: "dateStyle" }] : /* istanbul ignore next */ []));
|
|
27
|
+
timeStyle = input(/* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [undefined, { debugName: "timeStyle" }] : /* istanbul ignore next */ []));
|
|
29
|
+
hourCycle = input(/* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [undefined, { debugName: "hourCycle" }] : /* istanbul ignore next */ []));
|
|
31
|
+
hour12 = input(undefined, { ...(ngDevMode ? { debugName: "hour12" } : /* istanbul ignore next */ {}), transform: optionalBoolean });
|
|
32
|
+
localeMatcher = input(/* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [undefined, { debugName: "localeMatcher" }] : /* istanbul ignore next */ []));
|
|
34
|
+
formatMatcher = input(/* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [undefined, { debugName: "formatMatcher" }] : /* istanbul ignore next */ []));
|
|
36
|
+
weekday = input(/* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [undefined, { debugName: "weekday" }] : /* istanbul ignore next */ []));
|
|
38
|
+
era = input(/* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [undefined, { debugName: "era" }] : /* istanbul ignore next */ []));
|
|
40
|
+
year = input(/* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [undefined, { debugName: "year" }] : /* istanbul ignore next */ []));
|
|
42
|
+
month = input(/* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [undefined, { debugName: "month" }] : /* istanbul ignore next */ []));
|
|
44
|
+
day = input(/* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [undefined, { debugName: "day" }] : /* istanbul ignore next */ []));
|
|
46
|
+
hour = input(/* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [undefined, { debugName: "hour" }] : /* istanbul ignore next */ []));
|
|
48
|
+
minute = input(/* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [undefined, { debugName: "minute" }] : /* istanbul ignore next */ []));
|
|
50
|
+
second = input(/* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [undefined, { debugName: "second" }] : /* istanbul ignore next */ []));
|
|
52
|
+
fractionalSecondDigits = input(undefined, { ...(ngDevMode ? { debugName: "fractionalSecondDigits" } : /* istanbul ignore next */ {}), transform: optionalNumber });
|
|
53
|
+
timeZoneName = input(/* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [undefined, { debugName: "timeZoneName" }] : /* istanbul ignore next */ []));
|
|
55
|
+
app = required(HAMUR_APP, "Time");
|
|
56
|
+
route = inject(HAMUR_ROUTE, { optional: true });
|
|
57
|
+
now = signal(undefined, /* @ts-ignore */
|
|
58
|
+
...(ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []));
|
|
59
|
+
props = computed(() => {
|
|
60
|
+
const given = {
|
|
61
|
+
datetime: this.datetime(),
|
|
62
|
+
locale: this.locale(),
|
|
63
|
+
timeZone: this.timeZone(),
|
|
64
|
+
relative: this.relative(),
|
|
65
|
+
relativeInterval: this.relativeInterval(),
|
|
66
|
+
calendar: this.calendar(),
|
|
67
|
+
dayPeriod: this.dayPeriod(),
|
|
68
|
+
numberingSystem: this.numberingSystem(),
|
|
69
|
+
dateStyle: this.dateStyle(),
|
|
70
|
+
timeStyle: this.timeStyle(),
|
|
71
|
+
hourCycle: this.hourCycle(),
|
|
72
|
+
hour12: this.hour12(),
|
|
73
|
+
localeMatcher: this.localeMatcher(),
|
|
74
|
+
formatMatcher: this.formatMatcher(),
|
|
75
|
+
weekday: this.weekday(),
|
|
76
|
+
era: this.era(),
|
|
77
|
+
year: this.year(),
|
|
78
|
+
month: this.month(),
|
|
79
|
+
day: this.day(),
|
|
80
|
+
hour: this.hour(),
|
|
81
|
+
minute: this.minute(),
|
|
82
|
+
second: this.second(),
|
|
83
|
+
fractionalSecondDigits: this.fractionalSecondDigits(),
|
|
84
|
+
timeZoneName: this.timeZoneName(),
|
|
85
|
+
};
|
|
86
|
+
return Object.fromEntries(Object.entries(given).filter(([, value]) => value !== undefined));
|
|
87
|
+
}, /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "props" }] : /* istanbul ignore next */ []));
|
|
89
|
+
view = computed(() => timeView(this.app, this.route?.().path ?? "/", this.props(), this.now()), /* @ts-ignore */
|
|
90
|
+
...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
91
|
+
interval = computed(() => this.view().interval, /* @ts-ignore */
|
|
92
|
+
...(ngDevMode ? [{ debugName: "interval" }] : /* istanbul ignore next */ []));
|
|
93
|
+
constructor() {
|
|
94
|
+
afterRenderEffect((onCleanup) => {
|
|
95
|
+
const interval = this.interval();
|
|
96
|
+
if (interval === undefined)
|
|
97
|
+
return;
|
|
98
|
+
onCleanup(watchTime(interval, (next) => this.now.set(next)));
|
|
99
|
+
});
|
|
93
100
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
protected readonly view = computed(() => timeView(this.app, this.route?.().path ?? "/", this.props(), this.now()))
|
|
98
|
-
|
|
99
|
-
private readonly interval = computed(() => this.view().interval)
|
|
100
|
-
|
|
101
|
-
constructor() {
|
|
102
|
-
afterRenderEffect((onCleanup) => {
|
|
103
|
-
const interval = this.interval()
|
|
104
|
-
if (interval === undefined) return
|
|
105
|
-
onCleanup(watchTime(interval, (next) => this.now.set(next)))
|
|
106
|
-
})
|
|
107
|
-
}
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: Time, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
102
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.3.2", type: Time, isStandalone: true, selector: "time[hamurTime]", inputs: { datetime: { classPropertyName: "datetime", publicName: "hamurTime", isSignal: true, isRequired: true, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, timeZone: { classPropertyName: "timeZone", publicName: "timeZone", isSignal: true, isRequired: false, transformFunction: null }, relative: { classPropertyName: "relative", publicName: "relative", isSignal: true, isRequired: false, transformFunction: null }, relativeInterval: { classPropertyName: "relativeInterval", publicName: "relativeInterval", isSignal: true, isRequired: false, transformFunction: null }, calendar: { classPropertyName: "calendar", publicName: "calendar", isSignal: true, isRequired: false, transformFunction: null }, dayPeriod: { classPropertyName: "dayPeriod", publicName: "dayPeriod", isSignal: true, isRequired: false, transformFunction: null }, numberingSystem: { classPropertyName: "numberingSystem", publicName: "numberingSystem", isSignal: true, isRequired: false, transformFunction: null }, dateStyle: { classPropertyName: "dateStyle", publicName: "dateStyle", isSignal: true, isRequired: false, transformFunction: null }, timeStyle: { classPropertyName: "timeStyle", publicName: "timeStyle", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, hour12: { classPropertyName: "hour12", publicName: "hour12", isSignal: true, isRequired: false, transformFunction: null }, localeMatcher: { classPropertyName: "localeMatcher", publicName: "localeMatcher", isSignal: true, isRequired: false, transformFunction: null }, formatMatcher: { classPropertyName: "formatMatcher", publicName: "formatMatcher", isSignal: true, isRequired: false, transformFunction: null }, weekday: { classPropertyName: "weekday", publicName: "weekday", isSignal: true, isRequired: false, transformFunction: null }, era: { classPropertyName: "era", publicName: "era", isSignal: true, isRequired: false, transformFunction: null }, year: { classPropertyName: "year", publicName: "year", isSignal: true, isRequired: false, transformFunction: null }, month: { classPropertyName: "month", publicName: "month", isSignal: true, isRequired: false, transformFunction: null }, day: { classPropertyName: "day", publicName: "day", isSignal: true, isRequired: false, transformFunction: null }, hour: { classPropertyName: "hour", publicName: "hour", isSignal: true, isRequired: false, transformFunction: null }, minute: { classPropertyName: "minute", publicName: "minute", isSignal: true, isRequired: false, transformFunction: null }, second: { classPropertyName: "second", publicName: "second", isSignal: true, isRequired: false, transformFunction: null }, fractionalSecondDigits: { classPropertyName: "fractionalSecondDigits", publicName: "fractionalSecondDigits", isSignal: true, isRequired: false, transformFunction: null }, timeZoneName: { classPropertyName: "timeZoneName", publicName: "timeZoneName", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.datetime": "view().iso", "attr.data-locale": "view().locale", "attr.data-time-zone": "view().timeZone", "textContent": "view().text" } }, ngImport: i0 });
|
|
108
103
|
}
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: Time, decorators: [{
|
|
105
|
+
type: Directive,
|
|
106
|
+
args: [{
|
|
107
|
+
selector: "time[hamurTime]",
|
|
108
|
+
host: {
|
|
109
|
+
"[attr.datetime]": "view().iso",
|
|
110
|
+
"[attr.data-locale]": "view().locale",
|
|
111
|
+
"[attr.data-time-zone]": "view().timeZone",
|
|
112
|
+
"[textContent]": "view().text",
|
|
113
|
+
},
|
|
114
|
+
}]
|
|
115
|
+
}], ctorParameters: () => [], propDecorators: { datetime: [{ type: i0.Input, args: [{ isSignal: true, alias: "hamurTime", required: true }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], timeZone: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeZone", required: false }] }], relative: [{ type: i0.Input, args: [{ isSignal: true, alias: "relative", required: false }] }], relativeInterval: [{ type: i0.Input, args: [{ isSignal: true, alias: "relativeInterval", required: false }] }], calendar: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendar", required: false }] }], dayPeriod: [{ type: i0.Input, args: [{ isSignal: true, alias: "dayPeriod", required: false }] }], numberingSystem: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberingSystem", required: false }] }], dateStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateStyle", required: false }] }], timeStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeStyle", required: false }] }], hourCycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourCycle", required: false }] }], hour12: [{ type: i0.Input, args: [{ isSignal: true, alias: "hour12", required: false }] }], localeMatcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "localeMatcher", required: false }] }], formatMatcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatMatcher", required: false }] }], weekday: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekday", required: false }] }], era: [{ type: i0.Input, args: [{ isSignal: true, alias: "era", required: false }] }], year: [{ type: i0.Input, args: [{ isSignal: true, alias: "year", required: false }] }], month: [{ type: i0.Input, args: [{ isSignal: true, alias: "month", required: false }] }], day: [{ type: i0.Input, args: [{ isSignal: true, alias: "day", required: false }] }], hour: [{ type: i0.Input, args: [{ isSignal: true, alias: "hour", required: false }] }], minute: [{ type: i0.Input, args: [{ isSignal: true, alias: "minute", required: false }] }], second: [{ type: i0.Input, args: [{ isSignal: true, alias: "second", required: false }] }], fractionalSecondDigits: [{ type: i0.Input, args: [{ isSignal: true, alias: "fractionalSecondDigits", required: false }] }], timeZoneName: [{ type: i0.Input, args: [{ isSignal: true, alias: "timeZoneName", required: false }] }] } });
|