Skip to content

Commit a7e9339

Browse files
committed
1 parent c19ee38 commit a7e9339

File tree

6 files changed

+207
-2
lines changed

6 files changed

+207
-2
lines changed

CHANGELOG.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<a name="0.2.3"></a>
2+
### 0.2.3 (2015-03-30)
3+
4+
5+
#### Bug Fixes
6+
7+
* **dep:** correct jquery 2.1.0 component path ([fd03855a](http://github.com/angular-ui/ui-utils/commit/fd03855ac336d00ce19685f4df90b862e2f5c9b4))
8+
* **gh-pages:** wrong download link ([d575856e](http://github.com/angular-ui/ui-utils/commit/d575856e9ce575d40015d532d8a3684521f5d26d), closes [#186](http://github.com/angular-ui/ui-utils/issues/186))
9+
* **scrollfix:** get scrollTop from scrollfix-target ([0724d1d4](http://github.com/angular-ui/ui-utils/commit/0724d1d41593d3d89ecd015026576570360f2f20))
10+
* **travis:** fix jslint errors in mask.js ([41534729](http://github.com/angular-ui/ui-utils/commit/415347293d7200d8fc4a14b99e9744249e6c80da))
11+
12+
13+
#### Features
14+
15+
* **scroll:** Rename ui-scroll* files to scroll* ([9dbb1b18](http://github.com/angular-ui/ui-utils/commit/9dbb1b185ac51bdce834405f7b43e514ad29d978))
16+
17+
18+
#### Breaking Changes
19+
20+
* if you rely on ui-mask to invalidate an empty viewValue
21+
this will no longer work. Please use the required attribute or ng-required
22+
directive to specify whether the input is required.
23+
24+
fixes #198
25+
([781e59e5](http://github.com/angular-ui/ui-utils/commit/781e59e5a1fa72db91eca6a257408ffe72da0c57))
26+
27+
<a name="0.2.2"></a>
28+
### 0.2.2 (2015-02-18)
29+
30+
31+
#### Bug Fixes
32+
33+
* **dep:** correct jquery 2.1.0 component path ([fd03855a](http://github.com/angular-ui/ui-utils/commit/fd03855ac336d00ce19685f4df90b862e2f5c9b4))
34+
* **gh-pages:** wrong download link ([d575856e](http://github.com/angular-ui/ui-utils/commit/d575856e9ce575d40015d532d8a3684521f5d26d), closes [#186](http://github.com/angular-ui/ui-utils/issues/186))
35+
* **scrollfix:** get scrollTop from scrollfix-target ([0724d1d4](http://github.com/angular-ui/ui-utils/commit/0724d1d41593d3d89ecd015026576570360f2f20))
36+
* **travis:** fix jslint errors in mask.js ([41534729](http://github.com/angular-ui/ui-utils/commit/415347293d7200d8fc4a14b99e9744249e6c80da))
37+
38+
39+
#### Features
40+
41+
* **scroll:** Rename ui-scroll* files to scroll* ([9dbb1b18](http://github.com/angular-ui/ui-utils/commit/9dbb1b185ac51bdce834405f7b43e514ad29d978))
42+
43+
44+
#### Breaking Changes
45+
46+
* if you rely on ui-mask to invalidate an empty viewValue
47+
this will no longer work. Please use the required attribute or ng-required
48+
directive to specify whether the input is required.
49+
50+
fixes #198
51+
([781e59e5](http://github.com/angular-ui/ui-utils/commit/781e59e5a1fa72db91eca6a257408ffe72da0c57))
52+
53+
<a name="0.2.1"></a>
54+
### 0.2.1 (2015-01-02)
55+
56+
#### Bug Fixes
57+
58+
* exclude demo code from final build ([5440d6fa](http://github.com/angular-ui/ui-utils/commit/8c91c5e1f4e43baf9bb910e39640586497ac06d0))
59+
60+
<a name="0.2.0"></a>
61+
## 0.2.0 (2014-12-31)
62+
63+
64+
#### Bug Fixes
65+
66+
* **dep:** correct jquery 2.1.0 component path ([fd03855a](http://github.com/angular-ui/ui-utils/commit/fd03855ac336d00ce19685f4df90b862e2f5c9b4))
67+
* **gh-pages:** wrong download link ([d575856e](http://github.com/angular-ui/ui-utils/commit/d575856e9ce575d40015d532d8a3684521f5d26d), closes [#186](http://github.com/angular-ui/ui-utils/issues/186))
68+
* **scrollfix:** get scrollTop from scrollfix-target ([0724d1d4](http://github.com/angular-ui/ui-utils/commit/0724d1d41593d3d89ecd015026576570360f2f20))
69+
* **travis:** fix jslint errors in mask.js ([41534729](http://github.com/angular-ui/ui-utils/commit/415347293d7200d8fc4a14b99e9744249e6c80da))
70+
71+
72+
#### Features
73+
74+
* **scroll:** Rename ui-scroll* files to scroll* ([9dbb1b18](http://github.com/angular-ui/ui-utils/commit/9dbb1b185ac51bdce834405f7b43e514ad29d978))
75+
76+
77+
#### Breaking Changes
78+
79+
* if you rely on ui-mask to invalidate an empty viewValue
80+
this will no longer work. Please use the required attribute or ng-required
81+
directive to specify whether the input is required.
82+
83+
fixes #198
84+
([781e59e5](http://github.com/angular-ui/ui-utils/commit/781e59e5a1fa72db91eca6a257408ffe72da0c57))
85+
86+
<a name="0.1.0"></a>
87+
## 0.1.0 (2013-12-29)
88+
89+
90+
#### Bug Fixes
91+
92+
* **mark:** TypeError: input is undefined ([5440d6fa](http://github.com/angular-ui/ui-utils/commit/5440d6fa8514ee86efc480b0abbf66cf244889ad))
93+
* **publisher:**
94+
* don't throw error when 'dist/sub' don't exist ([bd319236](http://github.com/angular-ui/ui-utils/commit/bd31923668c0ea80311b9dbe7d72bfbe55956325))
95+
* rename sub componenet stuff ([5dcdc379](http://github.com/angular-ui/ui-utils/commit/5dcdc3794efe66112522415aafe9ebe965a274f6))
96+
* **ui-scroll:**
97+
* 'newitems' is not defined. ([796e310a](http://github.com/angular-ui/ui-utils/commit/796e310a26ac43a248c0c732877242890fdda2be))
98+
* 'isArray' is not defined. ([3fd7fc47](http://github.com/angular-ui/ui-utils/commit/3fd7fc47de7d05460a55ca42e4afec60d8e8cc4d))
99+
* 'setOffset' is not defined. ([32140e04](http://github.com/angular-ui/ui-utils/commit/32140e04be176c4b2a5954d2cf8e9ec3c48a6f5c))
100+
101+
102+
#### Features
103+
104+
* **alias:** Created a new ui-alias module for renaming/combining directives ([1582d54e](http://github.com/angular-ui/ui-utils/commit/1582d54ecaf81cb516a28368c0d409b5d5fe7da9))
105+
* **grunt:**
106+
* add 'changelog' task ([b7fed5a6](http://github.com/angular-ui/ui-utils/commit/b7fed5a6026121d0098f892aa0a221c0d9c14d56), closes [#145](http://github.com/angular-ui/ui-utils/issues/145))
107+
* 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))
108+
* new 'serve' task ([a18ed32c](http://github.com/angular-ui/ui-utils/commit/a18ed32ce134acabe7adc79b41e82ed6c52109ed))
109+
* quality code more strict ([332ebff1](http://github.com/angular-ui/ui-utils/commit/332ebff1fdc7edf4d44d64f4796ec2f70e90947f))
110+
* use ngmin in the 'dist' task ([93ba905f](http://github.com/angular-ui/ui-utils/commit/93ba905fadfd4d0970d384f7978e19a3561cea65))
111+
* add ngmin build all subcomponents in dist/sub ([783140ab](http://github.com/angular-ui/ui-utils/commit/783140abe1b8d6c0f842eceb7fc24a0f16d73ca5))
112+
* **publisher:**
113+
* change travis scripts to work with the component-publisher system ([12d97d3b](http://github.com/angular-ui/ui-utils/commit/12d97d3bf88da86875141093fc164f1537d0dfe2))
114+
* add and config component-publisher system ([4cea7ea5](http://github.com/angular-ui/ui-utils/commit/4cea7ea5bb4c47ad74c4f5123121a2896bf6f717))
115+
* **travis:** add sub component auto publishing :) ([0d64db00](http://github.com/angular-ui/ui-utils/commit/0d64db00a5c50816cbf0b022aa5607fee29d5e2a))
116+

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
# angular-ui-utils
2-
Deprecated collection of modules for angular
1+
# Angular UI Utils for JQuery Wrapper
2+
3+
Deprecated collection of modules for angular. Selected version only for an angular jQuery wrapper.

bower.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "angular-ui-jq",
3+
"version": "0.2.3",
4+
"main": "./jq.js",
5+
"dependencies": {
6+
"angular": ">= 1.0.2"
7+
}
8+
}

jq.js

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
/**
2+
* General-purpose jQuery wrapper. Simply pass the plugin name as the expression.
3+
*
4+
* It is possible to specify a default set of parameters for each jQuery plugin.
5+
* Under the jq key, namespace each plugin by that which will be passed to ui-jq.
6+
* Unfortunately, at this time you can only pre-define the first parameter.
7+
* @example { jq : { datepicker : { showOn:'click' } } }
8+
*
9+
* @param ui-jq {string} The $elm.[pluginName]() to call.
10+
* @param [ui-options] {mixed} Expression to be evaluated and passed as options to the function
11+
* Multiple parameters can be separated by commas
12+
* @param [ui-refresh] {expression} Watch expression and refire plugin on changes
13+
*
14+
* @example <input ui-jq="datepicker" ui-options="{showOn:'click'},secondParameter,thirdParameter" ui-refresh="iChange">
15+
*/
16+
angular.module('ui.jq', []).value('uiJqConfig', {}).directive('uiJq', [
17+
'uiJqConfig',
18+
'$timeout',
19+
function uiJqInjectingFunction(uiJqConfig, $timeout) {
20+
'use strict';
21+
return {
22+
restrict: 'A',
23+
compile: function uiJqCompilingFunction(tElm, tAttrs) {
24+
if (!angular.isFunction(tElm[tAttrs.uiJq])) {
25+
throw new Error('ui-jq: The "' + tAttrs.uiJq + '" function does not exist');
26+
}
27+
var options = uiJqConfig && uiJqConfig[tAttrs.uiJq];
28+
return function uiJqLinkingFunction(scope, elm, attrs) {
29+
// If change compatibility is enabled, the form input's "change" event will trigger an "input" event
30+
if (attrs.ngModel && elm.is('select,input,textarea')) {
31+
elm.bind('change', function () {
32+
elm.trigger('input');
33+
});
34+
}
35+
function createLinkOptions() {
36+
var linkOptions = [];
37+
// If ui-options are passed, merge (or override) them onto global defaults and pass to the jQuery method
38+
if (attrs.uiOptions) {
39+
linkOptions = scope.$eval('[' + attrs.uiOptions + ']');
40+
if (angular.isObject(options) && angular.isObject(linkOptions[0])) {
41+
linkOptions[0] = angular.extend({}, options, linkOptions[0]);
42+
}
43+
} else if (options) {
44+
linkOptions = [options];
45+
}
46+
return linkOptions;
47+
}
48+
// Call jQuery method and pass relevant options
49+
function callPlugin() {
50+
$timeout(function () {
51+
elm[attrs.uiJq].apply(elm, createLinkOptions());
52+
}, 0, false);
53+
}
54+
// If ui-refresh is used, re-fire the the method upon every change
55+
if (attrs.uiRefresh) {
56+
scope.$watch(attrs.uiRefresh, function () {
57+
callPlugin();
58+
});
59+
}
60+
callPlugin();
61+
};
62+
}
63+
};
64+
}
65+
]);

jq.min.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "angular-ui-jq",
3+
"version": "0.2.3",
4+
"main": "./jq.js",
5+
"dependencies": {
6+
"angular": ">= 1.0.2"
7+
}
8+
}

0 commit comments

Comments
 (0)