Sitecore / jss

Software development kit for JavaScript developers building web applications with Sitecore Experience Platform
https://jss.sitecore.com
Apache License 2.0
263 stars 275 forks source link

[sitecore-jss] [sitecore-jss-angular] Default Placeholder Content for empty fields in editMode metadata #1916

Closed yavorsk closed 2 months ago

yavorsk commented 2 months ago

Description / Motivation

This PR enhances the rendering of fields in editing mode for editMode metadata. When a field value is empty, a placeholder content should be rendered to signify that the field has no value. The placeholder should be interactable, so user can add value to the field. Additionally developers can provide their own custom empty field template via the field directive's emptyFieldEditingTemplate imput property, which will be rendered instead of the default one. The fields with this functionality are:

The PR also includes update to the GenericFieldValue base package type to accept Date type; this change has been made in order to make the base type compatible with the field date type defined in the angular package

Testing Details

Types of changes