@memberjunction/ng-clustering 5.43.0 → 5.44.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.
- package/dist/lib/cluster-config-panel.component.d.ts +2 -2
- package/dist/lib/cluster-config-panel.component.d.ts.map +1 -1
- package/dist/lib/cluster-config-panel.component.dom.test.d.ts +2 -0
- package/dist/lib/cluster-config-panel.component.dom.test.d.ts.map +1 -0
- package/dist/lib/cluster-config-panel.component.dom.test.js +147 -0
- package/dist/lib/cluster-config-panel.component.dom.test.js.map +1 -0
- package/dist/lib/cluster-config-panel.component.js +52 -51
- package/dist/lib/cluster-config-panel.component.js.map +1 -1
- package/dist/lib/cluster-scatter.component.dom.test.d.ts +2 -0
- package/dist/lib/cluster-scatter.component.dom.test.d.ts.map +1 -0
- package/dist/lib/cluster-scatter.component.dom.test.js +102 -0
- package/dist/lib/cluster-scatter.component.dom.test.js.map +1 -0
- package/dist/lib/cluster-scatter.component.js +89 -95
- package/dist/lib/cluster-scatter.component.js.map +1 -1
- package/dist/lib/clustering.module.d.ts +2 -1
- package/dist/lib/clustering.module.d.ts.map +1 -1
- package/dist/lib/clustering.module.js +9 -2
- package/dist/lib/clustering.module.js.map +1 -1
- package/dist/lib/view-type/cluster-view-prop-sheet.component.dom.test.d.ts +2 -0
- package/dist/lib/view-type/cluster-view-prop-sheet.component.dom.test.d.ts.map +1 -0
- package/dist/lib/view-type/cluster-view-prop-sheet.component.dom.test.js +64 -0
- package/dist/lib/view-type/cluster-view-prop-sheet.component.dom.test.js.map +1 -0
- package/package.json +12 -10
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cluster-view-prop-sheet.component.dom.test.js","sourceRoot":"","sources":["../../../src/lib/view-type/cluster-view-prop-sheet.component.dom.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,YAAY,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,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACzF,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC;QACxB,QAAQ,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC5C,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,qCAAqC,EAAE,GAAG,EAAE;QAC7C,MAAM,OAAO,GAAG,WAAW,CAAC,EAAE,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,OAAO,CAA0B,OAAO,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC;QACzF,oGAAoG;QACpG,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,EAAE,sBAAsB,CAAuB,CAAC;QACrF,MAAM,eAAe,GAAG,YAAY,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC9D,eAAe,CAAC,KAAK,GAAG,MAAM,CAAC;QAC/B,eAAe,CAAC,aAAa,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC/B,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { describe, it, expect } from 'vitest';\nimport { CommonModule } from '@angular/common';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { renderComponentFixture, query, queryAll, capture } from '@memberjunction/ng-test-utils';\nimport { ClusterViewPropSheetComponent } from './cluster-view-prop-sheet.component';\n\n/**\n * DOM-level spec for <mj-cluster-view-prop-sheet>. Module-declared, inline template,\n * no external data — configured via the `config` @Input (an opaque host map). The\n * template uses native [value]/(change), so only CommonModule is needed (for @if).\n */\nfunction renderSheet(config: Record<string, unknown> = {}): ComponentFixture<ClusterViewPropSheetComponent> {\n return renderComponentFixture(ClusterViewPropSheetComponent, {\n imports: [CommonModule],\n declarations: [ClusterViewPropSheetComponent],\n inputs: { config },\n });\n}\n\ndescribe('ClusterViewPropSheetComponent (DOM)', () => {\n it('renders the K (clusters) input when algorithm is kmeans', () => {\n const fixture = renderSheet({ algorithm: 'kmeans' });\n const labels = queryAll(fixture, '.cluster-prop-row span').map((s) => s.textContent?.trim());\n expect(labels).toContain('Clusters (K)');\n });\n\n it('hides the K input when algorithm is dbscan', () => {\n const fixture = renderSheet({ algorithm: 'dbscan' });\n const labels = queryAll(fixture, '.cluster-prop-row span').map((s) => s.textContent?.trim());\n expect(labels).not.toContain('Clusters (K)');\n });\n\n it('reflects the algorithm value in the algorithm <select>', () => {\n const fixture = renderSheet({ algorithm: 'dbscan' });\n const algSelect = query(fixture, '.cluster-prop-row select') as HTMLSelectElement;\n expect(algSelect.value).toBe('dbscan');\n });\n\n it('emits the full config map with the patched algorithm on change', () => {\n const fixture = renderSheet({ algorithm: 'kmeans', k: 4 });\n const changes = capture<Record<string, unknown>>(fixture.componentInstance.configChange);\n const algSelect = query(fixture, '.cluster-prop-row select') as HTMLSelectElement;\n algSelect.value = 'dbscan';\n algSelect.dispatchEvent(new Event('change'));\n expect(changes.length).toBe(1);\n expect(changes[0]['algorithm']).toBe('dbscan');\n });\n\n it('reflects the nameClusters flag on the checkbox and emits when toggled', () => {\n const fixture = renderSheet({ nameClusters: false });\n const checkbox = query(fixture, 'input[type=\"checkbox\"]') as HTMLInputElement;\n expect(checkbox.checked).toBe(false);\n\n const changes = capture<Record<string, unknown>>(fixture.componentInstance.configChange);\n checkbox.checked = true;\n checkbox.dispatchEvent(new Event('change'));\n expect(changes.length).toBe(1);\n expect(changes[0]['nameClusters']).toBe(true);\n });\n\n it('emits a patched maxRecords on input', () => {\n const fixture = renderSheet({ maxRecords: 500 });\n const changes = capture<Record<string, unknown>>(fixture.componentInstance.configChange);\n // Max records is the number input that is not the K input (K hidden here is false; kmeans default).\n const numberInputs = queryAll(fixture, 'input[type=\"number\"]') as HTMLInputElement[];\n const maxRecordsInput = numberInputs[numberInputs.length - 1];\n maxRecordsInput.value = '1000';\n maxRecordsInput.dispatchEvent(new Event('input'));\n expect(changes.length).toBe(1);\n expect(changes[0]['maxRecords']).toBe(1000);\n });\n});\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-clustering",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.44.0",
|
|
4
4
|
"description": "MemberJunction: Reusable Angular clustering visualization components with scatter plot, config panel, and clustering service",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -24,6 +24,7 @@
|
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@angular/compiler": "21.1.3",
|
|
26
26
|
"@angular/compiler-cli": "21.1.3",
|
|
27
|
+
"@memberjunction/ng-test-utils": "5.44.0",
|
|
27
28
|
"vitest": "^4.0.18"
|
|
28
29
|
},
|
|
29
30
|
"peerDependencies": {
|
|
@@ -32,15 +33,16 @@
|
|
|
32
33
|
"@angular/forms": "21.1.3"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@memberjunction/
|
|
36
|
-
"@memberjunction/ai-
|
|
37
|
-
"@memberjunction/
|
|
38
|
-
"@memberjunction/core
|
|
39
|
-
"@memberjunction/
|
|
40
|
-
"@memberjunction/
|
|
41
|
-
"@memberjunction/
|
|
42
|
-
"@memberjunction/ng-
|
|
43
|
-
"@memberjunction/ng-entity-
|
|
36
|
+
"@memberjunction/ng-ui-components": "5.44.0",
|
|
37
|
+
"@memberjunction/ai-engine-base": "5.44.0",
|
|
38
|
+
"@memberjunction/ai-vectors-memory": "5.44.0",
|
|
39
|
+
"@memberjunction/core": "5.44.0",
|
|
40
|
+
"@memberjunction/core-entities": "5.44.0",
|
|
41
|
+
"@memberjunction/global": "5.44.0",
|
|
42
|
+
"@memberjunction/graphql-dataprovider": "5.44.0",
|
|
43
|
+
"@memberjunction/ng-base-types": "5.44.0",
|
|
44
|
+
"@memberjunction/ng-entity-card": "5.44.0",
|
|
45
|
+
"@memberjunction/ng-entity-viewer": "5.44.0",
|
|
44
46
|
"rxjs": "^7.8.2",
|
|
45
47
|
"tslib": "^2.8.1",
|
|
46
48
|
"umap-js": "^1.4.0"
|