@angular-wave/angular.ts 0.3.0 → 0.4.0

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 (115) hide show
  1. package/.github/workflows/ci.yml +57 -0
  2. package/README.md +1 -1
  3. package/dist/angular-ts.esm.js +2 -2
  4. package/dist/angular-ts.umd.js +2 -2
  5. package/package.json +1 -1
  6. package/src/animations/animate-cache.js +1 -1
  7. package/src/animations/animate-css-driver.js +2 -2
  8. package/src/animations/animate-css.js +1 -1
  9. package/src/animations/animate-js-driver.js +2 -2
  10. package/src/animations/animate-js.js +2 -2
  11. package/src/animations/animate-queue.js +2 -2
  12. package/src/animations/animation.js +1 -1
  13. package/src/core/cache/cache-factory.js +18 -2
  14. package/src/core/compile/attributes.js +1 -1
  15. package/src/core/compile/compile.js +10 -12
  16. package/src/core/compile/compile.spec.js +0 -1
  17. package/src/core/compile/compile.test.js +1 -1
  18. package/src/core/controller/controller.js +1 -1
  19. package/src/core/exception-handler.js +2 -6
  20. package/src/core/filter/filter.js +2 -2
  21. package/src/core/interpolate/interpolate.js +3 -3
  22. package/src/core/interval/interval-factory.js +7 -23
  23. package/src/core/interval/interval.js +1 -1
  24. package/src/core/interval/interval.spec.js +0 -25
  25. package/src/core/location/location.js +1 -1
  26. package/src/core/location/location.spec.js +3 -3
  27. package/src/core/parser/parse.js +2 -2
  28. package/src/core/q/q.js +0 -27
  29. package/src/core/q/q.spec.js +0 -44
  30. package/src/core/sce/sce.js +2 -2
  31. package/src/core/scope/scope.js +35 -41
  32. package/src/core/scope/scope.spec.js +71 -13
  33. package/src/core/task-tracker-factory.js +1 -1
  34. package/src/core/timeout/timeout.js +4 -8
  35. package/src/directive/attrs/attrs.js +1 -1
  36. package/src/directive/if/if.js +5 -5
  37. package/src/directive/input/input.spec.js +0 -1
  38. package/src/directive/observe/observe.html +18 -0
  39. package/src/directive/observe/observe.js +37 -0
  40. package/src/directive/observe/observe.spec.js +92 -0
  41. package/src/directive/observe/observe.test.js +9 -0
  42. package/src/directive/observe/test.html +197 -0
  43. package/src/directive/script/script.js +11 -9
  44. package/src/directive/validators/validators.js +70 -42
  45. package/src/public.js +63 -66
  46. package/src/router/params/param.js +1 -2
  47. package/src/router/path/path-node.js +5 -5
  48. package/src/router/path/path-utils.js +19 -21
  49. package/src/router/state/state-builder.js +17 -11
  50. package/src/router/state/state-queue-manager.js +16 -7
  51. package/src/router/state/state-registry.js +9 -5
  52. package/src/router/state/state-service.js +7 -11
  53. package/src/router/template-factory.js +2 -2
  54. package/src/router/transition/transition-service.js +1 -1
  55. package/src/router/transition/transition.js +13 -11
  56. package/src/router/url/url-matcher.js +2 -2
  57. package/src/router/url/url-service.js +1 -1
  58. package/src/router/view/view.js +3 -3
  59. package/src/router/view-scroll.js +13 -8
  60. package/src/services/http/http.js +2 -82
  61. package/src/services/http/http.spec.js +0 -118
  62. package/src/services/http/template-request.spec.js +10 -12
  63. package/src/services/http-backend/http-backend.js +1 -1
  64. package/src/services/log.js +1 -7
  65. package/src/services/template-request.js +3 -3
  66. package/src/shared/common.js +3 -9
  67. package/src/shared/hof.js +6 -8
  68. package/src/types.js +0 -14
  69. package/types/animations/animate-cache.d.ts +2 -2
  70. package/types/animations/animate-css-driver.d.ts +3 -3
  71. package/types/animations/animate-css.d.ts +2 -2
  72. package/types/animations/animate-js-driver.d.ts +3 -3
  73. package/types/animations/animate-js.d.ts +3 -3
  74. package/types/animations/animate-queue.d.ts +3 -3
  75. package/types/animations/animation.d.ts +2 -2
  76. package/types/core/cache/cache-factory.d.ts +20 -2
  77. package/types/core/compile/attributes.d.ts +3 -3
  78. package/types/core/compile/compile.d.ts +12 -12
  79. package/types/core/controller/controller.d.ts +1 -1
  80. package/types/core/exception-handler.d.ts +3 -4
  81. package/types/core/filter/filter.d.ts +3 -3
  82. package/types/core/interpolate/interpolate.d.ts +6 -6
  83. package/types/core/interval/interval-factory.d.ts +3 -3
  84. package/types/core/interval/interval.d.ts +2 -2
  85. package/types/core/location/location.d.ts +2 -2
  86. package/types/core/parser/parse.d.ts +4 -4
  87. package/types/core/q/q.d.ts +0 -5
  88. package/types/core/sce/sce.d.ts +4 -4
  89. package/types/core/scope/scope.d.ts +12 -3
  90. package/types/core/task-tracker-factory.d.ts +1 -1
  91. package/types/core/timeout/timeout.d.ts +3 -4
  92. package/types/directive/observe/observe.d.ts +4 -0
  93. package/types/directive/script/script.d.ts +8 -5
  94. package/types/directive/validators/validators.d.ts +3 -15
  95. package/types/router/path/path-node.d.ts +0 -7
  96. package/types/router/path/path-utils.d.ts +7 -2
  97. package/types/router/state/state-queue-manager.d.ts +13 -3
  98. package/types/router/state/state-registry.d.ts +5 -2
  99. package/types/router/state/state-service.d.ts +2 -2
  100. package/types/router/template-factory.d.ts +3 -3
  101. package/types/router/transition/transition-service.d.ts +1 -1
  102. package/types/router/transition/transition.d.ts +3 -3
  103. package/types/router/url/url-service.d.ts +3 -3
  104. package/types/router/view-scroll.d.ts +3 -3
  105. package/types/services/http/http.d.ts +4 -48
  106. package/types/services/http-backend/http-backend.d.ts +2 -2
  107. package/types/services/log.d.ts +2 -8
  108. package/types/services/template-request.d.ts +1 -1
  109. package/types/shared/common.d.ts +0 -5
  110. package/types/shared/hof.d.ts +0 -1
  111. package/types/types.d.ts +1 -1
  112. package/.github/workflows/lint.yml +0 -19
  113. package/.github/workflows/playwright.yml +0 -27
  114. package/.github/workflows/types.yml +0 -19
  115. package/src/directive/csp.md +0 -63
@@ -0,0 +1,57 @@
1
+ name: CI Pipeline
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
+ branches: [ main, master ]
8
+
9
+ jobs:
10
+ # 1. Lint check
11
+ lint:
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ - uses: actions/setup-node@v4
16
+ with:
17
+ node-version: lts/*
18
+ - name: Install dependencies
19
+ run: npm ci
20
+ - name: Run lint check
21
+ run: ./node_modules/.bin/eslint ./src
22
+
23
+ # 2. TypeScript check
24
+ typescript:
25
+ needs: lint
26
+ runs-on: ubuntu-latest
27
+ steps:
28
+ - uses: actions/checkout@v4
29
+ - uses: actions/setup-node@v4
30
+ with:
31
+ node-version: lts/*
32
+ - name: Install dependencies
33
+ run: npm ci
34
+ - name: Run TypeScript check
35
+ run: ./node_modules/.bin/tsc
36
+
37
+ # 3. Playwright tests
38
+ playwright:
39
+ needs: typescript
40
+ runs-on: ubuntu-latest
41
+ steps:
42
+ - uses: actions/checkout@v4
43
+ - uses: actions/setup-node@v4
44
+ with:
45
+ node-version: lts/*
46
+ - name: Install dependencies
47
+ run: npm ci
48
+ - name: Install Playwright Browsers
49
+ run: npx playwright install --with-deps
50
+ - name: Run Playwright tests
51
+ run: npx playwright test
52
+ - uses: actions/upload-artifact@v4
53
+ if: always()
54
+ with:
55
+ name: playwright-report
56
+ path: playwright-report/
57
+ retention-days: 30
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  AngularTS
2
2
  --------------------
3
3
 
4
- ![Build status](https://github.com/Angular-Wave/angular.ts/actions/workflows/playwright.yml/badge.svg)
4
+ ![Build status](https://github.com/Angular-Wave/angular.ts/actions/workflows/ci.yml/badge.svg)
5
5
  [![stats](https://data.jsdelivr.com/v1/package/npm/@angular-wave/angular.ts/badge?style=rounded)](https://www.jsdelivr.com/package/npm/@angular-wave/angular.ts)
6
6
 
7
7
  This project preserves, modernises and expands the original [AngularJS](https://github.com/angular/angular.js)