pict-section-recordset 1.0.3 → 1.0.5
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/example_applications/simple_entity/Simple-RecordSet-Application.js +19 -0
- package/package.json +1 -1
- package/source/services/RecordsSet-MetaController.js +27 -0
- package/source/views/RecordSet-Filter.js +78 -65
- package/source/views/list/RecordSet-List-RecordListEntry.js +13 -0
- package/source/views/list/RecordSet-List-RecordListHeader.js +12 -2
- package/source/views/list/RecordSet-List.js +41 -6
- package/types/services/RecordsSet-MetaController.d.ts +1 -0
- package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
- package/types/views/RecordSet-Filter.d.ts +2 -0
- package/types/views/RecordSet-Filter.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-RecordListEntry.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-RecordListHeader.d.ts.map +1 -1
- package/types/views/list/RecordSet-List.d.ts +2 -1
- package/types/views/list/RecordSet-List.d.ts.map +1 -1
|
@@ -20,6 +20,25 @@ module.exports.default_configuration.pict_configuration = (
|
|
|
20
20
|
"RecordSetType": "MeadowEndpoint", // Could be "Custom" which would require a provider to already be created for the record set.
|
|
21
21
|
"RecordSetMeadowEntity": "Book", // This leverages the /Schema endpoint to get the record set columns.
|
|
22
22
|
|
|
23
|
+
"RecordSetListColumns": [
|
|
24
|
+
{
|
|
25
|
+
"Key": "Title",
|
|
26
|
+
"DisplayName": "Title"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"Key": "Genre",
|
|
30
|
+
"DisplayName": "Genre"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"Key": "ISBN",
|
|
34
|
+
"DisplayName": "Int'l SBN"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
|
|
38
|
+
"RecordSetListHasExtraColumns": true,
|
|
39
|
+
"RecordSetListExtraColumnsHeaderTemplate": "<th style=\"border-bottom: 1px solid #ccc; padding: 5px; background-color: #f2f2f2; color: #333;\">Cover</th>",
|
|
40
|
+
"RecordSetListExtraColumnRowTemplate": "<td><img src=\"{~D:Record.Data.ImageURL~}\"></td>",
|
|
41
|
+
|
|
23
42
|
"RecordSetURLPrefix": "/1.0/"
|
|
24
43
|
},
|
|
25
44
|
{
|
package/package.json
CHANGED
|
@@ -44,6 +44,8 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
44
44
|
this.recordSetProviders = {};
|
|
45
45
|
this.recordSetProviderConfigurations = {};
|
|
46
46
|
|
|
47
|
+
this.recordSetListConfigurations = {};
|
|
48
|
+
|
|
47
49
|
this.has_initialized = false;
|
|
48
50
|
}
|
|
49
51
|
|
|
@@ -86,6 +88,31 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
86
88
|
return false;
|
|
87
89
|
}
|
|
88
90
|
|
|
91
|
+
let tmpExtraColumnHeaderTemplateHash = `RecordSet-List-ExtraColumnHeader-${pRecordSetConfiguration.RecordSet}`;
|
|
92
|
+
pRecordSetConfiguration.RecordSetListExtraColumnsHeaderTemplateHash = tmpExtraColumnHeaderTemplateHash;
|
|
93
|
+
let tmpExtraColumnRowTemplateHash = `RecordSet-List-ExtraColumnRow-${pRecordSetConfiguration.RecordSet}`;
|
|
94
|
+
pRecordSetConfiguration.RecordSetListExtraColumnRowTemplateHash = tmpExtraColumnRowTemplateHash;
|
|
95
|
+
if (pRecordSetConfiguration.RecordSetListHasExtraColumns)
|
|
96
|
+
{
|
|
97
|
+
let tmpRecordSetExtraColumnHeaderTemplate = pRecordSetConfiguration.RecordSetListExtraColumnsHeaderTemplate;
|
|
98
|
+
if (tmpRecordSetExtraColumnHeaderTemplate === undefined)
|
|
99
|
+
{
|
|
100
|
+
tmpRecordSetExtraColumnHeaderTemplate = '';
|
|
101
|
+
}
|
|
102
|
+
let tmpRecordSetExtraColumnRowTemplate = pRecordSetConfiguration.RecordSetListExtraColumnRowTemplate;
|
|
103
|
+
if (tmpRecordSetExtraColumnRowTemplate === undefined)
|
|
104
|
+
{
|
|
105
|
+
tmpRecordSetExtraColumnRowTemplate = '';
|
|
106
|
+
}
|
|
107
|
+
this.fable.TemplateProvider.addTemplate(tmpExtraColumnHeaderTemplateHash, tmpRecordSetExtraColumnHeaderTemplate);
|
|
108
|
+
this.fable.TemplateProvider.addTemplate(tmpExtraColumnRowTemplateHash, tmpRecordSetExtraColumnRowTemplate);
|
|
109
|
+
}
|
|
110
|
+
else
|
|
111
|
+
{
|
|
112
|
+
this.fable.TemplateProvider.addTemplate(tmpExtraColumnHeaderTemplateHash, '');
|
|
113
|
+
this.fable.TemplateProvider.addTemplate(tmpExtraColumnRowTemplateHash, '');
|
|
114
|
+
}
|
|
115
|
+
|
|
89
116
|
let tmpProvider = false;
|
|
90
117
|
|
|
91
118
|
const providerConfiguration = Object.assign({}, {Hash: `RSP-Provider-${pRecordSetConfiguration.RecordSet}`}, pRecordSetConfiguration);
|
|
@@ -1,88 +1,101 @@
|
|
|
1
1
|
const libPictView = require('pict-view');
|
|
2
2
|
|
|
3
3
|
const _DEFAULT_CONFIGURATION_SUBSET_Filter = (
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
{
|
|
5
|
+
ViewIdentifier: 'PRSP-SUBSET-Filter',
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
DefaultRenderable: 'PRSP_Renderable_Filter',
|
|
8
|
+
DefaultDestinationAddress: '#PRSP_Filter_Container',
|
|
9
|
+
DefaultTemplateRecordAddress: false,
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
// If this is set to true, when the App initializes this will.
|
|
12
|
+
// While the App initializes, initialize will be called.
|
|
13
|
+
AutoInitialize: false,
|
|
14
|
+
AutoInitializeOrdinal: 0,
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
// If this is set to true, when the App autorenders (on load) this will.
|
|
17
|
+
// After the App initializes, render will be called.
|
|
18
|
+
AutoRender: false,
|
|
19
|
+
AutoRenderOrdinal: 0,
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
AutoSolveWithApp: false,
|
|
22
|
+
AutoSolveOrdinal: 0,
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
CSS: false,
|
|
25
|
+
CSSPriority: 500,
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
Templates:
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
Hash: 'PRSP-SUBSET-Filter-Template',
|
|
31
|
+
Template: /*html*/`
|
|
32
32
|
<!-- DefaultPackage pict view template: [PRSP-SUBSET-Filter-Template] -->
|
|
33
33
|
<section id="PRSP_Filter_Container">
|
|
34
|
-
<form id="PRSP_Filter_Form">
|
|
34
|
+
<form id="PRSP_Filter_Form" onsubmit="_Pict.views['PRSP-Filters'].handleSearch(event)">
|
|
35
35
|
{~T:PRSP-SUBSET-Filter-Template-Input-Fieldset~}
|
|
36
|
-
|
|
36
|
+
{~T:PRSP-SUBSET-Filter-Template-Button-Fieldset~}
|
|
37
37
|
</form>
|
|
38
38
|
</section>
|
|
39
|
-
<!-- DefaultPackage end view template:
|
|
39
|
+
<!-- DefaultPackage end view template: [PRSP-SUBSET-Filter-Template] -->
|
|
40
40
|
`
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
Hash: 'PRSP-SUBSET-Filter-Template-Input-Fieldset',
|
|
44
|
+
Template: /*html*/`
|
|
45
|
+
<!-- DefaultPackage pict view template: [PRSP-SUBSET-Filter-Template-Input-Fieldset] -->
|
|
46
|
+
<fieldset>
|
|
47
|
+
<label for="filter">Filter:</label>
|
|
48
|
+
<input type="text" name="filter">
|
|
49
|
+
</fieldset>
|
|
50
|
+
<!-- DefaultPackage end view template: [PRSP-SUBSET-Filter-Template-Input-Fieldset] -->
|
|
51
|
+
`
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
Hash: 'PRSP-SUBSET-Filter-Template-Button-Fieldset',
|
|
55
|
+
Template: /*html*/`
|
|
56
|
+
<!-- DefaultPackage pict view template: [PRSP-SUBSET-Filter-Template-Button-Fieldset] -->
|
|
57
|
+
<fieldset>
|
|
58
|
+
<button type="button" id="PRSP_Filter_Button_Reset" onclick="_Pict.views['PRSP-Filters'].handleReset(event)">Reset</button>
|
|
59
|
+
<button type="submit" id="PRSP_Filter_Button_Apply">Apply</button>
|
|
60
|
+
</fieldset>
|
|
61
|
+
<!-- DefaultPackage end view template: [PRSP-SUBSET-Filter-Template-Button-Fieldset] -->
|
|
62
|
+
`
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
Renderables:
|
|
67
|
+
[
|
|
68
|
+
{
|
|
69
|
+
RenderableHash: 'PRSP_Renderable_Filter',
|
|
70
|
+
TemplateHash: 'PRSP-SUBSET-Filter-Template',
|
|
71
|
+
DestinationAddress: '#PRSP_Filter_Container',
|
|
72
|
+
RenderMethod: 'replace'
|
|
73
|
+
}
|
|
74
|
+
],
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
Manifests: {}
|
|
77
|
+
});
|
|
78
78
|
|
|
79
79
|
class viewRecordSetSUBSETFilter extends libPictView
|
|
80
80
|
{
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
81
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
82
|
+
{
|
|
83
|
+
let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_SUBSET_Filter, pOptions);
|
|
84
|
+
super(pFable, tmpOptions, pServiceHash);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
handleSearch(event)
|
|
88
|
+
{
|
|
89
|
+
event.stopPropagation();
|
|
90
|
+
event.preventDefault();
|
|
91
|
+
this.pict.views['RSP-RecordSet-List']?.handleSearch?.(this.pict.ContentAssignment.readContent('input[name="filter"]'));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
handleReset(event)
|
|
95
|
+
{
|
|
96
|
+
event.stopPropagation();
|
|
97
|
+
this.pict.ContentAssignment.assignContent('input[name="filter"]', '');
|
|
98
|
+
}
|
|
86
99
|
}
|
|
87
100
|
|
|
88
101
|
module.exports = viewRecordSetSUBSETFilter;
|
|
@@ -39,10 +39,23 @@ const _DEFAULT_CONFIGURATION_List_RecordListEntry = (
|
|
|
39
39
|
<!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template] -->
|
|
40
40
|
<tr>
|
|
41
41
|
{~TSWP:PRSP-List-RecordListEntry-Template-Row-Cell:Record.Payload.TableCells:Record.Data~}
|
|
42
|
+
{~T:PRSP-List-RecordListHeader-Template-Extra-Row~}
|
|
42
43
|
{~T:PRSP-List-RecordListAction-Template-Cell~}
|
|
43
44
|
</tr>
|
|
44
45
|
<!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template] -->
|
|
45
46
|
`
|
|
47
|
+
//
|
|
48
|
+
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
Hash: 'PRSP-List-RecordListHeader-Template-Extra-Row',
|
|
52
|
+
Template: /*html*/`
|
|
53
|
+
<!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Extra-Row] -->
|
|
54
|
+
{~TBR:Record.Payload.RecordSetConfiguration.RecordSetListExtraColumnRowTemplateHash~}
|
|
55
|
+
<!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Extra-Row] -->
|
|
56
|
+
`
|
|
57
|
+
// {~TBR:Record.Payload.RecordSetConfiguration.RecordSetListExtraColumnRowTemplateHash~}
|
|
58
|
+
|
|
46
59
|
},
|
|
47
60
|
{
|
|
48
61
|
Hash: 'PRSP-List-RecordListEntry-Template-Row-Cell',
|
|
@@ -47,15 +47,25 @@ const _DEFAULT_CONFIGURATION_List_RecordListHeader = (
|
|
|
47
47
|
</th>
|
|
48
48
|
<!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template-Header] -->
|
|
49
49
|
`
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
Hash: 'PRSP-List-RecordListHeader-Template-Extra-Header',
|
|
53
|
+
Template: /*html*/`
|
|
54
|
+
<!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Extra-Header] -->
|
|
55
|
+
{~TBR:Record.RecordSetConfiguration.RecordSetListExtraColumnsHeaderTemplateHash~}
|
|
56
|
+
<!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Extra-Header] -->
|
|
57
|
+
`
|
|
58
|
+
// {~TBR:Record.RecordSetConfiguration.RecordSetListExtraColumnsHeaderTemplateHash~}
|
|
59
|
+
|
|
50
60
|
},
|
|
51
61
|
{
|
|
52
62
|
Hash: 'PRSP-List-RecordListActions-Template-Header',
|
|
53
63
|
Template: /*html*/`
|
|
54
|
-
<!-- DefaultPackage pict view template: [PRSP-List-
|
|
64
|
+
<!-- DefaultPackage pict view template: [PRSP-List-RecordListActions-Template-Header] -->
|
|
55
65
|
<th style="border-bottom: 1px solid #ccc; padding: 5px; background-color: #f2f2f2; color: #333;">
|
|
56
66
|
Actions
|
|
57
67
|
</th>
|
|
58
|
-
<!-- DefaultPackage end view template: [PRSP-List-
|
|
68
|
+
<!-- DefaultPackage end view template: [PRSP-List-RecordListActions-Template-Header] -->
|
|
59
69
|
`
|
|
60
70
|
},
|
|
61
71
|
],
|
|
@@ -2,6 +2,7 @@ const libPictRecordSetRecordView = require('../RecordSet-RecordBaseView.js');
|
|
|
2
2
|
|
|
3
3
|
const viewHeaderList = require('./RecordSet-List-HeaderList.js');
|
|
4
4
|
const viewTitle = require('./RecordSet-List-Title.js');
|
|
5
|
+
const viewFilters = require('../RecordSet-Filter.js');
|
|
5
6
|
const viewPaginationTop = require('./RecordSet-List-PaginationTop.js');
|
|
6
7
|
const viewRecordList = require('./RecordSet-List-RecordList.js');
|
|
7
8
|
const viewRecordListHeader = require('./RecordSet-List-RecordListHeader.js');
|
|
@@ -41,6 +42,7 @@ const _DEFAULT_CONFIGURATION__List = (
|
|
|
41
42
|
<section id="PRSP_List_Container">
|
|
42
43
|
{~V:PRSP-List-Title~}
|
|
43
44
|
{~V:PRSP-List-HeaderList~}
|
|
45
|
+
{~V:PRSP-Filters~}
|
|
44
46
|
{~V:PRSP-List-PaginationTop~}
|
|
45
47
|
{~V:PRSP-List-RecordList~}
|
|
46
48
|
{~V:PRSP-List-PaginationBottom~}
|
|
@@ -87,6 +89,31 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
87
89
|
};
|
|
88
90
|
}
|
|
89
91
|
|
|
92
|
+
handleSearch(pSearchString)
|
|
93
|
+
{
|
|
94
|
+
const pictRouter = this.pict.providers.PictRouter;
|
|
95
|
+
const recordSet = pictRouter.router.current[0]?.data?.RecordSet;
|
|
96
|
+
const offset = pictRouter.router.current[0]?.data?.Offset || '0';
|
|
97
|
+
const pageSize = pictRouter.router.current[0]?.data?.PageSize || '100';
|
|
98
|
+
if (!recordSet)
|
|
99
|
+
{
|
|
100
|
+
this.pict.log.error('PictRecordSetRouter.handleSearch: No record set found in the current route: ', { routes: pictRouter.router.current });
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const tmpProviderConfiguration = this.pict.PictSectionRecordSet.recordSetProviderConfigurations[recordSet];
|
|
104
|
+
if (pSearchString)
|
|
105
|
+
{
|
|
106
|
+
//FIXME: figure this out based on the record set; or defer to another provider?
|
|
107
|
+
const searchFields = tmpProviderConfiguration?.SearchFields ?? [ 'Name' ];
|
|
108
|
+
const filterExpr = searchFields.map((filterField) => `FBVOR~${filterField}~LK~${encodeURIComponent(`%${pSearchString}%`)}`).join('~');
|
|
109
|
+
pictRouter.navigate(`/PSRS/${recordSet}/List/FilteredTo/${filterExpr}/${offset}/${pageSize}`);
|
|
110
|
+
}
|
|
111
|
+
else
|
|
112
|
+
{
|
|
113
|
+
pictRouter.navigate(`/PSRS/${recordSet}/List`);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
90
117
|
handleRecordSetListRoute(pRoutePayload)
|
|
91
118
|
{
|
|
92
119
|
if (typeof(pRoutePayload) != 'object')
|
|
@@ -104,7 +131,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
104
131
|
const tmpProviderConfiguration = this.pict.PictSectionRecordSet.recordSetProviderConfigurations[pRoutePayload.data.RecordSet];
|
|
105
132
|
const tmpProviderHash = `RSP-Provider-${pRoutePayload.data.RecordSet}`;
|
|
106
133
|
|
|
107
|
-
const tmpFilterString = pRoutePayload.data.FilterString
|
|
134
|
+
const tmpFilterString = pRoutePayload.data.FilterString || '';
|
|
108
135
|
|
|
109
136
|
const tmpOffset = pRoutePayload.data.Offset ? pRoutePayload.data.Offset : 0;
|
|
110
137
|
const tmpPageSize = pRoutePayload.data.PageSize ? pRoutePayload.data.PageSize : 100;
|
|
@@ -123,13 +150,10 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
123
150
|
|
|
124
151
|
onBeforeRenderList(pRecordListData)
|
|
125
152
|
{
|
|
126
|
-
// Put code here to preprocess columns into other data parts.
|
|
127
|
-
this.formatDisplayData(pRecordListData);
|
|
128
|
-
|
|
129
153
|
return pRecordListData;
|
|
130
154
|
}
|
|
131
155
|
|
|
132
|
-
|
|
156
|
+
dynamicallyGenerateColumns(pRecordListData)
|
|
133
157
|
{
|
|
134
158
|
pRecordListData.TableCells = [];
|
|
135
159
|
const tmpEntity = pRecordListData.RecordSetConfiguration.Entity;
|
|
@@ -183,7 +207,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
183
207
|
|
|
184
208
|
"RenderDestination": this.options.DefaultDestinationAddress,
|
|
185
209
|
|
|
186
|
-
"FilterString": pFilterString
|
|
210
|
+
"FilterString": pFilterString ? encodeURIComponent(pFilterString) : undefined,
|
|
187
211
|
|
|
188
212
|
"Records": { "Records": [] },
|
|
189
213
|
"TotalRecordCount": { "Count": -1 },
|
|
@@ -261,6 +285,16 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
261
285
|
tmpRecordListData.PageLinkBookmarks.NextLink = tmpRecordListData.PageLinks[tmpRecordListData.PageLinkBookmarks.Next];
|
|
262
286
|
}
|
|
263
287
|
|
|
288
|
+
// Put code here to preprocess columns into other data parts.
|
|
289
|
+
if (tmpRecordListData.RecordSetConfiguration.hasOwnProperty('RecordSetListColumns'))
|
|
290
|
+
{
|
|
291
|
+
tmpRecordListData.TableCells = tmpRecordListData.RecordSetConfiguration.RecordSetListColumns;
|
|
292
|
+
}
|
|
293
|
+
else
|
|
294
|
+
{
|
|
295
|
+
this.dynamicallyGenerateColumns(tmpRecordListData);
|
|
296
|
+
}
|
|
297
|
+
|
|
264
298
|
tmpRecordListData = this.onBeforeRenderList(tmpRecordListData);
|
|
265
299
|
|
|
266
300
|
this.renderAsync('PRSP_Renderable_List', tmpRecordListData.RenderDestination, tmpRecordListData,
|
|
@@ -288,6 +322,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
288
322
|
{
|
|
289
323
|
this.childViews.headerList = this.pict.addView('PRSP-List-HeaderList', viewHeaderList.default_configuration, viewHeaderList);
|
|
290
324
|
this.childViews.title = this.pict.addView('PRSP-List-Title', viewTitle.default_configuration, viewTitle);
|
|
325
|
+
this.childViews.filters = this.pict.addView('PRSP-Filters', viewFilters.default_configuration, viewFilters);
|
|
291
326
|
this.childViews.paginationTop = this.pict.addView('PRSP-List-PaginationTop', viewPaginationTop.default_configuration, viewPaginationTop);
|
|
292
327
|
this.childViews.recordList = this.pict.addView('PRSP-List-RecordList', viewRecordList.default_configuration, viewRecordList);
|
|
293
328
|
this.childViews.recordListHeader = this.pict.addView('PRSP-List-RecordListHeader', viewRecordListHeader.default_configuration, viewRecordListHeader);
|
|
@@ -19,6 +19,7 @@ declare class RecordSetMetacontroller {
|
|
|
19
19
|
};
|
|
20
20
|
recordSetProviders: {};
|
|
21
21
|
recordSetProviderConfigurations: {};
|
|
22
|
+
recordSetListConfigurations: {};
|
|
22
23
|
has_initialized: boolean;
|
|
23
24
|
loadRecordSetConfiguration(pRecordSetConfiguration: any): boolean;
|
|
24
25
|
loadRecordSetConfigurationArray(pRecordSetConfigurationArray: any): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAoBA;IAEC,
|
|
1
|
+
{"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAoBA;IAEC,2DA2BC;IAtBA,0HAA0H;IAC1H,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5G;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qBAAqB;IACrB,MADW,MAAM,CACR;IAET;;;;;MAKC;IAED,uBAA4B;IAC5B,oCAAyC;IAEzC,gCAAqC;IAErC,yBAA4B;IA6B7B,kEA0FC;IAED,4EAmBC;IAED,iFAyCC;IAED,yDAaC;IAED,qCAMC;IAED,iFAGC;IAED,0BAuCC;CACD"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export = viewRecordSetSUBSETFilter;
|
|
2
2
|
declare class viewRecordSetSUBSETFilter extends libPictView {
|
|
3
3
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
4
|
+
handleSearch(event: any): void;
|
|
5
|
+
handleReset(event: any): void;
|
|
4
6
|
}
|
|
5
7
|
declare namespace viewRecordSetSUBSETFilter {
|
|
6
8
|
export { _DEFAULT_CONFIGURATION_SUBSET_Filter as default_configuration };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordSet-Filter.d.ts","sourceRoot":"","sources":["../../source/views/RecordSet-Filter.js"],"names":[],"mappings":";AA8EA;
|
|
1
|
+
{"version":3,"file":"RecordSet-Filter.d.ts","sourceRoot":"","sources":["../../source/views/RecordSet-Filter.js"],"names":[],"mappings":";AA8EA;IAEC,2DAIC;IAEE,+BAKC;IAED,8BAIC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordSet-List-RecordListEntry.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List-RecordListEntry.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RecordSet-List-RecordListEntry.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List-RecordListEntry.js"],"names":[],"mappings":";AA6GA;IAEC,2DAIC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordSet-List-RecordListHeader.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List-RecordListHeader.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RecordSet-List-RecordListHeader.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List-RecordListHeader.js"],"names":[],"mappings":";AAqFA;IAEC,2DAIC;CACD"}
|
|
@@ -9,9 +9,10 @@ declare class viewRecordSetList extends libPictRecordSetRecordView {
|
|
|
9
9
|
recordListEntry: any;
|
|
10
10
|
paginationBottom: any;
|
|
11
11
|
};
|
|
12
|
+
handleSearch(pSearchString: any): void;
|
|
12
13
|
handleRecordSetListRoute(pRoutePayload: any): Promise<boolean>;
|
|
13
14
|
onBeforeRenderList(pRecordListData: any): any;
|
|
14
|
-
|
|
15
|
+
dynamicallyGenerateColumns(pRecordListData: any): any;
|
|
15
16
|
excludedByDefaultCells: string[];
|
|
16
17
|
renderList(pRecordSetConfiguration: any, pProviderHash: any, pFilterString: any, pOffset: any, pPageSize: any): Promise<boolean>;
|
|
17
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordSet-List.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"RecordSet-List.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List.js"],"names":[],"mappings":";AAyEA;IAOE;;;;;;;;MAQC;IAGF,uCAuBC;IAED,+DAuBC;IAWD,8CAGC;IAED,sDAkCC;IA9BA,iCAUC;IAsBF,iIA+HC;CAwBD"}
|