Commit 1ab8e25
Merge Dev into master (#1894)
* Updating style selectors for theme editor
* Updating style selectors further
* Merge pull request #1872 from adobe/fix/FORMS-25246-fieldtype-containers
feat(dialog): add fieldType hidden field to container component dialogs
* fix(checkbox): guard against null uncheckedValue when JCR property is absent (#1892)
When enableUncheckedValue=true but uncheckedValue is not stored in JCR
(e.g. because the content push mechanism skipped an empty-string value),
AbstractCheckboxImpl built an enum array with null as the second element.
The AFB runtime calls .toString() on every enum value at init time, so
enum: [".", null] caused TypeError: Cannot read properties of null
(reading 'toString') in createFormInstance / RuleEngineWorker, crashing
the form before any screen rendered.
Fix: default safeUncheckedValue to "" when the JCR property is absent.
Add a regression test with a fixture that omits uncheckedValue from JCR.
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(af-core): FORMS-25463 expose cq:annotations parallel to fd:dor (#1883)
* feat(af-core): FORMS-25463 expose cq:annotations parallel to fd:dor
Add getCqAnnotations() on AbstractFormComponentImpl that reads the
cq:annotations child resource (a sibling of fd:dorContainer on the
component node) and exposes its child annotations as a per-annotation
map keyed by node name. Each entry carries color, text, x, y, optional
state/resolvedBy/resolvedAt and the JCR audit fields. Null fields are
stripped so the serialised shape matches the JCR content exactly.
Wire the call into getProperties() so the resulting map is placed
under properties.cq:annotations -- parallel to fd:dor / fd:path /
fd:associate -- not nested inside dorContainer. Returns null when no
cq:annotations child exists; Jackson then omits the key, keeping the
output non-breaking for forms without annotations.
* fix(af-core): FORMS-25463 exclude cq:annotations from getCustomProperties
getCustomProperties() reads all non-reserved JCR properties from the
resource ValueMap and includes them as raw Strings. cq:annotations is
not in the excluded-prefix list ("fd:", "jcr:", "sling:"), so a stale
String-typed cq:annotations property on the node was leaking through and
appearing as a double-serialised JSON string in the GET IC response.
Adding an explicit key exclusion for CUSTOM_ANNOTATIONS_PROPERTY_WRAPPER
ensures the property is handled exclusively by getCqAnnotations(), which
returns it as Map<String,Object> and produces proper nested JSON.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(af-core): FORMS-25463 ic annotations in authoring crispr only
* style(af-core): FORMS-25463 apply formatter to AbstractFormComponentImpl
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
* feat(af-core): FORMS-25463 ic annotations in authoring crispr only
* fix(af-core): FORMS-25463 remove formatting changes, keep only cq:annotations feature
* FORMS-25463: blocking publish of cq:annotations
* FORMS-25463: adding tests
* FORMS-25463: adding more tests for codecov
* FORMS-25463: formatting fix
* FORMS-25463: PR comments incorporate plus tests
---------
Co-authored-by: Prateek Awasthi <prateekawast@adobe.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Muskan Gupta <muskgupta@Muskans-MacBook-Pro.local>
Co-authored-by: Varun Dua <vdua@adobe.com>
Co-authored-by: muskgupta <muskgupta@adobe.com>
Co-authored-by: Rishi Mehta <69448117+rismehta@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Prateek Awasthi <prateekawast@adobe.com>1 parent 4c9473f commit 1ab8e25
38 files changed
Lines changed: 1378 additions & 323 deletions
File tree
- bundles/af-core/src
- main/java/com/adobe/cq/forms/core/components
- internal/form
- util
- test
- java/com/adobe/cq/forms/core/components
- internal/models/v1/form
- util
- resources/form
- checkbox
- componentswithrule
- ui.af.apps/src/main/content/jcr_root/apps/core/fd/components/form
- accordion/v1/accordion
- _cq_dialog
- _cq_styleConfig
- actions
- reset/v2/reset/_cq_styleConfig
- submit/v2/submit/_cq_styleConfig
- button/v2/button/_cq_styleConfig
- checkboxgroup/v1/checkboxgroup/_cq_styleConfig
- checkbox/v1/checkbox/_cq_styleConfig
- container/v2/container/_cq_themeConfig
- datepicker/v1/datepicker/_cq_styleConfig
- dropdown/v1/dropdown/_cq_styleConfig
- emailinput/v1/emailinput/_cq_styleConfig
- fileinput
- v3/fileinput/_cq_styleConfig
- v4/fileinput/_cq_styleConfig
- fragment/v1/fragment/_cq_dialog
- image/v1/image/_cq_styleConfig
- numberinput/v1/numberinput/_cq_styleConfig
- panelcontainer/v1/panelcontainer
- _cq_dialog
- _cq_styleConfig
- radiobutton/v1/radiobutton/_cq_styleConfig
- review/v1/review/_cq_styleConfig
- switch/v1/switch/_cq_styleConfig
- tabsontop/v1/tabsontop
- _cq_dialog
- _cq_styleConfig
- telephoneinput/v1/telephoneinput/_cq_styleConfig
- termsandconditions/v1/termsandconditions/_cq_styleConfig
- textinput/v1/textinput/_cq_styleConfig
- title/v2/title/_cq_styleConfig
- verticaltabs/v1/verticaltabs/_cq_styleConfig
- wizard
- v1/wizard/_cq_dialog
- v2/wizard/_cq_styleConfig
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
| 179 | + | |
| 180 | + | |
179 | 181 | | |
180 | 182 | | |
181 | 183 | | |
| |||
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
| 317 | + | |
| 318 | + | |
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| |||
337 | 339 | | |
338 | 340 | | |
339 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
340 | 346 | | |
341 | 347 | | |
342 | 348 | | |
| |||
740 | 746 | | |
741 | 747 | | |
742 | 748 | | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
743 | 778 | | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
350 | 351 | | |
351 | 352 | | |
352 | 353 | | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
353 | 363 | | |
354 | 364 | | |
355 | 365 | | |
| |||
Lines changed: 121 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
273 | 275 | | |
274 | 276 | | |
275 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
276 | 396 | | |
277 | 397 | | |
278 | 398 | | |
| |||
283 | 403 | | |
284 | 404 | | |
285 | 405 | | |
| 406 | + | |
286 | 407 | | |
287 | 408 | | |
288 | 409 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
97 | 107 | | |
98 | 108 | | |
99 | 109 | | |
| |||
Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
68 | 116 | | |
69 | 117 | | |
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
107 | 120 | | |
108 | 121 | | |
109 | 122 | | |
| |||
0 commit comments