pict-section-recordset 1.0.0 → 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 (108) hide show
  1. package/.vscode/launch.json +46 -0
  2. package/debug/Harness.js +0 -7
  3. package/example_applications/ServeExamples.js +1 -1
  4. package/example_applications/mocks/book-edit-view.html +145 -0
  5. package/example_applications/mocks/book-read-view.html +139 -0
  6. package/example_applications/mocks/list-view.html +125 -0
  7. package/example_applications/simple_entity/Simple-RecordSet-Application.js +33 -27
  8. package/example_applications/simple_entity/html/index.html +3 -3
  9. package/package.json +12 -8
  10. package/source/Pict-Section-RecordSet.js +6 -2
  11. package/source/application/Pict-Application-RecordSet.js +23 -4
  12. package/source/providers/RecordSet-RecordProvider-Base.js +217 -0
  13. package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +339 -0
  14. package/source/providers/RecordSet-Router.js +64 -0
  15. package/source/services/RecordsSet-MetaController.js +268 -0
  16. package/source/views/RecordSet-Filter.js +91 -0
  17. package/source/views/RecordSet-RecordBaseView.js +84 -0
  18. package/source/views/RecordsSet-MacroView.js +63 -0
  19. package/source/views/dashboard/RecordSet-Dashboard-HeaderDashboard.js +63 -0
  20. package/source/views/dashboard/RecordSet-Dashboard-RecordSetDashboard.js +63 -0
  21. package/source/views/dashboard/RecordSet-Dashboard-TabBarDashboard.js +63 -0
  22. package/source/views/dashboard/RecordSet-Dashboard.js +63 -0
  23. package/source/views/edit/RecordSet-Edit-HeaderEdit.js +63 -0
  24. package/source/views/edit/RecordSet-Edit-RecordEdit.js +63 -0
  25. package/source/views/edit/RecordSet-Edit-RecordEditControls.js +63 -0
  26. package/source/views/edit/RecordSet-Edit-RecordEditExtra.js +63 -0
  27. package/source/views/edit/RecordSet-Edit-TabBarEdit.js +63 -0
  28. package/source/views/edit/RecordSet-Edit.js +63 -0
  29. package/source/views/list/RecordSet-List-HeaderList.js +63 -0
  30. package/source/views/list/RecordSet-List-PaginationBottom.js +67 -0
  31. package/source/views/list/RecordSet-List-PaginationTop.js +127 -0
  32. package/source/views/list/RecordSet-List-RecordList.js +79 -0
  33. package/source/views/list/RecordSet-List-RecordListEntry.js +86 -0
  34. package/source/views/list/RecordSet-List-RecordListHeader.js +77 -0
  35. package/source/views/list/RecordSet-List-Title.js +66 -0
  36. package/source/views/list/RecordSet-List.js +310 -0
  37. package/source/views/read/RecordSet-Read-HeaderRead.js +63 -0
  38. package/source/views/read/RecordSet-Read-RecordRead.js +63 -0
  39. package/source/views/read/RecordSet-Read-RecordReadExtra.js +63 -0
  40. package/source/views/read/RecordSet-Read-TabBarRead.js +63 -0
  41. package/source/views/read/RecordSet-Read.js +162 -0
  42. package/test/PictSectionRecordSet-Basic_tests.js +6 -2
  43. package/test/PictSectionRecordSet-RecordProvider-Meadow_tests.js +203 -0
  44. package/tsconfig.build.json +16 -0
  45. package/tsconfig.json +1 -1
  46. package/types/Pict-Section-RecordSet.d.ts +9 -1
  47. package/types/application/Pict-Application-RecordSet.d.ts +5 -5
  48. package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
  49. package/types/providers/RecordSet-RecordProvider-Base.d.ts +207 -0
  50. package/types/providers/RecordSet-RecordProvider-Base.d.ts.map +1 -1
  51. package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts +100 -0
  52. package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts.map +1 -0
  53. package/types/providers/RecordSet-Router.d.ts +36 -0
  54. package/types/providers/RecordSet-Router.d.ts.map +1 -0
  55. package/types/services/RecordsSet-MetaController.d.ts +36 -0
  56. package/types/services/RecordsSet-MetaController.d.ts.map +1 -0
  57. package/types/views/RecordSet-Filter.d.ts +34 -0
  58. package/types/views/RecordSet-Filter.d.ts.map +1 -0
  59. package/types/views/RecordSet-RecordBaseView.d.ts +49 -0
  60. package/types/views/RecordSet-RecordBaseView.d.ts.map +1 -0
  61. package/types/views/RecordsSet-MacroView.d.ts +34 -0
  62. package/types/views/RecordsSet-MacroView.d.ts.map +1 -0
  63. package/types/views/dashboard/RecordSet-Dashboard-HeaderDashboard.d.ts +34 -0
  64. package/types/views/dashboard/RecordSet-Dashboard-HeaderDashboard.d.ts.map +1 -0
  65. package/types/views/dashboard/RecordSet-Dashboard-RecordSetDashboard.d.ts +34 -0
  66. package/types/views/dashboard/RecordSet-Dashboard-RecordSetDashboard.d.ts.map +1 -0
  67. package/types/views/dashboard/RecordSet-Dashboard-TabBarDashboard.d.ts +34 -0
  68. package/types/views/dashboard/RecordSet-Dashboard-TabBarDashboard.d.ts.map +1 -0
  69. package/types/views/dashboard/RecordSet-Dashboard.d.ts +33 -0
  70. package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -0
  71. package/types/views/edit/RecordSet-Edit-HeaderEdit.d.ts +34 -0
  72. package/types/views/edit/RecordSet-Edit-HeaderEdit.d.ts.map +1 -0
  73. package/types/views/edit/RecordSet-Edit-RecordEdit.d.ts +34 -0
  74. package/types/views/edit/RecordSet-Edit-RecordEdit.d.ts.map +1 -0
  75. package/types/views/edit/RecordSet-Edit-RecordEditControls.d.ts +34 -0
  76. package/types/views/edit/RecordSet-Edit-RecordEditControls.d.ts.map +1 -0
  77. package/types/views/edit/RecordSet-Edit-RecordEditExtra.d.ts +34 -0
  78. package/types/views/edit/RecordSet-Edit-RecordEditExtra.d.ts.map +1 -0
  79. package/types/views/edit/RecordSet-Edit-TabBarEdit.d.ts +34 -0
  80. package/types/views/edit/RecordSet-Edit-TabBarEdit.d.ts.map +1 -0
  81. package/types/views/edit/RecordSet-Edit.d.ts +33 -0
  82. package/types/views/edit/RecordSet-Edit.d.ts.map +1 -0
  83. package/types/views/list/RecordSet-List-HeaderList.d.ts +34 -0
  84. package/types/views/list/RecordSet-List-HeaderList.d.ts.map +1 -0
  85. package/types/views/list/RecordSet-List-PaginationBottom.d.ts +34 -0
  86. package/types/views/list/RecordSet-List-PaginationBottom.d.ts.map +1 -0
  87. package/types/views/list/RecordSet-List-PaginationTop.d.ts +34 -0
  88. package/types/views/list/RecordSet-List-PaginationTop.d.ts.map +1 -0
  89. package/types/views/list/RecordSet-List-RecordList.d.ts +34 -0
  90. package/types/views/list/RecordSet-List-RecordList.d.ts.map +1 -0
  91. package/types/views/list/RecordSet-List-RecordListEntry.d.ts +34 -0
  92. package/types/views/list/RecordSet-List-RecordListEntry.d.ts.map +1 -0
  93. package/types/views/list/RecordSet-List-RecordListHeader.d.ts +34 -0
  94. package/types/views/list/RecordSet-List-RecordListHeader.d.ts.map +1 -0
  95. package/types/views/list/RecordSet-List-Title.d.ts +34 -0
  96. package/types/views/list/RecordSet-List-Title.d.ts.map +1 -0
  97. package/types/views/list/RecordSet-List.d.ts +47 -0
  98. package/types/views/list/RecordSet-List.d.ts.map +1 -0
  99. package/types/views/read/RecordSet-Read-HeaderRead.d.ts +34 -0
  100. package/types/views/read/RecordSet-Read-HeaderRead.d.ts.map +1 -0
  101. package/types/views/read/RecordSet-Read-RecordRead.d.ts +34 -0
  102. package/types/views/read/RecordSet-Read-RecordRead.d.ts.map +1 -0
  103. package/types/views/read/RecordSet-Read-RecordReadExtra.d.ts +34 -0
  104. package/types/views/read/RecordSet-Read-RecordReadExtra.d.ts.map +1 -0
  105. package/types/views/read/RecordSet-Read-TabBarRead.d.ts +34 -0
  106. package/types/views/read/RecordSet-Read-TabBarRead.d.ts.map +1 -0
  107. package/types/views/read/RecordSet-Read.d.ts +44 -0
  108. package/types/views/read/RecordSet-Read.d.ts.map +1 -0
@@ -0,0 +1,63 @@
1
+ const libPictRecordSetRecordView = require('../RecordSet-RecordBaseView.js');
2
+
3
+ const _DEFAULT_CONFIGURATION__Dashboard = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Dashboard',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_Dashboard',
8
+ DefaultDestinationAddress: '#PRSP_Dashboard_Container',
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-Dashboard-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Dashboard-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Dashboard-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_Dashboard',
42
+ TemplateHash: 'PRSP-Dashboard-Template',
43
+ DestinationAddress: '#PRSP_Dashboard_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetDashboard extends libPictRecordSetRecordView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION__Dashboard, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetDashboard;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION__Dashboard;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Edit_HeaderEdit = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Edit-HeaderEdit',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_HeaderEdit',
8
+ DefaultDestinationAddress: '#PRSP_HeaderEdit_Container',
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-Edit-HeaderEdit-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Edit-HeaderEdit-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Edit-HeaderEdit-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_HeaderEdit',
42
+ TemplateHash: 'PRSP-Edit-HeaderEdit-Template',
43
+ DestinationAddress: '#PRSP_HeaderEdit_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetEditHeaderEdit extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Edit_HeaderEdit, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetEditHeaderEdit;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Edit_HeaderEdit;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Edit_RecordEdit = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Edit-RecordEdit',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_RecordEdit',
8
+ DefaultDestinationAddress: '#PRSP_RecordEdit_Container',
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-Edit-RecordEdit-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Edit-RecordEdit-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Edit-RecordEdit-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_RecordEdit',
42
+ TemplateHash: 'PRSP-Edit-RecordEdit-Template',
43
+ DestinationAddress: '#PRSP_RecordEdit_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetEditRecordEdit extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Edit_RecordEdit, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetEditRecordEdit;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Edit_RecordEdit;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Edit_RecordEditControls = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Edit-RecordEditControls',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_RecordEditControls',
8
+ DefaultDestinationAddress: '#PRSP_RecordEditControls_Container',
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-Edit-RecordEditControls-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Edit-RecordEditControls-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Edit-RecordEditControls-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_RecordEditControls',
42
+ TemplateHash: 'PRSP-Edit-RecordEditControls-Template',
43
+ DestinationAddress: '#PRSP_RecordEditControls_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetEditRecordEditControls extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Edit_RecordEditControls, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetEditRecordEditControls;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Edit_RecordEditControls;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Edit_RecordEditExtra = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Edit-RecordEditExtra',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_RecordEditExtra',
8
+ DefaultDestinationAddress: '#PRSP_RecordEditExtra_Container',
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-Edit-RecordEditExtra-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Edit-RecordEditExtra-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Edit-RecordEditExtra-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_RecordEditExtra',
42
+ TemplateHash: 'PRSP-Edit-RecordEditExtra-Template',
43
+ DestinationAddress: '#PRSP_RecordEditExtra_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetEditRecordEditExtra extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Edit_RecordEditExtra, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetEditRecordEditExtra;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Edit_RecordEditExtra;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_Edit_TabBarEdit = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Edit-TabBarEdit',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_TabBarEdit',
8
+ DefaultDestinationAddress: '#PRSP_TabBarEdit_Container',
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-Edit-TabBarEdit-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Edit-TabBarEdit-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Edit-TabBarEdit-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_TabBarEdit',
42
+ TemplateHash: 'PRSP-Edit-TabBarEdit-Template',
43
+ DestinationAddress: '#PRSP_TabBarEdit_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetEditTabBarEdit extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_Edit_TabBarEdit, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetEditTabBarEdit;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_Edit_TabBarEdit;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictRecordSetRecordView = require('../RecordSet-RecordBaseView.js');
2
+
3
+ const _DEFAULT_CONFIGURATION__Edit = (
4
+ {
5
+ ViewIdentifier: 'PRSP-Edit',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_Edit',
8
+ DefaultDestinationAddress: '#PRSP_Edit_Container',
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-Edit-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-Edit-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-Edit-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_Edit',
42
+ TemplateHash: 'PRSP-Edit-Template',
43
+ DestinationAddress: '#PRSP_Edit_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetEdit extends libPictRecordSetRecordView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION__Edit, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetEdit;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION__Edit;
63
+
@@ -0,0 +1,63 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_List_HeaderList = (
4
+ {
5
+ ViewIdentifier: 'PRSP-List-HeaderList',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_HeaderList',
8
+ DefaultDestinationAddress: '#PRSP_HeaderList_Container',
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-List-HeaderList-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-List-HeaderList-Template] -->
33
+ <!-- DefaultPackage end view template: [PRSP-List-HeaderList-Template] -->
34
+ `
35
+ }
36
+ ],
37
+
38
+ Renderables:
39
+ [
40
+ {
41
+ RenderableHash: 'PRSP_Renderable_HeaderList',
42
+ TemplateHash: 'PRSP-List-HeaderList-Template',
43
+ DestinationAddress: '#PRSP_HeaderList_Container',
44
+ RenderMethod: 'replace'
45
+ }
46
+ ],
47
+
48
+ Manifests: {}
49
+ });
50
+
51
+ class viewRecordSetListHeaderList extends libPictView
52
+ {
53
+ constructor(pFable, pOptions, pServiceHash)
54
+ {
55
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_HeaderList, pOptions);
56
+ super(pFable, tmpOptions, pServiceHash);
57
+ }
58
+ }
59
+
60
+ module.exports = viewRecordSetListHeaderList;
61
+
62
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_List_HeaderList;
63
+
@@ -0,0 +1,67 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_List_PaginationBottom = (
4
+ {
5
+ ViewIdentifier: 'PRSP-List-PaginationBottom',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_PaginationBottom',
8
+ DefaultDestinationAddress: '#PRSP_PaginationBottom_Container',
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-List-PaginationBottom-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-List-PaginationBottom-Template] -->
33
+ <nav id="RSP_Lower_Pagination_Container">
34
+ {~T:PRSP-List-Pagination-Template-Description~}
35
+ {~T:PRSP-List-Pagination-Template-Buttons~}
36
+ </nav>
37
+ <!-- DefaultPackage end view template: [PRSP-List-PaginationBottom-Template] -->
38
+ `
39
+ }
40
+ ],
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
+ ],
51
+
52
+ Manifests: {}
53
+ });
54
+
55
+ class viewRecordSetListPaginationBottom extends libPictView
56
+ {
57
+ constructor(pFable, pOptions, pServiceHash)
58
+ {
59
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_PaginationBottom, pOptions);
60
+ super(pFable, tmpOptions, pServiceHash);
61
+ }
62
+ }
63
+
64
+ module.exports = viewRecordSetListPaginationBottom;
65
+
66
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_List_PaginationBottom;
67
+
@@ -0,0 +1,127 @@
1
+ const libPictView = require('pict-view');
2
+
3
+ const _DEFAULT_CONFIGURATION_List_PaginationTop = (
4
+ {
5
+ ViewIdentifier: 'PRSP-List-PaginationTop',
6
+
7
+ DefaultRenderable: 'PRSP_Renderable_PaginationTop',
8
+ DefaultDestinationAddress: '#PRSP_PaginationTop_Container',
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-List-PaginationTop-Template',
31
+ Template: /*html*/`
32
+ <!-- DefaultPackage pict view template: [PRSP-List-PaginationTop-Template] -->
33
+ <nav id="RSP_Upper_Pagination_Container" role="navigation" aria-label="pagination">
34
+ {~T:PRSP-List-Pagination-Template-Description~}
35
+ {~T:PRSP-List-Pagination-Template-Buttons~}
36
+ </nav>
37
+ <div>
38
+ {~TS:PRSP-List-Pagination-Template-Pages:Record.PageLinksLimited~}
39
+ </div>
40
+ <!-- DefaultPackage end view template: [PRSP-List-PaginationTop-Template] -->
41
+ `
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
+ ],
101
+
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
+ ],
111
+
112
+ Manifests: {}
113
+ });
114
+
115
+ class viewRecordSetListPaginationTop extends libPictView
116
+ {
117
+ constructor(pFable, pOptions, pServiceHash)
118
+ {
119
+ let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION_List_PaginationTop, pOptions);
120
+ super(pFable, tmpOptions, pServiceHash);
121
+ }
122
+ }
123
+
124
+ module.exports = viewRecordSetListPaginationTop;
125
+
126
+ module.exports.default_configuration = _DEFAULT_CONFIGURATION_List_PaginationTop;
127
+