forms-angular 0.12.0-beta.192 → 0.12.0-beta.194

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.
@@ -18,6 +18,9 @@ declare module fngServer {
18
18
  searchImportance? : number;
19
19
  addHits?: number;
20
20
  matched: number[];
21
+ // the next two are only set where the resource options includes disambiguation instructions and multiple search results with the same text value are found...:
22
+ disambiguationId?: any; // this will identify the record (from another resource) that will be used to disambiguate them
23
+ disambiguationResource?: string ;// ...and this will identify that resource
21
24
  }
22
25
 
23
26
  export interface IIdIsList {
@@ -55,8 +58,14 @@ declare module fngServer {
55
58
  onAccess?: (req, cb) => void,
56
59
  searchFunc?: SearchFunc;
57
60
  synonyms? : {name: string, filter?: any}[], // name must be lower case
61
+ // when performing a search, two results from this resource with the same value for .text will be disambiguated by
62
+ // appending the description of the record from disambiguation.resource whose id matches result[disambiguation.field]
63
+ disambiguation?: {
64
+ field: string;
65
+ resource: string;
66
+ }
58
67
  // below here are autogenerated
59
- listFields?: { field: string }[]; // added after preprocess
68
+ listFields?: ListField[]; // added after preprocess
60
69
  dependents?: DependencyList; // can be added by generateDependencyList
61
70
  hide? : string[];
62
71
  paths?: Paths;
@@ -86,7 +95,7 @@ declare module fngServer {
86
95
  }
87
96
 
88
97
  interface ListField {
89
- field: String;
98
+ field: string;
90
99
  params?: ListParams;
91
100
  }
92
101
 
@@ -100,10 +109,17 @@ declare module fngServer {
100
109
  [key: string]: IFngPlugin;
101
110
  }
102
111
 
103
- export interface FngOptions {
112
+ interface FngOptions {
104
113
  urlPrefix?: string,
105
114
  plugins?: IPluginMap,
106
115
  modelFilter? : (p1: any, req: Request, resources: Resource[]) => Resource[]
107
116
  }
108
117
 
118
+ type AmbiguousRecordStore<t> = { [resource: string]: t[] };
119
+
120
+ interface DisambiguatableLookupItem {
121
+ id: string;
122
+ text: string;
123
+ disambiguationId?: string;
124
+ }
109
125
  }
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "author": "Mark Chapman <support@forms-angular.org>",
4
4
  "description": "A form builder that sits on top of Angular.js, Twitter Bootstrap, jQuery UI, Angular-UI, Express and Mongoose. Opinionated or what?",
5
5
  "homepage": "http://forms-angular.org",
6
- "version": "0.12.0-beta.192",
6
+ "version": "0.12.0-beta.194",
7
7
  "engines": {
8
8
  "node": ">=8.x",
9
9
  "npm": ">=5.x"
@@ -47,7 +47,7 @@
47
47
  "angular-sanitize": "1.8.3",
48
48
  "angular-ui-bootstrap": "1.3.2 || 2.5.6",
49
49
  "angular-ui-grid": "4.11.1",
50
- "async": "3.2.3",
50
+ "async": "3.2.4",
51
51
  "lodash": "^4.17.21",
52
52
  "ng-infinite-scroll": "1.3.0",
53
53
  "node.extend": "2.0.2"
@@ -58,13 +58,13 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/angular": "1.8.4",
61
- "@types/lodash": "4.14.181",
62
- "@types/node": "^16.11.26",
61
+ "@types/lodash": "4.14.191",
62
+ "@types/node": "^18.11.13",
63
63
  "angular-mocks": "1.8.3",
64
- "body-parser": "1.20.0",
64
+ "body-parser": "1.20.1",
65
65
  "bower": "^1.8.14",
66
66
  "del": "6.0.0",
67
- "express": "4.17.3",
67
+ "express": "4.18.2",
68
68
  "gulp": "^4.0.2",
69
69
  "gulp-angular-templatecache": "3.0.1",
70
70
  "gulp-clean-css": "4.3.0",
@@ -77,17 +77,17 @@
77
77
  "gulp-typescript": "5.0.1",
78
78
  "gulp-uglify": "3.0.2",
79
79
  "gulp-umd": "2.0.0",
80
- "jasmine-core": "4.1.0",
81
- "karma": "^6.3.18",
80
+ "jasmine-core": "4.5.0",
81
+ "karma": "^6.4.1",
82
82
  "karma-chrome-launcher": "^3.1.1",
83
83
  "karma-firefox-launcher": "^2.1.2",
84
- "karma-jasmine": "5.0.0",
84
+ "karma-jasmine": "5.1.0",
85
85
  "karma-junit-reporter": "2.0.1",
86
86
  "karma-ng-html2js-preprocessor": "1.0.0",
87
87
  "matchdep": "2.0.0",
88
- "mocha": "^9.2.2",
88
+ "mocha": "^10.2.0",
89
89
  "mongoose": "^6.2.10",
90
- "prettier": "2.6.2",
90
+ "prettier": "2.8.1",
91
91
  "pump": "3.0.0",
92
92
  "typescript": "4.6.3"
93
93
  },