Skip to content

Commit

Permalink
add unique filter
Browse files Browse the repository at this point in the history
  • Loading branch information
damienklinnert committed Feb 9, 2014
1 parent 6edc951 commit 5b6a293
Show file tree
Hide file tree
Showing 12 changed files with 2,207 additions and 5 deletions.
19 changes: 19 additions & 0 deletions bower_components/angular-ui-utils/.bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "angular-ui-utils",
"version": "0.1.1",
"main": "./ui-utils.js",
"dependencies": {
"angular": ">= 1.0.2"
},
"homepage": "https://github.com/angular-ui/ui-utils",
"_release": "0.1.1",
"_resolution": {
"type": "version",
"tag": "v0.1.1",
"commit": "e25586548ff0a61df63bd4eb8fdc0715b1a87e72"
},
"_source": "git://github.com/angular-ui/ui-utils.git",
"_target": "~0.1.1",
"_originalSource": "angular-ui-utils",
"_direct": true
}
5 changes: 5 additions & 0 deletions bower_components/angular-ui-utils/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
# blacklist the bower branch
branches:
only:
- master
31 changes: 31 additions & 0 deletions bower_components/angular-ui-utils/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<a name="v0.1.0"></a>
## v0.1.0 (2013-12-29)


#### Bug Fixes

* **mark:** TypeError: input is undefined ([5440d6fa](http://github.com/angular-ui/ui-utils/commit/5440d6fa8514ee86efc480b0abbf66cf244889ad))
* **publisher:**
* don't throw error when 'dist/sub' don't exist ([bd319236](http://github.com/angular-ui/ui-utils/commit/bd31923668c0ea80311b9dbe7d72bfbe55956325))
* rename sub componenet stuff ([5dcdc379](http://github.com/angular-ui/ui-utils/commit/5dcdc3794efe66112522415aafe9ebe965a274f6))
* **ui-scroll:**
* 'newitems' is not defined. ([796e310a](http://github.com/angular-ui/ui-utils/commit/796e310a26ac43a248c0c732877242890fdda2be))
* 'isArray' is not defined. ([3fd7fc47](http://github.com/angular-ui/ui-utils/commit/3fd7fc47de7d05460a55ca42e4afec60d8e8cc4d))
* 'setOffset' is not defined. ([32140e04](http://github.com/angular-ui/ui-utils/commit/32140e04be176c4b2a5954d2cf8e9ec3c48a6f5c))


#### Features

* **alias:** Created a new ui-alias module for renaming/combining directives ([1582d54e](http://github.com/angular-ui/ui-utils/commit/1582d54ecaf81cb516a28368c0d409b5d5fe7da9))
* **grunt:**
* add 'changelog' task ([b7fed5a6](http://github.com/angular-ui/ui-utils/commit/b7fed5a6026121d0098f892aa0a221c0d9c14d56), closes [#145](http://github.com/angular-ui/ui-utils/issues/145))
* use Angular UI Publisher ([3c209713](http://github.com/angular-ui/ui-utils/commit/3c20971307e50741f88da21cb638077237e56da2), closes [#153](http://github.com/angular-ui/ui-utils/issues/153))
* new 'serve' task ([a18ed32c](http://github.com/angular-ui/ui-utils/commit/a18ed32ce134acabe7adc79b41e82ed6c52109ed))
* quality code more strict ([332ebff1](http://github.com/angular-ui/ui-utils/commit/332ebff1fdc7edf4d44d64f4796ec2f70e90947f))
* use ngmin in the 'dist' task ([93ba905f](http://github.com/angular-ui/ui-utils/commit/93ba905fadfd4d0970d384f7978e19a3561cea65))
* add ngmin build all subcomponents in dist/sub ([783140ab](http://github.com/angular-ui/ui-utils/commit/783140abe1b8d6c0f842eceb7fc24a0f16d73ca5))
* **publisher:**
* change travis scripts to work with the component-publisher system ([12d97d3b](http://github.com/angular-ui/ui-utils/commit/12d97d3bf88da86875141093fc164f1537d0dfe2))
* add and config component-publisher system ([4cea7ea5](http://github.com/angular-ui/ui-utils/commit/4cea7ea5bb4c47ad74c4f5123121a2896bf6f717))
* **travis:** add sub component auto publishing :) ([0d64db00](http://github.com/angular-ui/ui-utils/commit/0d64db00a5c50816cbf0b022aa5607fee29d5e2a))

8 changes: 8 additions & 0 deletions bower_components/angular-ui-utils/bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "angular-ui-utils",
"version": "0.1.1",
"main": "./ui-utils.js",
"dependencies": {
"angular": ">= 1.0.2"
}
}
68 changes: 68 additions & 0 deletions bower_components/angular-ui-utils/ui-utils-ieshiv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/**
* angular-ui-utils - Swiss-Army-Knife of AngularJS tools (with no external dependencies!)
* @version v0.1.1 - 2014-02-05
* @link http://angular-ui.github.com
* @license MIT License, http://www.opensource.org/licenses/MIT
*/
// READ: http://docs-next.angularjs.org/guide/ie
// element tags are statically defined in order to accommodate lazy-loading whereby directives are also unknown

// The ieshiv takes care of our ui.directives and AngularJS's ng-view, ng-include, ng-pluralize, ng-switch.
// However, IF you have custom directives that can be used as html tags (yours or someone else's) then
// add list of directives into <code>window.myCustomTags</code>

// <!--[if lte IE 8]>
// <script>
// window.myCustomTags = [ 'yourCustomDirective', 'somebodyElsesDirective' ]; // optional
// </script>
// <script src="build/angular-ui-ieshiv.js"></script>
// <![endif]-->

(function (window, document) {
"use strict";

var tags = [ "ngInclude", "ngPluralize", "ngView", "ngSwitch", "uiCurrency", "uiCodemirror", "uiDate", "uiEvent",
"uiKeypress", "uiKeyup", "uiKeydown", "uiMask", "uiMapInfoWindow", "uiMapMarker", "uiMapPolyline",
"uiMapPolygon", "uiMapRectangle", "uiMapCircle", "uiMapGroundOverlay", "uiModal", "uiReset",
"uiScrollfix", "uiSelect2", "uiShow", "uiHide", "uiToggle", "uiSortable", "uiTinymce"
];

window.myCustomTags = window.myCustomTags || []; // externally defined by developer using angular-ui directives
tags.push.apply(tags, window.myCustomTags);

var toCustomElements = function (str) {
var result = [];
var dashed = str.replace(/([A-Z])/g, function ($1) {
return " " + $1.toLowerCase();
});
var tokens = dashed.split(" ");

// If a token is just a single name (i.e. no namespace) then we juse define the elements the name given
if (tokens.length === 1) {
var name = tokens[0];

result.push(name);
result.push("x-" + name);
result.push("data-" + name);
} else {
var ns = tokens[0];
var dirname = tokens.slice(1).join("-");

// this is finite list and it seemed senseless to create a custom method
result.push(ns + ":" + dirname);
result.push(ns + "-" + dirname);
result.push("x-" + ns + "-" + dirname);
result.push("data-" + ns + "-" + dirname);
}
return result;
};

for (var i = 0, tlen = tags.length; i < tlen; i++) {
var customElements = toCustomElements(tags[i]);
for (var j = 0, clen = customElements.length; j < clen; j++) {
var customElement = customElements[j];
document.createElement(customElement);
}
}

})(window, document);
7 changes: 7 additions & 0 deletions bower_components/angular-ui-utils/ui-utils-ieshiv.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5b6a293

Please sign in to comment.