@bloomreach/hippo-theme
Advanced tools
Comparing version 4.3.2 to 5.0.0
@@ -1,1 +0,1 @@ | ||
!function(){"use strict";angular.module("hippo.theme",["ngAria","ui.bootstrap","ui.tree","localytics.directives","hippo-theme.templates"])}(),angular.module("hippo-theme.templates",["hippo-icon/hippo-icon.tpl.html","tree/tree-include.tpl.html","tree/tree.tpl.html"]),angular.module("hippo-icon/hippo-icon.tpl.html",[]).run(["$templateCache",function(a){"use strict";a.put("hippo-icon/hippo-icon.tpl.html",'<svg ng-class="className"><use xlink:href="{{xlink}}"/></svg>')}]),angular.module("tree/tree-include.tpl.html",[]).run(["$templateCache",function(a){"use strict";a.put("tree/tree-include.tpl.html",'<div ui-tree-handle data-ng-click="selectItem()"><div hippo-tree-template></div></div><ol ui-tree-nodes ng-model="item.items" ng-if="!collapsed"><li ng-repeat="item in item.items" ui-tree-node data-hippo-node-template-url="tree/tree-include.tpl.html" ng-if="displayTreeItem(item)" data-ng-class="{active: selectedItem.id == item.id}" scroll-to-if="selectedItem.id == item.id" data-collapsed="item.collapsed"></li></ol>')}]),angular.module("tree/tree.tpl.html",[]).run(["$templateCache",function(a){"use strict";a.put("tree/tree.tpl.html",'<div ui-tree="options" ng-class="{\n \'drag-enabled\': drag == true,\n \'drag-disabled\': drag == false,\n }" data-drag-enabled="drag"><ol ui-tree-nodes ng-model="treeItems"><li ng-repeat="item in treeItems" ui-tree-node data-hippo-node-template-url="tree/tree-include.tpl.html" data-ng-class="{active: selectedItem.id == item.id}" scroll-to-if="selectedItem.id == item.id" data-collapsed="item.collapsed"></li></ol></div>')}]),function(){"use strict";angular.module("hippo.theme").directive("a",function(){return{restrict:"E",link:function(a,b){b.on("click",function(){b.blur()})}}}).directive("button",function(){return{restrict:"E",link:function(a,b){b.on("click",function(){b.blur()})}}})}(),function(){"use strict";angular.module("hippo.theme").filter("hippoGetByProperty",function(){return function(a,b,c,d){function e(a){for(var g=0;g<a.length;g++)a[g][b]===c&&(f=a[g]),d&&a[g][d]&&e(a[g][d])}var f;return e(a),f}})}(),function(){"use strict";angular.module("hippo.theme").directive("hippoIcon",[function(){return{replace:!0,restrict:"E",scope:{name:"@",position:"@",size:"@"},templateUrl:"hippo-icon/hippo-icon.tpl.html",link:function(a){var b,c="",d="";a.position&&angular.forEach(a.position.split(" "),function(a,b){"center"===a&&(a=0===b?"vcenter":"hcenter"),c+=" hi-"+a}),a.$watchGroup(["name","size"],function(){a.size?(d=" hi-"+a.name+" hi-"+a.size,b="#hi-"+a.name+"-"+a.size):(d+=" hi-"+a.name+" hi-m",b="#hi-"+a.name+"-m"),a.className="hi"+c+d,a.xlink=b})}}}])}(),function(){"use strict";angular.module("hippo.theme").directive("scrollToIf",["$timeout",function(a){var b=function(a){for(a=a.parentElement;a;){if(a.scrollHeight!==a.clientHeight)return a;if(!a.parentElement)return a;a=a.parentElement}return null};return function(c,d,e){c.$watch(e.scrollToIf,function(c){c&&a(function(){var a=b(d[0]),c=parseInt(window.getComputedStyle(a,null).getPropertyValue("padding-top"))||0,e=parseInt(window.getComputedStyle(a,null).getPropertyValue("padding-left"))||0,f=d[0].offsetTop,g=d[0].offsetLeft,h=d[0].clientHeight,i=d[0].clientWidth;f<a.scrollTop?a.scrollTop=f+c:f+h>a.scrollTop+a.clientHeight&&(h>a.clientHeight&&(h-=h-a.clientHeight),a.scrollTop=f+c+h-a.clientHeight),g+i>a.scrollLeft+a.clientWidth&&(a.scrollLeft=g+e)},0)})}}])}(),function(){"use strict";angular.module("hippo.theme").directive("stopPropagation",function(){return{restrict:"A",link:function(a,b){b.bind("click",function(a){a.stopPropagation()})}}})}(),function(){"use strict";angular.module("hippo.theme").directive("hippoTree",function(){return{restrict:"A",transclude:!0,scope:{drag:"=",options:"=callbacks",selectedItem:"=",treeItems:"=items"},templateUrl:"tree/tree.tpl.html",controller:"hippo.theme.tree.TreeCtrl"}}).controller("hippo.theme.tree.TreeCtrl",["$transclude","$scope","$filter",function(a,b,c){function d(a,b){return angular.forEach(a,function(a){b[a.id]=a,d(a.items,b)}),b}function e(a,b){angular.forEach(a,function(a){var c=b[a.id];c&&(c.collapsed=a.collapsed)})}this.renderTreeTemplate=a,b.toggleItem=function(){var a=this.$modelValue;this.toggle(),a.collapsed=!a.collapsed,a.collapsed&&c("hippoGetByProperty")(a.items,"id",b.selectedItem.id,"items")&&b.selectItem(a),angular.isFunction(b.options.toggleItem)&&b.options.toggleItem(a)},b.selectItem=function(a){a||(a=this.$modelValue),b.selectedItem=a,angular.isFunction(b.options.selectItem)&&b.options.selectItem(a)},b.displayTreeItem=function(a){return!angular.isFunction(b.options.displayTreeItem)||b.options.displayTreeItem(a)},b.$watch("treeItems",function(a,b){e(d(b,{}),d(a,{}))})}]).directive("hippoTreeTemplate",function(){return{require:"^hippoTree",link:function(a,b,c,d){d.renderTreeTemplate(a,function(a){b.replaceWith(a)})}}}).directive("hippoNodeTemplateUrl",["$compile","$http","$templateCache",function(a,b,c){return{restrict:"A",link:function(d,e,f){var g=f.hippoNodeTemplateUrl,h=c.get(g);void 0===h?b.get(g).then(function(b){h=b.data,c.put(g,h),a(h)(d,function(a){e.append(a)})}):a(h)(d,function(a){e.append(a)})}}}])}(),function(){"use strict";angular.module("hippo.theme").directive("typeaheadFocus",function(){return{require:"ngModel",link:function(a,b,c,d){b.bind("focus",function(){var a=d.$viewValue;" "==d.$viewValue&&d.$setViewValue(null),d.$setViewValue(" "),d.$setViewValue(a||" ")}),a.emptyOrMatch=function(a,b){return" "==b||a.indexOf(b)>-1}}}})}(); | ||
!function(){"use strict";angular.module("hippo.theme",["ngAria","ui.bootstrap","ui.tree","localytics.directives","hippo-theme.templates"])}(),angular.module("hippo-theme.templates",["hippo-icon/hippo-icon.tpl.html","tree/tree-include.tpl.html","tree/tree.tpl.html"]),angular.module("hippo-icon/hippo-icon.tpl.html",[]).run(["$templateCache",function(e){"use strict";e.put("hippo-icon/hippo-icon.tpl.html",'<svg ng-class="className"><use xlink:href="{{xlink}}"/></svg>')}]),angular.module("tree/tree-include.tpl.html",[]).run(["$templateCache",function(e){"use strict";e.put("tree/tree-include.tpl.html",'<div ui-tree-handle data-ng-click="selectItem()"><div hippo-tree-template></div></div><ol ui-tree-nodes ng-model="item.items" ng-if="!collapsed"><li ng-repeat="item in item.items" ui-tree-node data-hippo-node-template-url="tree/tree-include.tpl.html" ng-if="displayTreeItem(item)" data-ng-class="{active: selectedItem.id == item.id}" scroll-to-if="selectedItem.id == item.id" data-collapsed="item.collapsed"></li></ol>')}]),angular.module("tree/tree.tpl.html",[]).run(["$templateCache",function(e){"use strict";e.put("tree/tree.tpl.html",'<div ui-tree="options" ng-class="{\n \'drag-enabled\': drag == true,\n \'drag-disabled\': drag == false,\n }" data-drag-enabled="drag"><ol ui-tree-nodes ng-model="treeItems"><li ng-repeat="item in treeItems" ui-tree-node data-hippo-node-template-url="tree/tree-include.tpl.html" data-ng-class="{active: selectedItem.id == item.id}" scroll-to-if="selectedItem.id == item.id" data-collapsed="item.collapsed"></li></ol></div>')}]),function(){"use strict";angular.module("hippo.theme").directive("a",function(){return{restrict:"E",link:function(e,t){t.on("click",function(){t.blur()})}}}).directive("button",function(){return{restrict:"E",link:function(e,t){t.on("click",function(){t.blur()})}}})}(),function(){"use strict";angular.module("hippo.theme").filter("hippoGetByProperty",function(){return function(e,n,l,o){var r;return function e(t){for(var i=0;i<t.length;i++)t[i][n]===l&&(r=t[i]),o&&t[i][o]&&e(t[i][o])}(e),r}})}(),function(){"use strict";angular.module("hippo.theme").directive("hippoIcon",[function(){return{replace:!0,restrict:"E",scope:{name:"@",position:"@",size:"@"},templateUrl:"hippo-icon/hippo-icon.tpl.html",link:function(e){var t,i="",n="";e.position&&angular.forEach(e.position.split(" "),function(e,t){"center"===e&&(e=0===t?"vcenter":"hcenter"),i+=" hi-"+e}),e.$watchGroup(["name","size"],function(){t=e.size?(n=" hi-"+e.name+" hi-"+e.size,"#hi-"+e.name+"-"+e.size):(n+=" hi-"+e.name+" hi-m","#hi-"+e.name+"-m"),e.className="hi"+i+n,e.xlink=t})}}}])}(),function(){"use strict";angular.module("hippo.theme").directive("scrollToIf",["$timeout",function(i){return function(e,c,t){e.$watch(t.scrollToIf,function(e){e&&i(function(){var e=function(e){for(e=e.parentElement;e;){if(e.scrollHeight!==e.clientHeight)return e;if(!e.parentElement)return e;e=e.parentElement}return null}(c[0]),t=parseInt(window.getComputedStyle(e,null).getPropertyValue("padding-top"))||0,i=parseInt(window.getComputedStyle(e,null).getPropertyValue("padding-left"))||0,n=c[0].offsetTop,l=c[0].offsetLeft,o=c[0].clientHeight,r=c[0].clientWidth;n<e.scrollTop?e.scrollTop=n+t:n+o>e.scrollTop+e.clientHeight&&(o>e.clientHeight&&(o-=o-e.clientHeight),e.scrollTop=n+t+o-e.clientHeight),l+r>e.scrollLeft+e.clientWidth&&(e.scrollLeft=l+i)},0)})}}])}(),function(){"use strict";angular.module("hippo.theme").directive("stopPropagation",function(){return{restrict:"A",link:function(e,t){t.bind("click",function(e){e.stopPropagation()})}}})}(),function(){"use strict";angular.module("hippo.theme").directive("hippoTree",function(){return{restrict:"A",transclude:!0,scope:{drag:"=",options:"=callbacks",selectedItem:"=",treeItems:"=items"},templateUrl:"tree/tree.tpl.html",controller:"hippo.theme.tree.TreeCtrl"}}).controller("hippo.theme.tree.TreeCtrl",["$transclude","$scope","$filter",function(e,t,i){function n(e,t){return angular.forEach(e,function(e){n((t[e.id]=e).items,t)}),t}this.renderTreeTemplate=e,t.toggleItem=function(){var e=this.$modelValue;this.toggle(),e.collapsed=!e.collapsed,e.collapsed&&i("hippoGetByProperty")(e.items,"id",t.selectedItem.id,"items")&&t.selectItem(e),angular.isFunction(t.options.toggleItem)&&t.options.toggleItem(e)},t.selectItem=function(e){e=e||this.$modelValue,t.selectedItem=e,angular.isFunction(t.options.selectItem)&&t.options.selectItem(e)},t.displayTreeItem=function(e){return!angular.isFunction(t.options.displayTreeItem)||t.options.displayTreeItem(e)},t.$watch("treeItems",function(e,t){!function(e,i){angular.forEach(e,function(e){var t=i[e.id];t&&(t.collapsed=e.collapsed)})}(n(t,{}),n(e,{}))})}]).directive("hippoTreeTemplate",function(){return{require:"^hippoTree",link:function(e,t,i,n){n.renderTreeTemplate(e,function(e){t.replaceWith(e)})}}}).directive("hippoNodeTemplateUrl",["$compile","$http","$templateCache",function(o,r,c){return{restrict:"A",link:function(t,i,e){var n=e.hippoNodeTemplateUrl,l=c.get(n);void 0===l?r.get(n).then(function(e){l=e.data,c.put(n,l),o(l)(t,function(e){i.append(e)})}):o(l)(t,function(e){i.append(e)})}}}])}(),function(){"use strict";angular.module("hippo.theme").directive("typeaheadFocus",function(){return{require:"ngModel",link:function(e,t,i,n){t.bind("focus",function(){var e=n.$viewValue;" "==n.$viewValue&&n.$setViewValue(null),n.$setViewValue(" "),n.$setViewValue(e||" ")}),e.emptyOrMatch=function(e,t){return" "==t||-1<e.indexOf(t)}}}})}(); |
{ | ||
"name": "@bloomreach/hippo-theme", | ||
"version": "4.3.2", | ||
"version": "5.0.0", | ||
"license": "Apache-2.0", | ||
@@ -24,59 +24,60 @@ "description": "Hippo theme is a centralised library containing reusable components for Hippo-related projects.", | ||
"engines": { | ||
"node": ">=8", | ||
"npm": ">=5" | ||
"node": "12", | ||
"npm": "6" | ||
}, | ||
"peerDependencies": { | ||
"angular": "1.5.11", | ||
"angular-animate": "1.5.11", | ||
"angular-aria": "1.5.11", | ||
"angular-chosen-localytics": "1.6.0", | ||
"angular-ui-bootstrap": "2.5.0", | ||
"angular-ui-tree": "2.22.5", | ||
"chosen-js": "1.7.0", | ||
"jquery": "3.2.1" | ||
"angular": "1.7.8", | ||
"angular-animate": "1.7.8", | ||
"angular-aria": "1.7.8", | ||
"angular-chosen-localytics": "1.9.3", | ||
"angular-ui-bootstrap": "2.5.6", | ||
"angular-ui-tree": "2.22.6", | ||
"chosen-js": "1.8.7", | ||
"jquery": "3.4.1" | ||
}, | ||
"devDependencies": { | ||
"angular": "1.5.11", | ||
"angular-animate": "1.5.11", | ||
"angular-aria": "1.5.11", | ||
"angular-chosen-localytics": "1.6.0", | ||
"angular-mocks": "1.5.11", | ||
"angular-route": "1.5.11", | ||
"angular-ui-bootstrap": "2.5.0", | ||
"angular-ui-tree": "2.22.5", | ||
"angular": "1.7.8", | ||
"angular-animate": "1.7.8", | ||
"angular-aria": "1.7.8", | ||
"angular-chosen-localytics": "1.9.3", | ||
"angular-mocks": "1.7.8", | ||
"angular-route": "1.7.8", | ||
"angular-ui-bootstrap": "2.5.6", | ||
"angular-ui-tree": "2.22.6", | ||
"bootstrap-chosen": "1.4.2", | ||
"bootstrap-sass": "3.3.7", | ||
"chosen-js": "1.7.0", | ||
"bootstrap-sass": "3.4.1", | ||
"chosen-js": "1.8.7", | ||
"google-code-prettify": "1.0.5", | ||
"grunt": "1.0.2", | ||
"grunt": "1.0.4", | ||
"grunt-autoprefixer": "3.0.4", | ||
"grunt-cli": "1.2.0", | ||
"grunt-contrib-clean": "1.0.0", | ||
"grunt-cli": "1.3.2", | ||
"grunt-contrib-clean": "2.0.0", | ||
"grunt-contrib-concat": "1.0.1", | ||
"grunt-contrib-connect": "1.0.2", | ||
"grunt-contrib-connect": "2.0.0", | ||
"grunt-contrib-copy": "1.0.0", | ||
"grunt-contrib-csslint": "2.0.0", | ||
"grunt-contrib-cssmin": "2.0.0", | ||
"grunt-contrib-imagemin": "2.0.1", | ||
"grunt-contrib-jshint": "1.1.0", | ||
"grunt-contrib-uglify": "2.3.0", | ||
"grunt-contrib-watch": "1.0.0", | ||
"grunt-html2js": "0.5.1", | ||
"grunt-karma": "2.0.0", | ||
"grunt-contrib-cssmin": "3.0.0", | ||
"grunt-contrib-imagemin": "3.1.0", | ||
"grunt-contrib-jshint": "2.1.0", | ||
"grunt-contrib-uglify": "4.0.1", | ||
"grunt-contrib-watch": "1.1.0", | ||
"grunt-html2js": "0.6.0", | ||
"grunt-karma": "3.0.2", | ||
"grunt-newer": "1.3.0", | ||
"grunt-ngdocs": "0.2.10", | ||
"grunt-sass": "2.1.0", | ||
"grunt-svgmin": "4.0.0", | ||
"grunt-svgstore": "1.0.0", | ||
"jasmine-core": "2.5.2", | ||
"jquery": "3.2.1", | ||
"grunt-sass": "3.1.0", | ||
"grunt-svgmin": "6.0.0", | ||
"grunt-svgstore": "2.0.0", | ||
"jasmine-core": "3.4.0", | ||
"jquery": "3.4.1", | ||
"jshint-stylish": "2.2.1", | ||
"karma": "2.0.0", | ||
"karma-jasmine": "1.1.1", | ||
"karma": "4.2.0", | ||
"karma-jasmine": "2.0.1", | ||
"karma-junit-reporter": "1.2.0", | ||
"karma-phantomjs-launcher": "1.0.4", | ||
"load-grunt-tasks": "3.5.2", | ||
"phantomjs-prebuilt": "2.1.14", | ||
"time-grunt": "1.4.0" | ||
"load-grunt-tasks": "5.1.0", | ||
"node-sass": "4.12.0", | ||
"phantomjs-prebuilt": "2.1.16", | ||
"time-grunt": "2.0.0" | ||
} | ||
} |
@@ -16,3 +16,3 @@ Hippo Theme | ||
$ npm install | ||
$ npm ci | ||
@@ -60,3 +60,3 @@ ## Useful commands | ||
$ npm unlink | ||
This, too, may require super-user privileges on OSX. | ||
@@ -63,0 +63,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1266268
43
9013
1