@praxisui/dynamic-fields 8.0.0-beta.7 → 8.0.0-beta.71

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 (97) 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 +502 -0
  8. package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
  9. package/docs/dynamic-fields-inline-filter-inventory.md +247 -0
  10. package/docs/dynamic-fields-inline-filter-runtime-contract.md +391 -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 +206 -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-CBogy3si.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 +19551 -10669
  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 +551 -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} +874 -440
  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
@@ -0,0 +1,611 @@
1
+ ---
2
+ title: "pdx-material-checkbox-group JSON API (Canonical)"
3
+ slug: "pdx-material-checkbox-group-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-material-checkbox-group"
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-checkbox-group."
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-checkbox-group/material-checkbox-group.metadata.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.component.ts"
23
+ - "projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts"
24
+ - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
25
+ source_of_truth_last_verified: "2026-04-27"
26
+ last_updated: "2026-04-27"
27
+ toc: true
28
+ sidebar: true
29
+ tags:
30
+ - "json-api"
31
+ - "canonical-contract"
32
+ - "pdx-material-checkbox-group"
33
+ api_stability: "canonical"
34
+ schema_verified: true
35
+ runtime_verified: true
36
+ editor_coverage_verified: false
37
+ runtime_scope: "public"
38
+ legacy_paths_present: true
39
+ has_known_mismatches: false
40
+ related_components:
41
+ - "praxis-table"
42
+ - "pdx-base-select-runtime-contract"
43
+ - "pdx-base-input-runtime-contract"
44
+ - "pdx-material-radio-group"
45
+ - "pdx-material-selection-list"
46
+ ---
47
+
48
+ # pdx-material-checkbox-group
49
+
50
+ Este documento e a referencia canonica da API JSON de pdx-material-checkbox-group.
51
+
52
+ ## Summary
53
+
54
+ - Tipo documental: API reference canonica de contrato JSON.
55
+ - Source of truth: runtime e codigo declarados no frontmatter.
56
+ - Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
57
+ - Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
58
+
59
+ ## Purpose and scope
60
+
61
+ - O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
62
+ - Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
63
+ - Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
64
+
65
+ ## Consulta rapida (obrigatorio)
66
+
67
+ | Regra/tema | Observado | Canonico desejado | Status | Evidencia |
68
+ | --- | --- | --- | --- | --- |
69
+ | Component id | `pdx-material-checkbox-group` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
70
+ | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
71
+ | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.component.ts` |
72
+ | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
73
+ | Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
74
+ | Legacy paths | `true` | Segregar legado de caminhos canonicos com janela de migracao | Partial | frontmatter.legacy_paths_present |
75
+ | Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
76
+
77
+ ## Source of truth
78
+
79
+ | Source | Kind | Notes |
80
+ | --- | --- | --- |
81
+ | projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
82
+ | projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
83
+ | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
84
+ | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
85
+
86
+ ## Support legend
87
+
88
+ - **Active**: suportado em runtime e liberado para uso externo.
89
+ - **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
90
+ - **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
91
+ - **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
92
+ - **Deprecated**: legado suportado por janela de migracao definida.
93
+
94
+ ## Contract status snapshot
95
+
96
+ | Item | Value | Notes |
97
+ | --- | --- | --- |
98
+ | Reference mode | `canonical` | Deve permanecer canonico |
99
+ | Contract format | `json` | Contrato metadata-driven |
100
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
101
+ | Runtime scope | `public` | Escopo publicado para consumidores |
102
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
103
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
104
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
105
+ | Legacy paths present | `true` | Segregar legado de contrato canonico |
106
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
107
+
108
+ ## Contract classification (obrigatorio)
109
+
110
+ ### Canonical paths (public contract)
111
+
112
+ | Path | Type | Required | Default | Status | Notes |
113
+ | --- | --- | --- | --- | --- | --- |
114
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
115
+ | `readonlyMode` | boolean | false | `false` | Active | Bloqueia interacao e expoe semantica readonly acessivel. |
116
+ | `disabledMode` | boolean | false | `false` | Active | Desabilita checkboxes nativos, host e fieldset/select-all quando aplicavel. |
117
+ | `visible` | boolean | false | `true` | Active | Controla `display` do host e `aria-hidden` quando invisivel. |
118
+ | `presentationMode` | boolean | false | `false` | Active | Renderiza o valor sem permitir mutacao por clique ou handlers publicos governados. |
119
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
120
+ | `metadata.selectionMode` | string | false | heuristic legacy | Active | `boolean` e `multiple` sao o contrato canonico; ausencia mantem fallback legado. |
121
+ | `metadata.variant` | string | false | `default` | Active | `consent` e a variante semantica inicial para checkbox booleano institucional. |
122
+ | `metadata.density` | string | false | `comfortable` | Active | Token de densidade do shell do campo. |
123
+ | `metadata.description` | string | false | n/a | Active | Texto de apoio do checkbox boolean/consent. |
124
+ | `metadata.links` | array | false | n/a | Active | Links ricos exibidos no shell boolean/consent. |
125
+ | `metadata.checkboxOptions` | array | false | n/a | Partial | See Detailed API reference for runtime semantics. |
126
+ | `metadata.options` | array | false | n/a | Partial | See Detailed API reference for runtime semantics. |
127
+ | `metadata.required` | boolean | false | n/a | Active | Marca checkbox/fieldset como obrigatório no runtime acessível. |
128
+ | `metadata.readonly` | boolean | false | `false` | Active | Estado readonly declarativo do payload; bloqueia interação como `readonlyMode`. |
129
+
130
+ ### Supported legacy paths
131
+
132
+ | Legacy path | Canonical replacement | Support window | Runtime behavior | Notes |
133
+ | --- | --- | --- | --- | --- |
134
+ | `metadata.options` | `metadata.checkboxOptions` | not-yet-defined | accepted for backward compatibility | Alias legado para opcoes do grupo. |
135
+ | ausencia de `metadata.selectionMode` | `metadata.selectionMode` explicito | not-yet-defined | runtime infere `boolean` sem opcoes e `multiple` com opcoes | Fallback legado preservado para migracao. |
136
+
137
+ ### Internal-only paths
138
+
139
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
140
+
141
+ ### Experimental paths
142
+
143
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
144
+
145
+ ## Public contract surface (obrigatorio)
146
+
147
+ ### Top-level configuration blocks
148
+
149
+ | Block | Purpose | Required | Merge strategy | Notes |
150
+ | --- | --- | --- | --- | --- |
151
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-04-27). |
152
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | Bloqueia boolean, options e select-all; expõe `praxis-readonly` e `aria-readonly` (component specs, 2026-04-27). |
153
+ | `disabledMode` | Override de disabled no host/runtime | false | override | Desabilita controles nativos e expõe `praxis-disabled`/`aria-disabled` (component specs, 2026-04-27). |
154
+ | `visible` | Override de visibilidade no host/runtime | false | override | Controla display/`aria-hidden` no host. |
155
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | Bloqueia mutação por shell click e handlers públicos governados (component specs, 2026-04-27). |
156
+
157
+ ### Nested configuration blocks
158
+
159
+ | Path | Type | Required | Default | Constraints | Notes |
160
+ | --- | --- | --- | --- | --- | --- |
161
+ | `metadata.controlType` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
162
+ | `metadata.checkboxOptions` | array | false | n/a | component-defined | Partial; verify per source_of_truth. |
163
+ | `metadata.options` | array | false | n/a | component-defined | Partial; verify per source_of_truth. |
164
+ | `metadata.selectAll` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
165
+ | `metadata.maxSelections` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
166
+ | `metadata.layout` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
167
+ | `metadata.color` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
168
+ | `metadata.labelPosition` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
169
+ | `metadata.description` | string | false | n/a | component-defined | Texto de apoio no modo boolean/consent. |
170
+ | `metadata.links` | array | false | n/a | component-defined | Links ricos no modo boolean/consent. |
171
+ | `metadata.required` | boolean | false | n/a | component-defined | Propaga required e `aria-required` no controle renderizado. |
172
+ | `metadata.resourcePath` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
173
+ | `metadata.filterCriteria` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
174
+
175
+ ### Input bindings (inbound data)
176
+
177
+ | Binding/Path | Type | Required | Source | Runtime normalization | Notes |
178
+ | --- | --- | --- | --- | --- | --- |
179
+ | `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
180
+ | `readonlyMode` | boolean | false | host-runtime | Angular input binding | Host-level readonly override; disables interaction without declaring disabled semantics. |
181
+ | `disabledMode` | boolean | false | host-runtime | Angular input binding | Host-level disabled override; disables native controls and host semantics. |
182
+ | `visible` | boolean | false | host-runtime | Angular input binding | Host-level visibility override. |
183
+ | `presentationMode` | boolean | false | host-runtime | Angular input binding | Non-interactive presentation override. |
184
+
185
+ ### Output events
186
+
187
+ | Event | Payload | Trigger | Stability | Notes |
188
+ | --- | --- | --- | --- | --- |
189
+ | `searchTermChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
190
+ | `selectionChange` | unknown | runtime-event | Experimental | Emitido em modo boolean e múltiplo quando o valor muda via runtime. |
191
+ | `openedChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
192
+ | `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
193
+ | `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
194
+ | `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
195
+ | `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
196
+
197
+ ### Runtime semantics addendum
198
+
199
+ - `selectionMode` explicito governa a semantica interna de selecao; heuristica por presenca de opcoes so vale quando `selectionMode` nao e informado.
200
+ - `required`/`requiredChecked` propagam sinalizacao acessivel (`aria-required`) para o checkbox renderizado.
201
+ - No modo boolean, cliques no shell de conteudo tambem emitem `selectionChange` e `optionSelected` para alinhamento operacional com o runtime base de selecao.
202
+ - Estados governados (`disabledMode`, `readonlyMode`, `presentationMode`, `metadata.readonly` e `FormControl.disabled`) bloqueiam mutacoes em modo boolean, option e select-all.
203
+ - `disabledMode`/`FormControl.disabled` expõem `aria-disabled`; readonly/presentation expõem `aria-readonly`; erros expõem `aria-invalid` no controle/fieldset aplicavel.
204
+ - Chamadas diretas aos handlers publicos governados (`selectOption`, `toggleSelectAll`) respeitam o mesmo bloqueio de interacao visual.
205
+
206
+ ### External side channels
207
+
208
+ | Channel | Direction | Contract | Failure mode | Notes |
209
+ | --- | --- | --- | --- | --- |
210
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
211
+
212
+ ### Host/runtime dependencies
213
+
214
+ | Dependency | Required | Environment | Purpose | Notes |
215
+ | --- | --- | --- | --- | --- |
216
+ | `material-checkbox-group.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.metadata.ts`. |
217
+ | `material-checkbox-group.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.component.ts`. |
218
+ | `simple-base-select.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts`. |
219
+ | `material-field-metadata.interface.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-core/src/lib/models/material-field-metadata.interface.ts`. |
220
+
221
+ ## Coverage by surface (obrigatorio)
222
+
223
+ ### Coverage matrix (runtime, schema/type, editor/tooling)
224
+
225
+ | Surface | Verified | Coverage status | Evidence | Notes |
226
+ | --- | --- | --- | --- | --- |
227
+ | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.component.ts` | Core runtime flows and governed states verified via focused component specs on 2026-04-27; editor/tooling coverage remains independent. |
228
+ | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
229
+ | Editor/Tooling | `false` | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Selector/control-type tooling linkage verified via default selector map and registry seeding; visual editor end-to-end coverage remains not-yet-verified. |
230
+
231
+ ### Runtime coverage boundaries
232
+
233
+ - Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
234
+ - Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
235
+ - Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
236
+
237
+ ### Editor and tooling notes
238
+
239
+ - Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP` e semeado no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
240
+ - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
241
+ - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
242
+ - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
243
+
244
+ ## Resolution and precedence model (obrigatorio)
245
+
246
+ ### Merge order
247
+
248
+ 1. defaults do componente
249
+ 2. contrato JSON recebido
250
+ 3. overrides de host/runtime
251
+ 4. normalizacoes internas
252
+
253
+ ### Fallback order
254
+
255
+ contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
256
+
257
+ ### Override points
258
+
259
+ - inputs publicos do componente
260
+ - configuracao JSON de runtime
261
+ - integracoes de host (servicos/tokens/adapters)
262
+
263
+ ### Runtime normalization
264
+
265
+ Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
266
+
267
+ ### Precedence rules
268
+
269
+ Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
270
+
271
+ ## Validation and error semantics (obrigatorio)
272
+
273
+ ### Validation model
274
+
275
+ | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
276
+ | --- | --- | --- | --- | --- |
277
+ | canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
278
+
279
+ ### Invalid and unknown field handling
280
+
281
+ - Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
282
+ - Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
283
+ - Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
284
+
285
+ ### Fail-open / fail-closed behavior
286
+
287
+ | Condition | Mode | Runtime behavior | Consumer impact |
288
+ | --- | --- | --- | --- |
289
+ | invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
290
+
291
+ ### Runtime warnings vs hard failures
292
+
293
+ | Condition | Severity | Observability | Consumer action |
294
+ | --- | --- | --- | --- |
295
+ | partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
296
+ | mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
297
+
298
+ ## Detailed API reference
299
+ ### Preserved technical reference (normalized from previous revision)
300
+
301
+ ### 1. Visao Geral e Quando Usar
302
+ `pdx-material-checkbox-group` exibe um grupo de checkboxes Material controlado por JSON, com modo multiplo e opcao de selecionar todos.
303
+
304
+ Use quando precisar:
305
+ - selecao multipla sempre visivel na tela;
306
+ - layout vertical ou horizontal;
307
+ - limite de selecoes com bloqueio de itens.
308
+
309
+ ### 2. API do Componente (Inputs/Outputs)
310
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
311
+ | --- | --- | --- | --- | --- |
312
+ | `metadata` | `MaterialCheckboxMetadata` | - | Sim | Contrato principal do grupo de checkboxes. |
313
+ | `readonlyMode` | `boolean` | `false` | Nao | Bloqueia interacao e expoe semantica readonly. |
314
+ | `disabledMode` | `boolean` | `false` | Nao | Desabilita os checkboxes nativos e expoe semantica disabled. |
315
+ | `visible` | `boolean` | `true` | Nao | Controla exibicao no host. |
316
+ | `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao sem edicao ou mutacao por handlers governados. |
317
+ | `selectionChange` | `T[]` | - | Output herdado | Mudanca da lista de valores selecionados. |
318
+ | `optionSelected` | `SelectOption` | - | Output herdado | Item alternado pelo usuario. |
319
+ | `optionsLoaded` | `SelectOption[]` | - | Output herdado | Carga remota de opcoes. |
320
+
321
+ ### 3. Matriz de Cobertura JSON (Completa)
322
+ #### 3.1 Campos especificos do componente
323
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
324
+ | --- | --- | --- | --- |
325
+ | `metadata.controlType` | `'checkbox'` | Ativo | Seleciona renderer de checkbox group. |
326
+ | `metadata.checkboxOptions` | `Array<{ value; text; label?; description?; disabled? }>` | Ativo | Fonte principal das opcoes; `description` renderiza texto de apoio por item. |
327
+ | `metadata.options` | `Array<any>` | Extensao de runtime | Alias legado quando `checkboxOptions` nao vem. |
328
+ | `metadata.selectAll` | `boolean` | Ativo | Renderiza linha "Selecionar todos" no mesmo shell estrutural das opcoes. |
329
+ | `metadata.description` | `string` | Ativo | Renderiza texto de apoio no shell boolean/consent. |
330
+ | `metadata.links` | `Array<{ label; href; target?; rel? }>` | Ativo | Renderiza links ricos no shell boolean/consent. |
331
+ | `metadata.readonly` | `boolean` | Ativo | Bloqueia interacao como estado readonly declarativo do payload. |
332
+ | `metadata.maxSelections` | `number` | Ativo | Desabilita opcoes excedentes quando limite e atingido. |
333
+ | `metadata.layout` | `'horizontal' \| 'vertical'` | Ativo | Altera classe de layout do grupo. |
334
+ | `metadata.color` | `ThemePalette` | Ativo | Cor dos checkboxes Material. |
335
+ | `metadata.labelPosition` | `'before' \| 'after'` | Ativo | Posicao do label no checkbox. |
336
+ | `metadata.resourcePath` | `string` | Ativo | Carga remota via base select. |
337
+ | `metadata.filterCriteria` | `Record<string, any>` | Ativo | Filtro base de backend. |
338
+ | `metadata.optionLabelKey` | `string` | Ativo | Chave de label em payload remoto. |
339
+ | `metadata.optionValueKey` | `string` | Ativo | Chave de value em payload remoto. |
340
+ | `metadata.searchable` | `boolean` | Declared-only | Campo herdado, sem UI de busca neste template. |
341
+ | `metadata.indeterminate` | `boolean` | Declared-only | Nao aplicado aos itens deste grupo. |
342
+ | `metadata.linkText` | `string` | Extensao de runtime | Fallback legado para links ricos quando `metadata.links` nao vem. |
343
+ | `metadata.linkUrl` | `string` | Extensao de runtime | Fallback legado para links ricos quando `metadata.links` nao vem. |
344
+ | `metadata.linkTarget` | `'_blank' \| '_self'` | Extensao de runtime | Target do fallback legado de link. |
345
+
346
+ #### 3.2 Campos herdados compartilhados (exaustivo)
347
+ Contrato completo compartilhado para selects:
348
+ - [pdx-base-select-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md)
349
+
350
+ Contrato compartilhado de input base:
351
+ - [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
352
+
353
+ Resumo de composicao deste componente:
354
+ - `Ativo`: selectionMode, variant, density, description, links, checkboxOptions, selectAll, maxSelections, layout, color, labelPosition.
355
+ - `Declared-only`: link/indeterminate/searchable sem renderizacao dedicada.
356
+ - `Extensao de runtime`: alias `options`.
357
+
358
+ ### 4. Mapeamento de Comportamento
359
+ - Selecao: sempre multipla (componente define `multiple=true`).
360
+ - Selecionar todos: usa utilitarios do base select.
361
+ - Limite: item nao selecionado fica desabilitado quando `maxSelections` atinge.
362
+ - Eventos: valor emitido como array de selecionados.
363
+
364
+ ### 5. Exemplo Minimo (JSON + Uso)
365
+ ```json
366
+ {
367
+ "componentId": "pdx-material-checkbox-group",
368
+ "metadata": {
369
+ "name": "flags",
370
+ "label": "Flags",
371
+ "controlType": "checkbox",
372
+ "checkboxOptions": [
373
+ { "value": "A", "text": "Ativo" },
374
+ { "value": "I", "text": "Inativo" }
375
+ ]
376
+ }
377
+ }
378
+ ```
379
+ Uso: grupo simples de checkboxes com valores multiplos.
380
+
381
+ ### 6. Exemplo Corporativo (JSON + Uso)
382
+ ```json
383
+ {
384
+ "componentId": "pdx-material-checkbox-group",
385
+ "metadata": {
386
+ "name": "scopes",
387
+ "label": "Escopos de Acesso",
388
+ "controlType": "checkbox",
389
+ "layout": "horizontal",
390
+ "color": "primary",
391
+ "labelPosition": "after",
392
+ "selectAll": true,
393
+ "maxSelections": 4,
394
+ "resourcePath": "rbac/scopes/options",
395
+ "filterCriteria": { "tenant": "corp", "active": true },
396
+ "optionLabelKey": "label",
397
+ "optionValueKey": "code",
398
+ "hint": "Selecione no maximo 4 escopos."
399
+ }
400
+ }
401
+ ```
402
+ Uso: controla escopos de perfil com limite e carregamento remoto.
403
+
404
+ ### 7. Troubleshooting e Armadilhas Comuns
405
+ 1. Tentar usar modo single.
406
+ Correcao: este componente e multiplo por design.
407
+
408
+ 2. Layout nao muda para horizontal.
409
+ Correcao: usar `layout: "horizontal"` no metadata.
410
+
411
+ 3. Limite nao bloqueia item.
412
+ Correcao: garantir `maxSelections` numerico e valores consistentes no form control.
413
+
414
+ 4. Campo `searchable` nao cria busca.
415
+ Correcao: sem caixa de busca neste renderer; use select com busca se necessario.
416
+
417
+ 5. Link de termos nao aparece.
418
+ Correcao: preferir `metadata.links`; `linkText/linkUrl` seguem como fallback legado quando `metadata.links` nao vem.
419
+
420
+ ### 8. Cross-links
421
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md`
422
+ - `projects/praxis-dynamic-fields/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md`
423
+ - `projects/praxis-dynamic-fields/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md`
424
+
425
+ ### 9. Relatorio de Validacao Estrutural
426
+ - Visao geral: PASS
427
+ - API (inputs/outputs): PASS
428
+ - Cobertura JSON completa (especifico + herdado): PASS
429
+ - Mapeamento de comportamento: PASS
430
+ - Exemplo minimo: PASS
431
+ - Exemplo corporativo: PASS
432
+ - Troubleshooting: PASS
433
+
434
+ ## JSON path index (obrigatorio)
435
+
436
+ | Path | Type | Required | Default | Status | Notes |
437
+ | --- | --- | --- | --- | --- | --- |
438
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
439
+ | `readonlyMode` | boolean | false | `false` | Active | See Detailed API reference. |
440
+ | `disabledMode` | boolean | false | `false` | Active | See Detailed API reference. |
441
+ | `visible` | boolean | false | `true` | Active | See Detailed API reference. |
442
+ | `presentationMode` | boolean | false | `false` | Active | See Detailed API reference. |
443
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
444
+ | `metadata.checkboxOptions` | array | false | n/a | Partial | See Detailed API reference. |
445
+ | `metadata.options` | array | false | n/a | Partial | See Detailed API reference. |
446
+ | `metadata.selectAll` | boolean | false | n/a | Partial | See Detailed API reference. |
447
+ | `metadata.maxSelections` | number | false | n/a | Partial | See Detailed API reference. |
448
+ | `metadata.layout` | string | false | n/a | Partial | See Detailed API reference. |
449
+ | `metadata.color` | string | false | n/a | Partial | See Detailed API reference. |
450
+ | `metadata.labelPosition` | string | false | n/a | Partial | See Detailed API reference. |
451
+ | `metadata.resourcePath` | string | false | n/a | Partial | See Detailed API reference. |
452
+ | `metadata.filterCriteria` | unknown | false | n/a | Partial | See Detailed API reference. |
453
+ | `metadata.optionLabelKey` | string | false | n/a | Partial | See Detailed API reference. |
454
+ | `metadata.optionValueKey` | string | false | n/a | Partial | See Detailed API reference. |
455
+ | `metadata.searchable` | boolean | false | n/a | Partial | See Detailed API reference. |
456
+ | `metadata.indeterminate` | boolean | false | n/a | Partial | See Detailed API reference. |
457
+ | `metadata.linkText` | unknown | false | n/a | Partial | See Detailed API reference. |
458
+
459
+ ## Events reference (obrigatorio)
460
+
461
+ | Event | Payload | Trigger | Stability | Notes |
462
+ | --- | --- | --- | --- | --- |
463
+ | `searchTermChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
464
+ | `selectionChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
465
+ | `openedChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
466
+ | `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
467
+ | `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
468
+ | `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
469
+ | `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
470
+
471
+ ## Styling API (obrigatorio quando aplicavel)
472
+
473
+ | Token/Class | Scope | Purpose | Notes |
474
+ | --- | --- | --- | --- |
475
+ | `metadata.color` | component | Styling-related JSON path | Validate against runtime implementation. |
476
+
477
+ ## Examples (obrigatorio)
478
+
479
+ | Example | Scenario | Validates | Notes |
480
+ | --- | --- | --- | --- |
481
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
482
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
483
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
484
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
485
+
486
+ ### Minimal valid
487
+
488
+ ```json
489
+ {
490
+ "componentId": "pdx-material-checkbox-group",
491
+ "metadata": {
492
+ "name": "flags",
493
+ "label": "Flags",
494
+ "controlType": "checkbox",
495
+ "checkboxOptions": [
496
+ {
497
+ "value": "A",
498
+ "text": "Ativo"
499
+ },
500
+ {
501
+ "value": "I",
502
+ "text": "Inativo"
503
+ }
504
+ ]
505
+ },
506
+ "readonlyMode": false
507
+ }
508
+ ```
509
+
510
+ ### Common setup
511
+
512
+ ```json
513
+ {
514
+ "componentId": "pdx-material-checkbox-group",
515
+ "metadata": {
516
+ "name": "scopes",
517
+ "label": "Escopos de Acesso",
518
+ "controlType": "pdx-material-checkbox-group-common",
519
+ "layout": "horizontal",
520
+ "color": "primary",
521
+ "labelPosition": "after",
522
+ "selectAll": true,
523
+ "maxSelections": 4,
524
+ "resourcePath": "rbac/scopes/options",
525
+ "filterCriteria": {
526
+ "tenant": "corp",
527
+ "active": true
528
+ },
529
+ "optionLabelKey": "label",
530
+ "optionValueKey": "code",
531
+ "hint": "Selecione no maximo 4 escopos."
532
+ }
533
+ }
534
+ ```
535
+
536
+ ### Advanced setup
537
+
538
+ ```json
539
+ {
540
+ "componentId": "pdx-material-checkbox-group",
541
+ "metadata": {
542
+ "name": "scopes",
543
+ "label": "Escopos de Acesso",
544
+ "controlType": "checkbox",
545
+ "layout": "horizontal",
546
+ "color": "primary",
547
+ "labelPosition": "after",
548
+ "selectAll": true,
549
+ "maxSelections": 5,
550
+ "resourcePath": "rbac/scopes/options",
551
+ "filterCriteria": {
552
+ "tenant": "corp",
553
+ "active": true
554
+ },
555
+ "optionLabelKey": "label",
556
+ "optionValueKey": "code",
557
+ "hint": "Selecione no maximo 4 escopos."
558
+ },
559
+ "readonlyMode": false,
560
+ "disabledMode": false
561
+ }
562
+ ```
563
+
564
+ ### Enterprise scenario
565
+
566
+ ```json
567
+ {
568
+ "componentId": "pdx-material-checkbox-group",
569
+ "metadata": {
570
+ "name": "scopes",
571
+ "label": "Escopos de Acesso",
572
+ "controlType": "checkbox",
573
+ "layout": "horizontal",
574
+ "color": "primary",
575
+ "labelPosition": "after",
576
+ "selectAll": true,
577
+ "maxSelections": 4,
578
+ "resourcePath": "rbac/scopes/options",
579
+ "filterCriteria": {
580
+ "tenant": "corp",
581
+ "active": true
582
+ },
583
+ "optionLabelKey": "label",
584
+ "optionValueKey": "code",
585
+ "hint": "Selecione no maximo 4 escopos."
586
+ },
587
+ "presentationMode": true,
588
+ "visible": true
589
+ }
590
+ ```
591
+
592
+ ## Compatibility and migration notes (recomendado)
593
+
594
+ | Concern | Affected versions | Migration action | Deadline | Notes |
595
+ | --- | --- | --- | --- | --- |
596
+ | Legacy aliases coexist with canonical paths | Active consumers using legacy JSON keys | Keep canonical paths for new usage and map aliases in migration backlog | not-yet-defined | Track via component-level migration issue |
597
+
598
+ ## Known limitations and mismatches (recomendado)
599
+
600
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
601
+ | --- | --- | --- | --- | --- | --- |
602
+ | 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 |
603
+
604
+ ## Source references (obrigatorio)
605
+
606
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
607
+ | --- | --- | --- | --- | --- |
608
+ | schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
609
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-checkbox-group/material-checkbox-group.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
610
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
611
+ | schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |