@memberjunction/ng-base-types 6.2.0-edge.0 → 6.2.0-edge.1

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/types.js CHANGED
@@ -11,22 +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
+ subEventCode; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
15
+ elementRef; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
16
+ returnValue; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
17
17
  }
18
18
  /**
19
19
  * Specialized type of event that is emitted when a form component is telling everyone that editing is complete
20
20
  */
21
21
  export class FormEditingCompleteEvent extends BaseFormComponentEvent {
22
22
  subEventCode = BaseFormComponentEventCodes.EDITING_COMPLETE;
23
- pendingChanges = [];
23
+ pendingChanges = []; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
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
- entityObject;
30
- action = 'save';
29
+ entityObject; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
30
+ action = 'save'; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply
31
31
  }
32
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;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","sourcesContent":["import { BaseEntity } from \"@memberjunction/core\";\n\n/**\n * Enum used for common events coordination throughout various types of application components and forms\n */\nexport const BaseFormComponentEventCodes = {\n BASE_CODE: 'BaseFormComponent_Event',\n EDITING_COMPLETE: 'EDITING_COMPLETE',\n REVERT_PENDING_CHANGES: 'REVERT_PENDING_CHANGES',\n POPULATE_PENDING_RECORDS: 'POPULATE_PENDING_RECORDS'\n} as const\nexport type BaseFormComponentEventCodes = typeof BaseFormComponentEventCodes[keyof typeof BaseFormComponentEventCodes];\n\n/**\n * Base type for events emitted by classes that interact with the Form Component architecture\n */\nexport class BaseFormComponentEvent {\n subEventCode!: string\n elementRef: any\n returnValue: any\n}\n\n/**\n * Specialized type of event that is emitted when a form component is telling everyone that editing is complete\n */\nexport class FormEditingCompleteEvent extends BaseFormComponentEvent {\n subEventCode: string = BaseFormComponentEventCodes.EDITING_COMPLETE;\n pendingChanges: PendingRecordItem[] = [];\n}\n\n/**\n * 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\n */\nexport class PendingRecordItem {\n entityObject!: BaseEntity;\n action: 'save' | 'delete' = 'save';\n}\n"]}
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,CAAE,sIAAsI;IAC7J,UAAU,CAAK,CAAE,sIAAsI;IACvJ,WAAW,CAAK,CAAE,sIAAsI;CAC3J;AAED;;GAEG;AACH,MAAM,OAAO,wBAAyB,SAAQ,sBAAsB;IAChE,YAAY,GAAW,2BAA2B,CAAC,gBAAgB,CAAC;IACpE,cAAc,GAAwB,EAAE,CAAC,CAAE,sIAAsI;CACpL;AAED;;GAEG;AACH,MAAM,OAAO,iBAAiB;IAC1B,YAAY,CAAc,CAAE,sIAAsI;IAClK,MAAM,GAAsB,MAAM,CAAC,CAAE,sIAAsI;CAC9K","sourcesContent":["import { BaseEntity } from \"@memberjunction/core\";\n\n/**\n * Enum used for common events coordination throughout various types of application components and forms\n */\nexport const BaseFormComponentEventCodes = {\n BASE_CODE: 'BaseFormComponent_Event',\n EDITING_COMPLETE: 'EDITING_COMPLETE',\n REVERT_PENDING_CHANGES: 'REVERT_PENDING_CHANGES',\n POPULATE_PENDING_RECORDS: 'POPULATE_PENDING_RECORDS'\n} as const\nexport type BaseFormComponentEventCodes = typeof BaseFormComponentEventCodes[keyof typeof BaseFormComponentEventCodes];\n\n/**\n * Base type for events emitted by classes that interact with the Form Component architecture\n */\nexport class BaseFormComponentEvent {\n subEventCode!: string // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n elementRef: any // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n returnValue: any // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * Specialized type of event that is emitted when a form component is telling everyone that editing is complete\n */\nexport class FormEditingCompleteEvent extends BaseFormComponentEvent {\n subEventCode: string = BaseFormComponentEventCodes.EDITING_COMPLETE;\n pendingChanges: PendingRecordItem[] = []; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n\n/**\n * 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\n */\nexport class PendingRecordItem {\n entityObject!: BaseEntity; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n action: 'save' | 'delete' = 'save'; // case-violation-ok-legacy-back-compat: object literals are assigned to this class, so an accessor stub changes what they must supply\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-base-types",
3
- "version": "6.2.0-edge.0",
3
+ "version": "6.2.0-edge.1",
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",
@@ -20,9 +20,9 @@
20
20
  "@angular/core": "^21.2.22"
21
21
  },
22
22
  "dependencies": {
23
- "@memberjunction/core-entities": "6.2.0-edge.0",
24
- "@memberjunction/global": "6.2.0-edge.0",
25
- "@memberjunction/core": "6.2.0-edge.0",
23
+ "@memberjunction/core-entities": "6.2.0-edge.1",
24
+ "@memberjunction/global": "6.2.0-edge.1",
25
+ "@memberjunction/core": "6.2.0-edge.1",
26
26
  "tslib": "^2.8.1"
27
27
  },
28
28
  "sideEffects": false,