@memberjunction/ng-skip-chat 4.2.0 → 4.3.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.
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=drill-down-info.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drill-down-info.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/drill-down-info.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,48 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ import { DrillDownInfo } from '../lib/drill-down-info';
3
+ describe('DrillDownInfo', () => {
4
+ it('should create with entity name and filter', () => {
5
+ const info = new DrillDownInfo('Users', "Status='Active'");
6
+ expect(info.EntityName).toBe('Users');
7
+ expect(info.Filter).toBe("Status='Active'");
8
+ expect(info.BaseFilter).toBe('');
9
+ });
10
+ describe('UserViewGridParams', () => {
11
+ it('should return filter as ExtraFilter when no BaseFilter', () => {
12
+ const info = new DrillDownInfo('Users', "Status='Active'");
13
+ const params = info.UserViewGridParams;
14
+ expect(params.EntityName).toBe('Users');
15
+ expect(params.ExtraFilter).toBe("Status='Active'");
16
+ });
17
+ it('should combine Filter and BaseFilter with AND', () => {
18
+ const info = new DrillDownInfo('Users', "Status='Active'");
19
+ info.BaseFilter = "Type='Admin'";
20
+ const params = info.UserViewGridParams;
21
+ expect(params.ExtraFilter).toBe("(Status='Active') AND (Type='Admin')");
22
+ });
23
+ it('should ignore empty BaseFilter', () => {
24
+ const info = new DrillDownInfo('Orders', "Total > 100");
25
+ info.BaseFilter = '';
26
+ const params = info.UserViewGridParams;
27
+ expect(params.ExtraFilter).toBe("Total > 100");
28
+ });
29
+ it('should handle complex filters', () => {
30
+ const info = new DrillDownInfo('Products', "Price > 10 AND Category='Food'");
31
+ info.BaseFilter = "IsActive = 1";
32
+ const params = info.UserViewGridParams;
33
+ expect(params.ExtraFilter).toContain('AND');
34
+ expect(params.ExtraFilter).toContain("Price > 10");
35
+ expect(params.ExtraFilter).toContain("IsActive = 1");
36
+ });
37
+ });
38
+ it('should allow setting properties after creation', () => {
39
+ const info = new DrillDownInfo('Entity', 'f1');
40
+ info.EntityName = 'NewEntity';
41
+ info.Filter = 'f2';
42
+ info.BaseFilter = 'bf';
43
+ expect(info.EntityName).toBe('NewEntity');
44
+ expect(info.Filter).toBe('f2');
45
+ expect(info.BaseFilter).toBe('bf');
46
+ });
47
+ });
48
+ //# sourceMappingURL=drill-down-info.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drill-down-info.test.js","sourceRoot":"","sources":["../../src/__tests__/drill-down-info.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEvD,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE;IAC7B,EAAE,CAAC,2CAA2C,EAAE,GAAG,EAAE;QACnD,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QAC3D,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QAC5C,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACnC,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAClC,EAAE,CAAC,wDAAwD,EAAE,GAAG,EAAE;YAChE,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;YAC3D,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC;YACvC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,I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CAAC;IACL,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,gDAAgD,EAAE,GAAG,EAAE;QACxD,MAAM,IAAI,GAAG,IAAI,aAAa,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,WAAW,CAAC;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC;QACvB,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1C,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import { describe, it, expect } from 'vitest';
2
+ describe('@memberjunction/ng-skip-chat', () => {
3
+ it('should have a passing test', () => {
4
+ expect(true).toBe(true);
5
+ });
6
+ });
7
+ //# sourceMappingURL=index.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../src/__tests__/index.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAE9C,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC5C,EAAE,CAAC,4BAA4B,EAAE,GAAG,EAAE;QACpC,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC1B,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-skip-chat",
3
- "version": "4.2.0",
3
+ "version": "4.3.0",
4
4
  "deprecated": "This package is deprecated. Use @memberjunction/ng-conversations instead.",
5
5
  "description": "DEPRECATED: Use @memberjunction/ng-conversations instead. MemberJunction: Simple Skip Chat components usable in any Angular project",
6
6
  "main": "./dist/public-api.js",
@@ -9,15 +9,17 @@
9
9
  "/dist"
10
10
  ],
11
11
  "scripts": {
12
- "test": "echo \"Error: no test specified\" && exit 1",
13
- "build": "ngc"
12
+ "test": "echo \"No tests configured yet\"",
13
+ "build": "ngc",
14
+ "test:watch": "vitest"
14
15
  },
15
16
  "keywords": [],
16
17
  "author": "",
17
18
  "license": "ISC",
18
19
  "devDependencies": {
19
20
  "@angular/compiler": "21.1.3",
20
- "@angular/compiler-cli": "21.1.3"
21
+ "@angular/compiler-cli": "21.1.3",
22
+ "vitest": "^4.0.18"
21
23
  },
22
24
  "peerDependencies": {
23
25
  "@angular/common": "21.1.3",
@@ -29,22 +31,22 @@
29
31
  "@angular/cdk": "21.1.3",
30
32
  "@angular/router": "21.1.3",
31
33
  "@codemirror/view": "latest",
32
- "@memberjunction/core": "4.2.0",
33
- "@memberjunction/core-entities": "4.2.0",
34
- "@memberjunction/data-context": "4.2.0",
35
- "@memberjunction/global": "4.2.0",
36
- "@memberjunction/graphql-dataprovider": "4.2.0",
37
- "@memberjunction/interactive-component-types": "4.2.0",
38
- "@memberjunction/ng-base-types": "4.2.0",
39
- "@memberjunction/ng-code-editor": "4.2.0",
40
- "@memberjunction/ng-container-directives": "4.2.0",
41
- "@memberjunction/ng-data-context": "4.2.0",
42
- "@memberjunction/ng-notifications": "4.2.0",
43
- "@memberjunction/ng-react": "4.2.0",
44
- "@memberjunction/ng-resource-permissions": "4.2.0",
45
- "@memberjunction/ng-shared-generic": "4.2.0",
46
- "@memberjunction/react-runtime": "4.2.0",
47
- "@memberjunction/skip-types": "4.2.0",
34
+ "@memberjunction/core": "4.3.0",
35
+ "@memberjunction/core-entities": "4.3.0",
36
+ "@memberjunction/data-context": "4.3.0",
37
+ "@memberjunction/global": "4.3.0",
38
+ "@memberjunction/graphql-dataprovider": "4.3.0",
39
+ "@memberjunction/interactive-component-types": "4.3.0",
40
+ "@memberjunction/ng-base-types": "4.3.0",
41
+ "@memberjunction/ng-code-editor": "4.3.0",
42
+ "@memberjunction/ng-container-directives": "4.3.0",
43
+ "@memberjunction/ng-data-context": "4.3.0",
44
+ "@memberjunction/ng-notifications": "4.3.0",
45
+ "@memberjunction/ng-react": "4.3.0",
46
+ "@memberjunction/ng-resource-permissions": "4.3.0",
47
+ "@memberjunction/ng-shared-generic": "4.3.0",
48
+ "@memberjunction/react-runtime": "4.3.0",
49
+ "@memberjunction/skip-types": "4.3.0",
48
50
  "@progress/kendo-angular-buttons": "22.0.1",
49
51
  "@progress/kendo-angular-dialog": "22.0.1",
50
52
  "@progress/kendo-angular-dropdowns": "22.0.1",
@@ -56,7 +58,7 @@
56
58
  "@progress/kendo-angular-layout": "22.0.1",
57
59
  "@progress/kendo-angular-listview": "22.0.1",
58
60
  "@progress/kendo-angular-notification": "22.0.1",
59
- "@memberjunction/ng-markdown": "4.2.0",
61
+ "@memberjunction/ng-markdown": "4.3.0",
60
62
  "marked": "^17.0.1",
61
63
  "rxjs": "^7.8.2",
62
64
  "tslib": "^2.8.1"