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.
- 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/package.json +5 -4
- package/source/application/Pict-Application-RecordSet.js +12 -4
- package/source/providers/RecordSet-Router.js +64 -0
- package/source/services/RecordsSet-MetaController.js +89 -17
- 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 +15 -21
- package/source/views/list/RecordSet-List-RecordListHeader.js +3 -13
- package/source/views/list/RecordSet-List-Title.js +0 -1
- package/source/views/list/RecordSet-List.js +163 -20
- package/source/views/read/RecordSet-Read.js +150 -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-Router.d.ts +36 -0
- package/types/providers/RecordSet-Router.d.ts.map +1 -0
- package/types/services/RecordsSet-MetaController.d.ts +12 -6
- package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
- package/types/views/RecordSet-RecordBaseView.d.ts +49 -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.d.ts +13 -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
|
@@ -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
|
|
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
|
|
51
|
+
class viewRecordSetDashboard extends libPictRecordSetRecordView
|
|
52
52
|
{
|
|
53
53
|
constructor(pFable, pOptions, pServiceHash)
|
|
54
54
|
{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
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
|
|
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
|
-
|
|
4
|
+
{
|
|
5
|
+
ViewIdentifier: 'PRSP-List-PaginationBottom',
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
DefaultRenderable: 'PRSP_Renderable_PaginationBottom',
|
|
8
|
+
DefaultDestinationAddress: '#PRSP_PaginationBottom_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-PaginationBottom-Template',
|
|
31
|
+
Template: /*html*/`
|
|
32
32
|
<!-- DefaultPackage pict view template: [PRSP-List-PaginationBottom-Template] -->
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
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
|
-
|
|
53
|
-
|
|
52
|
+
Manifests: {}
|
|
53
|
+
});
|
|
54
54
|
|
|
55
55
|
class viewRecordSetListPaginationBottom extends libPictView
|
|
56
56
|
{
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
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
|
-
|
|
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] -->
|
|
@@ -29,37 +29,31 @@ const _DEFAULT_CONFIGURATION_List_RecordListEntry = (
|
|
|
29
29
|
{
|
|
30
30
|
Hash: 'PRSP-List-RecordListEntry-Template',
|
|
31
31
|
Template: /*html*/`
|
|
32
|
-
|
|
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-
|
|
36
|
+
Hash: 'PRSP-List-RecordListEntry-Template-Row',
|
|
39
37
|
Template: /*html*/`
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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-
|
|
46
|
+
Hash: 'PRSP-List-RecordListEntry-Template-Row-Cell',
|
|
50
47
|
Template: /*html*/`
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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-
|
|
54
|
+
Hash: 'PRSP-List-RecordListEntry-Template-Entry-Cell-Datum',
|
|
60
55
|
Template: /*html*/`
|
|
61
|
-
|
|
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
|
-
{~
|
|
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:
|