* set input file accept * Use PreValue file extensions for limiting the files to be chosen in file input * Current state for Warren to review * This should fix up what you need Niels * update csproj * use empty string if fileExtensions is undefined * public interface * initial work * local crops * translations * translation correction * fix misspeling * some progress * filter media picker * align media card grid items correctly * responsive media cropper * always be able to scale 3 times smallest scale * making image cropper property editor responsive * scroll to scale * adjust slider look * rearrange parts of mediaentryeditor * test helper * styling * move controls inside umb-image-crop * seperate umg-cropper-gravity styling * corrected layout * more ui refinement * keep the idea of mandatory out for now. * remove double ; * removed testing code * JSON Property Value Convertor now has an array of property editors to exclude * Property Value Convertor for Media Picker 3 aka Media Picker with Local Crops * Experimenting on best approach to retrieve local crop in razor view when iterating over picked media items * Update ValueConvertor to use ImageCropperValue as part of the model for views as alot of existing CropUrls can then use it * Update extension methods to take an ImageCropperValue model (localCropData) * Forgot to update CSProj for new ValueConvertor * New GetCropUrl @Url.GetCropUrl(crop.Alias, media.LocalCrops) as oppposed to @Url.GetCropUrl(media.LocalCrops, cropAlias:crop.Alias, useCropDimensions: true) * Remove dupe item in CSProj * Use a contains as an opposed to Array.IndexOf * various corrections, SingleMode based on max 1, remove double checkerBackground, enforce validation for Crops, changed error indication * mediapicker v3 * correct version * fixing file ext label text color * clipboard features for MediaPicker v3 * highlight not allowed types * highlight trashed as an error * Media Types Video, Sound, Document and Vector Image * Rename to Audio and VectorGraphics * Add (SVG) in the name for Vector Graphics * adding CSV to Documents * remove this commented code. * remove this commented code * number range should not go below 0, at-least as default until we make that configurable. * use min not ng-min * description for local crops * Error/Limits highlighting reactive * visual adjustments * Enabling opening filtered folders + corrected select hover states * Varous fixes to resolve issues with unit tests. * Refactor MediaType Documents to only contain Article file type * mark as build-in * predefined MediaPicker3 DataTypes, renaming v2 to "old" * set scale bar current value after min and max has been set * added missing } * update when focal point is dragged * adjusted styling for Image Cropper property editor * correcting comment * remove todo - message for trashed media items works * Changed parameter ordering * Introduced new extension method on MediaWithCrops to get croppings urls in with full path * Reintroducing Single Item Mode * use Multiple instead of SingleMode * renaming and adding multiple to preconfigured datatypes * Change existing media picker to use the Clipboard type MEDIA, enabling shared functionality. * clean up unused clipboard parts * adjusted to new amount * correcting test * Fix unit test * Move MediaWithCrops to separate file and move to Core.Models * parseContentForPaste * clean up * ensure crops is an array. * actively enable focal points, so we dont set focal points that aren't used. * only accept files that matches file extensions from Umbraco Settings * Cleanup * Add references from MediaPicker3 to media * corrections from various feedback * remove comment * correct wording * use windowResizeListener Co-authored-by: Warren Buckley <warren@umbraco.com> Co-authored-by: Niels Lyngsø <nsl@umbraco.com> Co-authored-by: Mads Rasmussen <madsr@hey.com> Co-authored-by: Andy Butland <abutland73@gmail.com> Co-authored-by: Bjarke Berg <mail@bergmania.dk> Co-authored-by: Sebastiaan Janssen <sebastiaan@umbraco.com> Co-authored-by: Elitsa Marinovska <elm@umbraco.dk>
242 lines
8.2 KiB
C#
242 lines
8.2 KiB
C#
using Umbraco.Core.PropertyEditors;
|
|
|
|
namespace Umbraco.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>
|
|
/// CheckBox List.
|
|
/// </summary>
|
|
public const string CheckBoxList = "Umbraco.CheckBoxList";
|
|
|
|
/// <summary>
|
|
/// Color Picker.
|
|
/// </summary>
|
|
public const string ColorPicker = "Umbraco.ColorPicker";
|
|
|
|
/// <summary>
|
|
/// EyeDropper 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";
|
|
}
|
|
}
|
|
}
|
|
}
|