@angular-wave/angular.ts 0.12.0 → 0.14.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 (61) hide show
  1. package/@types/angular.d.ts +3 -3
  2. package/@types/animations/animation.d.ts +1 -1
  3. package/@types/animations/raf-scheduler.d.ts +1 -3
  4. package/@types/core/compile/attributes.d.ts +2 -2
  5. package/@types/core/compile/compile.d.ts +2 -2
  6. package/@types/core/di/ng-module/ng-module.d.ts +33 -36
  7. package/@types/core/filter/filter.d.ts +12 -13
  8. package/@types/core/scope/interface.d.ts +1 -1
  9. package/@types/core/scope/scope.d.ts +9 -10
  10. package/@types/directive/aria/aria.d.ts +3 -3
  11. package/@types/directive/bind/bind.d.ts +2 -2
  12. package/@types/directive/class/class.d.ts +3 -3
  13. package/@types/directive/events/events.d.ts +2 -2
  14. package/@types/directive/form/form.d.ts +12 -2
  15. package/@types/directive/include/include.d.ts +4 -4
  16. package/@types/directive/input/input.d.ts +2 -2
  17. package/@types/directive/messages/messages.d.ts +1 -1
  18. package/@types/directive/model/model.d.ts +26 -20
  19. package/@types/directive/model-options/model-options.d.ts +4 -1
  20. package/@types/directive/options/options.d.ts +4 -4
  21. package/@types/directive/select/select.d.ts +1 -1
  22. package/@types/directive/style/style.d.ts +2 -2
  23. package/@types/directive/worker/interface.d.ts +2 -0
  24. package/@types/directive/worker/worker.d.ts +2 -0
  25. package/@types/filters/interface.d.ts +7 -1
  26. package/@types/interface.d.ts +66 -34
  27. package/@types/namespace.d.ts +60 -13
  28. package/@types/router/common/trace.d.ts +1 -0
  29. package/@types/router/directives/view-directive.d.ts +2 -2
  30. package/@types/router/transition/transition.d.ts +0 -1
  31. package/@types/router/url/url-config.d.ts +1 -1
  32. package/@types/router/url/url-rule.d.ts +0 -10
  33. package/@types/router/url/url-service.d.ts +3 -6
  34. package/@types/router/view/view.d.ts +0 -16
  35. package/@types/services/anchor-scroll/anchor-scroll.d.ts +1 -1
  36. package/@types/services/cookie/cookie.d.ts +80 -0
  37. package/@types/services/cookie/interface.d.ts +12 -0
  38. package/@types/services/exception/exception.d.ts +56 -0
  39. package/@types/services/exception/interface.d.ts +3 -3
  40. package/@types/services/http/http.d.ts +10 -2
  41. package/@types/services/location/location.d.ts +10 -6
  42. package/@types/services/pubsub/pubsub.d.ts +2 -1
  43. package/@types/services/rest/interface.d.ts +17 -0
  44. package/@types/services/rest/rest.d.ts +106 -0
  45. package/@types/services/rest/rfc.d.ts +40 -0
  46. package/@types/services/sce/sce.d.ts +1 -1
  47. package/@types/services/storage/interface.d.ts +1 -0
  48. package/@types/shared/common.d.ts +1 -1
  49. package/@types/shared/dom.d.ts +8 -11
  50. package/@types/shared/hof.d.ts +2 -2
  51. package/@types/shared/interface.d.ts +1 -0
  52. package/@types/shared/noderef.d.ts +1 -0
  53. package/@types/shared/strings.d.ts +6 -8
  54. package/@types/shared/utils.d.ts +73 -25
  55. package/LICENSE +1 -0
  56. package/README.md +3 -90
  57. package/dist/angular-ts.esm.js +10120 -6051
  58. package/dist/angular-ts.umd.js +10120 -6051
  59. package/dist/angular-ts.umd.min.js +1 -1
  60. package/package.json +1 -6
  61. package/@types/services/exception/exception-handler.d.ts +0 -58
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.12.0",
5
+ "version": "0.14.0",
6
6
  "type": "module",
7
7
  "main": "dist/angular-ts.esm.js",
8
8
  "module": "dist/angular-ts.esm.js",
@@ -26,10 +26,6 @@
26
26
  "node": ">=24.0.0"
27
27
  },
28
28
  "scripts": {
29
- "serve": "npm-run-all --parallel dev express",
30
- "dev": "vite",
31
- "express": "node --watch ./utils/express.js",
32
- "build": "vite build",
33
29
  "playwright": "./node_modules/.bin/playwright test",
34
30
  "prepare": "husky"
35
31
  },
@@ -50,7 +46,6 @@
50
46
  "globals": "^16.2.0",
51
47
  "husky": "^9.1.7",
52
48
  "jasmine-core": "latest",
53
- "npm-run-all": "latest",
54
49
  "playwright": "latest",
55
50
  "postcss": "^8.5.6",
56
51
  "prettier": "latest",
@@ -1,58 +0,0 @@
1
- /**
2
- * Handles uncaught exceptions thrown in AngularTS expressions.
3
- *
4
- * By default, this service delegates to `$log.error()`, logging the exception to the browser console.
5
- * You can override this behavior to provide custom exception handling—such as reporting errors
6
- * to a backend server, or altering the log level used.
7
- *
8
- * ## Default Behavior
9
- *
10
- * Uncaught exceptions within AngularTS expressions are intercepted and passed to this service.
11
- * The default implementation logs the error using `$log.error(exception, cause)`.
12
- *
13
- * ## Custom Implementation
14
- *
15
- * You can override the default `$exceptionHandler` by providing your own factory. This allows you to:
16
- * - Log errors to a remote server
17
- * - Change the log level (e.g., from `error` to `warn`)
18
- * - Trigger custom error-handling workflows
19
- *
20
- * ### Example: Overriding `$exceptionHandler`
21
- *
22
- * ```js
23
- * angular
24
- * .module('exceptionOverwrite', [])
25
- * .factory('$exceptionHandler', ['$log', 'logErrorsToBackend', function($log, logErrorsToBackend) {
26
- * return function myExceptionHandler(exception, cause) {
27
- * logErrorsToBackend(exception, cause);
28
- * $log.warn(exception, cause); // Use warn instead of error
29
- * };
30
- * }]);
31
- * ```
32
- * - You may also manually invoke the exception handler:
33
- *
34
- * ```js
35
- * try {
36
- * // Some code that might throw
37
- * } catch (e) {
38
- * $exceptionHandler(e, 'optional context');
39
- * }
40
- * ```
41
- *
42
- * @see {@link angular.ErrorHandler AngularTS ErrorHandler}
43
- */
44
- /** @typedef {import('../log/interface.ts').LogService} LogService */
45
- /** @typedef {import("./interface.ts").ErrorHandler} ErrorHandler */
46
- /**
47
- * Provider for `$exceptionHandler` service. Delegates uncaught exceptions to `$log.error()` by default.
48
- * Can be overridden to implement custom error-handling logic.
49
- */
50
- export class ExceptionHandlerProvider {
51
- /** @type {LogService} */
52
- log: LogService;
53
- /** @type {ErrorHandler} */
54
- errorHandler: ErrorHandler;
55
- $get: (string | (($log: LogService) => ErrorHandler))[];
56
- }
57
- export type LogService = import("../log/interface.ts").LogService;
58
- export type ErrorHandler = import("./interface.ts").ErrorHandler;