From 13177367261bdc4673afecf2bf865dc43a9bc518 Mon Sep 17 00:00:00 2001 From: jamiepollock Date: Sat, 24 Jun 2017 16:16:32 -0400 Subject: [PATCH 1/6] Corrected 32x32 image (was 64x64... doh!) --- build/assets/icon/umbraco-gridsettings-32.png | Bin 2948 -> 1335 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/build/assets/icon/umbraco-gridsettings-32.png b/build/assets/icon/umbraco-gridsettings-32.png index 13659550096cae3962f412e1967cc8ab36f10d33..797be2c99738156dcf5b966766c4a0e36ffc1636 100644 GIT binary patch delta 1292 zcmV+n1@roZ7qp;Mn|?}i6KkG3$Kg;BgE{^Wn9c%=rR~LbK%F#1iFa|S2R*cOJv;qBEI50?7Wpwe@FgNuNdLKWqYa~jSF++p2e07Hjkc_~NKU8|o^gNnOmXV$ zkknT9(%Z)w$LRrpB*{1T_sZ1AA=F*1Zz=(RBO^{LZ?Y}&Mq6h# z{*14HH`+QuxCVfVXC8n4yvOI)Xw{tnbjfJy%G0VpuIU}w(roTTszJEM8*Okc*{`R| zk*NX%!l#HUWt2EY@?F#ICQrkmG<5_-Conp2PPyoRADbI5o%U3x(I-hd^#%ZNL9q;A zTq>0Rjp}iH^WjHH3ye+xpvWsAIt+$7CC1lg!3*x?4ejQ3*{+jQi2;kzvG$JHEfg07 z0YDSj)>YWue9@fO3VBaR_)x)yug!u~+#os}s{n&6PvY$PuauZ-eN%~6%XRKnkW-1W zBsDF6-~M*m>})lVB%cC^F^+z7KOSExF}60!942ETw3}On)t?M}?eR@MNfHp5ge>iU zz;f(#X`Ytr0VqG_3s_!uEO_rtn~lvMkR*Em3 z#l>}rLU^4w*=Ee9ma41*R16gWtjaYxPrWV_KNo}~zokgNCqg5h5{e6hvXL6%-0kEBdYl{T-t0u62 zrBj7Oxa2#bu+-~+e00~JE>H9nb88BW&87kz?;AUpFo;wnJ*_i2 zR&BK|p|~(Qh_-YU6AOINeDWZA(0yhob!Mu^dmW9DNyyk5h|MW6`mwpXgy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Bd~PY8yX3c$*LcNDe=-Sd}7_#!BA`p4{ z%4anY^KQ?sJ^@#S0k%4ao$XjCBxs5cC0>41cP zrRDILA}}-7AHS{q)~;2H4(Q1aAEe~Qj`!Z&-&T8*&{Yo1JvMuVu5$Lb)!x+DQTrC8 zWIfs8>sqzw!13G4Z)L`M_~jAH$pdlF1BQwqNL4g-)UN7Td{xkSc|-U1V+`I9iI2e> zLe1@a7GHI&siSt4AXO2M=y^c`-kIolCcFTF)8KJg2gC!H z{rdu67vNF{aH( Date: Sat, 24 Jun 2017 16:19:34 -0400 Subject: [PATCH 2/6] Renamed build.proj to package.proj, updated reference in cmd file. --- build-appveyor.cmd | 2 +- build/{build.proj => package.proj} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename build/{build.proj => package.proj} (100%) diff --git a/build-appveyor.cmd b/build-appveyor.cmd index 9b09be5..affda5f 100644 --- a/build-appveyor.cmd +++ b/build-appveyor.cmd @@ -4,4 +4,4 @@ ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% CALL build\tools\NuGet.exe restore src\Our.Umbraco.GridSettings.sln -CALL "%programfiles(x86)%\MSBuild\14.0\Bin\MsBuild.exe" build\build.proj +CALL "%programfiles(x86)%\MSBuild\14.0\Bin\MsBuild.exe" build\package.proj diff --git a/build/build.proj b/build/package.proj similarity index 100% rename from build/build.proj rename to build/package.proj From 85f625695b4b743fe654f631efef45ee2f2b3389 Mon Sep 17 00:00:00 2001 From: jamiepollock Date: Sat, 24 Jun 2017 16:24:34 -0400 Subject: [PATCH 3/6] Simplified names for icon image file names. --- .../{umbraco-gridsettings-128.png => 128x128.png} | Bin .../icon/{umbraco-gridsettings-32.png => 32x32.png} | Bin .../icon/{umbraco-gridsettings-64.png => 64x64.png} | Bin 3 files changed, 0 insertions(+), 0 deletions(-) rename build/assets/icon/{umbraco-gridsettings-128.png => 128x128.png} (100%) rename build/assets/icon/{umbraco-gridsettings-32.png => 32x32.png} (100%) rename build/assets/icon/{umbraco-gridsettings-64.png => 64x64.png} (100%) diff --git a/build/assets/icon/umbraco-gridsettings-128.png b/build/assets/icon/128x128.png similarity index 100% rename from build/assets/icon/umbraco-gridsettings-128.png rename to build/assets/icon/128x128.png diff --git a/build/assets/icon/umbraco-gridsettings-32.png b/build/assets/icon/32x32.png similarity index 100% rename from build/assets/icon/umbraco-gridsettings-32.png rename to build/assets/icon/32x32.png diff --git a/build/assets/icon/umbraco-gridsettings-64.png b/build/assets/icon/64x64.png similarity index 100% rename from build/assets/icon/umbraco-gridsettings-64.png rename to build/assets/icon/64x64.png From 93cf8d0990e66aa91a3ec7e802adc048b02674ef Mon Sep 17 00:00:00 2001 From: jamiepollock Date: Sat, 24 Jun 2017 16:33:10 -0400 Subject: [PATCH 4/6] Updated icon image paths in package.proj --- build/package.proj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/package.proj b/build/package.proj index d2eef36..8ba1aca 100644 --- a/build/package.proj +++ b/build/package.proj @@ -21,7 +21,7 @@ A backoffice plugin to add additional property editors for Umbraco Grid row & column settings Jamie Pollock https://github.com/jamiepollock/Umbraco-Grid-Settings/graphs/contributors - https://raw.githubusercontent.com/jamiepollock/Umbraco-Grid-Settings/master/build/assets/icon/umbraco-gridsettings-128.png + https://raw.githubusercontent.com/jamiepollock/Umbraco-Grid-Settings/master/build/assets/icon/128x128.png MIT license http://opensource.org/licenses/MIT https://github.com/jamiepollock/Umbraco-Grid-Settings @@ -129,7 +129,7 @@ - + From 17e294d40d38942ad3985563b75147881f57ab23 Mon Sep 17 00:00:00 2001 From: jamiepollock Date: Sat, 24 Jun 2017 16:48:42 -0400 Subject: [PATCH 5/6] Removed docs from project (moved to Wiki) and updated links --- README.md | 25 +-- docs/Advanced-HTML-Attributes-Rendering.md | 173 ------------------- docs/Property-Editors.md | 191 --------------------- docs/Usage.md | 5 - 4 files changed, 4 insertions(+), 390 deletions(-) delete mode 100644 docs/Advanced-HTML-Attributes-Rendering.md delete mode 100644 docs/Property-Editors.md delete mode 100644 docs/Usage.md diff --git a/README.md b/README.md index 07e06a6..903ca5e 100644 --- a/README.md +++ b/README.md @@ -19,34 +19,17 @@ Download the package via one of the following: ### Usage -See [Usage documentation](docs/Usage.md). - -## Current Property editors - -### Background -- [x] Background Repeat -- [x] Background Position -- [x] Background Size - -### Content Alignment -- [ ] Text / Content Alignment - - [x] Horizontal - - [ ] Vertical - -### General -- [ ] General radio check list (with prevalue support) -- [x] Color Picker - +See the [Wiki](../../wiki/)! ## Bugs & Additions -If you believe there are any property editors missing from the project please [raise an issue](https://github.com/jamiepollock/umbraco-grid-settings/issues/new). +If you believe there are any new additions this project can't live without or maybe you found a bug, please [raise an issue](../../issues/new). -If you have an implementation you'd like to please [submit a pull request](https://github.com/jamiepollock/umbraco-grid-settings/pull/new/). +If you have an implementation you'd like to add, please [submit a pull request](../../pull/new/). ## Licensing -Licensed under the [MIT License](https://github.com/jamiepollock/umbraco-grid-settings/blob/master/LICENSE.md). +Licensed under the [MIT License](LICENSE.md). ### Package Logo diff --git a/docs/Advanced-HTML-Attributes-Rendering.md b/docs/Advanced-HTML-Attributes-Rendering.md deleted file mode 100644 index 38d4d8a..0000000 --- a/docs/Advanced-HTML-Attributes-Rendering.md +++ /dev/null @@ -1,173 +0,0 @@ -# Advanced HTML Attributes Rendering Guide - -This section is only for advanced use cases when custom logic is required to render Umbraco Grid settings. This is not required to use the property editors out of the box. Having said that, we hope you'll try this stuff out. It's pretty cool! :) - -The primary purpose of this guide is to walk through the usage of the HTMLHelper extension methods which can be found in the `Our.Umbraco.GridSettings.Web` namespace. - -**Note**: at the moment this documentation is mainly intended for Settings rather than Styles. Although Styles are also rendered by this code there is no advanced logic behind their rendering simply outputting the key value pairs from Umbraco. - -## Basic usage: Replacing the Umbraco helper methods in a Grid template - -This usage guide will walk you through the most basic of usages. Replacing the existing `RenderElementAttributes(dynamic contentItem)` calls in a Grid razor template. It should be noted that the outcome of this replace will be the same as the RenderElementAttributes. - - 1. Locate your Grid Razor template. This should be in `~/Views/Partials/Grid/`. - 2. Add a `using` statement to `Our.Umbraco.GridSettings.Web` at the top of the chosen Razor file. - 3. Replace the following: - - -`@RenderElementAttributes(area)` to `@Html.RenderGridSettingsAttributes(area as JObject)` - -and - -`@RenderElementAttributes(row)` to `@Html.RenderGridSettingsAttributes(area as JObject)` - - 4. Remove the `@functions` block at the bottom of the page. - -## Intermediate Usage: Adding in custom render logic - -The `@Html.RenderGridSettingsAttributes(JObject)` comes with several optional overloads for tailoring attribute rendering. - - - *attributesResolver*: An `IGridSettingsAttributesResolver` which can group similarly named attributes together into a group so their values can rendered under one attribute. (eg. class) - - - *attributeValueResolvers*: An `IDictionary` collection of resolvers that provide logic on how a grouped attribute's value should be rendered. For example if one attribute needed to be rendered differently from other attributes simply specify its group attribute key and then provide a `IGridSettingsAttributeValueResolver` to handle the rendering. - - - *defaultAttributeValueResolver*: The default `IGridSettingsAttributeValueResolver` which is used if no key can be found for an attribute in the *attributeValueResolvers* dictionary. - -### Using an IGridSettingsAttributesResolver - -Out of the box, there is actually an `IGridSettingsAttributesResolver` which supports grouping of Settings. - -Given the following setup, let's say we have 3 properties we wish to combine together into the `class` attribute: - - 1. class_background-color: "color-scheme-red" - 2. class_text-alignment: "align-center" - 3. class_padding: "padding-medium" - -We've set up a convention of prefixing our settings with the intended HTML attribute name. Now let's bundle these together. - -Firstly we'll need to add an `IGridSettingsAttributesResolver` to our `@Html.RenderGridSettingsAttributes(JObject)` call. Below our using statements add the following code block. - -``` c# -@{ - var attributesResolver = new Our.Umbraco.GridSettings.Resolvers.GroupByPrefixTokenGridSettingsAttributesResolver("_"); -} -``` - -This will look for the token `"_"` in our property keys and group similar keys together. In this case, "class". - -**Note**: If no `"_"` is found the key is added to the collection as a group of one value. - -Now add the `attributesResolver` to our HTML helper like so: - -``` c# - -`@Html.RenderGridSettingsAttributes(row as JObject, attributesResolver)` - -`@Html.RenderGridSettingsAttributes(area as JObject, attributesResolver)` - -``` - -**Note**: the *attributesResolver* will probably need to be passed as a parameter into the `renderRow()` helper as variables created at the top of the file will not be in scope to helper functions. - -This should now group the values of these properties together into a single class attribute, then concatenate the values together broken up by whitespace. - -``` html -
-... -
-``` - -### Using IGridSettingsAttributeValueResolvers - -If the default behaviour of separating grouped values by whitespace isn't the desired behaviour for one or all of your properties using the `attributeValueResolvers` or `defaultValueResolver` overloads could be the step you need. - -For example creating a value resolver for a data attribute could be as simple as using the `StringConcatGridSettingValueResolver` with a different token to create a basic CSV attribute. - -Extending the example above: - - 1. class_background-color: "color-scheme-red" - 2. class_text-alignment: "align-center" - 3. class_padding: "padding-medium" - 4. data-csv_1: "first" - 5. data-csv_2: "second" - 6. data-csv_3: "third" - -``` c# -@using Our.Umbraco.GridSettings.Resolvers; - -@{ - var attributesResolver = new GroupByPrefixTokenGridSettingsAttributesResolver("_"); - - var attributeValueResolvers = new Dictionary() { - {"data-csv", new StringConcatGridSettingValueResolver(",") } - }; -} -``` - -``` c# - -`@Html.RenderGridSettingsAttributes(row as JObject, attributesResolver, attributeValueResolvers)` - -`@Html.RenderGridSettingsAttributes(area as JObject, attributesResolver, attributeValueResolvers)` - -``` - -This should target the data-csv attribute while leaving the class attribute alone. Producing the following HTML. - -``` html -
-... -
-``` - -**Note**: In theory far more advanced Value Resolvers could be made potentially rendering JSON in attributes if needed. - -### Override the default IGridSettingsAttributeValueResolver - -As mentioned above the default `IGridSettingsAttributeValueResolver` can also be overwritten using the *defaultAttributeValueResolver*. Such cases should be carefully considered as this could have implications on our attributes being resolved if no attribute value resolver is set. - -### Recommended Usage - -IF you're intending to provide multiple overloads to the `@Html.RenderGridSettingsAttributes` it might be a better option to create a `GridSettingsAttributesService` at the top of the razor file with the overloads and pass the service in instead. - -For an example of recommended usage have a look at this [gist of Bootstrap3.cshtml](https://gist.github.com/jamiepollock/f2ed2be6744a8bd0f6b48cdd22fbed5a). - -## Advanced - -Of course if the default implementation doesn't give you enough control or you're using a grid implementation that doesn't revolve around `JObject`. You can always implement your own `IGridSettingsAttributeService` class and pass that in like so: - -``` c# -@using Our.Umbraco.GridSettings; - -@{ - IGridSettingsAttributeService gridSettingService = new My.Website.CustomGridSettingsAttributeService(); -} -``` - -``` c# - -`@Html.RenderGridSettingsAttributes(row as JObject, gridSettingService)` - -`@Html.RenderGridSettingsAttributes(area as JObject, gridSettingService)` - -``` - -The most important stipulation is that the service must implement the same type as the first parameter. In theory a IGridSettingsAttributeService could be created to work in conjunction with [Skybrud Umbraco GridData](https://our.umbraco.org/projects/developer-tools/skybrudumbracogriddata/)'s `GridElement`. - -Partial markup based on the [Skybrud Umbraco GridData demo project](https://github.com/abjerner/UmbracoGridDataDemo/). - -``` c# -@using Our.Umbraco.GridSettings; - -@{ - IGridSettingsAttributeService gridSettingService = new My.Website.SkybrudGridDataGridSettingsAttributeService(); -} -``` - -``` c# - -`@Html.RenderGridSettingsAttributes(Model, gridSettingService)` - -`@Html.RenderGridSettingsAttributes(area, gridSettingService)` - -``` diff --git a/docs/Property-Editors.md b/docs/Property-Editors.md deleted file mode 100644 index f5881ee..0000000 --- a/docs/Property-Editors.md +++ /dev/null @@ -1,191 +0,0 @@ -# Property Editors Guide - -For the most up to date information on adding additional grid row & column configuration checkout the [Our Umbraco documentation](https://our.umbraco.org/documentation/getting-started/backoffice/property-editors/built-in-property-editors/grid-layout/settings-and-styles). - -This documentation will assume you will know how to add settings to a grid row or column. - -**NOTE**: Capabilities for core grid settings has changed from version to version (especially v7.5.4+). Please be sure to check compatability will your version of Umbraco. - -## Sample Usage - -Here are sample usages of the currently supported property editors. You are not limited to simply these usages though. Be creative! :) - -### Background Position - - - **Introduced in**: [v0.1.0-beta](https://github.com/jamiepollock/umbraco-grid-settings/releases/tag/v0.1.0-beta) - - **Typical CSS Property**: background-position - - **Supported values**: - - **Vertical**: top, center & bottom - - **Horizontal**: left, center & right - - **Editor**: 3×3 grid - -```json -... - { - "label": "Set a background position", - "description": "Set a background position", - "key": "background-position", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/BackgroundPosition/view.html" - } -... -``` - -### Background Repeat - - - **Introduced in**: [v0.1.0-beta](https://github.com/jamiepollock/umbraco-grid-settings/releases/tag/v0.1.0-beta) - - **Typical CSS Property**: background-repeat - - **Supported values**: - - no-repeat - - repeat - - repeat-x - - repeat-y - - **Editor**: Check Radio List - -```json -... - { - "label": "Set background repetition", - "description": "Set background repetition", - "key": "background-repeat", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/BackgroundRepeat/view.html" - } -... -``` - -### Background Size - - - **Introduced in**: [v0.1.0-beta](https://github.com/jamiepollock/umbraco-grid-settings/releases/tag/v0.1.0-beta) - - **Typical CSS Property**: background-size - - **Supported values**: - - auto - - cover - - contain - - **Editor**: Check Radio List - -```json -... - { - "label": "Set background size", - "description": "Set background size", - "key": "background-size", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/BackgroundSize/view.html" - } -... -``` - -### Color Picker - - - **Introduced in**: [v0.1.0-beta](https://github.com/jamiepollock/umbraco-grid-settings/releases/tag/v0.1.0-beta) - - **Typical CSS Property**: background-color, color (anything which expects a hexcode color) - - **Supported values**: Developer provided prevalues (see below). The value or string must be a valid hexcode color value. Non-hexcode color values are not supported. - - **Editor**: Simple color picker (reupurposing the Approved Color Picker editor) - -**Note**: Prior to v7.5.4 grid prevalues only supported a string array. From v7.5.4+ prevalues support a mixture of label/value objects and strings. - -#### Background Color Picker - -```json - { - "label": "Set background color", - "description": "Set the row background color", - "key": "background-color", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/ColorPicker/view.html", - "prevalues": [ - { - "label": "Blue", - "value": "#0000ff" - }, - { - "label": "Green", - "value": "#00ff00" - }, - "#ff0000" - ] - }, -``` - -#### Foreground Color Picker - -```json - { - "label": "Set text color", - "description": "Set the row text color", - "key": "color", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/ColorPicker/view.html", - "prevalues": [ - { - "label": "Black", - "value": "#000000" - }, - { - "label": "White", - "value": "#ffffff" - }, - "#808080" - ] - } -``` - -### Text Align - - - **Introduced in**: [v0.1.0-beta](https://github.com/jamiepollock/umbraco-grid-settings/releases/tag/v0.1.0-beta) - - **Typical CSS Property**: text-align - - **Supported values**: - - left - - right - - center - - justify - - **Editor**: Check Radio List - -```json -... - { - "label": "Set text alignment", - "description": "Set text alignment", - "key": "text-align", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/TextAlign/view.html" - } -... -``` - -### Class Color Picker - -Class Color Picker is for cases where an developer will want to return a class value rather than a hexcode color. - -This could be used in cases where the hexcode color is simply a representation of the idea of what that class looks like. - -Basicially it will return "green" rather than "#00ff00" as its value. This means the label & value are switched from what is used in the Color Picker property editor. - - - **Introduced in**: [v0.2.0](https://github.com/jamiepollock/umbraco-grid-settings/releases/tag/v0.2.0) - - **Typical CSS Property**: class - - **Supported values**: Developer provided prevalues (see below). - - label: A valid hexcode color value. Non-hexcode color values are not supported. - - value: The class value to be rendered in Grid markup - - **Editor**: Simple color picker (reupurposing the Approved Color Picker editor) - -**Note**: This property editor only supports key value pair prevalues and there is only available for Umbraco v7.5.4. Providing string values will produce a handled error. - -#### Background Color Picker - -```json - { - "label": "Set background color", - "description": "Set the row background color", - "key": "background-color", - "view": "/App_Plugins/Our.Umbraco.GridSettings/editors/ClassColorPicker/view.html", - "prevalues": [ - { - "label": "#0000ff", - "value": "Blue" - }, - { - "label": "#00ff00", - "value": "Green" - }, - { - "label": "#ff0000", - "value": "Red" - } - ] - }, -``` \ No newline at end of file diff --git a/docs/Usage.md b/docs/Usage.md deleted file mode 100644 index becf591..0000000 --- a/docs/Usage.md +++ /dev/null @@ -1,5 +0,0 @@ -# Documentation - -For documentation on available property editors & their configuration, please see the [Property Editors Guide](Property-Editors.md). - -For documentation on the Rendering HTML Attributes please see the [Advanced HTML Attributes Rendering guide](Advanced-HTML-Attributes-Rendering.md). \ No newline at end of file From 7bd00b7691a75c486e1cb5fe346953e88a751e52 Mon Sep 17 00:00:00 2001 From: jamiepollock Date: Sat, 24 Jun 2017 18:28:37 -0400 Subject: [PATCH 6/6] Removed prefix tag for v0.3.0 release. --- appveyor.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 6ec30b2..7900bac 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,7 +14,6 @@ branches: # UMBRACO_PACKAGE_PRERELEASE_SUFFIX if a rtm release build this should be blank, otherwise if empty will default to alpha # example UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta init: - - set UMBRACO_PACKAGE_PRERELEASE_SUFFIX=beta test: assemblies: