-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/label-property-editors'
- Loading branch information
Showing
30 changed files
with
344 additions
and
39 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
source/nuPickers/PropertyEditors/DotNetLabels/DotLabelsPropertyEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace nuPickers.PropertyEditors.DotNetLabels | ||
{ | ||
using ClientDependency.Core; | ||
|
||
using nuPickers.PropertyEditors; | ||
|
||
using Umbraco.Core.PropertyEditors; | ||
using Umbraco.Web.PropertyEditors; | ||
|
||
// EDITOR UI | ||
[PropertyEditor(PropertyEditorConstants.DotNetLabelsAlias, "nuPickers: DotNet Labels", EmbeddedResource.RootUrl + "Labels/LabelsEditor.html", ValueType = "TEXT")] | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirection.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsEditorController.js.nu")] | ||
|
||
// RESOURCES (all are referenced as EditorResource consumes the others) | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Editor/EditorResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "DataSource/DataSourceResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "RelationMapping/RelationMappingResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "SaveFormat/SaveFormatResource.js.nu")] | ||
|
||
// CONFIG | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "PropertyEditor/PropertyEditorConfig.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "DotNetDataSource/DotNetDataSourceConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfigController.js.nu")] | ||
public class DotNetLabelsPropertyEditor : BasePropertyEditor | ||
{ | ||
protected override PreValueEditor CreatePreValueEditor() | ||
{ | ||
return new DotNetLabelsPreValueEditor(); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
source/nuPickers/PropertyEditors/DotNetLabels/DotNetLabelsPreValueEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace nuPickers.PropertyEditors.DotNetLabels | ||
{ | ||
using Umbraco.Core.PropertyEditors; | ||
|
||
internal class DotNetLabelsPreValueEditor : PreValueEditor | ||
{ | ||
[PreValueField("dataSource", "", EmbeddedResource.RootUrl + "DotNetDataSource/DotNetDataSourceConfig.html", HideLabel = true)] | ||
public string DataSource { get; set; } | ||
|
||
[PreValueField("customLabel", "", EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfig.html", HideLabel = true)] | ||
public string CustomLabel { get; set; } | ||
|
||
/// <summary> | ||
/// currently no ui, but forces controller to be loaded | ||
/// </summary> | ||
[PreValueField("labels", "", EmbeddedResource.RootUrl + "Labels/LabelsConfig.html", HideLabel = true)] | ||
public string Labels { get; set; } | ||
|
||
[PreValueField("layoutDirection", "Layout Direction", EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirectionConfig.html")] | ||
public string LayoutDirection { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
source/nuPickers/PropertyEditors/EnumLabels/EnumLabelsPreValueEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace nuPickers.PropertyEditors.EnumLabels | ||
{ | ||
using Umbraco.Core.PropertyEditors; | ||
|
||
internal class EnumLabelsPreValueEditor : PreValueEditor | ||
{ | ||
[PreValueField("dataSource", "", EmbeddedResource.RootUrl + "EnumDataSource/EnumDataSourceConfig.html", HideLabel = true)] | ||
public string DataSource { get; set; } | ||
|
||
[PreValueField("customLabel", "", EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfig.html", HideLabel = true)] | ||
public string CustomLabel { get; set; } | ||
|
||
/// <summary> | ||
/// currently no ui, but forces controller to be loaded | ||
/// </summary> | ||
[PreValueField("labels", "", EmbeddedResource.RootUrl + "Labels/LabelsConfig.html", HideLabel = true)] | ||
public string Labels { get; set; } | ||
|
||
[PreValueField("layoutDirection", "Layout Direction", EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirectionConfig.html")] | ||
public string LayoutDirection { get; set; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
source/nuPickers/PropertyEditors/EnumLabels/EnumLabelsPropertyEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace nuPickers.PropertyEditors.EnumLabels | ||
{ | ||
using ClientDependency.Core; | ||
|
||
using nuPickers.PropertyEditors; | ||
|
||
using Umbraco.Core.PropertyEditors; | ||
using Umbraco.Web.PropertyEditors; | ||
|
||
// EDITOR UI | ||
[PropertyEditor(PropertyEditorConstants.EnumLabelsAlias, "nuPickers: Enum Labels", EmbeddedResource.RootUrl + "Labels/LabelsEditor.html", ValueType = "TEXT")] | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirection.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsEditorController.js.nu")] | ||
|
||
// RESOURCES (all are referenced as EditorResource consumes the others) | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Editor/EditorResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "DataSource/DataSourceResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "RelationMapping/RelationMappingResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "SaveFormat/SaveFormatResource.js.nu")] | ||
|
||
// CONFIG | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "PropertyEditor/PropertyEditorConfig.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "EnumDataSource/EnumDataSourceConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfigController.js.nu")] | ||
public class EnumLabelsPropertyEditor : BasePropertyEditor | ||
{ | ||
protected override PreValueEditor CreatePreValueEditor() | ||
{ | ||
return new EnumLabelsPreValueEditor(); | ||
} | ||
} | ||
} |
22 changes: 22 additions & 0 deletions
22
source/nuPickers/PropertyEditors/JsonLabels/JsonLabelsPreValueEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace nuPickers.PropertyEditors.JsonLabels | ||
{ | ||
using Umbraco.Core.PropertyEditors; | ||
|
||
internal class JsonLabelsPreValueEditor : PreValueEditor | ||
{ | ||
[PreValueField("dataSource", "", EmbeddedResource.RootUrl + "JsonDataSource/JsonDataSourceConfig.html", HideLabel = true)] | ||
public string DataSource { get; set; } | ||
|
||
[PreValueField("customLabel", "", EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfig.html", HideLabel = true)] | ||
public string CustomLabel { get; set; } | ||
|
||
/// <summary> | ||
/// currently no ui, but forces controller to be loaded | ||
/// </summary> | ||
[PreValueField("labels", "", EmbeddedResource.RootUrl + "Labels/LabelsConfig.html", HideLabel = true)] | ||
public string Labels { get; set; } | ||
|
||
[PreValueField("layoutDirection", "Layout Direction", EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirectionConfig.html")] | ||
public string LayoutDirection { get; set; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
source/nuPickers/PropertyEditors/JsonLabels/JsonLabelsPropertyEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace nuPickers.PropertyEditors.JsonLabels | ||
{ | ||
using ClientDependency.Core; | ||
|
||
using nuPickers.PropertyEditors; | ||
|
||
using Umbraco.Core.PropertyEditors; | ||
using Umbraco.Web.PropertyEditors; | ||
|
||
// EDITOR UI | ||
[PropertyEditor(PropertyEditorConstants.JsonLabelsAlias, "nuPickers: Json Labels", EmbeddedResource.RootUrl + "Labels/LabelsEditor.html", ValueType = "TEXT")] | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirection.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsEditorController.js.nu")] | ||
|
||
// RESOURCES (all are referenced as EditorResource consumes the others) | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Editor/EditorResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "DataSource/DataSourceResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "RelationMapping/RelationMappingResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "SaveFormat/SaveFormatResource.js.nu")] | ||
|
||
// CONFIG | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "PropertyEditor/PropertyEditorConfig.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "JsonDataSource/JsonDataSourceConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfigController.js.nu")] | ||
public class JsonLabelsPropertyEditor : BasePropertyEditor | ||
{ | ||
protected override PreValueEditor CreatePreValueEditor() | ||
{ | ||
return new JsonLabelsPreValueEditor(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
source/nuPickers/PropertyEditors/LuceneLabels/LuceneLabelsPreValueEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
namespace nuPickers.PropertyEditors.LuceneLabels | ||
{ | ||
using Umbraco.Core.PropertyEditors; | ||
|
||
internal class LuceneLabelsPreValueEditor : PreValueEditor | ||
{ | ||
[PreValueField("dataSource", "", EmbeddedResource.RootUrl + "LuceneDataSource/LuceneDataSourceConfig.html", HideLabel = true)] | ||
public string DataSource { get; set; } | ||
|
||
[PreValueField("customLabel", "", EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfig.html", HideLabel = true)] | ||
public string CustomLabel { get; set; } | ||
|
||
/// <summary> | ||
/// currently no ui, but forces controller to be loaded | ||
/// </summary> | ||
[PreValueField("labels", "", EmbeddedResource.RootUrl + "Labels/LabelsConfig.html", HideLabel = true)] | ||
public string Labels { get; set; } | ||
|
||
[PreValueField("layoutDirection", "Layout Direction", EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirectionConfig.html")] | ||
public string LayoutDirection { get; set; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
source/nuPickers/PropertyEditors/LuceneLabels/LuceneLabelsPropertyEditor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
namespace nuPickers.PropertyEditors.LuceneLabels | ||
{ | ||
using ClientDependency.Core; | ||
|
||
using nuPickers.PropertyEditors; | ||
|
||
using Umbraco.Core.PropertyEditors; | ||
using Umbraco.Web.PropertyEditors; | ||
|
||
// EDITOR UI | ||
[PropertyEditor(PropertyEditorConstants.LuceneLabelsAlias, "nuPickers: Lucene Labels", EmbeddedResource.RootUrl + "Labels/LabelsEditor.html", ValueType = "TEXT")] | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "LayoutDirection/LayoutDirection.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsEditorController.js.nu")] | ||
|
||
// RESOURCES (all are referenced as EditorResource consumes the others) | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Editor/EditorResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "DataSource/DataSourceResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "RelationMapping/RelationMappingResource.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "SaveFormat/SaveFormatResource.js.nu")] | ||
|
||
// CONFIG | ||
[PropertyEditorAsset(ClientDependencyType.Css, EmbeddedResource.RootUrl + "PropertyEditor/PropertyEditorConfig.css.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "LuceneDataSource/LuceneDataSourceConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "Labels/LabelsConfigController.js.nu")] | ||
[PropertyEditorAsset(ClientDependencyType.Javascript, EmbeddedResource.RootUrl + "CustomLabel/CustomLabelConfigController.js.nu")] | ||
public class LuceneLabelsPropertyEditor : BasePropertyEditor | ||
{ | ||
protected override PreValueEditor CreatePreValueEditor() | ||
{ | ||
return new LuceneLabelsPreValueEditor(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.