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.
Files changed (54) hide show
  1. package/example_applications/ServeExamples.js +1 -1
  2. package/example_applications/mocks/book-edit-view.html +145 -0
  3. package/example_applications/mocks/book-read-view.html +139 -0
  4. package/example_applications/simple_entity/Simple-RecordSet-Application.js +3 -3
  5. package/example_applications/simple_entity/html/index.html +1 -1
  6. package/package.json +7 -6
  7. package/source/application/Pict-Application-RecordSet.js +12 -4
  8. package/source/providers/RecordSet-Link-Manager.js +52 -0
  9. package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +1 -0
  10. package/source/providers/RecordSet-Router.js +64 -0
  11. package/source/services/RecordsSet-MetaController.js +99 -16
  12. package/source/views/RecordSet-RecordBaseView.js +84 -0
  13. package/source/views/RecordsSet-MacroView.js +63 -0
  14. package/source/views/dashboard/RecordSet-Dashboard.js +2 -2
  15. package/source/views/edit/RecordSet-Edit.js +2 -2
  16. package/source/views/list/RecordSet-List-PaginationBottom.js +42 -42
  17. package/source/views/list/RecordSet-List-PaginationTop.js +102 -90
  18. package/source/views/list/RecordSet-List-RecordList.js +3 -3
  19. package/source/views/list/RecordSet-List-RecordListEntry.js +86 -69
  20. package/source/views/list/RecordSet-List-RecordListHeader.js +65 -64
  21. package/source/views/list/RecordSet-List-Title.js +0 -1
  22. package/source/views/list/RecordSet-List.js +168 -22
  23. package/source/views/read/RecordSet-Read-RecordRead.js +62 -48
  24. package/source/views/read/RecordSet-Read.js +193 -51
  25. package/test/PictSectionRecordSet-Basic_tests.js +5 -1
  26. package/test/PictSectionRecordSet-RecordProvider-Meadow_tests.js +1 -1
  27. package/types/Pict-Section-RecordSet.d.ts +5 -1
  28. package/types/application/Pict-Application-RecordSet.d.ts +5 -5
  29. package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
  30. package/types/providers/RecordSet-Link-Manager.d.ts +23 -0
  31. package/types/providers/RecordSet-Link-Manager.d.ts.map +1 -0
  32. package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts.map +1 -1
  33. package/types/providers/RecordSet-Router.d.ts +36 -0
  34. package/types/providers/RecordSet-Router.d.ts.map +1 -0
  35. package/types/services/RecordsSet-MetaController.d.ts +13 -6
  36. package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
  37. package/types/views/RecordSet-RecordBaseView.d.ts +53 -0
  38. package/types/views/RecordSet-RecordBaseView.d.ts.map +1 -0
  39. package/types/views/RecordsSet-MacroView.d.ts +33 -0
  40. package/types/views/RecordsSet-MacroView.d.ts.map +1 -1
  41. package/types/views/dashboard/RecordSet-Dashboard.d.ts +2 -3
  42. package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -1
  43. package/types/views/edit/RecordSet-Edit.d.ts +2 -3
  44. package/types/views/edit/RecordSet-Edit.d.ts.map +1 -1
  45. package/types/views/list/RecordSet-List-PaginationBottom.d.ts.map +1 -1
  46. package/types/views/list/RecordSet-List-PaginationTop.d.ts.map +1 -1
  47. package/types/views/list/RecordSet-List-RecordListEntry.d.ts.map +1 -1
  48. package/types/views/list/RecordSet-List-RecordListHeader.d.ts.map +1 -1
  49. package/types/views/list/RecordSet-List.d.ts +7 -3
  50. package/types/views/list/RecordSet-List.d.ts.map +1 -1
  51. package/types/views/read/RecordSet-Read-RecordRead.d.ts.map +1 -1
  52. package/types/views/read/RecordSet-Read.d.ts +12 -3
  53. package/types/views/read/RecordSet-Read.d.ts.map +1 -1
  54. /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
- ViewIdentifier: 'PRSP-List-PaginationTop',
4
+ {
5
+ ViewIdentifier: 'PRSP-List-PaginationTop',
6
6
 
7
- DefaultRenderable: 'PRSP_Renderable_PaginationTop',
8
- DefaultDestinationAddress: '#PRSP_PaginationTop_Container',
9
- DefaultTemplateRecordAddress: false,
7
+ DefaultRenderable: 'PRSP_Renderable_PaginationTop',
8
+ DefaultDestinationAddress: '#PRSP_PaginationTop_Container',
9
+ DefaultTemplateRecordAddress: false,
10
10
 
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,
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
- // 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,
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
- AutoSolveWithApp: false,
22
- AutoSolveOrdinal: 0,
21
+ AutoSolveWithApp: false,
22
+ AutoSolveOrdinal: 0,
23
23
 
24
- CSS: false,
25
- CSSPriority: 500,
24
+ CSS: false,
25
+ CSSPriority: 500,
26
26
 
27
- Templates:
28
- [
29
- {
30
- Hash: 'PRSP-List-PaginationTop-Template',
31
- Template: /*html*/`
27
+ Templates:
28
+ [
29
+ {
30
+ Hash: 'PRSP-List-PaginationTop-Template',
31
+ Template: /*html*/`
32
32
  <!-- DefaultPackage pict view template: [PRSP-List-PaginationTop-Template] -->
33
- <nav id="RSP_Upper_Pagination_Container">
34
- {~T:PRSP-List-Pagination-Template-Description~}
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
- Hash: 'PRSP-List-Pagination-Template-Description',
42
- Template: /*html*/`
43
- <!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Description] -->
44
- <p id="PRSP_Pagination_Description">
45
- <span id="PRSP_Pagination_Description_Records_Start">1</span> to
46
- <span id="PRSP_Pagination_Description_Records_End">10</span> of
47
- <span id="PRSP_Pagination_Description_Records_Total">100</span> records
48
- </p>
49
- <!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Description] -->
50
- `
51
- },
52
- {
53
- Hash: 'PRSP-List-Pagination-Template-Buttons',
54
- Template: /*html*/`
55
- <!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Buttons] -->
56
- <ul>
57
- {~T:PRSP-List-Pagination-Template-Button-Previous~}
58
- {~TS:PRSP-List-Pagination-Template-Button-Page~}
59
- {~T:PRSP-List-Pagination-Template-Button-Next~}
60
- </ul>
61
- <!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Buttons] -->
62
- `
63
- },
64
- {
65
- Hash: 'PRSP-List-Pagination-Template-Button-Previous',
66
- Template: /*html*/`
67
- <!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Previous] -->
68
- <li><a href="#">&laquo; Previous</a></li>
69
- <!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Previous] -->
70
- `
71
- },
72
- {
73
- Hash: 'PRSP-List-Pagination-Template-Button-Next',
74
- Template: /*html*/`
75
- <!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Next] -->
76
- <li><a href="#">Next &raquo;</a></li>
77
- <!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Next] -->
78
- `
79
- },
80
- {
81
- Hash: 'PRSP-List-Pagination-Template-Button-Page',
82
- Template: /*html*/`
83
- <!-- DefaultPackage pict view template: [PRSP-List-Pagination-Template-Button-Page] -->
84
- <li><a href="#">{~D:Record.Page~}</a></li>
85
- <!-- DefaultPackage end view template: [PRSP-List-Pagination-Template-Button-Page] -->
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">&laquo; 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 &raquo;</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
- Renderables:
91
- [
92
- {
93
- RenderableHash: 'PRSP_Renderable_PaginationTop',
94
- TemplateHash: 'PRSP-List-PaginationTop-Template',
95
- DestinationAddress: '#PRSP_PaginationTop_Container',
96
- RenderMethod: 'replace'
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
- Manifests: {}
101
- });
112
+ Manifests: {}
113
+ });
102
114
 
103
115
  class viewRecordSetListPaginationTop extends libPictView
104
116
  {
105
- constructor(pFable, pOptions, pServiceHash)
106
- {
107
- let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_PaginationTop, pOptions);
108
- super(pFable, tmpOptions, pServiceHash);
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-RecordList-Template-Table-Header~}</thead>
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
- {~TS:PRSP-List-RecordListEntry-Template:Record.Records.Records~}
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
- ViewIdentifier: 'PRSP-List-RecordListEntry',
4
+ {
5
+ ViewIdentifier: 'PRSP-List-RecordListEntry',
6
6
 
7
- DefaultRenderable: 'PRSP_Renderable_RecordListEntry',
8
- DefaultDestinationAddress: '#PRSP_RecordListEntry_Container',
9
- DefaultTemplateRecordAddress: false,
7
+ DefaultRenderable: 'PRSP_Renderable_RecordListEntry',
8
+ DefaultDestinationAddress: '#PRSP_RecordListEntry_Container',
9
+ DefaultTemplateRecordAddress: false,
10
10
 
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,
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
- // 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,
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
- AutoSolveWithApp: false,
22
- AutoSolveOrdinal: 0,
21
+ AutoSolveWithApp: false,
22
+ AutoSolveOrdinal: 0,
23
23
 
24
- CSS: false,
25
- CSSPriority: 500,
24
+ CSS: false,
25
+ CSSPriority: 500,
26
26
 
27
- Templates:
28
- [
29
- {
30
- Hash: 'PRSP-List-RecordListEntry-Template',
31
- Template: /*html*/`
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
- {~T:PRSP-List-RecordListEntry-Template-Entry~}
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
- Hash: 'PRSP-List-RecordListEntry-Template-Entry',
39
- Template: /*html*/`
40
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template-Entry] -->
41
- <tr>
42
- {~T:PRSP-List-RecordListEntry-Template-Entry-Cell~}
43
- {~T:PRSP-List-RecordListEntry-Template-Extra-Cell~}
44
- </tr>
45
- <!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template-Entry] -->
46
- `
47
- },
48
- {
49
- Hash: 'PRSP-List-RecordListEntry-Template-Entry-Cell',
50
- Template: /*html*/`
51
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template-Entry-Cell] -->
52
- <td>
53
- {~DJ:Record~}
54
- </td>
55
- <!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template-Entry-Cell] -->
56
- `
57
- },
58
- {
59
- Hash: 'PRSP-List-RecordListEntry-Template-Extra-Cell',
60
- Template: /*html*/`
61
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template-Extra-Cell] -->
62
- <!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template-Extra-Cell] -->
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
- Renderables:
68
- [
69
- {
70
- RenderableHash: 'PRSP_Renderable_RecordListEntry',
71
- TemplateHash: 'PRSP-List-RecordListEntry-Template',
72
- DestinationAddress: '#PRSP_RecordListEntry_Container',
73
- RenderMethod: 'replace'
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
- Manifests: {}
78
- });
94
+ Manifests: {}
95
+ });
79
96
 
80
97
  class viewRecordSetListRecordListEntry extends libPictView
81
98
  {
82
- constructor(pFable, pOptions, pServiceHash)
83
- {
84
- let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_RecordListEntry, pOptions);
85
- super(pFable, tmpOptions, pServiceHash);
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
- ViewIdentifier: 'PRSP-List-RecordListHeader',
4
+ {
5
+ ViewIdentifier: 'PRSP-List-RecordListHeader',
6
6
 
7
- DefaultRenderable: 'PRSP_Renderable_RecordListHeader',
8
- DefaultDestinationAddress: '#PRSP_RecordListHeader_Container',
9
- DefaultTemplateRecordAddress: false,
7
+ DefaultRenderable: 'PRSP_Renderable_RecordListHeader',
8
+ DefaultDestinationAddress: '#PRSP_RecordListHeader_Container',
9
+ DefaultTemplateRecordAddress: false,
10
10
 
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,
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
- // 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,
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
- AutoSolveWithApp: false,
22
- AutoSolveOrdinal: 0,
21
+ AutoSolveWithApp: false,
22
+ AutoSolveOrdinal: 0,
23
23
 
24
- CSS: false,
25
- CSSPriority: 500,
24
+ CSS: false,
25
+ CSSPriority: 500,
26
26
 
27
- Templates:
28
- [
29
- {
30
- Hash: 'PRSP-List-RecordListHeader-Template',
31
- Template: /*html*/`
27
+ Templates:
28
+ [
29
+ {
30
+ Hash: 'PRSP-List-RecordListHeader-Template',
31
+ Template: /*html*/`
32
32
  <!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template] -->
33
- <tr>
34
- {~T:PRSP-List-RecordListHeader-Template-Header~}
35
- {~T:PRSP-List-RecordListHeader-Template-Extra-Header~}
36
- </tr>
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
- Hash: 'PRSP-List-RecordListHeader-Template-Header',
42
- Template: /*html*/`
43
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Header] -->
44
- <th>
45
- {~D:Record~}
46
- </th>
47
- <!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template-Header] -->
48
- `
49
- },
50
- {
51
- Hash: 'PRSP-List-RecordListHeader-Template-Extra-Header',
52
- Template: /*html*/`
53
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Extra-Header] -->
54
- <th>
55
- {~D:Record~}
56
- </th>
57
- <!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template-Extra-Header] -->
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
- Renderables:
63
- [
64
- {
65
- RenderableHash: 'PRSP_Renderable_RecordListHeader',
66
- TemplateHash: 'PRSP-List-RecordListHeader-Template',
67
- DestinationAddress: '#PRSP_RecordListHeader_Container',
68
- RenderMethod: 'replace'
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
- Manifests: {}
73
- });
73
+ Manifests: {}
74
+ });
74
75
 
75
76
  class viewRecordSetListRecordListHeader extends libPictView
76
77
  {
77
- constructor(pFable, pOptions, pServiceHash)
78
- {
79
- let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_RecordListHeader, pOptions);
80
- super(pFable, tmpOptions, pServiceHash);
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;
@@ -64,4 +64,3 @@ class viewRecordSetListTitle extends libPictView
64
64
  module.exports = viewRecordSetListTitle;
65
65
 
66
66
  module.exports.default_configuration = _DEFAULT_CONFIGURATION_List_Title;
67
-