diff --git a/UmbracoPackages/App_Plugins/brothers.uCare/uCare.css b/UmbracoPackages/App_Plugins/brothers.uCare/uCare.css index 64ef0b5..85ffd43 100644 --- a/UmbracoPackages/App_Plugins/brothers.uCare/uCare.css +++ b/UmbracoPackages/App_Plugins/brothers.uCare/uCare.css @@ -118,7 +118,7 @@ padding: 4px 0; } -.umb-modalcolumn-header h1 +.umb-modalcolumn-header h1, .umb-overlay__title { font-weight: 700; font-size: 15px; @@ -172,7 +172,8 @@ input.umb-editor-header__name-input margin-left: 220px; } -.form-search .search-input +.form-search .search-input, +input.search-query { font-weight: 400; font-size: 14px; @@ -183,7 +184,7 @@ input.umb-editor-header__name-input box-shadow: 0 1px 1px 0 rgba(0,0,0,.10); } -.form-search .inner-addon [class*=" icon-"], .form-search .inner-addon [class^="icon-"] +.form-search .inner-addon [class*=" icon-"], .form-search .inner-addon [class^="icon-"], .form-search .icon { top: 5px; left: auto; @@ -357,7 +358,7 @@ input.umb-editor-header__name-input -/* NOTIFICATIONS +/* PAGINATION /* ********************************************************** /* TODO desc /* ********************************************************** */ diff --git a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css index 5df10fd..2d47820 100644 --- a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css +++ b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.css @@ -578,8 +578,45 @@ un-config } -/* data type overrides */ +/* picker overlay */ +.unesting-actions.umb-actions-child .icon +{ + font-size: 25px; + min-width: 25px; +} + +.unesting-actions.umb-actions-child .menu-label +{ + margin-left: 8px; +} + +.unesting-picker .form-search +{ + position: relative; +} + +.unesting-picker input.search-query +{ + font-weight: 400; + font-size: 14px; + border-color: transparent; + border-radius: 18px; + height: 40px; + padding-top: 6px; + box-shadow: 0 1px 1px 0 rgba(0,0,0,.10); + background: #faf8f8; +} + +.unesting-picker .form-search .icon-search +{ + top: 10px; + left: auto; + right: 22px; +} + + +/* data type overrides */ .unesting-item[unesting-alias="headline"] .unesting-text-partial[unesting-index="0"], .unesting-item[unesting-alias="newsletterHeadline"] .unesting-text-partial[unesting-index="0"] { diff --git a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js index 3b114e6..9651774 100644 --- a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js +++ b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.js @@ -146,9 +146,10 @@ angular.module("umbraco").controller("brothers.uNesting.PropertyEditorController $scope.overlayMenu = { show: false, style: {}, - filter: $scope.scaffolds.length > 12 ? true : false, + filter: true, // $scope.scaffolds.length > 12 ? true : false, orderBy: "$index", - view: "itempicker", + view: "/App_Plugins/brothers.uNesting/uNesting.picker.html", + position: 'left', event: $event, clickPasteItem: function (item) { @@ -177,8 +178,10 @@ angular.module("umbraco").controller("brothers.uNesting.PropertyEditorController _.each($scope.scaffolds, function (scaffold) { $scope.overlayMenu.availableItems.push({ + scaffold: scaffold, alias: scaffold.contentTypeAlias, name: scaffold.contentTypeName, + description: scaffold.documentType.description, icon: iconHelper.convertFromLegacyIcon(scaffold.icon) }); }); @@ -188,7 +191,7 @@ angular.module("umbraco").controller("brothers.uNesting.PropertyEditorController return; } - $scope.overlayMenu.size = $scope.overlayMenu.availableItems.length > 6 ? "medium" : "small"; + $scope.overlayMenu.size = "medium"; // $scope.overlayMenu.availableItems.length > 6 ? "medium" : "small"; $scope.overlayMenu.pasteItems = []; var availableNodesForPaste = clipboardService.retriveDataOfType("elementType", contentTypeAliases); @@ -675,4 +678,41 @@ angular.module("umbraco").controller("brothers.uNesting.PropertyEditorController return item['uNestingHide'] === '1'; }; } -]); \ No newline at end of file +]); + + + + + +angular.module("umbraco").controller("brothers.uNesting.ItemPickerOverlay", function ($scope, localizationService) +{ + + function onInit() + { + $scope.model.hideSubmitButton = true; + + console.info($scope.model); + + if (!$scope.model.title) + { + localizationService.localize("defaultdialogs_selectItem").then(function (value) + { + $scope.model.title = value; + }); + } + + if (!$scope.model.orderBy) + { + $scope.model.orderBy = "name"; + } + } + + $scope.selectItem = function (item) + { + $scope.model.selectedItem = item; + $scope.submitForm($scope.model); + }; + + onInit(); + +}); diff --git a/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.picker.html b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.picker.html new file mode 100644 index 0000000..29001a3 --- /dev/null +++ b/UmbracoPackages/App_Plugins/brothers.uNesting/uNesting.picker.html @@ -0,0 +1,48 @@ +
+ + + +
+
Paste from clipboard
+ +
+ + + +
+
Create new
+
+ + +
diff --git a/UmbracoPackages/UmbracoPackages.csproj b/UmbracoPackages/UmbracoPackages.csproj index fe8ae59..25e8c75 100644 --- a/UmbracoPackages/UmbracoPackages.csproj +++ b/UmbracoPackages/UmbracoPackages.csproj @@ -402,6 +402,7 @@ +