@memberjunction/ng-base-types 2.48.0 → 2.49.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.
@@ -5,15 +5,13 @@ import * as i0 from "@angular/core";
5
5
  * Base class for all Angular components in the MemberJunction system.
6
6
  */
7
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
- }
8
+ /**
9
+ * If specified, this provider will be used for communication and for all metadata purposes. By default, if not provided, the Metadata and RunView classes
10
+ * 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.
11
+ * 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
12
+ * configure it as appropriate to connect to the MJAPI back-end you want to use, and then pass it in here.
13
+ */
14
+ Provider = null;
17
15
  /**
18
16
  * Returns either the default Metadata provider or the one specified in the Provider property, if it was specified
19
17
  */
@@ -38,9 +36,9 @@ export class BaseAngularComponent {
38
36
  get RunReportToUse() {
39
37
  return this;
40
38
  }
39
+ static ɵfac = function BaseAngularComponent_Factory(t) { return new (t || BaseAngularComponent)(); };
40
+ static ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseAngularComponent, inputs: { Provider: "Provider" } });
41
41
  }
42
- BaseAngularComponent.ɵfac = function BaseAngularComponent_Factory(t) { return new (t || BaseAngularComponent)(); };
43
- BaseAngularComponent.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseAngularComponent, inputs: { Provider: "Provider" } });
44
42
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseAngularComponent, [{
45
43
  type: Directive
46
44
  }], null, { Provider: [{
@@ -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;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"}
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,CAAA;IACrC,CAAC;IAED;;OAEG;IACH,IAAW,cAAc;QACvB,OAAgC,IAAI,CAAA;IACtC,CAAC;8EAnCmB,oBAAoB;6DAApB,oBAAoB;;iFAApB,oBAAoB;cADzC,SAAS;gBAQC,QAAQ;kBAAhB,KAAK"}
package/dist/types.js CHANGED
@@ -11,23 +11,22 @@ export const BaseFormComponentEventCodes = {
11
11
  * Base type for events emitted by classes that interact with the Form Component architecture
12
12
  */
13
13
  export class BaseFormComponentEvent {
14
+ subEventCode;
15
+ elementRef;
16
+ returnValue;
14
17
  }
15
18
  /**
16
19
  * Specialized type of event that is emitted when a form component is telling everyone that editing is complete
17
20
  */
18
21
  export class FormEditingCompleteEvent extends BaseFormComponentEvent {
19
- constructor() {
20
- super(...arguments);
21
- this.subEventCode = BaseFormComponentEventCodes.EDITING_COMPLETE;
22
- this.pendingChanges = [];
23
- }
22
+ subEventCode = BaseFormComponentEventCodes.EDITING_COMPLETE;
23
+ pendingChanges = [];
24
24
  }
25
25
  /**
26
26
  * Type that is used for building an array of pending records that need to be saved or deleted by the Form architecture that sub-components have been editing during an edit cycle
27
27
  */
28
28
  export class PendingRecordItem {
29
- constructor() {
30
- this.action = 'save';
31
- }
29
+ entityObject;
30
+ action = 'save';
32
31
  }
33
32
  //# sourceMappingURL=types.js.map
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,SAAS,EAAE,yBAAyB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,wBAAwB,EAAE,0BAA0B;CAC9C,CAAA;AAGV;;GAEG;AACH,MAAM,OAAO,sBAAsB;CAIlC;AAED;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,sBAAsB;IAApE;;QACI,iBAAY,GAAW,2BAA2B,CAAC,gBAAgB,CAAC;QACpE,mBAAc,GAAwB,EAAE,CAAC;IAC7C,CAAC;CAAA;AAED;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAA9B;QAEI,WAAM,GAAsB,MAAM,CAAC;IACvC,CAAC;CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,SAAS,EAAE,yBAAyB;IACpC,gBAAgB,EAAE,kBAAkB;IACpC,sBAAsB,EAAE,wBAAwB;IAChD,wBAAwB,EAAE,0BAA0B;CAC9C,CAAA;AAGV;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAC/B,YAAY,CAAS;IACrB,UAAU,CAAK;IACf,WAAW,CAAK;CACnB;AAED;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,sBAAsB;IAChE,YAAY,GAAW,2BAA2B,CAAC,gBAAgB,CAAC;IACpE,cAAc,GAAwB,EAAE,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAC1B,YAAY,CAAc;IAC1B,MAAM,GAAsB,MAAM,CAAC;CACtC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-base-types",
3
- "version": "2.48.0",
3
+ "version": "2.49.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",
@@ -23,9 +23,9 @@
23
23
  "@angular/core": "18.0.2"
24
24
  },
25
25
  "dependencies": {
26
- "@memberjunction/core-entities": "2.48.0",
27
- "@memberjunction/global": "2.48.0",
28
- "@memberjunction/core": "2.48.0",
26
+ "@memberjunction/core-entities": "2.49.0",
27
+ "@memberjunction/global": "2.49.0",
28
+ "@memberjunction/core": "2.49.0",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "sideEffects": false