@memberjunction/ng-find-record 6.2.2 → 6.3.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/README.md CHANGED
@@ -10,7 +10,7 @@ npm install @memberjunction/ng-find-record
10
10
 
11
11
  ## Overview
12
12
 
13
- The Find Record package provides a reusable search interface that works with any entity registered in the MemberJunction metadata system. It uses debounced search input with the RunView API and displays results in a Kendo UI grid for easy selection.
13
+ The Find Record package provides a reusable search interface that works with any entity registered in the MemberJunction metadata system. It uses debounced search input with the RunView API and displays results in a data grid for easy selection.
14
14
 
15
15
  ```mermaid
16
16
  flowchart LR
@@ -22,7 +22,7 @@ flowchart LR
22
22
  C --> D["BaseEntity Results"]
23
23
  end
24
24
  subgraph Display["UI Components"]
25
- D --> E["Kendo Grid"]
25
+ D --> E["AG Grid"]
26
26
  E --> F["OnRecordSelected"]
27
27
  end
28
28
 
@@ -109,7 +109,7 @@ Inherits all inputs from `FindRecordComponent`, plus:
109
109
 
110
110
  1. User types in the search input; input is debounced (default 300ms)
111
111
  2. A search executes via `RunView` with `UserSearchString` and `ResultType: 'entity_object'`
112
- 3. Results display in a Kendo UI grid with the configured display fields
112
+ 3. Results display in a data grid with the configured display fields
113
113
  4. Clicking a row emits the selected `BaseEntity` instance via `OnRecordSelected`
114
114
 
115
115
  ## Dependencies
@@ -117,7 +117,7 @@ Inherits all inputs from `FindRecordComponent`, plus:
117
117
  - [@memberjunction/core](../../../MJCore/readme.md) -- Metadata, RunView, BaseEntity
118
118
  - [@memberjunction/core-entities](../../../MJCoreEntities/readme.md) -- Entity type definitions
119
119
  - [@memberjunction/ng-shared](../shared/README.md) -- Shared Angular utilities
120
- - `@progress/kendo-angular-grid` -- Grid display
120
+ - `ag-grid-angular` -- Grid display
121
121
 
122
122
  ## Related Packages
123
123
 
@@ -213,11 +213,11 @@ export class FindRecordComponent extends BaseAngularComponent {
213
213
  i0.ɵɵconditional(!ctx.loading && ctx.records.length > 0 ? 5 : -1);
214
214
  i0.ɵɵadvance();
215
215
  i0.ɵɵconditional(!ctx.loading && ctx.records.length === 0 && ctx.searchHasRun ? 6 : -1);
216
- } }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.AgGridAngular, i3.MJButtonDirective], styles: [".list-box[_ngcontent-%COMP%] {\n width: 320px;\n height: 300px;\n}\n\n.k-listbox-actions-right[_ngcontent-%COMP%] {\n margin-left: 10px;\n}\n\n.item-icon[_ngcontent-%COMP%] {\n font-size: 16px;\n width: 25px;\n margin-right: 5px;\n}\n\n.find-textbox[_ngcontent-%COMP%] {\n width: 500px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n\n.find-button[_ngcontent-%COMP%] {\n width: 75px;\n margin-bottom: 10px;\n}\n\n.find-grid-wrapper[_ngcontent-%COMP%] {\n height: 280px;\n width: 100%;\n}\n\n.find-grid[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n}"] });
216
+ } }, dependencies: [i1.DefaultValueAccessor, i1.NgControlStatus, i1.NgModel, i2.AgGridAngular, i3.MJButtonDirective], styles: [".list-box[_ngcontent-%COMP%] {\n width: 320px;\n height: 300px;\n}\n\n.item-icon[_ngcontent-%COMP%] {\n font-size: 16px;\n width: 25px;\n margin-right: 5px;\n}\n\n.find-textbox[_ngcontent-%COMP%] {\n width: 500px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n\n.find-button[_ngcontent-%COMP%] {\n width: 75px;\n margin-bottom: 10px;\n}\n\n.find-grid-wrapper[_ngcontent-%COMP%] {\n height: 280px;\n width: 100%;\n}\n\n.find-grid[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n}"] });
217
217
  }
218
218
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindRecordComponent, [{
219
219
  type: Component,
220
- args: [{ standalone: false, selector: 'mj-find-record', template: "<div>\n <input\n type=\"text\"\n class=\"mj-input find-textbox\"\n placeholder=\"Start typing to search...\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"onSearchTermChange($event)\" />\n <button mjButton variant=\"primary\" class=\"find-button\" (click)=\"onFind()\">Find</button>\n\n @if (loading) {\n <div>Searching...</div>\n }\n @if (!loading && records.length > 0) {\n <div class=\"find-grid-wrapper\">\n <ag-grid-angular\n class=\"find-grid\"\n [theme]=\"GridTheme\"\n [rowData]=\"records\"\n [columnDefs]=\"ColumnDefs\"\n [defaultColDef]=\"DefaultColDef\"\n [rowSelection]=\"RowSelectionConfig\"\n (selectionChanged)=\"onSelectionChange($event)\"\n (gridReady)=\"onGridReady($event)\">\n </ag-grid-angular>\n </div>\n }\n @if (!loading && records.length === 0 && searchHasRun) {\n <div>No records found.</div>\n }\n</div>\n", styles: [".list-box {\n width: 320px;\n height: 300px;\n}\n\n.k-listbox-actions-right {\n margin-left: 10px;\n}\n\n.item-icon {\n font-size: 16px;\n width: 25px;\n margin-right: 5px;\n}\n\n.find-textbox {\n width: 500px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n\n.find-button {\n width: 75px;\n margin-bottom: 10px;\n}\n\n.find-grid-wrapper {\n height: 280px;\n width: 100%;\n}\n\n.find-grid {\n width: 100%;\n height: 100%;\n}"] }]
220
+ args: [{ standalone: false, selector: 'mj-find-record', template: "<div>\n <input\n type=\"text\"\n class=\"mj-input find-textbox\"\n placeholder=\"Start typing to search...\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"onSearchTermChange($event)\" />\n <button mjButton variant=\"primary\" class=\"find-button\" (click)=\"onFind()\">Find</button>\n\n @if (loading) {\n <div>Searching...</div>\n }\n @if (!loading && records.length > 0) {\n <div class=\"find-grid-wrapper\">\n <ag-grid-angular\n class=\"find-grid\"\n [theme]=\"GridTheme\"\n [rowData]=\"records\"\n [columnDefs]=\"ColumnDefs\"\n [defaultColDef]=\"DefaultColDef\"\n [rowSelection]=\"RowSelectionConfig\"\n (selectionChanged)=\"onSelectionChange($event)\"\n (gridReady)=\"onGridReady($event)\">\n </ag-grid-angular>\n </div>\n }\n @if (!loading && records.length === 0 && searchHasRun) {\n <div>No records found.</div>\n }\n</div>\n", styles: [".list-box {\n width: 320px;\n height: 300px;\n}\n\n.item-icon {\n font-size: 16px;\n width: 25px;\n margin-right: 5px;\n}\n\n.find-textbox {\n width: 500px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n\n.find-button {\n width: 75px;\n margin-bottom: 10px;\n}\n\n.find-grid-wrapper {\n height: 280px;\n width: 100%;\n}\n\n.find-grid {\n width: 100%;\n height: 100%;\n}"] }]
221
221
  }], null, { EntityName: [{
222
222
  type: Input
223
223
  }], DisplayFields: [{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-find-record",
3
- "version": "6.2.2",
3
+ "version": "6.3.0-edge.1",
4
4
  "description": "MemberJunction: Angular Component to allow a user to find a single record in any entity",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -13,7 +13,7 @@
13
13
  "devDependencies": {
14
14
  "@angular/compiler": "21.2.22",
15
15
  "@angular/compiler-cli": "21.2.22",
16
- "@memberjunction/ng-test-utils": "6.2.2",
16
+ "@memberjunction/ng-test-utils": "6.3.0-edge.1",
17
17
  "vitest": "^4.0.18"
18
18
  },
19
19
  "peerDependencies": {
@@ -24,13 +24,13 @@
24
24
  "ag-grid-community": "^35.0.1"
25
25
  },
26
26
  "dependencies": {
27
- "@memberjunction/core": "6.2.2",
28
- "@memberjunction/ng-base-types": "6.2.2",
29
- "@memberjunction/core-entities": "6.2.2",
30
- "@memberjunction/global": "6.2.2",
31
- "@memberjunction/ng-container-directives": "6.2.2",
32
- "@memberjunction/ng-shared-generic": "6.2.2",
33
- "@memberjunction/ng-ui-components": "6.2.2",
27
+ "@memberjunction/core": "6.3.0-edge.1",
28
+ "@memberjunction/ng-base-types": "6.3.0-edge.1",
29
+ "@memberjunction/core-entities": "6.3.0-edge.1",
30
+ "@memberjunction/global": "6.3.0-edge.1",
31
+ "@memberjunction/ng-container-directives": "6.3.0-edge.1",
32
+ "@memberjunction/ng-shared-generic": "6.3.0-edge.1",
33
+ "@memberjunction/ng-ui-components": "6.3.0-edge.1",
34
34
  "rxjs": "^7.8.2",
35
35
  "tslib": "^2.8.1"
36
36
  },