pict-section-recordset 1.0.1 → 1.0.3
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/ServeExamples.js +1 -1
- package/example_applications/mocks/book-edit-view.html +145 -0
- package/example_applications/mocks/book-read-view.html +139 -0
- package/example_applications/simple_entity/Simple-RecordSet-Application.js +3 -3
- package/example_applications/simple_entity/html/index.html +1 -1
- package/package.json +7 -6
- package/source/application/Pict-Application-RecordSet.js +12 -4
- package/source/providers/RecordSet-Link-Manager.js +52 -0
- package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +1 -0
- package/source/providers/RecordSet-Router.js +64 -0
- package/source/services/RecordsSet-MetaController.js +99 -16
- package/source/views/RecordSet-RecordBaseView.js +84 -0
- package/source/views/RecordsSet-MacroView.js +63 -0
- package/source/views/dashboard/RecordSet-Dashboard.js +2 -2
- package/source/views/edit/RecordSet-Edit.js +2 -2
- package/source/views/list/RecordSet-List-PaginationBottom.js +42 -42
- package/source/views/list/RecordSet-List-PaginationTop.js +102 -90
- package/source/views/list/RecordSet-List-RecordList.js +3 -3
- package/source/views/list/RecordSet-List-RecordListEntry.js +86 -69
- package/source/views/list/RecordSet-List-RecordListHeader.js +65 -64
- package/source/views/list/RecordSet-List-Title.js +0 -1
- package/source/views/list/RecordSet-List.js +168 -22
- package/source/views/read/RecordSet-Read-RecordRead.js +62 -48
- package/source/views/read/RecordSet-Read.js +193 -51
- package/test/PictSectionRecordSet-Basic_tests.js +5 -1
- package/test/PictSectionRecordSet-RecordProvider-Meadow_tests.js +1 -1
- package/types/Pict-Section-RecordSet.d.ts +5 -1
- package/types/application/Pict-Application-RecordSet.d.ts +5 -5
- package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
- package/types/providers/RecordSet-Link-Manager.d.ts +23 -0
- package/types/providers/RecordSet-Link-Manager.d.ts.map +1 -0
- package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts.map +1 -1
- package/types/providers/RecordSet-Router.d.ts +36 -0
- package/types/providers/RecordSet-Router.d.ts.map +1 -0
- package/types/services/RecordsSet-MetaController.d.ts +13 -6
- package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
- package/types/views/RecordSet-RecordBaseView.d.ts +53 -0
- package/types/views/RecordSet-RecordBaseView.d.ts.map +1 -0
- package/types/views/RecordsSet-MacroView.d.ts +33 -0
- package/types/views/RecordsSet-MacroView.d.ts.map +1 -1
- package/types/views/dashboard/RecordSet-Dashboard.d.ts +2 -3
- package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -1
- package/types/views/edit/RecordSet-Edit.d.ts +2 -3
- package/types/views/edit/RecordSet-Edit.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-PaginationBottom.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-PaginationTop.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 +7 -3
- package/types/views/list/RecordSet-List.d.ts.map +1 -1
- package/types/views/read/RecordSet-Read-RecordRead.d.ts.map +1 -1
- package/types/views/read/RecordSet-Read.d.ts +12 -3
- package/types/views/read/RecordSet-Read.d.ts.map +1 -1
- /package/example_applications/{list_view/index.html → mocks/list-view.html} +0 -0
|
@@ -1,112 +1,124 @@
|
|
|
1
1
|
const libPictView = require('pict-view');
|
|
2
2
|
|
|
3
3
|
const _DEFAULT_CONFIGURATION_List_PaginationTop = (
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
{
|
|
5
|
+
ViewIdentifier: 'PRSP-List-PaginationTop',
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
DefaultRenderable: 'PRSP_Renderable_PaginationTop',
|
|
8
|
+
DefaultDestinationAddress: '#PRSP_PaginationTop_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-List-PaginationTop-Template',
|
|
31
|
+
Template: /*html*/`
|
|
32
32
|
<!-- DefaultPackage pict view template: [PRSP-List-PaginationTop-Template] -->
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
<nav id="RSP_Upper_Pagination_Container" role="navigation" aria-label="pagination">
|
|
34
|
+
{~T:PRSP-List-Pagination-Template-Description~}
|
|
35
35
|
{~T:PRSP-List-Pagination-Template-Buttons~}
|
|
36
36
|
</nav>
|
|
37
|
+
<div>
|
|
38
|
+
{~TS:PRSP-List-Pagination-Template-Pages:Record.PageLinksLimited~}
|
|
39
|
+
</div>
|
|
37
40
|
<!-- DefaultPackage end view template: [PRSP-List-PaginationTop-Template] -->
|
|
38
41
|
`
|
|
39
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
Hash: 'PRSP-List-Pagination-Template-Description',
|
|
45
|
+
Template: /*html*/`
|
|
46
|
+
<!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Description] -->
|
|
47
|
+
<div>
|
|
48
|
+
Showing
|
|
49
|
+
<span id="PRSP_Pagination_Description_Records_Start">{~D:Record.Offset~}</span> to
|
|
50
|
+
<span id="PRSP_Pagination_Description_Records_End">{~D:Record.PageEnd~}</span> of
|
|
51
|
+
<span id="PRSP_Pagination_Description_Records_Total">{~D:Record.TotalRecordCount.Count~}</span> total records.
|
|
52
|
+
</div>
|
|
53
|
+
<!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Description] -->
|
|
54
|
+
`
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
Hash: 'PRSP-List-Pagination-Template-Buttons',
|
|
58
|
+
Template: /*html*/`
|
|
59
|
+
<!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Buttons] -->
|
|
60
|
+
<ul style="list-style-type: none; padding: 0; display: flex; justify-content: center;">
|
|
61
|
+
{~T:PRSP-List-Pagination-Template-Button-Previous~}
|
|
62
|
+
{~TS:PRSP-List-Pagination-Template-Button-Page~}
|
|
63
|
+
{~T:PRSP-List-Pagination-Template-Button-Next~}
|
|
64
|
+
</ul>
|
|
65
|
+
<!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Buttons] -->
|
|
66
|
+
`
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
Hash: 'PRSP-List-Pagination-Template-Button-Previous',
|
|
70
|
+
Template: /*html*/`
|
|
71
|
+
<!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Previous] -->
|
|
72
|
+
<li><a href="{~D:Record.PageLinkBookmarks.PreviousLink.URL~}" aria-label="Previous page">« Previous</a></li>
|
|
73
|
+
<!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Previous] -->
|
|
74
|
+
`
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
Hash: 'PRSP-List-Pagination-Template-Button-Next',
|
|
78
|
+
Template: /*html*/`
|
|
79
|
+
<!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Next] -->
|
|
80
|
+
<li style="margin-left: 15px;"><a href="{~D:Record.PageLinkBookmarks.NextLink.URL~}" aria-label="Next page">Next »</a></li>
|
|
81
|
+
<!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Next] -->
|
|
82
|
+
`
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
Hash: 'PRSP-List-Pagination-Template-Button-Page',
|
|
86
|
+
Template: /*html*/`
|
|
87
|
+
<!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Page] -->
|
|
88
|
+
<li><a href="#" aria-label="Go to page {~D:Record.Page~}">{~D:Record.Page~}</a></li>
|
|
89
|
+
<!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Page] -->
|
|
90
|
+
`
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
Hash: 'PRSP-List-Pagination-Template-Pages',
|
|
94
|
+
Template: /*html*/`
|
|
95
|
+
<!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Page] -->
|
|
96
|
+
<a href="{~D:Record.URL~}" aria-label="Go to page {~D:Record.Page~}">{~D:Record.Page~}</a>
|
|
97
|
+
<!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Page] -->
|
|
98
|
+
`
|
|
99
|
+
}
|
|
100
|
+
],
|
|
89
101
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
102
|
+
Renderables:
|
|
103
|
+
[
|
|
104
|
+
{
|
|
105
|
+
RenderableHash: 'PRSP_Renderable_PaginationTop',
|
|
106
|
+
TemplateHash: 'PRSP-List-PaginationTop-Template',
|
|
107
|
+
DestinationAddress: '#PRSP_PaginationTop_Container',
|
|
108
|
+
RenderMethod: 'replace'
|
|
109
|
+
}
|
|
110
|
+
],
|
|
99
111
|
|
|
100
|
-
|
|
101
|
-
|
|
112
|
+
Manifests: {}
|
|
113
|
+
});
|
|
102
114
|
|
|
103
115
|
class viewRecordSetListPaginationTop extends libPictView
|
|
104
116
|
{
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
117
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
118
|
+
{
|
|
119
|
+
let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_PaginationTop, pOptions);
|
|
120
|
+
super(pFable, tmpOptions, pServiceHash);
|
|
121
|
+
}
|
|
110
122
|
}
|
|
111
123
|
|
|
112
124
|
module.exports = viewRecordSetListPaginationTop;
|
|
@@ -40,10 +40,10 @@ const _DEFAULT_CONFIGURATION_List_RecordList = (
|
|
|
40
40
|
Hash: 'PRSP-List-RecordList-Template-Table',
|
|
41
41
|
Template: /*html*/`
|
|
42
42
|
<!-- DefaultPackage pict view template: [PRSP-List-RecordList-Template-Table] -->
|
|
43
|
-
<table id="PRSP_List_Table">
|
|
44
|
-
<thead>{~T:PRSP-List-
|
|
43
|
+
<table id="PRSP_List_Table" tablespacing="0" cellpadding="0" cellspacing="0" style="width: 100%; border-collapse: collapse; margin-bottom: 20px;">
|
|
44
|
+
<thead>{~T:PRSP-List-RecordListHeader-Template~}</thead>
|
|
45
45
|
<tbody id="PRSP_RecordList_Container_Entries">
|
|
46
|
-
{~
|
|
46
|
+
{~T:PRSP-List-RecordListEntry-Template~}
|
|
47
47
|
</tbody>
|
|
48
48
|
</table>
|
|
49
49
|
<!-- DefaultPackage end view template: [PRSP-List-RecordList-Template-Table] -->
|
|
@@ -1,89 +1,106 @@
|
|
|
1
1
|
const libPictView = require('pict-view');
|
|
2
2
|
|
|
3
3
|
const _DEFAULT_CONFIGURATION_List_RecordListEntry = (
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
{
|
|
5
|
+
ViewIdentifier: 'PRSP-List-RecordListEntry',
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
DefaultRenderable: 'PRSP_Renderable_RecordListEntry',
|
|
8
|
+
DefaultDestinationAddress: '#PRSP_RecordListEntry_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
|
+
// TODO: Add extras template here; it's in the header but not here yet.
|
|
31
|
+
Hash: 'PRSP-List-RecordListEntry-Template',
|
|
32
|
+
Template: /*html*/`
|
|
33
|
+
{~TSWP:PRSP-List-RecordListEntry-Template-Row:Record.Records.Records:Record~}
|
|
34
|
+
`
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
Hash: 'PRSP-List-RecordListEntry-Template-Row',
|
|
38
|
+
Template: /*html*/`
|
|
32
39
|
<!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template] -->
|
|
33
|
-
|
|
40
|
+
<tr>
|
|
41
|
+
{~TSWP:PRSP-List-RecordListEntry-Template-Row-Cell:Record.Payload.TableCells:Record.Data~}
|
|
42
|
+
{~T:PRSP-List-RecordListAction-Template-Cell~}
|
|
43
|
+
</tr>
|
|
34
44
|
<!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template] -->
|
|
35
45
|
`
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
65
|
-
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
Hash: 'PRSP-List-RecordListEntry-Template-Row-Cell',
|
|
49
|
+
Template: /*html*/`
|
|
50
|
+
<td style="border-bottom: 1px solid #ccc; padding: 5px;">
|
|
51
|
+
{~DVBK:Record.Payload:Record.Data.Key~}
|
|
52
|
+
</td>
|
|
53
|
+
`
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
Hash: 'PRSP-List-RecordListEntry-Template-Entry-Cell-Datum',
|
|
57
|
+
Template: /*html*/`
|
|
58
|
+
<!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template-Entry-Cell-Datum] -->
|
|
59
|
+
`
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
Hash: 'PRSP-List-RecordListAction-Template-Cell',
|
|
63
|
+
// FIXME: Needs a better way of getting the appropriate link templates in (likely requiring piping the RecordSet to the link manager)
|
|
64
|
+
Template: /*html*/`
|
|
65
|
+
<td style="border-bottom: 1px solid #ccc; padding: 5px;">
|
|
66
|
+
<ul>
|
|
67
|
+
{~TSWP:PRSP-List-RecordListAction-Template-Cell-Datum:Pict.providers.RecordSetLinkManager.linkTemplates:Record~}
|
|
68
|
+
</ul>
|
|
69
|
+
</td>
|
|
70
|
+
`
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
Hash: 'PRSP-List-RecordListAction-Template-Cell-Datum',
|
|
74
|
+
// These use the new TemplateByReference template expression, which uses the values in these addresses to lookup the template hash then renders those template with the current Record state.
|
|
75
|
+
// This is part one of refactoring to include metatemplate resolution ase a core behavior pict itself rather than a pict-section-form capability
|
|
76
|
+
Template: /*html*/`
|
|
77
|
+
<li><a href="{~TBR:Record.Data.URL~}">{~TBR:Record.Data.Name~}</a></li>
|
|
78
|
+
`
|
|
79
|
+
// {~Breakpoint~}
|
|
80
|
+
|
|
81
|
+
},
|
|
82
|
+
],
|
|
66
83
|
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
84
|
+
Renderables:
|
|
85
|
+
[
|
|
86
|
+
{
|
|
87
|
+
RenderableHash: 'PRSP_Renderable_RecordListEntry',
|
|
88
|
+
TemplateHash: 'PRSP-List-RecordListEntry-Template',
|
|
89
|
+
DestinationAddress: '#PRSP_RecordListEntry_Container',
|
|
90
|
+
RenderMethod: 'replace'
|
|
91
|
+
}
|
|
92
|
+
],
|
|
76
93
|
|
|
77
|
-
|
|
78
|
-
|
|
94
|
+
Manifests: {}
|
|
95
|
+
});
|
|
79
96
|
|
|
80
97
|
class viewRecordSetListRecordListEntry extends libPictView
|
|
81
98
|
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
99
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
100
|
+
{
|
|
101
|
+
let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_RecordListEntry, pOptions);
|
|
102
|
+
super(pFable, tmpOptions, pServiceHash);
|
|
103
|
+
}
|
|
87
104
|
}
|
|
88
105
|
|
|
89
106
|
module.exports = viewRecordSetListRecordListEntry;
|
|
@@ -1,84 +1,85 @@
|
|
|
1
1
|
const libPictView = require('pict-view');
|
|
2
2
|
|
|
3
3
|
const _DEFAULT_CONFIGURATION_List_RecordListHeader = (
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
{
|
|
5
|
+
ViewIdentifier: 'PRSP-List-RecordListHeader',
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
DefaultRenderable: 'PRSP_Renderable_RecordListHeader',
|
|
8
|
+
DefaultDestinationAddress: '#PRSP_RecordListHeader_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-List-RecordListHeader-Template',
|
|
31
|
+
Template: /*html*/`
|
|
32
32
|
<!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template] -->
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
<tr>
|
|
34
|
+
{~TS:PRSP-List-RecordListHeader-Template-Header:Record.TableCells~}
|
|
35
|
+
{~T:PRSP-List-RecordListHeader-Template-Extra-Header~}
|
|
36
|
+
{~T:PRSP-List-RecordListActions-Template-Header~}
|
|
37
|
+
</tr>
|
|
37
38
|
<!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template] -->
|
|
38
39
|
`
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
Hash: 'PRSP-List-RecordListHeader-Template-Header',
|
|
43
|
+
Template: /*html*/`
|
|
44
|
+
<!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Header] -->
|
|
45
|
+
<th style="border-bottom: 1px solid #ccc; padding: 5px; background-color: #f2f2f2; color: #333;">
|
|
46
|
+
{~D:Record.DisplayName~}
|
|
47
|
+
</th>
|
|
48
|
+
<!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template-Header] -->
|
|
49
|
+
`
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
Hash: 'PRSP-List-RecordListActions-Template-Header',
|
|
53
|
+
Template: /*html*/`
|
|
54
|
+
<!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Header] -->
|
|
55
|
+
<th style="border-bottom: 1px solid #ccc; padding: 5px; background-color: #f2f2f2; color: #333;">
|
|
56
|
+
Actions
|
|
57
|
+
</th>
|
|
58
|
+
<!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template-Header] -->
|
|
59
|
+
`
|
|
60
|
+
},
|
|
61
|
+
],
|
|
61
62
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
Renderables:
|
|
64
|
+
[
|
|
65
|
+
{
|
|
66
|
+
RenderableHash: 'PRSP_Renderable_RecordListHeader',
|
|
67
|
+
TemplateHash: 'PRSP-List-RecordListHeader-Template',
|
|
68
|
+
DestinationAddress: '#PRSP_RecordListHeader_Container',
|
|
69
|
+
RenderMethod: 'replace'
|
|
70
|
+
}
|
|
71
|
+
],
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
Manifests: {}
|
|
74
|
+
});
|
|
74
75
|
|
|
75
76
|
class viewRecordSetListRecordListHeader extends libPictView
|
|
76
77
|
{
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
79
|
+
{
|
|
80
|
+
let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_RecordListHeader, pOptions);
|
|
81
|
+
super(pFable, tmpOptions, pServiceHash);
|
|
82
|
+
}
|
|
82
83
|
}
|
|
83
84
|
|
|
84
85
|
module.exports = viewRecordSetListRecordListHeader;
|