pict-section-recordset 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example_applications/ServeExamples.js +1 -1
- package/example_applications/mocks/book-edit-view.html +145 -0
- package/example_applications/mocks/book-read-view.html +139 -0
- package/example_applications/simple_entity/Simple-RecordSet-Application.js +3 -3
- package/example_applications/simple_entity/html/index.html +1 -1
- package/package.json +7 -6
- package/source/application/Pict-Application-RecordSet.js +12 -4
- package/source/providers/RecordSet-Link-Manager.js +52 -0
- package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +1 -0
- package/source/providers/RecordSet-Router.js +64 -0
- package/source/services/RecordsSet-MetaController.js +99 -16
- package/source/views/RecordSet-RecordBaseView.js +84 -0
- package/source/views/RecordsSet-MacroView.js +63 -0
- package/source/views/dashboard/RecordSet-Dashboard.js +2 -2
- package/source/views/edit/RecordSet-Edit.js +2 -2
- package/source/views/list/RecordSet-List-PaginationBottom.js +42 -42
- package/source/views/list/RecordSet-List-PaginationTop.js +102 -90
- package/source/views/list/RecordSet-List-RecordList.js +3 -3
- package/source/views/list/RecordSet-List-RecordListEntry.js +86 -69
- package/source/views/list/RecordSet-List-RecordListHeader.js +65 -64
- package/source/views/list/RecordSet-List-Title.js +0 -1
- package/source/views/list/RecordSet-List.js +168 -22
- package/source/views/read/RecordSet-Read-RecordRead.js +62 -48
- package/source/views/read/RecordSet-Read.js +193 -51
- package/test/PictSectionRecordSet-Basic_tests.js +5 -1
- package/test/PictSectionRecordSet-RecordProvider-Meadow_tests.js +1 -1
- package/types/Pict-Section-RecordSet.d.ts +5 -1
- package/types/application/Pict-Application-RecordSet.d.ts +5 -5
- package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
- package/types/providers/RecordSet-Link-Manager.d.ts +23 -0
- package/types/providers/RecordSet-Link-Manager.d.ts.map +1 -0
- package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts.map +1 -1
- package/types/providers/RecordSet-Router.d.ts +36 -0
- package/types/providers/RecordSet-Router.d.ts.map +1 -0
- package/types/services/RecordsSet-MetaController.d.ts +13 -6
- package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
- package/types/views/RecordSet-RecordBaseView.d.ts +53 -0
- package/types/views/RecordSet-RecordBaseView.d.ts.map +1 -0
- package/types/views/RecordsSet-MacroView.d.ts +33 -0
- package/types/views/RecordsSet-MacroView.d.ts.map +1 -1
- package/types/views/dashboard/RecordSet-Dashboard.d.ts +2 -3
- package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -1
- package/types/views/edit/RecordSet-Edit.d.ts +2 -3
- package/types/views/edit/RecordSet-Edit.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-PaginationBottom.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-PaginationTop.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-RecordListEntry.d.ts.map +1 -1
- package/types/views/list/RecordSet-List-RecordListHeader.d.ts.map +1 -1
- package/types/views/list/RecordSet-List.d.ts +7 -3
- package/types/views/list/RecordSet-List.d.ts.map +1 -1
- package/types/views/read/RecordSet-Read-RecordRead.d.ts.map +1 -1
- package/types/views/read/RecordSet-Read.d.ts +12 -3
- package/types/views/read/RecordSet-Read.d.ts.map +1 -1
- /package/example_applications/{list_view/index.html → mocks/list-view.html} +0 -0
|
@@ -9,16 +9,21 @@ const viewRecordSetDashboard = require('../views/dashboard/RecordSet-Dashboard.j
|
|
|
9
9
|
const providerBase = require('../providers/RecordSet-RecordProvider-Base.js');
|
|
10
10
|
const providerMeadowEndpoints = require('../providers/RecordSet-RecordProvider-MeadowEndpoints.js');
|
|
11
11
|
|
|
12
|
-
const
|
|
12
|
+
const providerLinkManager = require('../providers/RecordSet-Link-Manager.js');
|
|
13
13
|
|
|
14
|
-
const
|
|
14
|
+
const providerRouter = require('../providers/RecordSet-Router.js');
|
|
15
|
+
|
|
16
|
+
const _DEFAULT_CONFIGURATION =
|
|
17
|
+
{
|
|
18
|
+
DefaultMeadowURLPrefix: '/1.0/'
|
|
19
|
+
};
|
|
15
20
|
|
|
16
21
|
class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
17
22
|
{
|
|
18
23
|
constructor(pFable, pOptions, pServiceHash)
|
|
19
24
|
{
|
|
20
|
-
|
|
21
|
-
super(pFable,
|
|
25
|
+
let tmpOptions = Object.assign({}, _DEFAULT_CONFIGURATION, pOptions);
|
|
26
|
+
super(pFable, tmpOptions, pServiceHash);
|
|
22
27
|
|
|
23
28
|
/** @type {import('pict') & { addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any }} */
|
|
24
29
|
this.fable;
|
|
@@ -81,6 +86,8 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
81
86
|
return false;
|
|
82
87
|
}
|
|
83
88
|
|
|
89
|
+
let tmpProvider = false;
|
|
90
|
+
|
|
84
91
|
const providerConfiguration = Object.assign({}, {Hash: `RSP-Provider-${pRecordSetConfiguration.RecordSet}`}, pRecordSetConfiguration);
|
|
85
92
|
this.recordSetProviderConfigurations[providerConfiguration.RecordSet] = providerConfiguration;
|
|
86
93
|
|
|
@@ -98,7 +105,7 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
98
105
|
providerConfiguration.Entity = pRecordSetConfiguration.RecordSet;
|
|
99
106
|
}
|
|
100
107
|
// Default the URLPrefix to the base URLPrefix
|
|
101
|
-
if (`
|
|
108
|
+
if (`RecordSetURLPrefix` in pRecordSetConfiguration)
|
|
102
109
|
{
|
|
103
110
|
providerConfiguration.URLPrefix = pRecordSetConfiguration.RecordSetURLPrefix;
|
|
104
111
|
}
|
|
@@ -106,7 +113,7 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
106
113
|
{
|
|
107
114
|
providerConfiguration.URLPrefix = '/1.0/';
|
|
108
115
|
}
|
|
109
|
-
this.recordSetProviders[pRecordSetConfiguration.RecordSet] = this.fable.addProvider(providerConfiguration.Hash, providerConfiguration, providerMeadowEndpoints);
|
|
116
|
+
tmpProvider = this.recordSetProviders[pRecordSetConfiguration.RecordSet] = this.fable.addProvider(providerConfiguration.Hash, providerConfiguration, providerMeadowEndpoints);
|
|
110
117
|
break;
|
|
111
118
|
default:
|
|
112
119
|
case 'Custom':
|
|
@@ -116,21 +123,21 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
116
123
|
if (!(providerConfiguration.ProviderHash in this.fable.servicesMap))
|
|
117
124
|
{
|
|
118
125
|
this.fable.log.error(`RecordSetMetacontroller: ${this.UUID} loadRecordSetConfiguration called with invalid configuration. ProviderHash ${providerConfiguration.ProviderHash} not found. Falling back to base.`);
|
|
119
|
-
this.recordSetProviders[providerConfiguration.RecordSet] = this.fable.servicesMap[providerConfiguration.ProviderHash];
|
|
126
|
+
tmpProvider = this.recordSetProviders[providerConfiguration.RecordSet] = this.fable.servicesMap[providerConfiguration.ProviderHash];
|
|
120
127
|
}
|
|
121
128
|
else
|
|
122
129
|
{
|
|
123
|
-
this.recordSetProviders[providerConfiguration.RecordSet] = this.fable.addProvider(providerConfiguration.Hash, providerConfiguration, providerBase);
|
|
130
|
+
tmpProvider = this.recordSetProviders[providerConfiguration.RecordSet] = this.fable.addProvider(providerConfiguration.Hash, providerConfiguration, providerBase);
|
|
124
131
|
}
|
|
125
132
|
}
|
|
126
133
|
else
|
|
127
134
|
{
|
|
128
|
-
this.recordSetProviders[providerConfiguration.RecordSet] = this.fable.addProvider(providerConfiguration.Hash, providerConfiguration, providerBase);
|
|
135
|
+
tmpProvider = this.recordSetProviders[providerConfiguration.RecordSet] = this.fable.addProvider(providerConfiguration.Hash, providerConfiguration, providerBase);
|
|
129
136
|
}
|
|
130
137
|
break;
|
|
131
138
|
}
|
|
132
139
|
|
|
133
|
-
return
|
|
140
|
+
return tmpProvider;
|
|
134
141
|
}
|
|
135
142
|
|
|
136
143
|
loadRecordSetConfigurationArray(pRecordSetConfigurationArray)
|
|
@@ -154,6 +161,77 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
154
161
|
}
|
|
155
162
|
}
|
|
156
163
|
|
|
164
|
+
loadRecordSetDynamcally(pRecordSet, pEntity, pDefaultFilter)
|
|
165
|
+
{
|
|
166
|
+
if (typeof(pRecordSet) === 'object')
|
|
167
|
+
{
|
|
168
|
+
const tmpRecordSetProviderHash = `RSP-Provider-${pRecordSet.RecordSet}`;
|
|
169
|
+
this.loadRecordSetConfiguration(pRecordSet);
|
|
170
|
+
|
|
171
|
+
return this.fable.providers[tmpRecordSetProviderHash].initializeAsync((pError) =>
|
|
172
|
+
{
|
|
173
|
+
this.log.trace(`RecordSet [${pRecordSet.RecordSet} dynamically loaded.`);
|
|
174
|
+
})
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (typeof(pRecordSet) === 'string')
|
|
178
|
+
{
|
|
179
|
+
const tmpRecordSet = pRecordSet;
|
|
180
|
+
const tmpRecordSetProviderHash = `RSP-Provider-${tmpRecordSet}`;
|
|
181
|
+
|
|
182
|
+
const tmpEntity = (typeof(pEntity) === 'string') ? pEntity : tmpRecordSet;
|
|
183
|
+
const tmpDefaultFilter = (typeof(pDefaultFilter) === 'string') ? pDefaultFilter : '';
|
|
184
|
+
const tmpRecordSetConfiguration = {
|
|
185
|
+
"RecordSet": tmpRecordSet,
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
"RecordSetType": "MeadowEndpoint",
|
|
189
|
+
"RecordSetMeadowEntity": tmpEntity,
|
|
190
|
+
"RecordSetDefaultFilter": tmpDefaultFilter,
|
|
191
|
+
|
|
192
|
+
"RecordSetURLPrefix": "/1.0/"
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
this.loadRecordSetConfiguration(tmpRecordSetConfiguration);
|
|
196
|
+
return this.fable.providers[tmpRecordSetProviderHash].initializeAsync(
|
|
197
|
+
(pError) =>
|
|
198
|
+
{
|
|
199
|
+
this.log.trace(`RecordSet [${tmpRecordSetConfiguration.RecordSet} dynamically loaded.`);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
this.log.error(`RecordSet MetaController loadRecordSetDynamically called with invalid parameter (expected an Object or String - parameter was ${typeof(pRecordSet)}.`);
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
handleLoadDynamicRecordSetRoute(pRoutePayload)
|
|
208
|
+
{
|
|
209
|
+
if (typeof(pRoutePayload) != 'object')
|
|
210
|
+
{
|
|
211
|
+
throw new Error(`Pict RecordSet List view route handler called with invalid route payload.`);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const tmpRecordSet = pRoutePayload.data.RecordSet;
|
|
215
|
+
|
|
216
|
+
const tmpEntity = pRoutePayload.data.Entity ? pRoutePayload.data.Entity : tmpRecordSet;
|
|
217
|
+
const tmpDefaultFilter = pRoutePayload.data.DefaultFilter ? pRoutePayload.data.DefaultFilter : '';
|
|
218
|
+
|
|
219
|
+
return this.loadRecordSetDynamcally(tmpRecordSet, tmpEntity, tmpDefaultFilter);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
addRoutes(pPictRouter)
|
|
223
|
+
{
|
|
224
|
+
pPictRouter.addRoute('/PSRS/:RecordSet/LoadDynamic', this.handleLoadDynamicRecordSetRoute.bind(this));
|
|
225
|
+
pPictRouter.addRoute('/PSRS/:RecordSet/LoadDynamic/:Entity', this.handleLoadDynamicRecordSetRoute.bind(this));
|
|
226
|
+
pPictRouter.addRoute('/PSRS/:RecordSet/LoadDynamic/:Entity/:DefaultFilter', this.handleLoadDynamicRecordSetRoute.bind(this));
|
|
227
|
+
return true;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
addRecordLinkTemplate(pNameTemplate, pURLTemplate, pDefault)
|
|
231
|
+
{
|
|
232
|
+
return this.fable.providers.RecordSetLinkManager.addRecordLinkTemplate(pNameTemplate, pURLTemplate, pDefault);
|
|
233
|
+
}
|
|
234
|
+
|
|
157
235
|
initialize()
|
|
158
236
|
{
|
|
159
237
|
if (this.has_initialized)
|
|
@@ -162,6 +240,8 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
162
240
|
return this;
|
|
163
241
|
}
|
|
164
242
|
|
|
243
|
+
this.fable.addProvider('RecordSetLinkManager', {}, providerLinkManager);
|
|
244
|
+
|
|
165
245
|
// Add the subviews internally and externally
|
|
166
246
|
this.childViews.list = this.fable.addView('RSP-RecordSet-List', this.options, viewRecordSetList);
|
|
167
247
|
this.childViews.edit = this.fable.addView('RSP-RecordSet-Edit', this.options, viewRecordSetEdit);
|
|
@@ -174,23 +254,26 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
174
254
|
this.childViews.read.initialize();
|
|
175
255
|
this.childViews.dashboard.initialize();
|
|
176
256
|
|
|
257
|
+
// Now initialize the router
|
|
258
|
+
|
|
177
259
|
if (this.fable.settings.hasOwnProperty('DefaultRecordSetConfigurations'))
|
|
178
260
|
{
|
|
179
261
|
this.loadRecordSetConfigurationArray(this.fable.settings.DefaultRecordSetConfigurations);
|
|
180
262
|
}
|
|
181
263
|
|
|
264
|
+
this.has_initialized = true;
|
|
265
|
+
|
|
182
266
|
// Load pict-router if it isn't loaded
|
|
183
|
-
if (!('
|
|
267
|
+
if (!('RecordSetRouter' in this.fable.providers))
|
|
184
268
|
{
|
|
185
|
-
this.fable.addProvider('
|
|
269
|
+
this.fable.addProvider('RecordSetRouter', {}, providerRouter);
|
|
270
|
+
this.fable.providers.RecordSetRouter.initialize();
|
|
186
271
|
}
|
|
187
272
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
return this;
|
|
273
|
+
return true;
|
|
191
274
|
}
|
|
192
275
|
}
|
|
193
276
|
|
|
194
277
|
module.exports = RecordSetMetacontroller;
|
|
195
278
|
|
|
196
|
-
RecordSetMetacontroller.default_configuration =
|
|
279
|
+
RecordSetMetacontroller.default_configuration = _DEFAULT_CONFIGURATION;
|
|
@@ -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;
|