@angular-wave/angular.ts 0.8.1 → 0.8.3
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/@types/core/compile/compile.d.ts +5 -2
- package/@types/core/di/ng-module.d.ts +2 -2
- package/@types/interface.d.ts +3 -2
- package/dist/angular-ts.esm.js +4 -4
- package/dist/angular-ts.umd.js +4 -4
- package/dist/angular-ts.umd.min.js +1 -1
- package/docs/layouts/shortcodes/version.html +1 -1
- package/docs/static/typedoc/assets/hierarchy.js +1 -1
- package/docs/static/typedoc/assets/navigation.js +1 -1
- package/docs/static/typedoc/assets/search.js +1 -1
- package/docs/static/typedoc/assets/style.css +2 -9
- package/docs/static/typedoc/classes/NgModule.html +1 -1
- package/docs/static/typedoc/hierarchy.html +1 -1
- package/docs/static/typedoc/index.html +1 -1
- package/docs/static/typedoc/interfaces/HttpProviderDefaults.html +1 -1
- package/docs/static/typedoc/interfaces/RequestConfig.html +1 -1
- package/docs/static/typedoc/interfaces/RequestShortcutConfig.html +1 -1
- package/docs/static/typedoc/types/Injectable.html +1 -1
- package/docs/static/typedoc/types/InjectableClass.html +1 -0
- package/package.json +1 -1
- package/src/angular.spec.js +4 -4
- package/src/core/compile/compile.js +1 -1
- package/src/core/di/ng-module.js +1 -1
- package/src/interface.ts +3 -2
- package/src/shared/min-err.spec.js +1 -1
- package/src/shared/url-utils/url-utils.spec.js +0 -1
- package/src/shared/utils.spec.js +4 -4
- package/tsconfig.json +1 -7
|
@@ -26,7 +26,7 @@ export class CompileProvider {
|
|
|
26
26
|
/**
|
|
27
27
|
* @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
|
|
28
28
|
* or an object map of components where the keys are the names and the values are the component definition objects.
|
|
29
|
-
* @param {
|
|
29
|
+
* @param {import("../../interface.js").ComponentOptions} options Component definition object (a simplified
|
|
30
30
|
* {directive definition object}),
|
|
31
31
|
* with the following properties (all optional):
|
|
32
32
|
*
|
|
@@ -67,7 +67,10 @@ export class CompileProvider {
|
|
|
67
67
|
*
|
|
68
68
|
* @returns {CompileProvider} the compile provider itself, for chaining of function calls.
|
|
69
69
|
*/
|
|
70
|
-
component: (
|
|
70
|
+
component: (
|
|
71
|
+
name: string | any,
|
|
72
|
+
options: import("../../interface.js").ComponentOptions,
|
|
73
|
+
) => CompileProvider;
|
|
71
74
|
/**
|
|
72
75
|
* Retrieves or overrides the default regular expression that is used for determining trusted safe
|
|
73
76
|
* urls during a[href] sanitization.
|
|
@@ -73,12 +73,12 @@ export class NgModule {
|
|
|
73
73
|
run(block: import("../../interface.js").Injectable): NgModule;
|
|
74
74
|
/**
|
|
75
75
|
* @param {string} name
|
|
76
|
-
* @param {import("../../interface.js").
|
|
76
|
+
* @param {import("../../interface.js").ComponentOptions} options
|
|
77
77
|
* @returns {NgModule}
|
|
78
78
|
*/
|
|
79
79
|
component(
|
|
80
80
|
name: string,
|
|
81
|
-
options: import("../../interface.js").
|
|
81
|
+
options: import("../../interface.js").ComponentOptions,
|
|
82
82
|
): NgModule;
|
|
83
83
|
/**
|
|
84
84
|
* @param {string} name
|
package/@types/interface.d.ts
CHANGED
|
@@ -37,13 +37,14 @@ export type ExpandoStore = {
|
|
|
37
37
|
*/
|
|
38
38
|
export type AnnotatedFactory = [...string[], (...args: any[]) => any];
|
|
39
39
|
export type InjectableFactory = (...args: any[]) => any;
|
|
40
|
+
export type InjectableClass = new (...args: any[]) => any;
|
|
40
41
|
/**
|
|
41
|
-
* A factory that can be either a standalone function or a dependency-annotated array.
|
|
42
|
+
* A factory that can be either a standalone function or a dependency-annotated array or a class (constructor function).
|
|
42
43
|
*
|
|
43
44
|
* The array form is used to support minification-safe dependency injection.
|
|
44
45
|
* See {@link AnnotatedFactory}.
|
|
45
46
|
*/
|
|
46
|
-
export type Injectable = AnnotatedFactory | InjectableFactory;
|
|
47
|
+
export type Injectable = AnnotatedFactory | InjectableFactory | InjectableClass;
|
|
47
48
|
/**
|
|
48
49
|
* An object that defines how a service is constructed.
|
|
49
50
|
*
|
package/dist/angular-ts.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.8.
|
|
1
|
+
/* Version: 0.8.3 - August 22, 2025 14:53:17 */
|
|
2
2
|
const VALID_CLASS = "ng-valid";
|
|
3
3
|
const INVALID_CLASS = "ng-invalid";
|
|
4
4
|
const PRISTINE_CLASS = "ng-pristine";
|
|
@@ -1943,7 +1943,7 @@ class NgModule {
|
|
|
1943
1943
|
|
|
1944
1944
|
/**
|
|
1945
1945
|
* @param {string} name
|
|
1946
|
-
* @param {import("../../interface.js").
|
|
1946
|
+
* @param {import("../../interface.js").ComponentOptions} options
|
|
1947
1947
|
* @returns {NgModule}
|
|
1948
1948
|
*/
|
|
1949
1949
|
component(name, options) {
|
|
@@ -4713,7 +4713,7 @@ class CompileProvider {
|
|
|
4713
4713
|
/**
|
|
4714
4714
|
* @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
|
|
4715
4715
|
* or an object map of components where the keys are the names and the values are the component definition objects.
|
|
4716
|
-
* @param {
|
|
4716
|
+
* @param {import("../../interface.js").ComponentOptions} options Component definition object (a simplified
|
|
4717
4717
|
* {directive definition object}),
|
|
4718
4718
|
* with the following properties (all optional):
|
|
4719
4719
|
*
|
|
@@ -35815,7 +35815,7 @@ class Angular {
|
|
|
35815
35815
|
/**
|
|
35816
35816
|
* @type {string} `version` from `package.json`
|
|
35817
35817
|
*/
|
|
35818
|
-
this.version = "0.8.
|
|
35818
|
+
this.version = "0.8.3"; //inserted via rollup plugin
|
|
35819
35819
|
|
|
35820
35820
|
/** @type {!Array<string|any>} */
|
|
35821
35821
|
this.bootsrappedModules = [];
|
package/dist/angular-ts.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Version: 0.8.
|
|
1
|
+
/* Version: 0.8.3 - August 22, 2025 14:53:15 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
@@ -1949,7 +1949,7 @@
|
|
|
1949
1949
|
|
|
1950
1950
|
/**
|
|
1951
1951
|
* @param {string} name
|
|
1952
|
-
* @param {import("../../interface.js").
|
|
1952
|
+
* @param {import("../../interface.js").ComponentOptions} options
|
|
1953
1953
|
* @returns {NgModule}
|
|
1954
1954
|
*/
|
|
1955
1955
|
component(name, options) {
|
|
@@ -4719,7 +4719,7 @@
|
|
|
4719
4719
|
/**
|
|
4720
4720
|
* @param {string|Object} name Name of the component in camelCase (i.e. `myComp` which will match `<my-comp>`),
|
|
4721
4721
|
* or an object map of components where the keys are the names and the values are the component definition objects.
|
|
4722
|
-
* @param {
|
|
4722
|
+
* @param {import("../../interface.js").ComponentOptions} options Component definition object (a simplified
|
|
4723
4723
|
* {directive definition object}),
|
|
4724
4724
|
* with the following properties (all optional):
|
|
4725
4725
|
*
|
|
@@ -35821,7 +35821,7 @@
|
|
|
35821
35821
|
/**
|
|
35822
35822
|
* @type {string} `version` from `package.json`
|
|
35823
35823
|
*/
|
|
35824
|
-
this.version = "0.8.
|
|
35824
|
+
this.version = "0.8.3"; //inserted via rollup plugin
|
|
35825
35825
|
|
|
35826
35826
|
/** @type {!Array<string|any>} */
|
|
35827
35827
|
this.bootsrappedModules = [];
|