@praxisui/dynamic-fields 8.0.0-beta.9 → 8.0.0-beta.90

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.
Files changed (98) hide show
  1. package/README.md +19 -0
  2. package/docs/dynamic-fields-field-catalog.md +217 -0
  3. package/docs/dynamic-fields-field-selection-guide.md +204 -0
  4. package/docs/dynamic-fields-host-custom-field-guide.md +252 -0
  5. package/docs/dynamic-fields-host-custom-field-troubleshooting.md +160 -0
  6. package/docs/dynamic-fields-inline-components-guide.md +582 -0
  7. package/docs/dynamic-fields-inline-filter-catalog.md +518 -0
  8. package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
  9. package/docs/dynamic-fields-inline-filter-inventory.md +250 -0
  10. package/docs/dynamic-fields-inline-filter-runtime-contract.md +394 -0
  11. package/docs/dynamic-fields-inline-filter-selection-guide.md +419 -0
  12. package/docs/dynamic-fields-inline-filter-troubleshooting.md +201 -0
  13. package/docs/dynamic-fields-inventory.md +207 -0
  14. package/docs/dynamic-fields-playground-catalog-plan.md +243 -0
  15. package/docs/generic-crud-service.md +152 -0
  16. package/fesm2022/praxisui-dynamic-fields-index-BYVmv78m.mjs +1 -0
  17. package/fesm2022/praxisui-dynamic-fields-index-CWPZdn1Y.mjs +6 -0
  18. package/fesm2022/praxisui-dynamic-fields-index-CrHhyUMO.mjs +1 -0
  19. package/fesm2022/praxisui-dynamic-fields-index-DhGo5In4.mjs +6 -0
  20. package/fesm2022/praxisui-dynamic-fields.mjs +14500 -5745
  21. package/package.json +14 -13
  22. package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +526 -0
  23. package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +474 -0
  24. package/src/lib/components/color-input/pdx-color-input.json-api.md +573 -0
  25. package/src/lib/components/color-picker/pdx-color-picker.json-api.md +686 -0
  26. package/src/lib/components/date-input/pdx-date-input.json-api.md +581 -0
  27. package/src/lib/components/datetime-local-input/pdx-datetime-local-input.json-api.md +560 -0
  28. package/src/lib/components/email-input/pdx-email-input.json-api.md +546 -0
  29. package/src/lib/components/field-shell/praxis-field-shell.json-api.md +523 -0
  30. package/src/lib/components/inline-async-select/pdx-inline-async-select.json-api.md +566 -0
  31. package/src/lib/components/inline-autocomplete/pdx-inline-autocomplete.json-api.md +554 -0
  32. package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +615 -0
  33. package/src/lib/components/inline-currency/pdx-inline-currency.json-api.md +542 -0
  34. package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +630 -0
  35. package/src/lib/components/inline-date/pdx-inline-date.json-api.md +529 -0
  36. package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +592 -0
  37. package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +649 -0
  38. package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +656 -0
  39. package/src/lib/components/inline-input/pdx-inline-input.json-api.md +538 -0
  40. package/src/lib/components/inline-multi-select/pdx-inline-multi-select.json-api.md +566 -0
  41. package/src/lib/components/inline-number/pdx-inline-number.json-api.md +533 -0
  42. package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +619 -0
  43. package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +605 -0
  44. package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +594 -0
  45. package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +623 -0
  46. package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +632 -0
  47. package/src/lib/components/inline-searchable-select/pdx-inline-searchable-select.json-api.md +564 -0
  48. package/src/lib/components/inline-select/pdx-inline-select.json-api.md +571 -0
  49. package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +661 -0
  50. package/src/lib/components/inline-time/pdx-inline-time.json-api.md +573 -0
  51. package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +635 -0
  52. package/src/lib/components/inline-toggle/pdx-inline-toggle.json-api.md +516 -0
  53. package/src/lib/components/inline-tree-select/pdx-inline-tree-select.json-api.md +637 -0
  54. package/src/lib/components/material-async-select/pdx-material-async-select.json-api.md +566 -0
  55. package/src/lib/components/material-autocomplete/pdx-material-autocomplete.json-api.md +561 -0
  56. package/src/lib/components/material-avatar/pdx-material-avatar.json-api.md +670 -0
  57. package/src/lib/components/material-button/pdx-material-button.json-api.md +572 -0
  58. package/src/lib/components/material-button-toggle/pdx-material-button-toggle.json-api.md +577 -0
  59. package/src/lib/components/material-checkbox-group/pdx-material-checkbox-group.json-api.md +611 -0
  60. package/src/lib/components/material-chips/pdx-material-chips.json-api.md +601 -0
  61. package/src/lib/components/material-colorpicker/pdx-material-colorpicker.json-api.md +545 -0
  62. package/src/lib/components/material-cpf-cnpj-input/pdx-material-cpf-cnpj-input.json-api.md +531 -0
  63. package/src/lib/components/material-currency/pdx-material-currency.json-api.md +569 -0
  64. package/src/lib/components/material-date-range/pdx-material-date-range.json-api.md +636 -0
  65. package/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md +556 -0
  66. package/src/lib/components/material-file-upload/pdx-material-file-upload.json-api.md +511 -0
  67. package/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md +596 -0
  68. package/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md +623 -0
  69. package/src/lib/components/material-price-range/pdx-material-price-range.json-api.md +619 -0
  70. package/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md +585 -0
  71. package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +664 -0
  72. package/src/lib/components/material-rating/pdx-material-rating.json-api.md +551 -0
  73. package/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md +602 -0
  74. package/src/lib/components/material-select/pdx-material-select.json-api.md +601 -0
  75. package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +607 -0
  76. package/src/lib/components/material-slide-toggle/pdx-material-slide-toggle.json-api.md +522 -0
  77. package/src/lib/components/material-slider/pdx-material-slider.json-api.md +602 -0
  78. package/src/lib/components/material-textarea/pdx-material-textarea.json-api.md +598 -0
  79. package/src/lib/components/material-timepicker/pdx-material-timepicker.json-api.md +554 -0
  80. package/src/lib/components/material-transfer-list/pdx-material-transfer-list.json-api.md +614 -0
  81. package/src/lib/components/material-tree-select/pdx-material-tree-select.json-api.md +649 -0
  82. package/src/lib/components/month-input/pdx-month-input.json-api.md +527 -0
  83. package/src/lib/components/number-input/pdx-number-input.json-api.md +594 -0
  84. package/src/lib/components/password-input/pdx-password-input.json-api.md +574 -0
  85. package/src/lib/components/pdx-material-time-range/pdx-material-time-range.json-api.md +592 -0
  86. package/src/lib/components/pdx-year-input/pdx-year-input.json-api.md +543 -0
  87. package/src/lib/components/phone-input/pdx-phone-input.json-api.md +583 -0
  88. package/src/lib/components/preload-status/pdx-preload-status.json-api.md +455 -0
  89. package/src/lib/components/search-input/pdx-search-input.json-api.md +536 -0
  90. package/src/lib/components/text-input/pdx-text-input.json-api.md +600 -0
  91. package/src/lib/components/time-input/pdx-time-input.json-api.md +546 -0
  92. package/src/lib/components/url-input/pdx-url-input.json-api.md +542 -0
  93. package/src/lib/components/week-input/pdx-week-input.json-api.md +533 -0
  94. package/{index.d.ts → types/praxisui-dynamic-fields.d.ts} +848 -445
  95. package/fesm2022/praxisui-dynamic-fields-index-C9IUU4lo.mjs +0 -1
  96. package/fesm2022/praxisui-dynamic-fields-index-GJtthzkD.mjs +0 -1
  97. package/fesm2022/praxisui-dynamic-fields-index-XvVS6lAQ.mjs +0 -1
  98. package/fesm2022/praxisui-dynamic-fields-index-iIeaA6ko.mjs +0 -1
@@ -0,0 +1,670 @@
1
+ ---
2
+ title: "pdx-material-avatar JSON API (Canonical)"
3
+ slug: "pdx-material-avatar-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-material-avatar"
6
+ document_kind: "json-api-canonical"
7
+ reference_mode: "canonical"
8
+ contract_format: "json"
9
+ contract_source: "runtime-and-code"
10
+ description: "Referencia canonica do contrato JSON do componente pdx-material-avatar."
11
+ category: "components"
12
+ sub_category: "dynamic-fields"
13
+ audience:
14
+ - "frontend"
15
+ - "architect"
16
+ - "platform-team"
17
+ level: "advanced"
18
+ status: "active"
19
+ owner: "praxis-ui"
20
+ source_of_truth:
21
+ - "projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.component.ts"
23
+ - "projects/praxis-core/src/lib/models/component-metadata.interface.ts"
24
+ source_of_truth_last_verified: "2026-04-25"
25
+ last_updated: "2026-04-25"
26
+ toc: true
27
+ sidebar: true
28
+ tags:
29
+ - "json-api"
30
+ - "canonical-contract"
31
+ - "pdx-material-avatar"
32
+ api_stability: "canonical"
33
+ schema_verified: true
34
+ runtime_verified: true
35
+ editor_coverage_verified: false
36
+ runtime_scope: "public"
37
+ legacy_paths_present: false
38
+ has_known_mismatches: false
39
+ related_components:
40
+ - "praxis-table"
41
+ - "pdx-material-button"
42
+ ---
43
+
44
+ # pdx-material-avatar
45
+
46
+ Este documento e a referencia canonica da API JSON de pdx-material-avatar.
47
+
48
+ ## Summary
49
+
50
+ - Tipo documental: API reference canonica de contrato JSON.
51
+ - Source of truth: runtime e codigo declarados no frontmatter.
52
+ - Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
53
+ - Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
54
+
55
+ ## Purpose and scope
56
+
57
+ - O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
58
+ - Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
59
+ - Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
60
+
61
+ ## Consulta rapida (obrigatorio)
62
+
63
+ | Regra/tema | Observado | Canonico desejado | Status | Evidencia |
64
+ | --- | --- | --- | --- | --- |
65
+ | Component id | `pdx-material-avatar` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
66
+ | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
67
+ | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.component.ts` |
68
+ | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
69
+ | Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts` |
70
+ | Legacy paths | `false` | Segregar legado de caminhos canonicos com janela de migracao | Active | frontmatter.legacy_paths_present |
71
+ | Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
72
+
73
+ ## Source of truth
74
+
75
+ | Source | Kind | Notes |
76
+ | --- | --- | --- |
77
+ | projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
78
+ | projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
79
+ | projects/praxis-core/src/lib/models/component-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
80
+
81
+ ## Support legend
82
+
83
+ - **Active**: suportado em runtime e liberado para uso externo.
84
+ - **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
85
+ - **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
86
+ - **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
87
+ - **Deprecated**: legado suportado por janela de migracao definida.
88
+
89
+ ## Contract status snapshot
90
+
91
+ | Item | Value | Notes |
92
+ | --- | --- | --- |
93
+ | Reference mode | `canonical` | Deve permanecer canonico |
94
+ | Contract format | `json` | Contrato metadata-driven |
95
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
96
+ | Runtime scope | `public` | Escopo publicado para consumidores |
97
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
98
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
99
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
100
+ | Legacy paths present | `false` | Segregar legado de contrato canonico |
101
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
102
+
103
+ ## Contract classification (obrigatorio)
104
+
105
+ ### Canonical paths (public contract)
106
+
107
+ | Path | Type | Required | Default | Status | Notes |
108
+ | --- | --- | --- | --- | --- | --- |
109
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
110
+ | `name` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
111
+ | `metadata.extra.imageSrc` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
112
+ | `metadata.extra.imageAlt` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
113
+ | `metadata.extra.initials` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
114
+ | `metadata.extra.name` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
115
+ | `metadata.extra.icon` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
116
+ | `metadata.extra.defaultIcon` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
117
+ | `metadata.extra.status` | string | false | `none` | Active | Presence/status indicator: `online`, `offline`, `busy`, `away`, `verified`, `none`. |
118
+ | `metadata.extra.statusLabel` | string | false | n/a | Active | Accessible status text appended to the host label. |
119
+ | `metadata.extra.badge` | string \| number | false | n/a | Active | Short counter or badge text rendered over the avatar. |
120
+ | `metadata.extra.badgeLabel` | string | false | n/a | Active | Accessible badge text appended to the host label. |
121
+ | `metadata.extra.emphasis` | string | false | `none` | Active | Visual emphasis state: `none`, `ring`, `halo`. |
122
+ | `metadata.extra.emphasisColor` | string | false | `primary` | Active | Theme color token used by the emphasis ring or halo. |
123
+ | `metadata.extra.emphasisLabel` | string | false | n/a | Active | Accessible text appended when emphasis has business meaning. |
124
+ | `metadata.extra.initialsMaxLength` | number | false | `2` | Active | Clamped from 1 to 4 characters. |
125
+ | `metadata.extra.sizePx` | number | false | n/a | Active | Custom pixel size, higher precedence than semantic `size`. |
126
+ | `metadata.extra.sizeCss` | string | false | n/a | Active | Custom CSS length/percent size, higher precedence than `sizePx`. |
127
+ | `metadata.extra.tooltip` | string | false | n/a | Active | Visual tooltip text. |
128
+ | `metadata.extra.ariaLabel` | string | false | n/a | Active | Explicit accessible name for the host avatar image. |
129
+ | `metadata.extra.groupItems` | array | false | n/a | Active | Governed avatar group items rendered as an accessible stack. |
130
+ | `metadata.extra.groupMaxVisible` | number | false | `4` | Active | Visible item count before overflow, clamped 1..12. |
131
+ | `metadata.extra.groupLabel` | string | false | n/a | Active | Accessible group name when `groupItems` is present. |
132
+ | `metadata.extra.groupOverflowLabel` | string | false | derived | Active | Accessible label for the overflow marker. |
133
+ | `metadata.extra.groupOverlap` | number | false | `10` | Active | Negative overlap in px, clamped 0..32. |
134
+ | `metadata.extra.class` | string | false | n/a | Active | Additional host CSS class for governed styling hooks. |
135
+ | `metadata.extra.style` | object | false | n/a | Active | Inline style object or JSON object string applied to the avatar inner element. |
136
+
137
+ ### Supported legacy paths
138
+
139
+ Nenhum path legado suportado foi identificado nesta revisao.
140
+
141
+ ### Internal-only paths
142
+
143
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
144
+
145
+ ### Experimental paths
146
+
147
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
148
+
149
+ ## Public contract surface (obrigatorio)
150
+
151
+ ### Top-level configuration blocks
152
+
153
+ | Block | Purpose | Required | Merge strategy | Notes |
154
+ | --- | --- | --- | --- | --- |
155
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
156
+ | `name` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
157
+ | `formControl` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
158
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
159
+ | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
160
+ | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
161
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
162
+
163
+ ### Nested configuration blocks
164
+
165
+ | Path | Type | Required | Default | Constraints | Notes |
166
+ | --- | --- | --- | --- | --- | --- |
167
+ | `metadata.extra.imageSrc` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
168
+ | `metadata.extra.imageAlt` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
169
+ | `metadata.extra.initials` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
170
+ | `metadata.extra.name` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
171
+ | `metadata.extra.icon` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
172
+ | `metadata.extra.defaultIcon` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
173
+ | `metadata.extra.themeColor` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
174
+ | `metadata.extra.rounded` | string | false | `full` | `full/large/medium/small/none` | Active; `full` maps to circular avatar, `none` maps to square avatar. |
175
+ | `metadata.extra.size` | string | false | `medium` | `xsmall/small/medium/large/xlarge/xxlarge/none` | Active; semantic size token. |
176
+ | `metadata.extra.fillMode` | string | false | `solid` | `solid/outline/none` | Active; visual fill mode. |
177
+ | `metadata.extra.border` | boolean | false | `false` | component-defined | Active; adds a contrast border. |
178
+ | `metadata.extra.status` | string | false | `none` | `online/offline/busy/away/verified/none` | Active; visual overlay and accessible label supported. |
179
+ | `metadata.extra.statusLabel` | string | false | n/a | component-defined | Active; appended to host `aria-label` when status is visible. |
180
+ | `metadata.extra.badge` | string \| number | false | n/a | max 4 visible chars before truncation | Active; visual overlay and accessible label supported. |
181
+ | `metadata.extra.badgeLabel` | string | false | n/a | component-defined | Active; appended to host `aria-label` when badge is visible. |
182
+ | `metadata.extra.emphasis` | string | false | `none` | `none/ring/halo` | Active; renders a visual ring or halo without changing submitted values. |
183
+ | `metadata.extra.emphasisColor` | string | false | `primary` | `primary/secondary/tertiary/base/info/success/warning/error/dark/light/inverse/none` | Active; color token for emphasis. |
184
+ | `metadata.extra.emphasisLabel` | string | false | n/a | component-defined | Active; appended to host `aria-label` when present. |
185
+ | `metadata.extra.initialsMaxLength` | number | false | `2` | 1..4 | Active; controls explicit and generated initials. |
186
+ | `metadata.extra.sizePx` | number | false | n/a | positive number | Active; custom pixel size. |
187
+ | `metadata.extra.sizeCss` | string | false | n/a | CSS length or percent | Active; custom CSS size. |
188
+ | `metadata.extra.tooltip` | string | false | n/a | component-defined | Active; visual tooltip. |
189
+ | `metadata.extra.ariaLabel` | string | false | n/a | component-defined | Active; explicit accessible name. |
190
+ | `metadata.extra.groupItems` | array | false | n/a | `AvatarGroupItem[]` | Active; switches host role to `group` and renders a stacked list. |
191
+ | `metadata.extra.groupMaxVisible` | number | false | `4` | 1..12 | Active; overflow renders as `+N`. |
192
+ | `metadata.extra.groupLabel` | string | false | n/a | component-defined | Active; accessible group label. |
193
+ | `metadata.extra.groupOverflowLabel` | string | false | derived | component-defined | Active; accessible overflow label. |
194
+ | `metadata.extra.groupOverlap` | number | false | `10` | 0..32 | Active; visual stack overlap in px. |
195
+ | `metadata.extra.class` | string | false | n/a | component-defined | Active; additional host class. |
196
+ | `metadata.extra.style` | object | false | n/a | object or JSON object string | Active; inline style object for the inner avatar. |
197
+
198
+ #### AvatarGroupItem
199
+
200
+ `metadata.extra.groupItems` accepts an ordered `AvatarGroupItem[]`. Each item is visual-only metadata and does not change the submitted value.
201
+
202
+ | Property | Type | Required | Default | Constraints | Notes |
203
+ | --- | --- | --- | --- | --- | --- |
204
+ | `imageSrc` | string | false | n/a | safe URL only | Optional image source for the group item. Unsafe URL schemes are rejected. |
205
+ | `imageAlt` | string | false | n/a | component-defined | Accessible fallback label source when `name` and `ariaLabel` are absent. Image elements remain decorative. |
206
+ | `initials` | string | false | derived | clamped by `initialsMaxLength` | Explicit initials rendered when no image/icon is available. |
207
+ | `name` | string | false | n/a | component-defined | Preferred human-readable label source and initials source. |
208
+ | `icon` | string | false | n/a | Praxis icon name | Explicit icon rendered when no image is available. |
209
+ | `defaultIcon` | string | false | inherited fallback | Praxis icon name | Fallback icon when no image, explicit icon or initials can be rendered. |
210
+ | `themeColor` | string | false | inherited | `primary/secondary/tertiary/base/info/success/warning/error/dark/light/inverse/none` | Per-item color token. |
211
+ | `rounded` | string | false | inherited | `full/large/medium/small/none` | Per-item shape token. |
212
+ | `fillMode` | string | false | inherited | `solid/outline/none` | Per-item fill style. |
213
+ | `status` | string | false | `none` | `online/offline/busy/away/verified/none` | Visual status overlay. |
214
+ | `statusLabel` | string | false | derived | component-defined | Accessible status text appended to the item label when status is visible. |
215
+ | `emphasis` | string | false | `none` | `none/ring/halo` | Per-item emphasis for selected, primary, or attention avatars. |
216
+ | `emphasisColor` | string | false | inherited | `primary/secondary/tertiary/base/info/success/warning/error/dark/light/inverse/none` | Per-item emphasis color token. |
217
+ | `emphasisLabel` | string | false | n/a | component-defined | Accessible text appended to the item label when emphasis carries meaning. |
218
+ | `tooltip` | string | false | n/a | component-defined | Per-item visual tooltip for hover/focus details such as role or review responsibility. |
219
+ | `ariaLabel` | string | false | derived | component-defined | Explicit accessible item label; takes precedence over `name`, `imageAlt` and initials. |
220
+
221
+ ### Input bindings (inbound data)
222
+
223
+ | Binding/Path | Type | Required | Source | Runtime normalization | Notes |
224
+ | --- | --- | --- | --- | --- | --- |
225
+ | `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
226
+ | `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
227
+ | `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
228
+ | `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
229
+ | `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
230
+
231
+ ### Output events
232
+
233
+ | Event | Payload | Trigger | Stability | Notes |
234
+ | --- | --- | --- | --- | --- |
235
+ | `imageError` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
236
+
237
+ ### External side channels
238
+
239
+ | Channel | Direction | Contract | Failure mode | Notes |
240
+ | --- | --- | --- | --- | --- |
241
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
242
+
243
+ ### Host/runtime dependencies
244
+
245
+ | Dependency | Required | Environment | Purpose | Notes |
246
+ | --- | --- | --- | --- | --- |
247
+ | `material-avatar.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts`. |
248
+ | `material-avatar.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.component.ts`. |
249
+ | `component-metadata.interface.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-core/src/lib/models/component-metadata.interface.ts`. |
250
+
251
+ ## Coverage by surface (obrigatorio)
252
+
253
+ ### Coverage matrix (runtime, schema/type, editor/tooling)
254
+
255
+ | Surface | Verified | Coverage status | Evidence | Notes |
256
+ | --- | --- | --- | --- | --- |
257
+ | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
258
+ | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
259
+ | Editor/Tooling | `false` | Partial | `projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts` | Optional provider for `ComponentMetadataRegistry` exists; end-to-end editor integration not yet verified. |
260
+
261
+ ### Runtime coverage boundaries
262
+
263
+ - Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
264
+ - Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
265
+ - Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
266
+
267
+ ### Editor and tooling notes
268
+
269
+ - Evidencia parcial: `provideMaterialAvatarMetadata()` permite registrar metadata no `ComponentMetadataRegistry`.
270
+ - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
271
+ - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
272
+ - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
273
+
274
+ ## Resolution and precedence model (obrigatorio)
275
+
276
+ ### Merge order
277
+
278
+ 1. defaults do componente
279
+ 2. contrato JSON recebido
280
+ 3. overrides de host/runtime
281
+ 4. normalizacoes internas
282
+
283
+ ### Fallback order
284
+
285
+ contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
286
+
287
+ ### Override points
288
+
289
+ - inputs publicos do componente
290
+ - configuracao JSON de runtime
291
+ - integracoes de host (servicos/tokens/adapters)
292
+
293
+ ### Runtime normalization
294
+
295
+ Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
296
+
297
+ ### Precedence rules
298
+
299
+ Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
300
+
301
+ ## Validation and error semantics (obrigatorio)
302
+
303
+ ### Validation model
304
+
305
+ | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
306
+ | --- | --- | --- | --- | --- |
307
+ | canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
308
+
309
+ ### Invalid and unknown field handling
310
+
311
+ - Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
312
+ - Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
313
+ - Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
314
+
315
+ ### Fail-open / fail-closed behavior
316
+
317
+ | Condition | Mode | Runtime behavior | Consumer impact |
318
+ | --- | --- | --- | --- |
319
+ | invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
320
+
321
+ ### Runtime warnings vs hard failures
322
+
323
+ | Condition | Severity | Observability | Consumer action |
324
+ | --- | --- | --- | --- |
325
+ | partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
326
+ | mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
327
+
328
+ ## Detailed API reference
329
+ ### Preserved technical reference (normalized from previous revision)
330
+
331
+ ### 1. Visao Geral e Quando Usar
332
+ `pdx-material-avatar` renderiza avatar reutilizavel com prioridade de conteudo: imagem > icone > iniciais > conteudo projetado.
333
+
334
+ Use quando precisar:
335
+ - avatar consistente com tokens M3;
336
+ - fallback automatico de imagem para iniciais/icone;
337
+ - integracao com `DynamicFieldLoader` por metadata `extra`.
338
+
339
+ ### 2. API do Componente (Inputs/Outputs)
340
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
341
+ | --- | --- | --- | --- | --- |
342
+ | `metadata` | `ComponentMetadata` | - | Nao | Contrato opcional para integracao loader. |
343
+ | `imageSrc` | `string` | - | Nao | URL de imagem principal. |
344
+ | `imageAlt` | `string` | - | Nao | Texto alternativo da imagem. |
345
+ | `initials` | `string` | - | Nao | Iniciais explicitas (prioritarias sobre nome). |
346
+ | `initialsMaxLength` | `number` | `2` | Nao | Limite de caracteres das iniciais, normalizado entre 1 e 4. |
347
+ | `name` | `string` | - | Nao | Nome para gerar iniciais automaticamente. |
348
+ | `icon` | `string \| SafeHtml \| object` | - | Nao | Icone explicito (name/svg/fontClass). |
349
+ | `defaultIcon` | `string \| SafeHtml \| object` | - | Nao | Icone fallback quando sem imagem/icone/iniciais. |
350
+ | `themeColor` | enum | `primary` | Nao | Tema visual do avatar. |
351
+ | `rounded` | enum | `full` | Nao | Formato de borda. |
352
+ | `size` | enum | `medium` | Nao | Tamanho predefinido do avatar. |
353
+ | `sizePx` | `number` | - | Nao | Sobrescreve tamanho por px. |
354
+ | `sizeCss` | `string` | - | Nao | Sobrescreve tamanho por unidade CSS valida. |
355
+ | `fillMode` | enum | `solid` | Nao | Modo de preenchimento (`solid/outline/none`). |
356
+ | `border` | `boolean` | `false` | Nao | Borda adicional do avatar. |
357
+ | `status` | enum | `none` | Nao | Indicador de presenca/status (`online/offline/busy/away/verified/none`). |
358
+ | `statusLabel` | `string` | label derivado | Nao | Texto acessivel do status. |
359
+ | `badge` | `string \| number` | - | Nao | Badge curto ou contador sobreposto ao avatar. |
360
+ | `badgeLabel` | `string` | label derivado | Nao | Texto acessivel do badge. |
361
+ | `emphasis` | enum | `none` | Nao | Destaque visual (`none/ring/halo`) para selecionado, principal ou atenção. |
362
+ | `emphasisColor` | enum | `primary` | Nao | Token de cor do destaque visual. |
363
+ | `emphasisLabel` | `string` | - | Nao | Texto acessivel que descreve o significado do destaque. |
364
+ | `tooltip` | `string` | - | Nao | Tooltip opcional. |
365
+ | `ariaLabel` | `string` | - | Nao | Label acessivel customizado. |
366
+ | `groupItems` | `AvatarGroupItem[]` | - | Nao | Itens do Avatar Group. |
367
+ | `groupMaxVisible` | `number` | `4` | Nao | Limite visivel antes de overflow. |
368
+ | `groupLabel` | `string` | - | Nao | Label acessivel do grupo. |
369
+ | `groupOverflowLabel` | `string` | derivado | Nao | Label acessivel do overflow. |
370
+ | `groupOverlap` | `number` | `10` | Nao | Sobreposicao entre itens em px. |
371
+ | `readonlyMode/disabledMode/visible/presentationMode` | `boolean` | - | Nao | Estados de host para shell dinâmico. |
372
+ | `imageError` | `void` | - | Output | Dispara quando imagem falha no carregamento. |
373
+
374
+ Em contexto metadata-driven, `metadata.label` e renderizado como label visual acima do avatar e `metadata.hint` como texto de apoio abaixo, ligado por `aria-describedby`. Quando o componente esta hospedado em `pfx-field-shell`, o tamanho visual padrao e `64px`; o uso direto permanece em `medium` (`40px`) salvo `size`, `sizePx` ou `sizeCss`.
375
+
376
+ ### 3. Matriz de Cobertura JSON (Completa)
377
+ #### 3.1 Campos especificos do componente
378
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
379
+ | --- | --- | --- | --- |
380
+ | `metadata.extra.imageSrc` | `string` | Ativo | Define imagem principal quando `@Input` direto nao vem. |
381
+ | `metadata.extra.imageAlt` | `string` | Ativo | Texto alternativo do avatar. |
382
+ | `metadata.extra.initials` | `string` | Ativo | Iniciais explicitas de fallback. |
383
+ | `metadata.extra.initialsMaxLength` | `number` | Ativo | Limite das iniciais, com clamp entre 1 e 4. |
384
+ | `metadata.extra.name` | `string` | Ativo | Nome para gerar iniciais automaticas. |
385
+ | `metadata.extra.icon` | `string \| object` | Ativo | Icone explicito do avatar. |
386
+ | `metadata.extra.defaultIcon` | `string \| object` | Ativo | Icone fallback final. |
387
+ | `metadata.extra.themeColor` | enum | Ativo | Classe `theme-*` aplicada no host. |
388
+ | `metadata.extra.rounded` | enum | Ativo | Classe `rounded-*` aplicada no host. |
389
+ | `metadata.extra.size` | enum | Ativo | Classe `size-*` aplicada no host. |
390
+ | `metadata.extra.fillMode` | enum | Ativo | Classe `fill-*` aplicada no host. |
391
+ | `metadata.extra.border` | `boolean` | Ativo | Classe `has-border`. |
392
+ | `metadata.extra.status` | enum | Ativo | Renderiza indicador visual e classe `status-*`. |
393
+ | `metadata.extra.statusLabel` | `string` | Ativo | Texto acessivel anexado ao `aria-label` do host. |
394
+ | `metadata.extra.badge` | `string \| number` | Ativo | Renderiza badge visual curto no avatar. |
395
+ | `metadata.extra.badgeLabel` | `string` | Ativo | Texto acessivel anexado ao `aria-label` do host. |
396
+ | `metadata.extra.emphasis` | enum | Ativo | Renderiza anel ou halo de destaque sem alterar o valor submetido. |
397
+ | `metadata.extra.emphasisColor` | enum | Ativo | Define a cor do destaque visual. |
398
+ | `metadata.extra.emphasisLabel` | `string` | Ativo | Texto acessivel anexado ao `aria-label` do host. |
399
+ | `metadata.extra.sizePx` | `number` | Ativo | Define `--pfx-avatar-size` em px. |
400
+ | `metadata.extra.sizeCss` | `string` | Ativo | Define `--pfx-avatar-size` com unidade CSS valida. |
401
+ | `metadata.extra.tooltip` | `string` | Ativo | Tooltip no avatar. |
402
+ | `metadata.extra.ariaLabel` | `string` | Ativo | ARIA label explicito. |
403
+ | `metadata.extra.groupItems` | `AvatarGroupItem[]` | Ativo | Renderiza grupo empilhado com itens acessiveis. |
404
+ | `metadata.extra.groupMaxVisible` | `number` | Ativo | Define quantos itens aparecem antes de overflow. |
405
+ | `metadata.extra.groupLabel` | `string` | Ativo | Nome acessivel do grupo. |
406
+ | `metadata.extra.groupOverflowLabel` | `string` | Ativo | Texto acessivel do overflow. |
407
+ | `metadata.extra.groupOverlap` | `number` | Ativo | Sobreposicao visual em px entre avatares. |
408
+ | `metadata.extra.class` | `string` | Ativo | Classes adicionais no host. |
409
+ | `metadata.extra.style` | `object \| string(JSON)` | Ativo | Estilos inline adicionais (parse JSON quando string). |
410
+ | `metadata.label` | `string` | Ativo | Label visual renderizada acima do avatar quando fornecida por metadata. |
411
+ | `metadata.hint` | `string` | Ativo | Texto de apoio renderizado abaixo do avatar e associado via `aria-describedby`. |
412
+ | `metadata.imageSrc` | `string` | Ativo | Fallback top-level para origem da imagem. |
413
+ | `metadata.defaultValue` | `string` | Ativo | Fallback de imagem quando URL valida. |
414
+ | `formControl.value` | `string \| object` | Ativo | Fonte secundaria para URL (`imageSrc/src/url/...`). |
415
+
416
+ Notas de runtime:
417
+ - ordem de resolucao de imagem: `@Input imageSrc` > `formControl.value` > `metadata.imageSrc` > `metadata.defaultValue`.
418
+ - quando `metadata.extra.groupItems` contem itens, o componente renderiza Avatar Group e o host passa de `role="img"` para `role="group"`.
419
+ - URLs inseguras (`javascript:`) sao rejeitadas.
420
+ - quando imagem falha, o componente cai para icone/iniciais e emite `imageError`.
421
+ - quando `tooltip` existe no avatar ou em `AvatarGroupItem`, o elemento visual recebe foco por teclado para expor a dica tambem por focus, nao apenas hover.
422
+
423
+ #### 3.2 Campos herdados compartilhados (exaustivo)
424
+ Contrato de input base nao e usado integralmente; o avatar implementa API propria focada em apresentacao.
425
+
426
+ Resumo de composicao deste componente:
427
+ - `Ativo`: modelo visual completo via inputs e `metadata.extra`.
428
+ - `Parcial`: sem semantica de valor de formulario tradicional (e componente visual).
429
+
430
+ ### 4. Mapeamento de Comportamento
431
+ - Prioridade de exibicao:
432
+ 1. imagem valida,
433
+ 2. icone explicito,
434
+ 3. iniciais,
435
+ 4. icone padrao,
436
+ 5. conteudo projetado.
437
+ - Iniciais automaticas: derivadas do `name` quando `initials` nao existe.
438
+ - Tema/shape/size: aplicados por classes CSS e variaveis custom.
439
+
440
+ ### 5. Exemplo Minimo (JSON + Uso)
441
+ ```json
442
+ {
443
+ "componentId": "pdx-material-avatar",
444
+ "metadata": {
445
+ "name": "ownerAvatar",
446
+ "label": "Responsavel",
447
+ "extra": {
448
+ "name": "Maria Beatriz",
449
+ "themeColor": "primary"
450
+ }
451
+ }
452
+ }
453
+ ```
454
+ Uso: avatar com iniciais geradas automaticamente por nome.
455
+
456
+ ### 6. Exemplo Corporativo (JSON + Uso)
457
+ ```json
458
+ {
459
+ "componentId": "pdx-material-avatar",
460
+ "metadata": {
461
+ "name": "approverAvatar",
462
+ "label": "Aprovador",
463
+ "extra": {
464
+ "imageSrc": "https://cdn.corp.example/avatar/u123.png",
465
+ "imageAlt": "Foto do aprovador",
466
+ "defaultIcon": "mi:person",
467
+ "themeColor": "secondary",
468
+ "rounded": "full",
469
+ "size": "large",
470
+ "border": true,
471
+ "tooltip": "Aprovador principal",
472
+ "ariaLabel": "Avatar do aprovador principal"
473
+ }
474
+ }
475
+ }
476
+ ```
477
+ Uso: avatar corporativo com fallback de icone e acessibilidade explicita.
478
+
479
+ ### 7. Troubleshooting e Armadilhas Comuns
480
+ 1. Imagem nao aparece.
481
+ Correcao: validar protocolo permitido (`http/https/blob/data:image`) e URL efetiva.
482
+
483
+ 2. Iniciais inesperadas.
484
+ Correcao: definir `initials` explicitamente para evitar heuristica por nome.
485
+
486
+ 3. Tamanho custom nao aplica.
487
+ Correcao: usar `sizePx` numerico ou `sizeCss` com unidade valida (`px/rem/%/...`).
488
+
489
+ 4. Icone SVG nao renderiza.
490
+ Correcao: fornecer `icon.svg` valido ou string segura para sanitizacao.
491
+
492
+ 5. Classe/estilo extra nao aplica.
493
+ Correcao: em `metadata.extra.style` string, enviar JSON valido.
494
+
495
+ ### 8. Cross-links
496
+ - `projects/praxis-dynamic-fields/src/lib/components/material-button/pdx-material-button.json-api.md`
497
+
498
+ ### 9. Relatorio de Validacao Estrutural
499
+ - Visao geral: PASS
500
+ - API (inputs/outputs): PASS
501
+ - Cobertura JSON completa (especifico + herdado): PASS
502
+ - Mapeamento de comportamento: PASS
503
+ - Exemplo minimo: PASS
504
+ - Exemplo corporativo: PASS
505
+ - Troubleshooting: PASS
506
+
507
+ ## JSON path index (obrigatorio)
508
+
509
+ | Path | Type | Required | Default | Status | Notes |
510
+ | --- | --- | --- | --- | --- | --- |
511
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
512
+ | `name` | string | false | n/a | Partial | See Detailed API reference. |
513
+ | `metadata.extra.imageSrc` | string | false | n/a | Partial | See Detailed API reference. |
514
+ | `metadata.extra.imageAlt` | unknown | false | n/a | Partial | See Detailed API reference. |
515
+ | `metadata.extra.initials` | unknown | false | n/a | Partial | See Detailed API reference. |
516
+ | `metadata.extra.initialsMaxLength` | number | false | `2` | Active | See Detailed API reference. |
517
+ | `metadata.extra.name` | string | false | n/a | Partial | See Detailed API reference. |
518
+ | `metadata.extra.icon` | string | false | n/a | Partial | See Detailed API reference. |
519
+ | `metadata.extra.defaultIcon` | string | false | n/a | Partial | See Detailed API reference. |
520
+ | `metadata.extra.themeColor` | string | false | n/a | Partial | See Detailed API reference. |
521
+ | `metadata.extra.rounded` | unknown | false | n/a | Partial | See Detailed API reference. |
522
+ | `metadata.extra.size` | number | false | n/a | Partial | See Detailed API reference. |
523
+ | `metadata.extra.fillMode` | string | false | n/a | Partial | See Detailed API reference. |
524
+ | `metadata.extra.border` | unknown | false | n/a | Partial | See Detailed API reference. |
525
+ | `metadata.extra.status` | string | false | `none` | Active | See Detailed API reference. |
526
+ | `metadata.extra.statusLabel` | string | false | n/a | Active | See Detailed API reference. |
527
+ | `metadata.extra.badge` | string \| number | false | n/a | Active | See Detailed API reference. |
528
+ | `metadata.extra.badgeLabel` | string | false | n/a | Active | See Detailed API reference. |
529
+ | `metadata.extra.sizePx` | number | false | n/a | Partial | See Detailed API reference. |
530
+ | `metadata.extra.sizeCss` | unknown | false | n/a | Partial | See Detailed API reference. |
531
+ | `metadata.extra.tooltip` | string | false | n/a | Partial | See Detailed API reference. |
532
+ | `metadata.extra.ariaLabel` | string | false | n/a | Partial | See Detailed API reference. |
533
+ | `metadata.extra.class` | string | false | n/a | Partial | See Detailed API reference. |
534
+ | `metadata.extra.style` | object | false | n/a | Partial | See Detailed API reference. |
535
+ | `metadata.imageSrc` | string | false | n/a | Partial | See Detailed API reference. |
536
+
537
+ ## Events reference (obrigatorio)
538
+
539
+ | Event | Payload | Trigger | Stability | Notes |
540
+ | --- | --- | --- | --- | --- |
541
+ | `imageError` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
542
+
543
+ ## Styling API (obrigatorio quando aplicavel)
544
+
545
+ | Token/Class | Scope | Purpose | Notes |
546
+ | --- | --- | --- | --- |
547
+ | `metadata.extra.icon` | component | Styling-related JSON path | Validate against runtime implementation. |
548
+ | `metadata.extra.defaultIcon` | component | Styling-related JSON path | Validate against runtime implementation. |
549
+ | `metadata.extra.themeColor` | component | Styling-related JSON path | Validate against runtime implementation. |
550
+ | `metadata.extra.class` | component | Styling-related JSON path | Validate against runtime implementation. |
551
+ | `metadata.extra.style` | component | Styling-related JSON path | Validate against runtime implementation. |
552
+
553
+ ## Examples (obrigatorio)
554
+
555
+ | Example | Scenario | Validates | Notes |
556
+ | --- | --- | --- | --- |
557
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
558
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
559
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
560
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
561
+
562
+ ### Minimal valid
563
+
564
+ ```json
565
+ {
566
+ "componentId": "pdx-material-avatar",
567
+ "metadata": {
568
+ "name": "ownerAvatar",
569
+ "label": "Responsavel",
570
+ "extra": {
571
+ "name": "Maria Beatriz",
572
+ "themeColor": "primary"
573
+ }
574
+ },
575
+ "readonlyMode": false
576
+ }
577
+ ```
578
+
579
+ ### Common setup
580
+
581
+ ```json
582
+ {
583
+ "componentId": "pdx-material-avatar",
584
+ "metadata": {
585
+ "name": "approverAvatar",
586
+ "label": "Aprovador",
587
+ "extra": {
588
+ "imageSrc": "https://cdn.corp.example/avatar/u123.png",
589
+ "imageAlt": "Foto do aprovador",
590
+ "defaultIcon": "mi:person",
591
+ "themeColor": "secondary",
592
+ "rounded": "full",
593
+ "size": "large",
594
+ "border": true,
595
+ "tooltip": "Aprovador principal",
596
+ "ariaLabel": "pdx-material-avatar-common"
597
+ }
598
+ }
599
+ }
600
+ ```
601
+
602
+ ### Advanced setup
603
+
604
+ ```json
605
+ {
606
+ "componentId": "pdx-material-avatar",
607
+ "metadata": {
608
+ "name": "approverAvatar",
609
+ "label": "Aprovador",
610
+ "extra": {
611
+ "imageSrc": "https://cdn.corp.example/avatar/u123.png",
612
+ "imageAlt": "Foto do aprovador",
613
+ "defaultIcon": "mi:person",
614
+ "themeColor": "secondary",
615
+ "rounded": "full",
616
+ "size": 5,
617
+ "border": true,
618
+ "tooltip": "Aprovador principal",
619
+ "ariaLabel": "Avatar do aprovador principal"
620
+ }
621
+ },
622
+ "readonlyMode": false,
623
+ "disabledMode": false
624
+ }
625
+ ```
626
+
627
+ ### Enterprise scenario
628
+
629
+ ```json
630
+ {
631
+ "componentId": "pdx-material-avatar",
632
+ "metadata": {
633
+ "name": "approverAvatar",
634
+ "label": "Aprovador",
635
+ "extra": {
636
+ "imageSrc": "https://cdn.corp.example/avatar/u123.png",
637
+ "imageAlt": "Foto do aprovador",
638
+ "defaultIcon": "mi:person",
639
+ "themeColor": "secondary",
640
+ "rounded": "full",
641
+ "size": "large",
642
+ "border": true,
643
+ "tooltip": "Aprovador principal",
644
+ "ariaLabel": "Avatar do aprovador principal"
645
+ }
646
+ },
647
+ "presentationMode": true,
648
+ "visible": true
649
+ }
650
+ ```
651
+
652
+ ## Compatibility and migration notes (recomendado)
653
+
654
+ | Concern | Affected versions | Migration action | Deadline | Notes |
655
+ | --- | --- | --- | --- | --- |
656
+ | No legacy path detected in current revision | n/a | No migration action required for canonical paths | n/a | Re-evaluate if backward-compat aliases are introduced |
657
+
658
+ ## Known limitations and mismatches (recomendado)
659
+
660
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
661
+ | --- | --- | --- | --- | --- | --- |
662
+ | Canonical contract parity | No confirmed mismatch in this revision; runtime linkage verified for core flows (2026-03-06), with editor/tooling coverage pending | Keep runtime/schema/editor alignment evidence updated | Low | n/a | Monitor in periodic audit |
663
+
664
+ ## Source references (obrigatorio)
665
+
666
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
667
+ | --- | --- | --- | --- | --- |
668
+ | schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
669
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-avatar/material-avatar.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
670
+ | schema-types | projects/praxis-core/src/lib/models/component-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |