@memberjunction/ng-base-types 2.18.1 → 2.18.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/dist/base-angular-component.d.ts +33 -0
- package/dist/base-angular-component.d.ts.map +1 -0
- package/dist/base-angular-component.js +49 -0
- package/dist/base-angular-component.js.map +1 -0
- package/dist/public-api.d.ts +1 -0
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +1 -0
- package/dist/public-api.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { IMetadataProvider, IRunQueryProvider, IRunReportProvider, IRunViewProvider } from "@memberjunction/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Base class for all Angular components in the MemberJunction system.
|
|
5
|
+
*/
|
|
6
|
+
export declare abstract class BaseAngularComponent {
|
|
7
|
+
/**
|
|
8
|
+
* If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes
|
|
9
|
+
* 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.
|
|
10
|
+
* 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
|
|
11
|
+
* configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.
|
|
12
|
+
*/
|
|
13
|
+
Provider: IMetadataProvider | null;
|
|
14
|
+
/**
|
|
15
|
+
* Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
|
|
16
|
+
*/
|
|
17
|
+
get ProviderToUse(): IMetadataProvider;
|
|
18
|
+
/**
|
|
19
|
+
* Returns either the default RunView provider or the one specified in the Provider property, if it was specified
|
|
20
|
+
*/
|
|
21
|
+
get RunViewToUse(): IRunViewProvider;
|
|
22
|
+
/**
|
|
23
|
+
* Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified
|
|
24
|
+
*/
|
|
25
|
+
get RunQueryToUse(): IRunQueryProvider;
|
|
26
|
+
/**
|
|
27
|
+
* Returns either the default RunReport provider or the one specified in the Provider property, if it was specified
|
|
28
|
+
*/
|
|
29
|
+
get RunReportToUse(): IRunReportProvider;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseAngularComponent, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaseAngularComponent, never, never, { "Provider": { "alias": "Provider"; "required": false; }; }, {}, never, never, false, never>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=base-angular-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-angular-component.d.ts","sourceRoot":"","sources":["../src/base-angular-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,gBAAgB,EAAY,MAAM,sBAAsB,CAAC;;AAE5H;;GAEG;AACH,8BACsB,oBAAoB;IACxC;;;;;OAKG;IACM,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAQ;IAEnD;;OAEG;IACH,IAAW,aAAa,IAAI,iBAAiB,CAE5C;IAED;;OAEG;IACH,IAAW,YAAY,IAAI,gBAAgB,CAE1C;IAED;;OAEG;IACH,IAAW,aAAa,IAAI,iBAAiB,CAE5C;IAED;;OAEG;IACH,IAAW,cAAc,IAAI,kBAAkB,CAE9C;yCAnCmB,oBAAoB;2CAApB,oBAAoB;CAoCzC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Directive, Input } from "@angular/core";
|
|
2
|
+
import { Metadata } from "@memberjunction/core";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Base class for all Angular components in the MemberJunction system.
|
|
6
|
+
*/
|
|
7
|
+
export class BaseAngularComponent {
|
|
8
|
+
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes
|
|
11
|
+
* 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.
|
|
12
|
+
* 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
|
|
13
|
+
* configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.
|
|
14
|
+
*/
|
|
15
|
+
this.Provider = null;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
|
|
19
|
+
*/
|
|
20
|
+
get ProviderToUse() {
|
|
21
|
+
return this.Provider || Metadata.Provider;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns either the default RunView provider or the one specified in the Provider property, if it was specified
|
|
25
|
+
*/
|
|
26
|
+
get RunViewToUse() {
|
|
27
|
+
return this.ProviderToUse;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Returns either the default RunQuery provider or the one specified in the Provider property, if it was specified
|
|
31
|
+
*/
|
|
32
|
+
get RunQueryToUse() {
|
|
33
|
+
return this;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Returns either the default RunReport provider or the one specified in the Provider property, if it was specified
|
|
37
|
+
*/
|
|
38
|
+
get RunReportToUse() {
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
BaseAngularComponent.ɵfac = function BaseAngularComponent_Factory(t) { return new (t || BaseAngularComponent)(); };
|
|
43
|
+
BaseAngularComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseAngularComponent, inputs: { Provider: "Provider" } });
|
|
44
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseAngularComponent, [{
|
|
45
|
+
type: Directive
|
|
46
|
+
}], null, { Provider: [{
|
|
47
|
+
type: Input
|
|
48
|
+
}] }); })();
|
|
49
|
+
//# sourceMappingURL=base-angular-component.js.map
|
|
@@ -0,0 +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;IAD1C;QAEE;;;;;WAKG;QACM,aAAQ,GAA6B,IAAI,CAAC;KA6BpD;IA3BC;;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,CAAA;IACrC,CAAC;IAED;;OAEG;IACH,IAAW,cAAc;QACvB,OAAgC,IAAI,CAAA;IACtC,CAAC;;wFAnCmB,oBAAoB;uEAApB,oBAAoB;iFAApB,oBAAoB;cADzC,SAAS;gBAQC,QAAQ;kBAAhB,KAAK"}
|
package/dist/public-api.d.ts
CHANGED
package/dist/public-api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,0BAA0B,CAAC"}
|
package/dist/public-api.js
CHANGED
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-base-types",
|
|
3
|
-
"version": "2.18.
|
|
3
|
+
"version": "2.18.3",
|
|
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",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"@angular/core": "18.0.2"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@memberjunction/core-entities": "2.18.
|
|
27
|
-
"@memberjunction/global": "2.18.
|
|
28
|
-
"@memberjunction/core": "2.18.
|
|
26
|
+
"@memberjunction/core-entities": "2.18.3",
|
|
27
|
+
"@memberjunction/global": "2.18.3",
|
|
28
|
+
"@memberjunction/core": "2.18.3",
|
|
29
29
|
"tslib": "^2.3.0"
|
|
30
30
|
},
|
|
31
31
|
"sideEffects": false
|