@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.
Files changed (44) hide show
  1. package/Makefile +1 -1
  2. package/dist/angular-ts.esm.js +23 -26
  3. package/dist/angular-ts.umd.js +23 -26
  4. package/dist/angular-ts.umd.min.js +1 -1
  5. package/docs/content/docs/_index.md +7 -6
  6. package/docs/content/docs/directive/blur.md +38 -0
  7. package/docs/content/docs/directive/channel.md +1 -3
  8. package/docs/content/docs/directive/class-even.md +3 -3
  9. package/docs/content/docs/directive/class-odd.md +4 -4
  10. package/docs/content/docs/directive/class.md +7 -7
  11. package/docs/content/docs/directive/click.md +38 -0
  12. package/docs/content/docs/directive/cloak.md +4 -8
  13. package/docs/content/docs/directive/copy.md +38 -0
  14. package/docs/content/docs/directive/cut.md +40 -0
  15. package/docs/content/docs/directive/dblclick.md +38 -0
  16. package/docs/content/docs/directive/focus.md +38 -0
  17. package/docs/content/docs/directive/keyup.md +0 -0
  18. package/docs/content/docs/directive/load.md +0 -0
  19. package/docs/content/docs/directive/mousedown.md +38 -0
  20. package/docs/content/docs/directive/mouseenter.md +38 -0
  21. package/docs/content/docs/directive/mouseleave.md +38 -0
  22. package/docs/content/docs/directive/mousemove.md +38 -0
  23. package/docs/content/docs/directive/mouseout.md +38 -0
  24. package/docs/content/docs/directive/mouseover.md +38 -0
  25. package/docs/content/docs/directive/mouseup.md +38 -0
  26. package/docs/layouts/404.html +1 -1
  27. package/docs/static/examples/eventbus/eventbus.js +1 -1
  28. package/docs/static/examples/ng-blur/ng-blur.html +9 -0
  29. package/docs/static/examples/ng-click/ng-click.html +6 -0
  30. package/docs/static/examples/ng-copy/ng-copy.html +6 -0
  31. package/docs/static/examples/ng-cut/ng-cut.html +6 -0
  32. package/docs/static/examples/ng-dblclick/ng-dblclick.html +10 -0
  33. package/docs/static/examples/ng-focus/ng-focus.html +9 -0
  34. package/docs/static/examples/ng-mousedown/ng-mousedown.html +6 -0
  35. package/docs/static/examples/ng-mouseenter/ng-mouseenter.html +4 -0
  36. package/docs/static/examples/ng-mouseleave/ng-mouseleave.html +4 -0
  37. package/docs/static/examples/ng-mousemove/ng-mousemove.html +4 -0
  38. package/docs/static/examples/ng-mouseout/ng-mouseout.html +4 -0
  39. package/docs/static/examples/ng-mouseover/ng-mouseover.html +4 -0
  40. package/docs/static/examples/ng-mouseup/ng-mouseup.html +4 -0
  41. package/package.json +1 -1
  42. package/src/directive/events/events.js +21 -24
  43. package/src/directive/observe/{test.html → observe-demo.html} +0 -1
  44. /package/docs/{static/examples/ng-class/ng-class.js → content/docs/directive/keydown.md} +0 -0
@@ -0,0 +1,6 @@
1
+ <section ng-app>
2
+ <button class="btn btn-dark" ng-init="count = 0" ng-click="count = count + 1">
3
+ Increment
4
+ </button>
5
+ <span> count: {{count}} </span>
6
+ </section>
@@ -0,0 +1,6 @@
1
+ <section ng-app>
2
+ <div class="border p-2" ng-copy="copied = true" contenteditable="true">
3
+ Copy text from this box via Ctrl-C
4
+ </div>
5
+ {{ copied }}
6
+ </section>
@@ -0,0 +1,6 @@
1
+ <section ng-app>
2
+ <div class="border p-2" ng-cut="cut = true" contenteditable="true">
3
+ Cut text from this box via Ctrl-X
4
+ </div>
5
+ {{ cut }}
6
+ </section>
@@ -0,0 +1,10 @@
1
+ <section ng-app>
2
+ <button
3
+ class="btn btn-dark"
4
+ ng-init="count = 0"
5
+ ng-dblclick="count = count + 1"
6
+ >
7
+ Increment
8
+ </button>
9
+ <span> count: {{count}} </span>
10
+ </section>
@@ -0,0 +1,9 @@
1
+ <section ng-app>
2
+ <input
3
+ type="text"
4
+ ng-focus="count = count + 1"
5
+ ng-init="count = 0"
6
+ placeholder="Click or tab into me"
7
+ />
8
+ Focused {{ count }} times
9
+ </section>
@@ -0,0 +1,6 @@
1
+ <section ng-app>
2
+ <button ng-init="count = 0" ng-mousedown="count = count + 1">
3
+ Press Mouse Down
4
+ </button>
5
+ Mouse Down {{ count }} times
6
+ </section>
@@ -0,0 +1,4 @@
1
+ <section ng-app>
2
+ <div ng-init="count = 0" ng-mouseenter="count = count + 1">Mouse Enter</div>
3
+ Mouse Enter {{ count }} times
4
+ </section>
@@ -0,0 +1,4 @@
1
+ <section ng-app>
2
+ <div ng-init="count = 0" ng-mouseleave="count = count + 1">Mouse Leave</div>
3
+ Mouse Leave {{ count }} times
4
+ </section>
@@ -0,0 +1,4 @@
1
+ <section ng-app>
2
+ <div ng-init="count = 0" ng-mousemove="count = count + 1">Mouse Move</div>
3
+ Mouse Move {{ count }} times
4
+ </section>
@@ -0,0 +1,4 @@
1
+ <section ng-app>
2
+ <div ng-init="count = 0" ng-mouseout="count = count + 1">Mouse Out</div>
3
+ Mouse Out {{ count }} times
4
+ </section>
@@ -0,0 +1,4 @@
1
+ <section ng-app>
2
+ <div ng-init="count = 0" ng-mouseover="count = count + 1">Mouse Over</div>
3
+ Mouse Over {{ count }} times
4
+ </section>
@@ -0,0 +1,4 @@
1
+ <section ng-app>
2
+ <div ng-init="count = 0" ng-mouseup="count = count + 1">Mouse Up</div>
3
+ Mouse Up {{ count }} times
4
+ </section>
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.4",
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 mouseover mousein mouseout mouseleave paste submit touchstart touchend touchmove"
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
- /** @param { string } eventName */
13
- (eventName) => {
14
- const directiveName = directiveNormalize(`ng-${eventName}`);
15
- ngEventDirectives[directiveName] = [
16
- "$parse",
17
- "$exceptionHandler",
18
- /**
19
- * @param {import("../../core/parse/interface.ts").ParseService} $parse
20
- * @param {import('../../core/exception-handler.js').ErrorHandler} $exceptionHandler
21
- * @returns
22
- */
23
- ($parse, $exceptionHandler) => {
24
- return createEventDirective(
25
- $parse,
26
- $exceptionHandler,
27
- directiveName,
28
- eventName,
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
  *
@@ -47,7 +47,6 @@
47
47
  <script type="module">
48
48
  import {
49
49
  fluentSelect,
50
- fluentOption,
51
50
  fluentTab,
52
51
  fluentTabPanel,
53
52
  fluentTabs,