using Umbraco.Cms.Core.PropertyEditors;

namespace Umbraco.Cms.Core;

public static partial class Constants
{
    /// <summary>
    ///     Defines property editors constants.
    /// </summary>
    public static class PropertyEditors
    {
        /// <summary>
        ///     Used to prefix generic properties that are internal content properties
        /// </summary>
        public const string InternalGenericPropertiesPrefix = "_umb_";

        public static class Legacy
        {
            public static class Aliases
            {
                public const string Textbox = "Umbraco.Textbox";
                public const string Date = "Umbraco.Date";
                public const string ContentPicker2 = "Umbraco.ContentPicker2";
                public const string MediaPicker2 = "Umbraco.MediaPicker2";
                public const string MemberPicker2 = "Umbraco.MemberPicker2";
                public const string MultiNodeTreePicker2 = "Umbraco.MultiNodeTreePicker2";
                public const string TextboxMultiple = "Umbraco.TextboxMultiple";
                public const string RelatedLinks2 = "Umbraco.RelatedLinks2";
                public const string RelatedLinks = "Umbraco.RelatedLinks";
            }
        }

        /// <summary>
        ///     Defines Umbraco built-in property editor aliases.
        /// </summary>
        public static class Aliases
        {
            /// <summary>
            ///     Block List.
            /// </summary>
            public const string BlockList = "Umbraco.BlockList";

            /// <summary>
            /// Block Grid.
            /// </summary>
            public const string BlockGrid = "Umbraco.BlockGrid";

                /// <summary>
            ///     CheckBox List.
            /// </summary>
            public const string CheckBoxList = "Umbraco.CheckBoxList";

            /// <summary>
            ///     Color Picker.
            /// </summary>
            public const string ColorPicker = "Umbraco.ColorPicker";

            /// <summary>
            ///     Eye Dropper Color Picker.
            /// </summary>
            public const string ColorPickerEyeDropper = "Umbraco.ColorPicker.EyeDropper";

            /// <summary>
            ///     Content Picker.
            /// </summary>
            public const string ContentPicker = "Umbraco.ContentPicker";

            /// <summary>
            ///     DateTime.
            /// </summary>
            public const string DateTime = "Umbraco.DateTime";

            /// <summary>
            ///     DropDown List.
            /// </summary>
            public const string DropDownListFlexible = "Umbraco.DropDown.Flexible";

            /// <summary>
            ///     Grid.
            /// </summary>
            public const string Grid = "Umbraco.Grid";

            /// <summary>
            ///     Image Cropper.
            /// </summary>
            public const string ImageCropper = "Umbraco.ImageCropper";

            /// <summary>
            ///     Integer.
            /// </summary>
            public const string Integer = "Umbraco.Integer";

            /// <summary>
            ///     Decimal.
            /// </summary>
            public const string Decimal = "Umbraco.Decimal";

            /// <summary>
            ///     ListView.
            /// </summary>
            public const string ListView = "Umbraco.ListView";

            /// <summary>
            ///     Media Picker.
            /// </summary>
            public const string MediaPicker = "Umbraco.MediaPicker";

            /// <summary>
            ///     Media Picker v.3.
            /// </summary>
            public const string MediaPicker3 = "Umbraco.MediaPicker3";

            /// <summary>
            ///     Multiple Media Picker.
            /// </summary>
            public const string MultipleMediaPicker = "Umbraco.MultipleMediaPicker";

            /// <summary>
            ///     Member Picker.
            /// </summary>
            public const string MemberPicker = "Umbraco.MemberPicker";

            /// <summary>
            ///     Member Group Picker.
            /// </summary>
            public const string MemberGroupPicker = "Umbraco.MemberGroupPicker";

            /// <summary>
            ///     MultiNode Tree Picker.
            /// </summary>
            public const string MultiNodeTreePicker = "Umbraco.MultiNodeTreePicker";

            /// <summary>
            ///     Multiple TextString.
            /// </summary>
            public const string MultipleTextstring = "Umbraco.MultipleTextstring";

            /// <summary>
            ///     Label.
            /// </summary>
            public const string Label = "Umbraco.Label";

            /// <summary>
            ///     Picker Relations.
            /// </summary>
            public const string PickerRelations = "Umbraco.PickerRelations";

            /// <summary>
            ///     RadioButton list.
            /// </summary>
            public const string RadioButtonList = "Umbraco.RadioButtonList";

            /// <summary>
            ///     Slider.
            /// </summary>
            public const string Slider = "Umbraco.Slider";

            /// <summary>
            ///     Tags.
            /// </summary>
            public const string Tags = "Umbraco.Tags";

            /// <summary>
            ///     Textbox.
            /// </summary>
            public const string TextBox = "Umbraco.TextBox";

            /// <summary>
            ///     Textbox Multiple.
            /// </summary>
            public const string TextArea = "Umbraco.TextArea";

            /// <summary>
            ///     TinyMCE
            /// </summary>
            public const string TinyMce = "Umbraco.TinyMCE";

            /// <summary>
            ///     Boolean.
            /// </summary>
            public const string Boolean = "Umbraco.TrueFalse";

            /// <summary>
            ///     Markdown Editor.
            /// </summary>
            public const string MarkdownEditor = "Umbraco.MarkdownEditor";

            /// <summary>
            ///     User Picker.
            /// </summary>
            public const string UserPicker = "Umbraco.UserPicker";

            /// <summary>
            ///     Upload Field.
            /// </summary>
            public const string UploadField = "Umbraco.UploadField";

            /// <summary>
            ///     Email Address.
            /// </summary>
            public const string EmailAddress = "Umbraco.EmailAddress";

            /// <summary>
            ///     Nested Content.
            /// </summary>
            public const string NestedContent = "Umbraco.NestedContent";

            /// <summary>
            ///     Alias for the multi URL picker editor.
            /// </summary>
            public const string MultiUrlPicker = "Umbraco.MultiUrlPicker";
        }

        /// <summary>
        ///     Defines Umbraco build-in datatype configuration keys.
        /// </summary>
        public static class ConfigurationKeys
        {
            /// <summary>
            ///     The value type of property data (i.e., string, integer, etc)
            /// </summary>
            /// <remarks>Must be a valid <see cref="ValueTypes" /> value.</remarks>
            public const string DataValueType = "umbracoDataValueType";
        }

        /// <summary>
        ///     Defines Umbraco's built-in property editor groups.
        /// </summary>
        public static class Groups
        {
            public const string Common = "Common";

            public const string Lists = "Lists";

            public const string Media = "Media";

            public const string People = "People";

            public const string Pickers = "Pickers";

            public const string RichContent = "Rich Content";
        }
    }
}
