Skip to content

Commit 591d6e0

Browse files
jacobsimionatoJosue07Villegas
authored andcommitted
implementacion de funcionalidad y limpieza del historial
Remove output format from DateTimeInput and clarify data model format (google#353) - Parameter was not properly documented, so not clear what it was doing - Parameter not implemented by any renderers AFAICT - Parameter is neither well-suited for formatting date for data transmission purposes, or for display purposes: - Transmission purposes: Better to use ISO 8601 format as it's standardized. - Display purposes: Likely better for the renderer to handle display of dates using a localization library to adapt based on the user location and preferences. Otherwise, this complexity is pushed to the backend. añadiendo mi nombre al Readme add: iniciando nueva funcionalidad
1 parent 513e31f commit 591d6e0

File tree

11 files changed

+12
-31
lines changed

11 files changed

+12
-31
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,5 @@ A2UI is an **Apache 2.0** licensed project. We believe the future of UI is agent
166166
and we want to work with you to help build it.
167167

168168
See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to get started.
169+
Colaboracion por Josue Villegas
170+
nueva funcionalidad

docs/guides/renderer-development.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,6 @@ To ensure a consistent user experience across platforms, A2UI defines a standard
7777
- **Button**: A clickable element that triggers a `userAction`. Must be able to contain a `child` component (typically Text or Icon) and may vary in style based on the `primary` boolean.
7878
- **CheckBox**: A checkbox that can be toggled, reflecting a boolean value.
7979
- **TextField**: An input field for text. Must support a `label`, `text` (value), `textFieldType` (`shortText`, `longText`, `number`, `obscured`, `date`), and `validationRegexp`.
80-
- **DateTimeInput**: A dedicated input for selecting a date and/or time. Must support `enableDate`, `enableTime`, and an `outputFormat`.
80+
- **DateTimeInput**: A dedicated input for selecting a date and/or time. Must support `enableDate` and `enableTime`.
8181
- **MultipleChoice**: A component for selecting one or more options from a list (`options`). Must support `maxAllowedSelections` and bind `selections` to a list or single value.
8282
- **Slider**: A slider for selecting a numeric value (`value`) from a defined range (`minValue`, `maxValue`).

renderers/angular/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

renderers/angular/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@a2ui/angular",
3-
"version": "0.8.1",
3+
"version": "0.8.3",
44
"scripts": {
55
"build": "ng build && node postprocess-build.mjs"
66
},

renderers/lit/src/0.8/schemas/server_to_client_with_standard_catalog.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
"properties": {
629629
"value": {
630630
"type": "object",
631-
"description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
631+
"description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
632632
"additionalProperties": false,
633633
"properties": {
634634
"literalString": {
@@ -646,10 +646,6 @@
646646
"enableTime": {
647647
"type": "boolean",
648648
"description": "If true, allows the user to select a time."
649-
},
650-
"outputFormat": {
651-
"type": "string",
652-
"description": "The desired format for the output string after a date or time is selected."
653649
}
654650
},
655651
"required": ["value"]

renderers/lit/src/0.8/ui/root.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ export class Root extends SignalWatcher(LitElement) {
348348
.dataContextPath=${node.dataContextPath ?? ""}
349349
.enableDate=${node.properties.enableDate ?? true}
350350
.enableTime=${node.properties.enableTime ?? true}
351-
.outputFormat=${node.properties.outputFormat}
352351
.value=${node.properties.value}
353352
.enableCustomElements=${this.enableCustomElements}
354353
></a2ui-datetimeinput>`;

samples/agent/adk/contact_lookup/a2ui_schema.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@
603603
"properties": {
604604
"value": {
605605
"type": "object",
606-
"description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
606+
"description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
607607
"properties": {
608608
"literalString": {
609609
"type": "string"
@@ -620,10 +620,6 @@
620620
"enableTime": {
621621
"type": "boolean",
622622
"description": "If true, allows the user to select a time."
623-
},
624-
"outputFormat": {
625-
"type": "string",
626-
"description": "The desired format for the output string after a date or time is selected."
627623
}
628624
},
629625
"required": ["value"]

samples/agent/adk/restaurant_finder/prompt_builder.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@
601601
"properties": {
602602
"value": {
603603
"type": "object",
604-
"description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
604+
"description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
605605
"properties": {
606606
"literalString": {
607607
"type": "string"
@@ -618,10 +618,6 @@
618618
"enableTime": {
619619
"type": "boolean",
620620
"description": "If true, allows the user to select a time."
621-
},
622-
"outputFormat": {
623-
"type": "string",
624-
"description": "The desired format for the output string after a date or time is selected."
625621
}
626622
},
627623
"required": ["value"]

samples/client/angular/projects/lib/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@a2ui/angular",
3-
"version": "0.8.1",
3+
"version": "0.8.3",
44
"dependencies": {
55
"markdown-it": "^14.1.0",
66
"tslib": "^2.3.0",

specification/0.8/json/server_to_client_with_standard_catalog.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@
628628
"properties": {
629629
"value": {
630630
"type": "object",
631-
"description": "The selected date and/or time value. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
631+
"description": "The selected date and/or time value in ISO 8601 format. This can be a literal string ('literalString') or a reference to a value in the data model ('path', e.g. '/user/dob').",
632632
"additionalProperties": false,
633633
"properties": {
634634
"literalString": {
@@ -646,10 +646,6 @@
646646
"enableTime": {
647647
"type": "boolean",
648648
"description": "If true, allows the user to select a time."
649-
},
650-
"outputFormat": {
651-
"type": "string",
652-
"description": "The desired format for the output string after a date or time is selected."
653649
}
654650
},
655651
"required": ["value"]

0 commit comments

Comments
 (0)