@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.
@@ -1,54 +1,67 @@
1
- import { Component, PendingTasks, effect, inject, input, type OnInit, type TemplateRef } 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
-
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
- @Component({ selector: "hamur-server-island", template: "" })
12
- export class ServerIsland extends HostWriter implements OnInit {
13
- /** The name of a component under `app/server-islands/`. */
14
- readonly name = input.required<string>()
15
- readonly props = input<Record<string, unknown>>()
16
- /** Rendered with the page; replaced by the island's HTML once the browser has it. */
17
- readonly fallback = input<TemplateRef<unknown>>()
18
- private readonly app = inject(HAMUR_APP, { optional: true })
19
- private readonly id = injectId()
20
- private readonly tasks = inject(PendingTasks)
21
- private readonly fail = inject(HAMUR_FAIL, { optional: true })
22
- private readonly server = onServer()
23
- private readonly kept: boolean
24
-
25
- constructor() {
26
- super()
27
- if (!this.app) throw new Error("ServerIsland must be rendered inside a Hamur app")
28
- this.kept = !this.server && this.app.asyncData.hydrating
29
- if (this.server || this.kept) return
30
- effect(() => {
31
- const name = this.name()
32
- const props = this.props()
33
- this.renderer.setAttribute(this.host, "name", name)
34
- if (props && Object.keys(props).length)
35
- this.renderer.setAttribute(this.host, "props", serverIslandProps(name, props))
36
- else this.renderer.removeAttribute(this.host, "props")
37
- })
38
- }
39
-
40
- ngOnInit(): void {
41
- if (this.kept) return
42
- const fallback = this.fallback()
43
- if (fallback) this.append(fallback)
44
- if (!this.server) return
45
- const { attributes } = renderServerIsland(this.app!, this.id, this.name(), this.props())
46
- const done = this.tasks.add()
47
- attributes
48
- .then((written) => {
49
- for (const [name, value] of Object.entries(written)) this.renderer.setAttribute(this.host, name, value)
50
- })
51
- .catch((error: unknown) => this.fail?.(error))
52
- .finally(done)
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
- Directive,
3
- afterRenderEffect,
4
- booleanAttribute,
5
- computed,
6
- inject,
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
- readonly datetime = input.required<Date | number | string>({ alias: "hamurTime" })
37
- readonly locale = input<string>()
38
- readonly timeZone = input<string>()
39
- readonly relative = input(false, { transform: booleanAttribute })
40
- readonly relativeInterval = input<number | undefined, unknown>(undefined, { transform: optionalNumber })
41
- readonly calendar = input<Format["calendar"]>()
42
- readonly dayPeriod = input<Format["dayPeriod"]>()
43
- readonly numberingSystem = input<Format["numberingSystem"]>()
44
- readonly dateStyle = input<Format["dateStyle"]>()
45
- readonly timeStyle = input<Format["timeStyle"]>()
46
- readonly hourCycle = input<Format["hourCycle"]>()
47
- readonly hour12 = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean })
48
- readonly localeMatcher = input<Format["localeMatcher"]>()
49
- readonly formatMatcher = input<Format["formatMatcher"]>()
50
- readonly weekday = input<Format["weekday"]>()
51
- readonly era = input<Format["era"]>()
52
- readonly year = input<Format["year"]>()
53
- readonly month = input<Format["month"]>()
54
- readonly day = input<Format["day"]>()
55
- readonly hour = input<Format["hour"]>()
56
- readonly minute = input<Format["minute"]>()
57
- readonly second = input<Format["second"]>()
58
- readonly fractionalSecondDigits = input<Format["fractionalSecondDigits"], unknown>(undefined, {
59
- transform: optionalNumber as (value: unknown) => Format["fractionalSecondDigits"],
60
- })
61
- readonly timeZoneName = input<Format["timeZoneName"]>()
62
-
63
- private readonly app = required(HAMUR_APP, "Time")
64
- private readonly route = inject(HAMUR_ROUTE, { optional: true })
65
- private readonly now = signal<number | undefined>(undefined)
66
-
67
- private readonly props = computed<TimeInput>(() => {
68
- const given: Record<string, unknown> = {
69
- datetime: this.datetime(),
70
- locale: this.locale(),
71
- timeZone: this.timeZone(),
72
- relative: this.relative(),
73
- relativeInterval: this.relativeInterval(),
74
- calendar: this.calendar(),
75
- dayPeriod: this.dayPeriod(),
76
- numberingSystem: this.numberingSystem(),
77
- dateStyle: this.dateStyle(),
78
- timeStyle: this.timeStyle(),
79
- hourCycle: this.hourCycle(),
80
- hour12: this.hour12(),
81
- localeMatcher: this.localeMatcher(),
82
- formatMatcher: this.formatMatcher(),
83
- weekday: this.weekday(),
84
- era: this.era(),
85
- year: this.year(),
86
- month: this.month(),
87
- day: this.day(),
88
- hour: this.hour(),
89
- minute: this.minute(),
90
- second: this.second(),
91
- fractionalSecondDigits: this.fractionalSecondDigits(),
92
- timeZoneName: this.timeZoneName(),
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
- return Object.fromEntries(Object.entries(given).filter(([, value]) => value !== undefined)) as unknown as TimeInput
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 }] }] } });