@memberjunction/ng-base-types 5.30.0 → 5.31.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.
|
@@ -16,7 +16,7 @@ export class BaseAngularComponent {
|
|
|
16
16
|
* Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
|
|
17
17
|
*/
|
|
18
18
|
get ProviderToUse() {
|
|
19
|
-
return this.Provider
|
|
19
|
+
return this.Provider ?? Metadata.Provider;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* Returns either the default RunView provider or the one specified in the Provider property, if it was specified
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-angular-component.js","sourceRoot":"","sources":["../src/base-angular-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAA8E,QAAQ,EAAE,MAAM,sBAAsB,CAAC;;AAE5H;;GAEG;AAEH,MAAM,OAAgB,oBAAoB;IACxC;;;;;OAKG;IACM,QAAQ,GAA6B,IAAI,CAAC;IAEnD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OAA8B,IAAI,CAAC,aAAa,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QACtB,OAA+B,IAAI,CAAC,aAAa,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,IAAW,cAAc;QACvB,OAAgC,IAAI,CAAC,aAAa,CAAC;IACrD,CAAC;8GAnCmB,oBAAoB;6DAApB,oBAAoB;;iFAApB,oBAAoB;cADzC,SAAS;;kBAQP,KAAK","sourcesContent":["import { Directive, Input } from \"@angular/core\";\nimport { IMetadataProvider, IRunQueryProvider, IRunReportProvider, IRunViewProvider, Metadata } from \"@memberjunction/core\";\n\n/**\n * Base class for all Angular components in the MemberJunction system.\n */\n@Directive() // using a directive here becuase this is an abstract base class that will later be subclassed and decorated as @Component\nexport abstract class BaseAngularComponent {\n /**\n * If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes\n * are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes.\n * If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and\n * configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.\n */\n @Input() Provider: IMetadataProvider | null = null;\n\n /**\n * Returns either the default Metadata provider or the one specified in the Provider property, if it was specified\n */\n public get ProviderToUse(): IMetadataProvider {\n return this.Provider
|
|
1
|
+
{"version":3,"file":"base-angular-component.js","sourceRoot":"","sources":["../src/base-angular-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAA8E,QAAQ,EAAE,MAAM,sBAAsB,CAAC;;AAE5H;;GAEG;AAEH,MAAM,OAAgB,oBAAoB;IACxC;;;;;OAKG;IACM,QAAQ,GAA6B,IAAI,CAAC;IAEnD;;OAEG;IACH,IAAW,aAAa;QACtB,OAAO,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,QAAQ,CAAC;IAC5C,CAAC;IAED;;OAEG;IACH,IAAW,YAAY;QACrB,OAA8B,IAAI,CAAC,aAAa,CAAC;IACnD,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QACtB,OAA+B,IAAI,CAAC,aAAa,CAAC;IACpD,CAAC;IAED;;OAEG;IACH,IAAW,cAAc;QACvB,OAAgC,IAAI,CAAC,aAAa,CAAC;IACrD,CAAC;8GAnCmB,oBAAoB;6DAApB,oBAAoB;;iFAApB,oBAAoB;cADzC,SAAS;;kBAQP,KAAK","sourcesContent":["import { Directive, Input } from \"@angular/core\";\nimport { IMetadataProvider, IRunQueryProvider, IRunReportProvider, IRunViewProvider, Metadata } from \"@memberjunction/core\";\n\n/**\n * Base class for all Angular components in the MemberJunction system.\n */\n@Directive() // using a directive here becuase this is an abstract base class that will later be subclassed and decorated as @Component\nexport abstract class BaseAngularComponent {\n /**\n * If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes\n * are used for this and the default GraphQLDataProvider is used which is connected to the same back-end MJAPI instance as the Metadata and RunView classes.\n * If you want to have this component connect to a different MJAPI back-end, create an instance of a ProviderBase sub-class like GraphQLDataProvider/etc, and\n * configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.\n */\n @Input() Provider: IMetadataProvider | null = null;\n\n /**\n * Returns either the default Metadata provider or the one specified in the Provider property, if it was specified\n */\n public get ProviderToUse(): IMetadataProvider {\n return this.Provider ?? Metadata.Provider;\n } \n\n /**\n * Returns either the default RunView provider or the one specified in the Provider property, if it was specified\n */\n public get RunViewToUse(): IRunViewProvider {\n return <IRunViewProvider><any>this.ProviderToUse;\n }\n\n /**\n * Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified\n */\n public get RunQueryToUse(): IRunQueryProvider {\n return <IRunQueryProvider><any>this.ProviderToUse;\n }\n\n /**\n * Returns either the default RunReport provider or the one specified in the Provider property, if it was specified\n */\n public get RunReportToUse(): IRunReportProvider {\n return <IRunReportProvider><any>this.ProviderToUse;\n }\n}"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-base-types",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.31.0",
|
|
4
4
|
"description": "MemberJunction: Simple types that are used across many generic Angular UI components for coordination",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@angular/core": "21.1.3"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@memberjunction/core-entities": "5.
|
|
29
|
-
"@memberjunction/global": "5.
|
|
30
|
-
"@memberjunction/core": "5.
|
|
28
|
+
"@memberjunction/core-entities": "5.31.0",
|
|
29
|
+
"@memberjunction/global": "5.31.0",
|
|
30
|
+
"@memberjunction/core": "5.31.0",
|
|
31
31
|
"tslib": "^2.8.1"
|
|
32
32
|
},
|
|
33
33
|
"sideEffects": false,
|