@angular-wave/angular.ts 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +1 -1
- package/dist/angular-ts.esm.js +23 -26
- package/dist/angular-ts.umd.js +23 -26
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/content/docs/_index.md +7 -6
- package/docs/content/docs/directive/blur.md +38 -0
- package/docs/content/docs/directive/channel.md +1 -3
- package/docs/content/docs/directive/class-even.md +3 -3
- package/docs/content/docs/directive/class-odd.md +4 -4
- package/docs/content/docs/directive/class.md +7 -7
- package/docs/content/docs/directive/click.md +38 -0
- package/docs/content/docs/directive/cloak.md +4 -8
- package/docs/content/docs/directive/copy.md +38 -0
- package/docs/content/docs/directive/cut.md +40 -0
- package/docs/content/docs/directive/dblclick.md +38 -0
- package/docs/content/docs/directive/focus.md +38 -0
- package/docs/content/docs/directive/keyup.md +0 -0
- package/docs/content/docs/directive/load.md +0 -0
- package/docs/content/docs/directive/mousedown.md +38 -0
- package/docs/content/docs/directive/mouseenter.md +38 -0
- package/docs/content/docs/directive/mouseleave.md +38 -0
- package/docs/content/docs/directive/mousemove.md +38 -0
- package/docs/content/docs/directive/mouseout.md +38 -0
- package/docs/content/docs/directive/mouseover.md +38 -0
- package/docs/content/docs/directive/mouseup.md +38 -0
- package/docs/layouts/404.html +1 -1
- package/docs/static/examples/eventbus/eventbus.js +1 -1
- package/docs/static/examples/ng-blur/ng-blur.html +9 -0
- package/docs/static/examples/ng-click/ng-click.html +6 -0
- package/docs/static/examples/ng-copy/ng-copy.html +6 -0
- package/docs/static/examples/ng-cut/ng-cut.html +6 -0
- package/docs/static/examples/ng-dblclick/ng-dblclick.html +10 -0
- package/docs/static/examples/ng-focus/ng-focus.html +9 -0
- package/docs/static/examples/ng-mousedown/ng-mousedown.html +6 -0
- package/docs/static/examples/ng-mouseenter/ng-mouseenter.html +4 -0
- package/docs/static/examples/ng-mouseleave/ng-mouseleave.html +4 -0
- package/docs/static/examples/ng-mousemove/ng-mousemove.html +4 -0
- package/docs/static/examples/ng-mouseout/ng-mouseout.html +4 -0
- package/docs/static/examples/ng-mouseover/ng-mouseover.html +4 -0
- package/docs/static/examples/ng-mouseup/ng-mouseup.html +4 -0
- package/package.json +1 -1
- package/src/directive/events/events.js +21 -24
- package/src/directive/observe/{test.html → observe-demo.html} +0 -1
- /package/docs/{static/examples/ng-class/ng-class.js → content/docs/directive/keydown.md} +0 -0
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@angular-wave/angular.ts",
|
|
3
3
|
"description": "A modern, optimized and type-safe version of AngularJS",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.7.
|
|
5
|
+
"version": "0.7.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/angular-ts.esm.js",
|
|
8
8
|
"module": "dist/angular-ts.esm.js",
|
|
@@ -6,31 +6,28 @@ import { directiveNormalize } from "../../shared/utils.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export const ngEventDirectives = {};
|
|
8
8
|
|
|
9
|
-
"click copy cut dblclick focus blur keydown keyup keypress load
|
|
9
|
+
"click copy cut dblclick focus blur keydown keyup keypress load mousedown mouseenter mouseleave mousemove mouseout mouseover mouseup paste submit touchstart touchend touchmove"
|
|
10
10
|
.split(" ")
|
|
11
|
-
.forEach(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
];
|
|
32
|
-
},
|
|
33
|
-
);
|
|
11
|
+
.forEach((eventName) => {
|
|
12
|
+
const directiveName = directiveNormalize(`ng-${eventName}`);
|
|
13
|
+
ngEventDirectives[directiveName] = [
|
|
14
|
+
"$parse",
|
|
15
|
+
"$exceptionHandler",
|
|
16
|
+
/**
|
|
17
|
+
* @param {import("../../core/parse/interface.ts").ParseService} $parse
|
|
18
|
+
* @param {import('../../core/exception-handler.js').ErrorHandler} $exceptionHandler
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
($parse, $exceptionHandler) => {
|
|
22
|
+
return createEventDirective(
|
|
23
|
+
$parse,
|
|
24
|
+
$exceptionHandler,
|
|
25
|
+
directiveName,
|
|
26
|
+
eventName,
|
|
27
|
+
);
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
});
|
|
34
31
|
|
|
35
32
|
/**
|
|
36
33
|
*
|
|
File without changes
|