pict-section-recordset 1.0.1 → 1.0.2

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 (46) 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/package.json +5 -4
  6. package/source/application/Pict-Application-RecordSet.js +12 -4
  7. package/source/providers/RecordSet-Router.js +64 -0
  8. package/source/services/RecordsSet-MetaController.js +89 -17
  9. package/source/views/RecordSet-RecordBaseView.js +84 -0
  10. package/source/views/RecordsSet-MacroView.js +63 -0
  11. package/source/views/dashboard/RecordSet-Dashboard.js +2 -2
  12. package/source/views/edit/RecordSet-Edit.js +2 -2
  13. package/source/views/list/RecordSet-List-PaginationBottom.js +42 -42
  14. package/source/views/list/RecordSet-List-PaginationTop.js +102 -90
  15. package/source/views/list/RecordSet-List-RecordList.js +3 -3
  16. package/source/views/list/RecordSet-List-RecordListEntry.js +15 -21
  17. package/source/views/list/RecordSet-List-RecordListHeader.js +3 -13
  18. package/source/views/list/RecordSet-List-Title.js +0 -1
  19. package/source/views/list/RecordSet-List.js +163 -20
  20. package/source/views/read/RecordSet-Read.js +150 -51
  21. package/test/PictSectionRecordSet-Basic_tests.js +5 -1
  22. package/test/PictSectionRecordSet-RecordProvider-Meadow_tests.js +1 -1
  23. package/types/Pict-Section-RecordSet.d.ts +5 -1
  24. package/types/application/Pict-Application-RecordSet.d.ts +5 -5
  25. package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
  26. package/types/providers/RecordSet-Router.d.ts +36 -0
  27. package/types/providers/RecordSet-Router.d.ts.map +1 -0
  28. package/types/services/RecordsSet-MetaController.d.ts +12 -6
  29. package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
  30. package/types/views/RecordSet-RecordBaseView.d.ts +49 -0
  31. package/types/views/RecordSet-RecordBaseView.d.ts.map +1 -0
  32. package/types/views/RecordsSet-MacroView.d.ts +33 -0
  33. package/types/views/RecordsSet-MacroView.d.ts.map +1 -1
  34. package/types/views/dashboard/RecordSet-Dashboard.d.ts +2 -3
  35. package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -1
  36. package/types/views/edit/RecordSet-Edit.d.ts +2 -3
  37. package/types/views/edit/RecordSet-Edit.d.ts.map +1 -1
  38. package/types/views/list/RecordSet-List-PaginationBottom.d.ts.map +1 -1
  39. package/types/views/list/RecordSet-List-PaginationTop.d.ts.map +1 -1
  40. package/types/views/list/RecordSet-List-RecordListEntry.d.ts.map +1 -1
  41. package/types/views/list/RecordSet-List-RecordListHeader.d.ts.map +1 -1
  42. package/types/views/list/RecordSet-List.d.ts +7 -3
  43. package/types/views/list/RecordSet-List.d.ts.map +1 -1
  44. package/types/views/read/RecordSet-Read.d.ts +13 -3
  45. package/types/views/read/RecordSet-Read.d.ts.map +1 -1
  46. /package/example_applications/{list_view/index.html → mocks/list-view.html} +0 -0
@@ -0,0 +1,84 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Base_View = (
4
+ {
5
+ ViewIdentifier: 'PRSP-RecordSet-View-Base',
6
+
7
+ DefaultRenderable: 'PRSP_Base_Recordset',
8
+ DefaultDestinationAddress: '#PictRecordSetContainer',
9
+ DefaultTemplateRecordAddress: false,
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,
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,
20
+
21
+ AutoSolveWithApp: false,
22
+ AutoSolveOrdinal: 0,
23
+
24
+ CSS: false,
25
+ CSSPriority: 500,
26
+
27
+ Templates:
28
+ [
29
+ {
30
+ Hash: 'PRSP-Base-View-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Base-View-Template] -->
33
+ <!--
34
+ If this is being rendered, the RecordSet view has not taken control of its render function.
35
+ While the view may not need custom templating it is strongly encouraged to still override
36
+ the template and put informative messaging into an HTML comment.
37
+
38
+ Record JSON:
39
+ \`\`\`json
40
+ {~DataJson:Record~}
41
+ \`\`\`
42
+ --!
43
+ <!-- DefaultPackage end view template: [PRSP-Base-View-Template] -->
44
+ `
45
+ }
46
+ ],
47
+
48
+ Renderables:
49
+ [
50
+ {
51
+ RenderableHash: 'PRSP_Base_Recordset',
52
+ TemplateHash: 'PRSP-Base-View-Template',
53
+ DestinationAddress: '#PictRecordSetContainer',
54
+ RenderMethod: 'replace'
55
+ }
56
+ ],
57
+
58
+ Manifests: {}
59
+ });
60
+
61
+ class viewPictSectionRecordSetViewBase extends libPictView
62
+ {
63
+ constructor(pFable, pOptions, pServiceHash)
64
+ {
65
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Base_View, pOptions);
66
+ super(pFable, tmpOptions, pServiceHash);
67
+ /** @type {import('pict') & {
68
+ * log: any,
69
+ * instantiateServiceProviderWithoutRegistration: (hash: String) => any,
70
+ * PictSectionRecordSet: InstanceType<import('../Pict-Section-RecordSet.js')> }
71
+ * } */
72
+ this.pict;
73
+ }
74
+
75
+ addRoutes(pPictRouter)
76
+ {
77
+ this.pict.log.trace(`View [${this.options.ViewIdentifier}]::[${this.Hash}] addRoutes called.`);
78
+ return true;
79
+ }
80
+ }
81
+
82
+ module.exports = viewPictSectionRecordSetViewBase;
83
+
84
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Base_View;
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Dashboard_HeaderDashboard = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Main',
6
+
7
+ DefaultRenderable: 'PRSP_Main_Container',
8
+ DefaultDestinationAddress: '#PictRecordSetContainer',
9
+ DefaultTemplateRecordAddress: false,
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,
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,
20
+
21
+ AutoSolveWithApp: false,
22
+ AutoSolveOrdinal: 0,
23
+
24
+ CSS: false,
25
+ CSSPriority: 500,
26
+
27
+ Templates:
28
+ [
29
+ {
30
+ Hash: 'PRSP-Main-Container-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Main-Container-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Main-Container-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_HeaderDashboard',
42
+ TemplateHash: 'PRSP-Main-Container-Template',
43
+ DestinationAddress: '#PRSP_Main_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewPictSectionRecordSetMain extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Dashboard_HeaderDashboard, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewPictSectionRecordSetMain;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Dashboard_HeaderDashboard;
63
+
@@ -1,4 +1,4 @@
1
- const libPictView = require('pict-view');
1
+ const libPictRecordSetRecordView = require('../RecordSet-RecordBaseView.js');
2
2
 
3
3
  const _DEFAULT_CONFIGURATION__Dashboard = (
4
4
  {
@@ -48,7 +48,7 @@ const _DEFAULT_CONFIGURATION__Dashboard = (
48
48
  Manifests: {}
49
49
  });
50
50
 
51
- class viewRecordSetDashboard extends libPictView
51
+ class viewRecordSetDashboard extends libPictRecordSetRecordView
52
52
  {
53
53
  constructor(pFable, pOptions, pServiceHash)
54
54
  {
@@ -1,4 +1,4 @@
1
- const libPictView = require('pict-view');
1
+ const libPictRecordSetRecordView = require('../RecordSet-RecordBaseView.js');
2
2
 
3
3
  const _DEFAULT_CONFIGURATION__Edit = (
4
4
  {
@@ -48,7 +48,7 @@ const _DEFAULT_CONFIGURATION__Edit = (
48
48
  Manifests: {}
49
49
  });
50
50
 
51
- class viewRecordSetEdit extends libPictView
51
+ class viewRecordSetEdit extends libPictRecordSetRecordView
52
52
  {
53
53
  constructor(pFable, pOptions, pServiceHash)
54
54
  {
@@ -1,64 +1,64 @@
1
1
  const libPictView = require('pict-view');
2
2
 
3
3
  const _DEFAULT_CONFIGURATION_List_PaginationBottom = (
4
- {
5
- ViewIdentifier: 'PRSP-List-PaginationBottom',
4
+ {
5
+ ViewIdentifier: 'PRSP-List-PaginationBottom',
6
6
 
7
- DefaultRenderable: 'PRSP_Renderable_PaginationBottom',
8
- DefaultDestinationAddress: '#PRSP_PaginationBottom_Container',
9
- DefaultTemplateRecordAddress: false,
7
+ DefaultRenderable: 'PRSP_Renderable_PaginationBottom',
8
+ DefaultDestinationAddress: '#PRSP_PaginationBottom_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-PaginationBottom-Template',
31
- Template: /*html*/`
27
+ Templates:
28
+ [
29
+ {
30
+ Hash: 'PRSP-List-PaginationBottom-Template',
31
+ Template: /*html*/`
32
32
  <!-- DefaultPackage pict view template: [PRSP-List-PaginationBottom-Template] -->
33
- <nav id="RSP_Lower_Pagination_Container">
34
- {~T:PRSP-List-Pagination-Template-Description~}
33
+ <nav id="RSP_Lower_Pagination_Container">
34
+ {~T:PRSP-List-Pagination-Template-Description~}
35
35
  {~T:PRSP-List-Pagination-Template-Buttons~}
36
36
  </nav>
37
37
  <!-- DefaultPackage end view template: [PRSP-List-PaginationBottom-Template] -->
38
38
  `
39
- }
40
- ],
39
+ }
40
+ ],
41
41
 
42
- Renderables:
43
- [
44
- {
45
- RenderableHash: 'PRSP_Renderable_PaginationBottom',
46
- TemplateHash: 'PRSP-List-PaginationBottom-Template',
47
- DestinationAddress: '#PRSP_PaginationBottom_Container',
48
- RenderMethod: 'replace'
49
- }
50
- ],
42
+ Renderables:
43
+ [
44
+ {
45
+ RenderableHash: 'PRSP_Renderable_PaginationBottom',
46
+ TemplateHash: 'PRSP-List-PaginationBottom-Template',
47
+ DestinationAddress: '#PRSP_PaginationBottom_Container',
48
+ RenderMethod: 'replace'
49
+ }
50
+ ],
51
51
 
52
- Manifests: {}
53
- });
52
+ Manifests: {}
53
+ });
54
54
 
55
55
  class viewRecordSetListPaginationBottom extends libPictView
56
56
  {
57
- constructor(pFable, pOptions, pServiceHash)
58
- {
59
- let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_PaginationBottom, pOptions);
60
- super(pFable, tmpOptions, pServiceHash);
61
- }
57
+ constructor(pFable, pOptions, pServiceHash)
58
+ {
59
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_PaginationBottom, pOptions);
60
+ super(pFable, tmpOptions, pServiceHash);
61
+ }
62
62
  }
63
63
 
64
64
  module.exports = viewRecordSetListPaginationBottom;
@@ -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] -->
@@ -29,37 +29,31 @@ const _DEFAULT_CONFIGURATION_List_RecordListEntry = (
29
29
  {
30
30
  Hash: 'PRSP-List-RecordListEntry-Template',
31
31
  Template: /*html*/`
32
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template] -->
33
- {~T:PRSP-List-RecordListEntry-Template-Entry~}
34
- <!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template] -->
32
+ {~TSWP:PRSP-List-RecordListEntry-Template-Row:Record.Records.Records:Record~}
35
33
  `
36
34
  },
37
35
  {
38
- Hash: 'PRSP-List-RecordListEntry-Template-Entry',
36
+ Hash: 'PRSP-List-RecordListEntry-Template-Row',
39
37
  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
- `
38
+ <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template] -->
39
+ <tr>
40
+ {~TSWP:PRSP-List-RecordListEntry-Template-Row-Cell:Record.Payload.TableCells:Record.Data~}
41
+ </tr>
42
+ <!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template] -->
43
+ `
47
44
  },
48
45
  {
49
- Hash: 'PRSP-List-RecordListEntry-Template-Entry-Cell',
46
+ Hash: 'PRSP-List-RecordListEntry-Template-Row-Cell',
50
47
  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
- `
48
+ <td style="border-bottom: 1px solid #ccc; padding: 5px;">
49
+ {~DVBK:Record.Payload:Record.Data.Key~}
50
+ </td>
51
+ `
57
52
  },
58
53
  {
59
- Hash: 'PRSP-List-RecordListEntry-Template-Extra-Cell',
54
+ Hash: 'PRSP-List-RecordListEntry-Template-Entry-Cell-Datum',
60
55
  Template: /*html*/`
61
- <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template-Extra-Cell] -->
62
- <!-- DefaultPackage end view template: [PRSP-List-RecordListEntry-Template-Extra-Cell] -->
56
+ <!-- DefaultPackage pict view template: [PRSP-List-RecordListEntry-Template-Entry-Cell-Datum] -->
63
57
  `
64
58
  }
65
59
  ],
@@ -31,7 +31,7 @@ const _DEFAULT_CONFIGURATION_List_RecordListHeader = (
31
31
  Template: /*html*/`
32
32
  <!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template] -->
33
33
  <tr>
34
- {~T:PRSP-List-RecordListHeader-Template-Header~}
34
+ {~TS:PRSP-List-RecordListHeader-Template-Header:Record.TableCells~}
35
35
  {~T:PRSP-List-RecordListHeader-Template-Extra-Header~}
36
36
  </tr>
37
37
  <!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template] -->
@@ -41,22 +41,12 @@ const _DEFAULT_CONFIGURATION_List_RecordListHeader = (
41
41
  Hash: 'PRSP-List-RecordListHeader-Template-Header',
42
42
  Template: /*html*/`
43
43
  <!-- DefaultPackage pict view template: [PRSP-List-RecordListHeader-Template-Header] -->
44
- <th>
45
- {~D:Record~}
44
+ <th style="border-bottom: 1px solid #ccc; padding: 5px; background-color: #f2f2f2; color: #333;">
45
+ {~D:Record.DisplayName~}
46
46
  </th>
47
47
  <!-- DefaultPackage end view template: [PRSP-List-RecordListHeader-Template-Header] -->
48
48
  `
49
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
50
  ],
61
51
 
62
52
  Renderables:
@@ -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
-