I am working on an input field for credit card numbers and I want to customize the behavior of the default placeholder. Instead of a regular placeholder, I want to implement a specific pattern: "xxxx-xxxx-xxxx-xxxx". The goal is for users to only be able to replace the x's with actual numbers while keeping the rest of the pattern intact (each maintaining its own color).
While I came across a post suggesting the use of mask and jQuery for this purpose, I would prefer a solution that combines HTML, CSS, and Angular.
For visual reference, here is an illustration: https://i.sstatic.net/H5HXU.png