pict-section-recordset 1.0.43 → 1.0.44

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.
Files changed (38) hide show
  1. package/example_applications/simple_entity/Simple-RecordSet-Application.js +198 -3
  2. package/example_applications/simple_entity/html/index.html +6 -0
  3. package/package.json +2 -2
  4. package/source/providers/Filter-Data-Provider.js +371 -0
  5. package/source/providers/RecordSet-Link-Manager.js +9 -1
  6. package/source/providers/RecordSet-RecordProvider-Base.js +1 -1
  7. package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +2 -0
  8. package/source/services/RecordsSet-MetaController.js +39 -0
  9. package/source/templates/Pict-Template-FilterInstanceViews.js +11 -7
  10. package/source/views/RecordSet-Filters.js +78 -45
  11. package/source/views/filters/RecordSet-Filter-Base.js +19 -1
  12. package/source/views/filters/RecordSet-Filter-ExternalJoinSelectedValue.js +270 -0
  13. package/source/views/filters/RecordSet-Filter-ExternalJoinSelectedValueList.js +277 -0
  14. package/source/views/filters/RecordSet-Filter-InternalJoinSelectedValue.js +270 -0
  15. package/source/views/filters/RecordSet-Filter-InternalJoinSelectedValueList.js +277 -0
  16. package/source/views/filters/index.js +4 -0
  17. package/types/providers/Filter-Data-Provider.d.ts +120 -0
  18. package/types/providers/Filter-Data-Provider.d.ts.map +1 -0
  19. package/types/providers/RecordSet-Link-Manager.d.ts +10 -5
  20. package/types/providers/RecordSet-Link-Manager.d.ts.map +1 -1
  21. package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts.map +1 -1
  22. package/types/services/RecordsSet-MetaController.d.ts +36 -7
  23. package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
  24. package/types/templates/Pict-Template-FilterInstanceViews.d.ts +1 -1
  25. package/types/templates/Pict-Template-FilterInstanceViews.d.ts.map +1 -1
  26. package/types/views/RecordSet-Filters.d.ts +10 -0
  27. package/types/views/RecordSet-Filters.d.ts.map +1 -1
  28. package/types/views/filters/RecordSet-Filter-Base.d.ts +10 -0
  29. package/types/views/filters/RecordSet-Filter-Base.d.ts.map +1 -1
  30. package/types/views/filters/RecordSet-Filter-ExternalJoinSelectedValue.d.ts +24 -0
  31. package/types/views/filters/RecordSet-Filter-ExternalJoinSelectedValue.d.ts.map +1 -0
  32. package/types/views/filters/RecordSet-Filter-ExternalJoinSelectedValueList.d.ts +24 -0
  33. package/types/views/filters/RecordSet-Filter-ExternalJoinSelectedValueList.d.ts.map +1 -0
  34. package/types/views/filters/RecordSet-Filter-InternalJoinSelectedValue.d.ts +24 -0
  35. package/types/views/filters/RecordSet-Filter-InternalJoinSelectedValue.d.ts.map +1 -0
  36. package/types/views/filters/RecordSet-Filter-InternalJoinSelectedValueList.d.ts +24 -0
  37. package/types/views/filters/RecordSet-Filter-InternalJoinSelectedValueList.d.ts.map +1 -0
  38. package/types/views/filters/index.d.ts +4 -0
@@ -0,0 +1,277 @@
1
+
2
+ const ViewRecordSetSUBSETFilterBase = require('./RecordSet-Filter-Base');
3
+
4
+ const _DEFAULT_CONFIGURATION_Filter_InternalJoin_SelectedValueList =
5
+ {
6
+ ViewIdentifier: 'PRSP-FilterType-InternalJoinSelectedValueList',
7
+
8
+ Templates:
9
+ [
10
+ {
11
+ Hash: 'PRSP-Filter-InternalJoin-SelectedValueList-Template',
12
+ Template: /*html*/`
13
+ <!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-SelectedValueList-Template] -->
14
+ <table>
15
+ <tbody>
16
+ <td valign="top">{~T:PRSP-Filter-InternalJoin-SelectedValueList-SearchResults~}</td><td valign="top">{~T:PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues~}</td>
17
+ </tbody>
18
+ </table>
19
+ <!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-SelectedValueList-Template] -->
20
+ `
21
+ },
22
+ {
23
+ Hash: 'PRSP-Filter-InternalJoin-SelectedValueList-SearchResults',
24
+ Template: /*html*/`
25
+ <!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-SearchResults] -->
26
+ <form id="PRSP_Filter_{~D:Record.Hash~}_Search_Form" onsubmit="_Pict.views['{~D:Context[0].Hash~}'].performSearch(event, '{~D:Record.ClauseAddress~}', '{~D:Record.Hash~}'); return false;">
27
+ <input id="PRSP_Filter_{~D:Record.Hash~}_Search_Value" type="text" placeholder="Search..." value="{~D:Record.SearchInputValue~}" />
28
+ <button type="submit" id="PRSP_Filter_{~D:Record.Hash~}_Button_Search" onclick="_Pict.views['{~D:Context[0].Hash~}'].performSearch(event, '{~D:Record.ClauseAddress~}', '{~D:Record.Hash~}')">Search</button>
29
+ </form>
30
+ <table>
31
+ <thead>
32
+ <tr><th colspan="2">{~D:Record.Label~}</th></tr>
33
+ </thead>
34
+ <tbody>
35
+ {~TSWP:PRSP-Filter-InternalJoin-SelectedValueList-SearchResults-Entry:Record.SearchResults:Record~}
36
+ </tbody>
37
+ </table>
38
+ <button type="button" id="PRSP_Filter_{~D:Record.Hash~}_Button_LoadMore" class="is-hidden" onclick="_Pict.views['{~D:Context[0].Hash~}'].loadMore(event, '{~D:Record.ClauseAddress~}', '{~D:Record.Hash~}', {~D:Record.SearchResultsOffset:0~})">Load More</button>
39
+ <!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-SearchResults] -->
40
+ `
41
+ },
42
+ {
43
+ Hash: 'PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues',
44
+ Template: /*html*/`
45
+ <!-- DefaultPackage view template: [PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues] -->
46
+ <table>
47
+ <thead>
48
+ <tr><th colspan="2">Selection</th></tr>
49
+ </thead>
50
+ <tbody>
51
+ {~TSWP:PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues-Entry:Record.SelectedValues:Record~}
52
+ </tbody>
53
+ </table>
54
+ <!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues] -->
55
+ `
56
+ },
57
+ {
58
+ Hash: 'PRSP-Filter-InternalJoin-SelectedValueList-SearchResults-Entry',
59
+ Template: /*html*/`
60
+ <!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-SelectedValueList-Template] -->
61
+ <tr><td><button onclick="_Pict.views['{~D:Context[0].Hash~}'].handleAdd(event, {~DVBK:Record.Data:Record.Payload.ExternalFilterTableLookupColumn~}, '{~D:Record.Payload.ClauseAddress~}', '{~D:Record.Payload.Hash~}')">Add</button></td><td>{~TFA:Record.Payload.ExternalRecordDisplayTemplate:Record~}</td></tr>
62
+ <!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-SelectedValueList-Template] -->
63
+ `
64
+ },
65
+ {
66
+ Hash: 'PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues-Entry',
67
+ Template: /*html*/`
68
+ <!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues-Entry] -->
69
+ <tr><td><button onclick="_Pict.views['{~D:Context[0].Hash~}'].handleRemove(event, {~DVBK:Record.Data:Record.Payload.ExternalFilterTableLookupColumn~}, '{~D:Record.Payload.ClauseAddress~}', '{~D:Record.Payload.Hash~}')">Remove</button></td><td>{~TFA:Record.Payload.ExternalRecordDisplayTemplate:Record~}</td></tr>
70
+ <!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-SelectedValueList-SelectedValues-Entry] -->
71
+ `
72
+ }
73
+ ],
74
+ };
75
+
76
+ class ViewRecordSetSUBSETFilterInternalJoinSelectedValueList extends ViewRecordSetSUBSETFilterBase
77
+ {
78
+ constructor(pFable, pOptions, pServiceHash)
79
+ {
80
+ if (!pOptions.PageSize)
81
+ {
82
+ pOptions.PageSize = 15; // default page size for search results
83
+ }
84
+ super(pFable, pOptions, pServiceHash);
85
+ /*
86
+ * show / hide the complex editor since it'll be large ?
87
+ * selected record lookup values
88
+ * using bundle to load those records (if any)
89
+ * templating out the selection
90
+ * templating out the search results
91
+ * controls to add search result values to selection
92
+ */
93
+ }
94
+
95
+ /**
96
+ * @param {Record<string, any>} pRecord
97
+ */
98
+ prepareRecord(pRecord)
99
+ {
100
+ super.prepareRecord(pRecord);
101
+
102
+ pRecord.ClauseDescriptor.DataType = 'Number';
103
+ if (!pRecord.ExternalFilterTableLookupColumn)
104
+ {
105
+ pRecord.ExternalFilterTableLookupColumn = `ID${pRecord.RemoteTable}`;
106
+ }
107
+ if (!pRecord.SearchResults)
108
+ {
109
+ pRecord.SearchResults = [];
110
+ }
111
+ if (!pRecord.SelectedValues)
112
+ {
113
+ pRecord.SelectedValues = [];
114
+ }
115
+ }
116
+
117
+ getFilterFormTemplate()
118
+ {
119
+ return 'PRSP-Filter-InternalJoin-SelectedValueList-Template';
120
+ }
121
+
122
+ /**
123
+ * @param {UIEvent} pEvent
124
+ * @param {string} pClauseInformaryAddress
125
+ * @param {string} pClauseHash
126
+ */
127
+ loadMore(pEvent, pClauseInformaryAddress, pClauseHash, pCurrentOffset = 0)
128
+ {
129
+ this.performSearch(pEvent, pClauseInformaryAddress, pClauseHash, pCurrentOffset + this.options.PageSize);
130
+ }
131
+
132
+ /**
133
+ * @param {UIEvent} pEvent
134
+ * @param {string} pClauseInformaryAddress
135
+ * @param {string} pClauseHash
136
+ * @param {number} [pOffset=0] - The offset for the search results, defaults to 0
137
+ */
138
+ performSearch(pEvent, pClauseInformaryAddress, pClauseHash, pOffset = 0)
139
+ {
140
+ pEvent.preventDefault();
141
+ const tmpClause = this.getInformaryScopedValue(pClauseInformaryAddress);
142
+ if (!tmpClause)
143
+ {
144
+ this.pict.log.error(`[Filter-InternalJoinSelectedValueList] No clause found for address: ${pClauseInformaryAddress}`);
145
+ return;
146
+ }
147
+ tmpClause.SearchResultsOffset = pOffset;
148
+ // get the input value (search box)
149
+ const tmpSearchInputValue = pOffset > 0 ? tmpClause.SearchInputValue : this.pict.ContentAssignment.readContent(`#PRSP_Filter_${tmpClause.Hash}_Search_Value`);
150
+ tmpClause.SearchInputValue = tmpSearchInputValue;
151
+ if (!tmpSearchInputValue)
152
+ {
153
+ tmpClause.SearchResults = [];
154
+ tmpClause.LoadMoreEnabled = false;
155
+ const tmpRecord = Object.assign({ ClauseAddress: pClauseInformaryAddress }, tmpClause);
156
+ this.prepareRecord(tmpRecord);
157
+ const tmpDestinationAddress = `#PRSP_Filter_Container_${pClauseHash}`;
158
+ this.render(null, tmpDestinationAddress, tmpRecord);
159
+ return;
160
+ }
161
+ const tmpFilterByColumns = tmpClause.ExternalFilterByColumns || (tmpClause.ExternalFilterByColumn ? [ tmpClause.ExternalFilterByColumn ] : [ 'Name' ]);
162
+ const tmpMeadowFilter = tmpFilterByColumns.map((pColumn) => `FBVOR~${pColumn}~LK~${encodeURIComponent(`%${tmpSearchInputValue}%`)}`).join('~');
163
+ // bundle load the remote records and put them in the clause
164
+ this.pict.EntityProvider.gatherDataFromServer(
165
+ [
166
+ {
167
+ Entity: tmpClause.RemoteTable,
168
+ Filter: tmpMeadowFilter,
169
+ Destination: pOffset > 0 ? `${this.getInformaryAddressPrefix()}${pClauseInformaryAddress}.SearchResultsAppend` : `${this.getInformaryAddressPrefix()}${pClauseInformaryAddress}.SearchResults`,
170
+ RecordStartCursor: pOffset,
171
+ PageSize: this.options.PageSize,
172
+ }
173
+ ],
174
+ (pError, pResult) =>
175
+ {
176
+ if (pOffset > 0 && tmpClause.SearchResultsAppend?.length > 0)
177
+ {
178
+ tmpClause.SearchResults = tmpClause.SearchResults.concat(tmpClause.SearchResultsAppend);
179
+ }
180
+ delete tmpClause.SearchResultsAppend;
181
+ tmpClause.SearchResultsOffset = pOffset;
182
+ const tmpRecord = Object.assign({ ClauseAddress: pClauseInformaryAddress }, tmpClause);
183
+ this.prepareRecord(tmpRecord);
184
+ const tmpDestinationAddress = `#PRSP_Filter_Container_${pClauseHash}`;
185
+ this.render(null, tmpDestinationAddress, tmpRecord);
186
+ const tmpLoadedRecords = pOffset > 0 ? tmpClause.SearchResultsAppend : tmpClause.SearchResults;
187
+ const tmpLoadMoreEnabled = tmpLoadedRecords && tmpLoadedRecords.length >= this.options.PageSize;
188
+ tmpClause.LoadMoreEnabled = tmpLoadMoreEnabled;
189
+ if (tmpClause.LoadMoreEnabled)
190
+ {
191
+ this.pict.ContentAssignment.removeClass(`#PRSP_Filter_${tmpClause.Hash}_Button_LoadMore`, 'is-hidden');
192
+ }
193
+ });
194
+ }
195
+
196
+ handleAdd(pEvent, pRecordLookupValue, pClauseInformaryAddress, pClauseHash)
197
+ {
198
+ pEvent.preventDefault();
199
+ const tmpClause = this.getInformaryScopedValue(pClauseInformaryAddress);
200
+ if (!tmpClause)
201
+ {
202
+ this.pict.log.error(`[Filter-InternalJoinSelectedValueList] No clause found for address: ${pClauseInformaryAddress}`);
203
+ return;
204
+ }
205
+ const tmpRecordLookupColumn = tmpClause.ExternalFilterTableLookupColumn || `ID${tmpClause.RemoteTable}`;
206
+ const tmpRecordToAdd = tmpClause.SearchResults.find((r) => r[tmpRecordLookupColumn] == pRecordLookupValue);
207
+ if (!tmpRecordToAdd)
208
+ {
209
+ this.pict.log.error(`[Filter-InternalJoinSelectedValueList] No record found to add for value: ${pRecordLookupValue}`);
210
+ return;
211
+ }
212
+ if (!tmpClause.SelectedValues)
213
+ {
214
+ tmpClause.SelectedValues = [];
215
+ }
216
+ if (tmpClause.SelectedValues.some((pSV) => pSV[tmpRecordLookupColumn] == pRecordLookupValue))
217
+ {
218
+ return;
219
+ }
220
+ const tmpValue = tmpRecordToAdd[tmpRecordLookupColumn];
221
+ if (tmpValue == null)
222
+ {
223
+ this.pict.log.error(`[Filter-InternalJoinSelectedValueList] No value found in record to add: ${JSON.stringify(tmpRecordToAdd)}`);
224
+ return;
225
+ }
226
+ tmpClause.SelectedValues.push(tmpRecordToAdd);
227
+ if (!tmpClause.Values)
228
+ {
229
+ tmpClause.Values = [];
230
+ }
231
+ if (!tmpClause.Values.some((pV) => pV == tmpValue))
232
+ {
233
+ tmpClause.Values.push(tmpValue);
234
+ }
235
+ const tmpRecord = Object.assign({ ClauseAddress: pClauseInformaryAddress }, tmpClause);
236
+ this.prepareRecord(tmpRecord);
237
+ const tmpDestinationAddress = `#PRSP_Filter_Container_${pClauseHash}`;
238
+ this.render(null, tmpDestinationAddress, tmpRecord);
239
+ if (tmpClause.LoadMoreEnabled)
240
+ {
241
+ this.pict.ContentAssignment.removeClass(`#PRSP_Filter_${tmpClause.Hash}_Button_LoadMore`, 'is-hidden');
242
+ }
243
+ }
244
+
245
+ handleRemove(pEvent, pRecordLookupValue, pClauseInformaryAddress, pClauseHash)
246
+ {
247
+ pEvent.preventDefault();
248
+ const tmpClause = this.getInformaryScopedValue(pClauseInformaryAddress);
249
+ if (!tmpClause)
250
+ {
251
+ this.pict.log.error(`[Filter-InternalJoinSelectedValueList] No clause found for address: ${pClauseInformaryAddress}`);
252
+ return;
253
+ }
254
+ const tmpRecordLookupColumn = tmpClause.ExternalFilterTableLookupColumn || `ID${tmpClause.RemoteTable}`;
255
+ const tmpRecordIndexToRemove = tmpClause.SelectedValues.findIndex((r) => r[tmpRecordLookupColumn] == pRecordLookupValue);
256
+ if (tmpRecordIndexToRemove < 0)
257
+ {
258
+ this.pict.log.error(`[Filter-InternalJoinSelectedValueList] No record found to remove for value: ${pRecordLookupValue}`);
259
+ return;
260
+ }
261
+ const tmpRecordToRemove = tmpClause.SelectedValues.splice(tmpRecordIndexToRemove, 1)[0];
262
+ const tmpValue = tmpRecordToRemove[tmpRecordLookupColumn];
263
+ tmpClause.Values = tmpClause.Values.filter((pV) => pV !== tmpValue);
264
+ const tmpRecord = Object.assign({ ClauseAddress: pClauseInformaryAddress }, tmpClause);
265
+ this.prepareRecord(tmpRecord);
266
+ const tmpDestinationAddress = `#PRSP_Filter_Container_${pClauseHash}`;
267
+ this.render(null, tmpDestinationAddress, tmpRecord);
268
+ if (tmpClause.LoadMoreEnabled)
269
+ {
270
+ this.pict.ContentAssignment.removeClass(`#PRSP_Filter_${tmpClause.Hash}_Button_LoadMore`, 'is-hidden');
271
+ }
272
+ }
273
+ }
274
+
275
+ module.exports = ViewRecordSetSUBSETFilterInternalJoinSelectedValueList;
276
+
277
+ module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterInternalJoinSelectedValueList.default_configuration, _DEFAULT_CONFIGURATION_Filter_InternalJoin_SelectedValueList);
@@ -16,6 +16,8 @@ module.exports =
16
16
  InternalJoinNumericRange: require('./RecordSet-Filter-InternalJoinNumericRange.js'),
17
17
  InternalJoinStringMatch: require('./RecordSet-Filter-InternalJoinStringMatch.js'),
18
18
  InternalJoinStringRange: require('./RecordSet-Filter-InternalJoinStringRange.js'),
19
+ InternalJoinSelectedValue: require('./RecordSet-Filter-InternalJoinSelectedValue.js'),
20
+ InternalJoinSelectedValueList: require('./RecordSet-Filter-InternalJoinSelectedValueList.js'),
19
21
 
20
22
  ExternalJoinDateMatch: require('./RecordSet-Filter-ExternalJoinDateMatch.js'),
21
23
  ExternalJoinDateRange: require('./RecordSet-Filter-ExternalJoinDateRange.js'),
@@ -23,5 +25,7 @@ module.exports =
23
25
  ExternalJoinNumericRange: require('./RecordSet-Filter-ExternalJoinNumericRange.js'),
24
26
  ExternalJoinStringMatch: require('./RecordSet-Filter-ExternalJoinStringMatch.js'),
25
27
  ExternalJoinStringRange: require('./RecordSet-Filter-ExternalJoinStringRange.js'),
28
+ ExternalJoinSelectedValue: require('./RecordSet-Filter-ExternalJoinSelectedValue.js'),
29
+ ExternalJoinSelectedValueList: require('./RecordSet-Filter-ExternalJoinSelectedValueList.js'),
26
30
  };
27
31
 
@@ -0,0 +1,120 @@
1
+ export = FilterDataProvider;
2
+ declare class FilterDataProvider extends libPictProvider {
3
+ /**
4
+ * @param {import('pict')} pFable - The Fable instance
5
+ * @param {Record<string, any>} [pOptions] - The options for the provider
6
+ * @param {string} [pServiceHash] - The service hash for the provider
7
+ */
8
+ constructor(pFable: import("pict"), pOptions?: Record<string, any>, pServiceHash?: string);
9
+ storageProvider: any;
10
+ keyCache: {};
11
+ filtersMap: {};
12
+ lastFilterExperienceHashMap: {};
13
+ /**
14
+ * @return {void}
15
+ */
16
+ loadFilters(): void;
17
+ /**
18
+ * List all available Filters (from the Filter Meta data)
19
+ *
20
+ * @param {string} pRecordSet - the record set to list the filters for
21
+ *
22
+ * @return Array<Record<string, any>> - a list of Filters as Index/FilterExperienceHash entries
23
+ */
24
+ listFilters(pRecordSet: string): any;
25
+ /**
26
+ * @param {string} pRecordSet - the record set to get the active filter experience for
27
+ *
28
+ * @return {Record<string, any>} - the active filter experience for the given record set
29
+ */
30
+ getActiveFilterExperience(pRecordSet: string): Record<string, any>;
31
+ /**
32
+ * Check if a particular scope is in use.
33
+ *
34
+ * @param {string} pRecordSet - the record set
35
+ * @param {string} pFilterExperienceHash - the manyfest scope to check the existence of
36
+ *
37
+ * @return {boolean}
38
+ */
39
+ checkFilterExists(pRecordSet: string, pFilterExperienceHash: string): boolean;
40
+ /**
41
+ * Resolve a key in the LocalStorage keyspace for a filter experience for a given record set.
42
+ *
43
+ * @param {string} pRecordSet - The record set to resolve a key for
44
+ * @param {string} pFilterExperienceHash - The scope to resolve a key for
45
+ *
46
+ * @return {string} A string that points to the record.
47
+ */
48
+ getFilterStorageKey(pRecordSet: string, pFilterExperienceHash: string): string;
49
+ /**
50
+ * Save the application metadata (list of Filters, last loaded FilterExperienceHash, etc.)
51
+ *
52
+ * @param {string} pRecordSet - The record set to save the filter for; TODO: should this have a default?
53
+ * @param {boolean} [pRender=false] - Whether or not to also render the list of Filters in the UI automatically
54
+ */
55
+ saveFilterMeta(pRecordSet: string, pRender?: boolean): boolean;
56
+ /**
57
+ * Save the application metadata (list of Filters, last loaded FilterExperienceHash, etc.)
58
+ *
59
+ * @param {string} pRecordSet - The record set to save the filter for; TODO: should this have a default?
60
+ * @param {boolean} [pRender=false] - Whether or not to also render the list of Filters in the UI automatically
61
+ *
62
+ * @return {Array<object>} The list of available Filters.
63
+ */
64
+ loadFilterMeta(pRecordSet: string, pRender?: boolean): Array<object>;
65
+ /**
66
+ * @param {string} pRecordSet - The record set to add the filter experience hash to
67
+ * @param {string} pFilterExperienceHash - The filter experience hash to add
68
+ * @param {boolean} [pRender=true] - Whether or not to also render the list of Filters in the UI automatically
69
+ *
70
+ * @return {boolean} True if the filter experience hash was added, false if it already exists.
71
+ */
72
+ addFilterExperienceHashToFilterList(pRecordSet: string, pFilterExperienceHash: string, pRender?: boolean): boolean;
73
+ /**
74
+ * @param {string} pRecordSet - The record set to remove the filter experience hash from
75
+ * @param {string} pFilterExperienceHash - The filter experience hash to remove
76
+ * @param {boolean} [pRender=true] - Whether or not to also render the list of Filters in the UI automatically
77
+ */
78
+ removeFilterExperienceHashFromFilterList(pRecordSet: string, pFilterExperienceHash: string, pRender?: boolean): boolean;
79
+ /**
80
+ * @param {string} pRecordSet - The record set to create a new filter for
81
+ * @param {string} [pFilterExperienceHash] - The filter experience hash to create a new filter for; if not provided, a new one will be generated
82
+ */
83
+ newFilter(pRecordSet: string, pFilterExperienceHash?: string): void;
84
+ /**
85
+ * @param {string} pRecordSet - The record set to save the filter for; TODO: should this have a default?
86
+ */
87
+ saveFilter(pRecordSet: string): void;
88
+ /**
89
+ * @param {string} pRecordSet - The record set to load the filter for
90
+ * @param {string} pFilterFilterExperienceHash - The filter experience hash to load; if not provided, the last used one will be loaded
91
+ */
92
+ loadFilter(pRecordSet: string, pFilterFilterExperienceHash: string): void;
93
+ /**
94
+ * @param {string} pKey - The key to get from the cache
95
+ *
96
+ * @return {any} - The value associated with the key, or false if not found
97
+ */
98
+ getItem(pKey: string): any;
99
+ /**
100
+ * @param {string} pKey - The key to set in the cache
101
+ * @param {any} pValue - The value to associate with the key
102
+ */
103
+ setItem(pKey: string, pValue: any): boolean;
104
+ /**
105
+ * @param {string} pKey - The key to remove from the cache
106
+ *
107
+ * @return {boolean} - True if the item was removed, false if it was not found
108
+ */
109
+ removeItem(pKey: string): boolean;
110
+ }
111
+ declare namespace FilterDataProvider {
112
+ export { _DEFAULT_PROVIDER_CONFIGURATION as default_configuration };
113
+ }
114
+ import libPictProvider = require("pict-provider");
115
+ declare namespace _DEFAULT_PROVIDER_CONFIGURATION {
116
+ let ProviderIdentifier: string;
117
+ let AutoInitialize: boolean;
118
+ let AutoInitializeOrdinal: number;
119
+ }
120
+ //# sourceMappingURL=Filter-Data-Provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Filter-Data-Provider.d.ts","sourceRoot":"","sources":["../../source/providers/Filter-Data-Provider.js"],"names":[],"mappings":";AAUA;IAEC;;;;OAIG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBACnB,MAAM,EAiBhB;IATA,qBAA2B;IAC3B,aAAkB;IAMlB,eAAqB;IACrB,gCAAsC;IAUvC;;OAEG;IACH,eAFY,IAAI,CAKf;IAED;;;;;;OAMG;IACH,wBAJW,MAAM,OAUhB;IAED;;;;OAIG;IACH,sCAJW,MAAM,GAEL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED;;;;;;;OAOG;IACH,8BALW,MAAM,yBACN,MAAM,GAEL,OAAO,CAgBlB;IAED;;;;;;;OAOG;IACH,gCALW,MAAM,yBACN,MAAM,GAEL,MAAM,CAQjB;IAED;;;;;OAKG;IACH,2BAHW,MAAM,YACN,OAAO,WAejB;IAED;;;;;;;OAOG;IACH,2BALW,MAAM,YACN,OAAO,GAEN,KAAK,CAAC,MAAM,CAAC,CA6BxB;IAED;;;;;;OAMG;IACH,gDANW,MAAM,yBACN,MAAM,YACN,OAAO,GAEN,OAAO,CA4BlB;IAED;;;;OAIG;IACH,qDAJW,MAAM,yBACN,MAAM,YACN,OAAO,WAoCjB;IAED;;;OAGG;IACH,sBAHW,MAAM,0BACN,MAAM,QAoDhB;IAED;;OAEG;IACH,uBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,uBAHW,MAAM,+BACN,MAAM,QAUhB;IAED;;;;OAIG;IACH,cAJW,MAAM,GAEL,GAAG,CASd;IAED;;;OAGG;IACH,cAHW,MAAM,UACN,GAAG,WAMb;IAED;;;;OAIG;IACH,iBAJW,MAAM,GAEL,OAAO,CAUlB;CACD"}
@@ -4,11 +4,16 @@ declare class PictRecordSetLinkManager extends libPictProvider {
4
4
  /** @type {import('pict')} */
5
5
  pict: import("pict");
6
6
  linkTemplates: any[];
7
- addRecordLinkTemplate(pNameTemplate: any, pURLTemplate: any, pDefault: any): {
8
- Name: any;
9
- URL: any;
10
- Default: any;
11
- };
7
+ /**
8
+ * TODO: Add the ability to add routes that are scoped to particular entity types
9
+ *
10
+ * @param {string} pNameTemplate - The name template for the record link.
11
+ * @param {string} pURLTemplate - The URL template for the record link.
12
+ * @param {boolean} pDefault - Whether this is a default link template.
13
+ *
14
+ * @return {Record<string, any>} - The link template object that was added.
15
+ */
16
+ addRecordLinkTemplate(pNameTemplate: string, pURLTemplate: string, pDefault: boolean): Record<string, any>;
12
17
  }
13
18
  declare namespace PictRecordSetLinkManager {
14
19
  export { _DEFAULT_PROVIDER_CONFIGURATION as default_configuration };
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Link-Manager.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-Link-Manager.js"],"names":[],"mappings":";AAWA;IAEC,2DAkBC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAST,qBAAuB;IAIxB;;;;MAcC;CACD;;;;;AA/CD,kCAAkC;AAClC,+CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAO7B"}
1
+ {"version":3,"file":"RecordSet-Link-Manager.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-Link-Manager.js"],"names":[],"mappings":";AAWA;IAEC,2DAkBC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAST,qBAAuB;IAGxB;;;;;;;;OAQG;IACH,qCANW,MAAM,gBACN,MAAM,YACN,OAAO,GAEN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAgB9B;CACD;;;;;AAvDD,kCAAkC;AAClC,+CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAO7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-RecordProvider-MeadowEndpoints.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-RecordProvider-MeadowEndpoints.js"],"names":[],"mappings":";AAGA;;;GAGG;AAEH;;;GAGG;AACH;IAcE;;;;;;;;;aASS;IACT,MAVW,OAAO,MAAM,CAAC,GAAG;QACpB,GAAG,EAAE,GAAG,CAAC;QACT,QAAQ,EACf;YACI,oBAAoB,EAAE,YAAY,CAAC;;;;;;aAAsC,CAAC,CAAC;YAC/E,CAAK,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACnB,CAAC;QACE,6CAA6C,EAAE,CAAC,IAAI,QAAQ,KAAK,GAAG,CAAC;QACrE,oBAAoB,EAAE,YAAY,CAAC;;;;;;SAAsC,CAAC,CAAA;KAC7E,CACI;IACT;aAVa,GAAG;kBAEf;YACI,oBAAoB,EAAE,YAAY,CAAC;;;;;;aAAsC,CAAC,CAAC;YAC/E,CAAK,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACnB;uDACkD,CAAC,IAAI,QAAQ,KAAK,GAAG;8BAC9C,YAAY,CAAC;;;;;;SAAsC,CAAC;MAG5D;IAMtB,kCAAkC;IAClC,SADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAClB;IACZ,kDAAkD;IAClD,cADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACvB;IACvB,kDAAkD;IAClD,iBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACpB;IAG3B,0EAA0E;IAC1E,sBADa,OAAO,iDAAiD,CAAC,CAerE;IAVC,wEAAwE;IAExE,iBAFW,OAAO,iDAAiD,CAAC,CAE4B;IAUlG;;OAEG;IACH,0BAFY,KAAK,CAAC,MAAM,CAAC,CASxB;IAED;;;;OAIG;IACH,qBAFW,MAAM,GAAC,MAAM,gBA4BvB;IAED;;;;OAIG;IACH,uBAFW,MAAM,GAAC,MAAM,gBA2BvB;IAED,iGAiBC;IA+CD;;;;OAIG;IACH,4BAFW,eAAe,gBA0BzB;IAED;;;;OAIG;IACH,sBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAsB7B;IAED;;;;OAIG;IACH,sBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAsB7B;IAED;;;;OAIG;IACH,sBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAsB7B;IAED;;;;OAIG;IACH,sBAFW,MAAM,GAAC,MAAM,gBAKvB;IAaD;;;;OAIG;IACH,qBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAK7B;IAcD;;;;OAIG;IACH,oCAJW,MAAM,WACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,uBACnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OA0D7B;IAED;;OAEG;IACH,6BAFW,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,QAyFjC;IAED;;;OAGG;IACH,oCAHW,MAAM,GACL,MAAM,CAKjB;IAED;;;OAGG;IACH,yCAHW,MAAM,GACL,MAAM,CAiCjB;IAED;;OAEG;IACH,kCAFW,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,QA6BjC;IAED,+BA8HC;CA0DD;;;;;uBAzwBY,OAAO,oCAAoC,EAAE,eAAe;uBAC5D,OAAO,oCAAoC,EAAE,eAAe"}
1
+ {"version":3,"file":"RecordSet-RecordProvider-MeadowEndpoints.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-RecordProvider-MeadowEndpoints.js"],"names":[],"mappings":";AAGA;;;GAGG;AAEH;;;GAGG;AACH;IAcE;;;;;;;;;aASS;IACT,MAVW,OAAO,MAAM,CAAC,GAAG;QACpB,GAAG,EAAE,GAAG,CAAC;QACT,QAAQ,EACf;YACI,oBAAoB,EAAE,YAAY,CAAC;;;;;;aAAsC,CAAC,CAAC;YAC/E,CAAK,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACnB,CAAC;QACE,6CAA6C,EAAE,CAAC,IAAI,QAAQ,KAAK,GAAG,CAAC;QACrE,oBAAoB,EAAE,YAAY,CAAC;;;;;;SAAsC,CAAC,CAAA;KAC7E,CACI;IACT;aAVa,GAAG;kBAEf;YACI,oBAAoB,EAAE,YAAY,CAAC;;;;;;aAAsC,CAAC,CAAC;YAC/E,CAAK,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;SACnB;uDACkD,CAAC,IAAI,QAAQ,KAAK,GAAG;8BAC9C,YAAY,CAAC;;;;;;SAAsC,CAAC;MAG5D;IAMtB,kCAAkC;IAClC,SADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAClB;IACZ,kDAAkD;IAClD,cADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACvB;IACvB,kDAAkD;IAClD,iBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACpB;IAG3B,0EAA0E;IAC1E,sBADa,OAAO,iDAAiD,CAAC,CAerE;IAVC,wEAAwE;IAExE,iBAFW,OAAO,iDAAiD,CAAC,CAE4B;IAUlG;;OAEG;IACH,0BAFY,KAAK,CAAC,MAAM,CAAC,CASxB;IAED;;;;OAIG;IACH,qBAFW,MAAM,GAAC,MAAM,gBA4BvB;IAED;;;;OAIG;IACH,uBAFW,MAAM,GAAC,MAAM,gBA2BvB;IAED,iGAiBC;IA+CD;;;;OAIG;IACH,4BAFW,eAAe,gBA0BzB;IAED;;;;OAIG;IACH,sBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAsB7B;IAED;;;;OAIG;IACH,sBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAsB7B;IAED;;;;OAIG;IACH,sBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAsB7B;IAED;;;;OAIG;IACH,sBAFW,MAAM,GAAC,MAAM,gBAKvB;IAaD;;;;OAIG;IACH,qBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,gBAK7B;IAcD;;;;OAIG;IACH,oCAJW,MAAM,WACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,uBACnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OA0D7B;IAED;;OAEG;IACH,6BAFW,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,QA2FjC;IAED;;;OAGG;IACH,oCAHW,MAAM,GACL,MAAM,CAKjB;IAED;;;OAGG;IACH,yCAHW,MAAM,GACL,MAAM,CAiCjB;IAED;;OAEG;IACH,kCAFW,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,QA6BjC;IAED,+BA8HC;CA0DD;;;;;uBA3wBY,OAAO,oCAAoC,EAAE,eAAe;uBAC5D,OAAO,oCAAoC,EAAE,eAAe"}
@@ -36,16 +36,45 @@ declare class RecordSetMetacontroller {
36
36
  manifests: Record<string, import("manyfest")>;
37
37
  has_initialized: boolean;
38
38
  /**
39
+ * @param {string} pRecordSet - The RecordSet name to get the configuration for.
40
+ *
39
41
  * @return {Record<string, any>} - The registered configuration for the RecordSet
40
42
  */
41
- getRecordSetConfiguration(pRecordSet: any): Record<string, any>;
42
- loadRecordSetConfiguration(pRecordSetConfiguration: any): boolean;
43
- loadRecordSetConfigurationArray(pRecordSetConfigurationArray: any): boolean;
44
- loadRecordSetDynamically(pRecordSet: any, pEntity: any, pDefaultFilter: any): any;
45
- handleLoadDynamicRecordSetRoute(pRoutePayload: any): any;
43
+ getRecordSetConfiguration(pRecordSet: string): Record<string, any>;
44
+ /**
45
+ * @param {Record<string, any>} pRecordSetConfiguration - The RecordSet configuration to load.
46
+ */
47
+ loadRecordSetConfiguration(pRecordSetConfiguration: Record<string, any>): boolean;
48
+ /**
49
+ * @param {Array<Record<string, any>>} pRecordSetConfigurationArray - An array of RecordSet configurations to load.
50
+ */
51
+ loadRecordSetConfigurationArray(pRecordSetConfigurationArray: Array<Record<string, any>>): boolean;
52
+ /**
53
+ * @param {Record<string, any> | string} pRecordSet - The RecordSet configuration or hash to load dynamically.
54
+ * @param {string} [pEntity] - (optional) The Entity type to use (defaults to the RecordSet name if not provided).
55
+ * @param {string} [pDefaultFilter] - (optional) The default filter to use.
56
+ */
57
+ loadRecordSetDynamically(pRecordSet: Record<string, any> | string, pEntity?: string, pDefaultFilter?: string): any;
58
+ /**
59
+ * @param {Record<string, any>} pRoutePayload - The route payload containing the RecordSet and optional Entity and DefaultFilter.
60
+ */
61
+ handleLoadDynamicRecordSetRoute(pRoutePayload: Record<string, any>): any;
62
+ /**
63
+ * @param {import('pict-router')} pPictRouter - The Pict Router to add the routes to.
64
+ */
46
65
  addRoutes(pPictRouter: any): boolean;
47
- checkSession(pCapability: any): Promise<boolean>;
48
- addRecordLinkTemplate(pNameTemplate: any, pURLTemplate: any, pDefault: any): any;
66
+ /**
67
+ * @param {string} pCapability - The capability to check for.
68
+ */
69
+ checkSession(pCapability: string): Promise<boolean>;
70
+ /**
71
+ * @param {string} pNameTemplate - The name template for the record link.
72
+ * @param {string} pURLTemplate - The URL template for the record link.
73
+ * @param {boolean} pDefault - Whether this is a default link template.
74
+ *
75
+ * @return {Record<string, any>} - The link template object that was added.
76
+ */
77
+ addRecordLinkTemplate(pNameTemplate: string, pURLTemplate: string, pDefault: boolean): Record<string, any>;
49
78
  initialize(): true | this;
50
79
  getManifest(pScope: any): import("manyfest");
51
80
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAwBA;IAEC,2DA0CC;IArCA,0JAA0J;IAC1J,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC;QAAC,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5I;IACV;2CAFiE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG;qBAAe,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;MAE9H;IACtB,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qBAAqB;IACrB,MADW,MAAM,CACR;IAET;;;;;MAKC;IAED,sDAAsD;IACtD,oBADW,MAAM,CAAC,MAAM,EAAE,OAAO,eAAe,CAAC,CAAC,CACtB;IAC5B,kDAAkD;IAClD,iCADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACL;IAEzC,kDAAkD;IAClD,yBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACb;IAEjC,+DAA+D;IAC/D,kBADW,KAAK,CAAC,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CACjC;IAE1B,kDAAkD;IAClD,qBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACjB;IAC7B,iDAAiD;IACjD,WADW,MAAM,CAAC,MAAM,EAAE,OAAO,UAAU,CAAC,CAAC,CACG;IAEhD,yBAA4B;IAiC7B;;OAEG;IACH,4CAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED,kEAuGC;IAED,4EAmBC;IAED,kFAyCC;IAED,yDAaC;IAED,qCAMC;IAED,iDAUC;IAED,iFAGC;IAED,0BA2EC;IAED,6CAGC;IAED;;OAEG;IACH,sCAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAwC7B;CAED;;;;AAvaD,kCAAkC;AAClC,sCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI3B"}
1
+ {"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAwBA;IAEC,2DA0CC;IArCA,0JAA0J;IAC1J,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC;QAAC,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5I;IACV;2CAFiE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG;qBAAe,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;MAE9H;IACtB,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qBAAqB;IACrB,MADW,MAAM,CACR;IAET;;;;;MAKC;IAED,sDAAsD;IACtD,oBADW,MAAM,CAAC,MAAM,EAAE,OAAO,eAAe,CAAC,CAAC,CACtB;IAC5B,kDAAkD;IAClD,iCADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACL;IAEzC,kDAAkD;IAClD,yBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACb;IAEjC,+DAA+D;IAC/D,kBADW,KAAK,CAAC,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CACjC;IAE1B,kDAAkD;IAClD,qBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACjB;IAC7B,iDAAiD;IACjD,WADW,MAAM,CAAC,MAAM,EAAE,OAAO,UAAU,CAAC,CAAC,CACG;IAEhD,yBAA4B;IAiC7B;;;;OAIG;IACH,sCAJW,MAAM,GAEL,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED;;OAEG;IACH,oDAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAyG7B;IAED;;OAEG;IACH,8DAFW,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,WAqBpC;IAED;;;;OAIG;IACH,qCAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,YAC5B,MAAM,mBACN,MAAM,OAqDhB;IAED;;OAEG;IACH,+CAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,OAe7B;IAED;;OAEG;IACH,qCAMC;IAED;;OAEG;IACH,0BAFW,MAAM,oBAYhB;IAED;;;;;;OAMG;IACH,qCANW,MAAM,gBACN,MAAM,YACN,OAAO,GAEN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED,0BA2EC;IAED,6CAGC;IAED;;OAEG;IACH,sCAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAwC7B;CAED;;;;AA9cD,kCAAkC;AAClC,sCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI3B"}
@@ -13,7 +13,7 @@ declare class PictTemplateFilterInstanceViewInstruction extends libPictTemplate
13
13
  constructor(pFable: any, pOptions: any, pServiceHash: string);
14
14
  /** @type {any} */
15
15
  log: any;
16
- _getViewForFilterClauses(pClauses: any): import("../views/filters/RecordSet-Filter-Base.js");
16
+ _getViewForFilterClause(pClause: any): import("../views/filters/RecordSet-Filter-Base.js");
17
17
  }
18
18
  import libPictTemplate = require("pict-template");
19
19
  //# sourceMappingURL=Pict-Template-FilterInstanceViews.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Template-FilterInstanceViews.d.ts","sourceRoot":"","sources":["../../source/templates/Pict-Template-FilterInstanceViews.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,kBAAkB;IAClB,KADW,GAAG,CACN;IAYT,6FAiBC;CA4KD"}
1
+ {"version":3,"file":"Pict-Template-FilterInstanceViews.d.ts","sourceRoot":"","sources":["../../source/templates/Pict-Template-FilterInstanceViews.js"],"names":[],"mappings":";AAGA;;;;GAIG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,kBAAkB;IAClB,KADW,GAAG,CACN;IAYT,2FAsBC;CA2KD"}
@@ -13,6 +13,16 @@ declare class ViewRecordSetSUBSETFilters extends libPictView {
13
13
  };
14
14
  chars: string;
15
15
  lookup: any[] | Uint8Array<ArrayBuffer>;
16
+ /**
17
+ * @return {string} - The marshalling prefix configured for filters. Usually 'Bundle.'
18
+ */
19
+ getInformaryAddressPrefix(): string;
20
+ /**
21
+ * @param {string} pAddress - The address of the informary to get the value from.
22
+ *
23
+ * @return {any} - The value at the given address, using the informary marshalling prefix.
24
+ */
25
+ getInformaryScopedValue(pAddress: string): any;
16
26
  /**
17
27
  * Marshals data from the view to the model, usually AppData (or configured data store).
18
28
  *
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Filters.d.ts","sourceRoot":"","sources":["../../source/views/RecordSet-Filters.js"],"names":[],"mappings":";AAsJA;IAEC,2DAqEC;IAjEA,kHAAkH;IAClH,MADW,GAAe,GAAG,OAAO,MAAM,CAAC,GAAG;QAAE,oBAAoB,EAAE;;;;;;SAAsC,CAAA;KAAE,CACrG;IAwDT,cAA+E;IAG/E,wCAA0E;IAU3E;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,qBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAShB;IAED;;;;OAIG;IACH,0BAJW,MAAM,gBACN,MAAM,kBACN,MAAM,QA+ChB;IAED;;;;OAIG;IACH,oBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAgBhB;IAED;;;;OAIG;IACH,0BAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAQhB;IAED,mGAOC;IAED,6FAOC;IAED,wCAIC;IAwCD,6DAOC;IAED;;;;OAIG;IACH,yCAJW,MAAM,GAEL,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAUvC;IAED;;;;;OAKG;IACH,iBALW,MAAM,aACN,iBAAiB,GAEhB,OAAO,CAAC,WAAW,CAAC,CAU/B;IAED;;;OAGG;IACH,sBAHW,UAAU,aACV,iBAAiB,mBAY3B;IAED;;;;OAIG;IACH,oBAJW,WAAW,GAEV,MAAM,CA2BjB;IAED;;;;OAIG;IACH,eAJW,MAAM,GAEL,WAAW,CAsCtB;CACD;;;;;AAxiBD,kCAAkC;AAClC,oDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+I5B"}
1
+ {"version":3,"file":"RecordSet-Filters.d.ts","sourceRoot":"","sources":["../../source/views/RecordSet-Filters.js"],"names":[],"mappings":";AA+LA;IAEC,2DA4BC;IAxBA,kHAAkH;IAClH,MADW,GAAe,GAAG,OAAO,MAAM,CAAC,GAAG;QAAE,oBAAoB,EAAE;;;;;;SAAsC,CAAA;KAAE,CACrG;IAeT,cAA+E;IAG/E,wCAA0E;IAO3E;;OAEG;IACH,6BAFY,MAAM,CAKjB;IAED;;;;OAIG;IACH,kCAJW,MAAM,GAEL,GAAG,CAMd;IAKD;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,qBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAShB;IAED;;;;OAIG;IACH,0BAJW,MAAM,gBACN,MAAM,kBACN,MAAM,QAgDhB;IAED;;;;OAIG;IACH,oBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAqBhB;IAED;;;;OAIG;IACH,0BAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAQhB;IAED,mGAOC;IAED,6FAOC;IAED,wCAIC;IAwCD,6DAeC;IAED;;;;OAIG;IACH,yCAJW,MAAM,GAEL,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAUvC;IAED;;;;;OAKG;IACH,iBALW,MAAM,aACN,iBAAiB,GAEhB,OAAO,CAAC,WAAW,CAAC,CAU/B;IAED;;;OAGG;IACH,sBAHW,UAAU,aACV,iBAAiB,mBAY3B;IAED;;;;OAIG;IACH,oBAJW,WAAW,GAEV,MAAM,CA2BjB;IAED;;;;OAIG;IACH,eAJW,MAAM,GAEL,WAAW,CAsCtB;CACD;;;;;AAzkBD,kCAAkC;AAClC,oDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+I5B"}
@@ -8,6 +8,16 @@ declare class ViewRecordSetSUBSETFilterBase extends libPictView {
8
8
  */
9
9
  prepareRecord(pRecord: Record<string, any>): void;
10
10
  getFilterFormTemplate(): string;
11
+ /**
12
+ * @return {string} - The prefix for the informary address.
13
+ */
14
+ getInformaryAddressPrefix(): string;
15
+ /**
16
+ * @param {string} pInformaryAddress - The address of the informary to get the value from.
17
+ *
18
+ * @return {any} - The value at the informary address.
19
+ */
20
+ getInformaryScopedValue(pInformaryAddress: string): any;
11
21
  }
12
22
  declare namespace ViewRecordSetSUBSETFilterBase {
13
23
  export { _DEFAULT_CONFIGURATION_SUBSET_Filter as default_configuration };
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Filter-Base.d.ts","sourceRoot":"","sources":["../../../source/views/filters/RecordSet-Filter-Base.js"],"names":[],"mappings":";AAmEA;IAEC,2DAIC;IAED;;;;OAIG;IACH,uBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAe7B;IAED,gCAGC;CACD;;;;;AAjGD,kCAAkC;AAClC,oDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+D5B"}
1
+ {"version":3,"file":"RecordSet-Filter-Base.d.ts","sourceRoot":"","sources":["../../../source/views/filters/RecordSet-Filter-Base.js"],"names":[],"mappings":";AAmEA;IAEC,2DAIC;IAED;;;;OAIG;IACH,uBAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAe7B;IAED,gCAGC;IAED;;OAEG;IACH,6BAFY,MAAM,CAKjB;IAED;;;;OAIG;IACH,2CAJW,MAAM,GAEL,GAAG,CAKd;CACD;;;;;AAnHD,kCAAkC;AAClC,oDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA+D5B"}
@@ -0,0 +1,24 @@
1
+ export = ViewRecordSetSUBSETFilterExternalJoinSelectedValue;
2
+ declare class ViewRecordSetSUBSETFilterExternalJoinSelectedValue extends ViewRecordSetSUBSETFilterBase {
3
+ /**
4
+ * @param {UIEvent} pEvent
5
+ * @param {string} pClauseInformaryAddress
6
+ * @param {string} pClauseHash
7
+ */
8
+ loadMore(pEvent: UIEvent, pClauseInformaryAddress: string, pClauseHash: string, pCurrentOffset?: number): void;
9
+ /**
10
+ * @param {UIEvent} pEvent
11
+ * @param {string} pClauseInformaryAddress
12
+ * @param {string} pClauseHash
13
+ * @param {number} [pOffset=0] - The offset for the search results, defaults to 0
14
+ */
15
+ performSearch(pEvent: UIEvent, pClauseInformaryAddress: string, pClauseHash: string, pOffset?: number): void;
16
+ handleSelect(pEvent: any, pRecordLookupValue: any, pClauseInformaryAddress: any, pClauseHash: any): void;
17
+ handleRemove(pEvent: any, pRecordLookupValue: any, pClauseInformaryAddress: any, pClauseHash: any): void;
18
+ }
19
+ declare namespace ViewRecordSetSUBSETFilterExternalJoinSelectedValue {
20
+ export { default_configuration };
21
+ }
22
+ import ViewRecordSetSUBSETFilterBase = require("./RecordSet-Filter-Base");
23
+ declare const default_configuration: any;
24
+ //# sourceMappingURL=RecordSet-Filter-ExternalJoinSelectedValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordSet-Filter-ExternalJoinSelectedValue.d.ts","sourceRoot":"","sources":["../../../source/views/filters/RecordSet-Filter-ExternalJoinSelectedValue.js"],"names":[],"mappings":";AA2EA;IA8CC;;;;OAIG;IACH,iBAJW,OAAO,2BACP,MAAM,eACN,MAAM,iCAKhB;IAED;;;;;OAKG;IACH,sBALW,OAAO,2BACP,MAAM,eACN,MAAM,YACN,MAAM,QA0DhB;IAED,yGAwCC;IAED,yGA2BC;CACD"}
@@ -0,0 +1,24 @@
1
+ export = ViewRecordSetSUBSETFilterExternalJoinSelectedValueList;
2
+ declare class ViewRecordSetSUBSETFilterExternalJoinSelectedValueList extends ViewRecordSetSUBSETFilterBase {
3
+ /**
4
+ * @param {UIEvent} pEvent
5
+ * @param {string} pClauseInformaryAddress
6
+ * @param {string} pClauseHash
7
+ */
8
+ loadMore(pEvent: UIEvent, pClauseInformaryAddress: string, pClauseHash: string, pCurrentOffset?: number): void;
9
+ /**
10
+ * @param {UIEvent} pEvent
11
+ * @param {string} pClauseInformaryAddress
12
+ * @param {string} pClauseHash
13
+ * @param {number} [pOffset=0] - The offset for the search results, defaults to 0
14
+ */
15
+ performSearch(pEvent: UIEvent, pClauseInformaryAddress: string, pClauseHash: string, pOffset?: number): void;
16
+ handleAdd(pEvent: any, pRecordLookupValue: any, pClauseInformaryAddress: any, pClauseHash: any): void;
17
+ handleRemove(pEvent: any, pRecordLookupValue: any, pClauseInformaryAddress: any, pClauseHash: any): void;
18
+ }
19
+ declare namespace ViewRecordSetSUBSETFilterExternalJoinSelectedValueList {
20
+ export { default_configuration };
21
+ }
22
+ import ViewRecordSetSUBSETFilterBase = require("./RecordSet-Filter-Base");
23
+ declare const default_configuration: any;
24
+ //# sourceMappingURL=RecordSet-Filter-ExternalJoinSelectedValueList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordSet-Filter-ExternalJoinSelectedValueList.d.ts","sourceRoot":"","sources":["../../../source/views/filters/RecordSet-Filter-ExternalJoinSelectedValueList.js"],"names":[],"mappings":";AA2EA;IA8CC;;;;OAIG;IACH,iBAJW,OAAO,2BACP,MAAM,eACN,MAAM,iCAKhB;IAED;;;;;OAKG;IACH,sBALW,OAAO,2BACP,MAAM,eACN,MAAM,YACN,MAAM,QA0DhB;IAED,sGA+CC;IAED,yGA2BC;CACD"}