Skip to content

Add Salesforce Platform field formatting utilities #1527

Open
@interactivellama

Description

@interactivellama

Salesforce Platform has components that do not exist in SLDS, but do define the micro-UX/design of Salesforce applications.

Here are the ones I'm aware of

https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedAddress/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedDateTime/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedEmail/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedLocation/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedName/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedNumber/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedPhone/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedRichText/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedText/example
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedTime/documentation
https://developer.salesforce.com/docs/component-library/bundle/lightning:formattedUrl/example

These utilities would return React nodes, and therefore could not be used within inputs, but this makes since if you review the View/Edit InputUX pattern. #1373

"View inputs" are formatted HTML, to edit them, break out or normalize the "the fields" (address becomes street, city, zip, etc.) and put them in a modal or popover.

Would these utilities for helpful to anyone? I'm a little unsure about how to handle internationalization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions