pict-section-recordset 1.0.16 → 1.0.19

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 (24) hide show
  1. package/example_applications/simple_entity/Simple-RecordSet-Application.js +167 -34
  2. package/package.json +3 -3
  3. package/source/application/Pict-Application-RecordSet.js +2 -0
  4. package/source/providers/RecordSet-DynamicSolver.js +305 -0
  5. package/source/providers/RecordSet-Router.js +2 -0
  6. package/source/services/RecordsSet-MetaController.js +68 -69
  7. package/source/templates/Pict-Template-FilterView.js +2 -2
  8. package/source/views/RecordSet-Filter.js +15 -6
  9. package/source/views/dashboard/RecordSet-Dashboard-RecordListEntry.js +1 -1
  10. package/source/views/dashboard/RecordSet-Dashboard-RecordListHeader.js +12 -0
  11. package/source/views/dashboard/RecordSet-Dashboard.js +345 -72
  12. package/source/views/error/RecordSet-Error-NotFound.json +22 -0
  13. package/source/views/list/RecordSet-List.js +14 -10
  14. package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
  15. package/types/providers/RecordSet-DynamicSolver.d.ts +158 -0
  16. package/types/providers/RecordSet-DynamicSolver.d.ts.map +1 -0
  17. package/types/providers/RecordSet-Router.d.ts.map +1 -1
  18. package/types/services/RecordsSet-MetaController.d.ts +12 -11
  19. package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
  20. package/types/views/RecordSet-Filter.d.ts.map +1 -1
  21. package/types/views/dashboard/RecordSet-Dashboard-RecordListHeader.d.ts.map +1 -1
  22. package/types/views/dashboard/RecordSet-Dashboard.d.ts +22 -2
  23. package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -1
  24. package/types/views/list/RecordSet-List.d.ts.map +1 -1
@@ -117,8 +117,8 @@ class viewRecordSetList extends libPictRecordSetRecordView
117
117
 
118
118
  addRoutes(pPictRouter)
119
119
  {
120
- pPictRouter.router.on('/PSRS/:RecordSet/ListFilteredTo/:FilterString/:Offset/:PageSize', this.handleRecordSetListRoute.bind(this));
121
- pPictRouter.router.on('/PSRS/:RecordSet/ListFilteredTo/:FilterString', this.handleRecordSetListRoute.bind(this));
120
+ pPictRouter.router.on('/PSRS/:RecordSet/List/FilteredTo/:FilterString/:Offset/:PageSize', this.handleRecordSetListRoute.bind(this));
121
+ pPictRouter.router.on('/PSRS/:RecordSet/List/FilteredTo/:FilterString', this.handleRecordSetListRoute.bind(this));
122
122
  pPictRouter.router.on('/PSRS/:RecordSet/List/:Offset/:PageSize', this.handleRecordSetListRoute.bind(this));
123
123
  pPictRouter.router.on('/PSRS/:RecordSet/List/:Offset', this.handleRecordSetListRoute.bind(this));
124
124
  pPictRouter.router.on('/PSRS/:RecordSet/List', this.handleRecordSetListRoute.bind(this));
@@ -178,7 +178,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
178
178
 
179
179
  let tmpRecordListData =
180
180
  {
181
- "Title": pRecordSetConfiguration.RecordSet,
181
+ "Title": pRecordSetConfiguration.Title || pRecordSetConfiguration.RecordSet,
182
182
 
183
183
  "RecordSet": pRecordSetConfiguration.RecordSet,
184
184
  "RecordSetConfiguration": pRecordSetConfiguration,
@@ -196,11 +196,16 @@ class viewRecordSetList extends libPictRecordSetRecordView
196
196
 
197
197
  // TODO: There are still problems with the way these have nested data. Discuss how we might move that around
198
198
  // Fetch the records
199
- tmpRecordListData.Records = await this.pict.providers[pProviderHash].getRecords(tmpRecordListData);
199
+ const [ tmpRecords, tmpTotalRecordCount, tmpRecordSchema ] = await Promise.all([
200
+ this.pict.providers[pProviderHash].getRecords(tmpRecordListData),
201
+ this.pict.providers[pProviderHash].getRecordSetCount(tmpRecordListData),
202
+ this.pict.providers[pProviderHash].getRecordSchema(),
203
+ ]);
204
+ tmpRecordListData.Records = tmpRecords;
200
205
  // Get the total record count
201
- tmpRecordListData.TotalRecordCount = await this.pict.providers[pProviderHash].getRecordSetCount(tmpRecordListData);
206
+ tmpRecordListData.TotalRecordCount = tmpTotalRecordCount;
202
207
  // Get the record schema
203
- tmpRecordListData.RecordSchema = await this.pict.providers[pProviderHash].getRecordSchema();
208
+ tmpRecordListData.RecordSchema = tmpRecordSchema;
204
209
 
205
210
  // TODO: This should be coming from the schema but that can come after we discuss how we deal with default routing
206
211
  tmpRecordListData.GUIDAddress = `GUID${this.pict.providers[pProviderHash].options.Entity}`;
@@ -227,7 +232,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
227
232
  {
228
233
  Page: i + 1,
229
234
  RelativeOffset: i - tmpRecordListData.PageLinkBookmarks.Current,
230
- URL: `#/PSRS/${tmpRecordListData.RecordSet}/ListFilteredTo/${tmpRecordListData.FilterString}/${i * tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
235
+ URL: `#/PSRS/${tmpRecordListData.RecordSet}/List/FilteredTo/${tmpRecordListData.FilterString}/${i * tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
231
236
  });
232
237
  }
233
238
  else
@@ -253,7 +258,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
253
258
  {
254
259
  Page: 1,
255
260
  RelativeOffset: -tmpRecordListData.PageLinkBookmarks.Current,
256
- URL: `#/PSRS/${tmpRecordListData.RecordSet}/ListFilteredTo/${tmpRecordListData.FilterString}/${tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
261
+ URL: `#/PSRS/${tmpRecordListData.RecordSet}/List/FilteredTo/${tmpRecordListData.FilterString}/${tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
257
262
  });
258
263
  }
259
264
  else
@@ -274,7 +279,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
274
279
  {
275
280
  Page: tmpRecordListData.PageCount,
276
281
  RelativeOffset: (tmpRecordListData.PageCount - 1) - tmpRecordListData.PageLinkBookmarks.Current,
277
- URL: `#/PSRS/${tmpRecordListData.RecordSet}/ListFilteredTo/${tmpRecordListData.FilterString}/${(tmpRecordListData.PageCount - 1) * tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
282
+ URL: `#/PSRS/${tmpRecordListData.RecordSet}/List/FilteredTo/${tmpRecordListData.FilterString}/${(tmpRecordListData.PageCount - 1) * tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
278
283
  });
279
284
  }
280
285
  else
@@ -320,7 +325,6 @@ class viewRecordSetList extends libPictRecordSetRecordView
320
325
  {
321
326
  this.dynamicallyGenerateColumns(tmpRecordListData);
322
327
  }
323
-
324
328
  tmpRecordListData = this.onBeforeRenderList(tmpRecordListData);
325
329
 
326
330
  this.renderAsync('PRSP_Renderable_List', tmpRecordListData.RenderDestination, tmpRecordListData,
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Application-RecordSet.d.ts","sourceRoot":"","sources":["../../source/application/Pict-Application-RecordSet.js"],"names":[],"mappings":";AAIA;;;;;;;GAOG;AACH;IAEC,2DAQC;CAoBD;;;;;qCAIU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC"}
1
+ {"version":3,"file":"Pict-Application-RecordSet.d.ts","sourceRoot":"","sources":["../../source/application/Pict-Application-RecordSet.js"],"names":[],"mappings":";AAKA;;;;;;;GAOG;AACH;IAEC,2DASC;CAoBD;;;;;qCAIU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC"}
@@ -0,0 +1,158 @@
1
+ export = RecordSetDynamicSolver;
2
+ /**
3
+ * The PictDynamicSolver class is a provider that solves configuration-generated dynamic views.
4
+ */
5
+ declare class RecordSetDynamicSolver {
6
+ /**
7
+ * Creates an instance of the PictDynamicSolver class.
8
+ *
9
+ * @param {object} pFable - The fable object.
10
+ * @param {object} pOptions - The options object.
11
+ * @param {object} pServiceHash - The service hash object.
12
+ */
13
+ constructor(pFable: object, pOptions: object, pServiceHash: object);
14
+ /** @type {import('pict') & {
15
+ * instantiateServiceProviderIfNotExists: (hash: string) => any,
16
+ * ExpressionParser: any,
17
+ * PictSectionRecordSet: InstanceType<import('../Pict-Section-RecordSet.js')>
18
+ * }} */
19
+ pict: import("pict") & {
20
+ instantiateServiceProviderIfNotExists: (hash: string) => any;
21
+ ExpressionParser: any;
22
+ PictSectionRecordSet: InstanceType<{
23
+ new (pFable: any, pOptions: any, pServiceHash: any): import("../services/RecordsSet-MetaController.js");
24
+ default_configuration: Record<string, any>;
25
+ PictRecordSetApplication: typeof import("../application/Pict-Application-RecordSet.js");
26
+ RecordSetProviderBase: typeof import("./RecordSet-RecordProvider-Base.js");
27
+ RecordSetProviderMeadowEndpoints: typeof import("./RecordSet-RecordProvider-MeadowEndpoints.js");
28
+ }>;
29
+ };
30
+ /** @type {import('pict') & { instantiateServiceProviderIfNotExists: (hash: string) => any, ExpressionParser: any }} */
31
+ fable: import("pict") & {
32
+ instantiateServiceProviderIfNotExists: (hash: string) => any;
33
+ ExpressionParser: any;
34
+ };
35
+ /** @type {any} */
36
+ log: any;
37
+ /** @type {string} */
38
+ UUID: string;
39
+ /** @type {string} */
40
+ Hash: string;
41
+ /**
42
+ * Checks the solver and returns the solver object if it passes the checks.
43
+ *
44
+ * Automatically converts string solvers to have an Ordinal of 1.
45
+ *
46
+ * @param {string|object} pSolver - The solver to be checked. It can be either a string or an object.
47
+ * @param {boolean} [pFiltered=false] - Indicates whether the solvers should be filtered.
48
+ * @param {number} [pOrdinal] - The ordinal value to compare with the solver's ordinal value when filtered.
49
+ * @returns {object|undefined} - The solver object if it passes the checks, otherwise undefined.
50
+ */
51
+ checkSolver(pSolver: string | object, pFiltered?: boolean, pOrdinal?: number): object | undefined;
52
+ /**
53
+ * Runs each RecordSet solver formulae for a dynamic view group at a given ordinal.
54
+ *
55
+ * Or for all ordinals if no ordinal is passed.
56
+ *
57
+ * @param {import('manyfest')} pManifest - The manifest for the RecordSet.
58
+ * @param {array} pCellSolverArray - An array of Solvers from the groups to solve.
59
+ * @param {number} pOrdinal - The ordinal value to filter to. Optional.
60
+ * @param {Array<Record<string, any>>} pRecords - The records to solve against.
61
+ */
62
+ executeCellSolvers(pManifest: any, pCellSolverArray: any[], pOrdinal: number, pRecords: Array<Record<string, any>>): void;
63
+ /**
64
+ * @param {Record<string, any>} pRecord - The record to build the context for.
65
+ * @param {Array<Record<string, any>>} pRecords - The records to build the context from.
66
+ * @param {import('manyfest')} pManifest - The manifest for the RecordSet.
67
+ */
68
+ buildCellContextRecord(pRecord: Record<string, any>, pRecords: Array<Record<string, any>>, pManifest: any): Record<string, any> & {
69
+ Pict: import("pict") & {
70
+ instantiateServiceProviderIfNotExists: (hash: string) => any;
71
+ ExpressionParser: any;
72
+ PictSectionRecordSet: InstanceType<{
73
+ new (pFable: any, pOptions: any, pServiceHash: any): import("../services/RecordsSet-MetaController.js");
74
+ default_configuration: Record<string, any>;
75
+ PictRecordSetApplication: typeof import("../application/Pict-Application-RecordSet.js");
76
+ RecordSetProviderBase: typeof import("./RecordSet-RecordProvider-Base.js");
77
+ RecordSetProviderMeadowEndpoints: typeof import("./RecordSet-RecordProvider-MeadowEndpoints.js");
78
+ }>;
79
+ };
80
+ AppData: any;
81
+ RecordSubset: Record<string, any>[];
82
+ Manifest: any;
83
+ };
84
+ /**
85
+ * @param {Array<Record<string, any>>} pRecords - The records to build the context from.
86
+ * @param {import('manyfest')} pManifest - The manifest for the RecordSet.
87
+ */
88
+ buildGlobalContextRecord(pRecords: Array<Record<string, any>>, pManifest: any): {
89
+ Pict: import("pict") & {
90
+ instantiateServiceProviderIfNotExists: (hash: string) => any;
91
+ ExpressionParser: any;
92
+ PictSectionRecordSet: InstanceType<{
93
+ new (pFable: any, pOptions: any, pServiceHash: any): import("../services/RecordsSet-MetaController.js");
94
+ default_configuration: Record<string, any>;
95
+ PictRecordSetApplication: typeof import("../application/Pict-Application-RecordSet.js");
96
+ RecordSetProviderBase: typeof import("./RecordSet-RecordProvider-Base.js");
97
+ RecordSetProviderMeadowEndpoints: typeof import("./RecordSet-RecordProvider-MeadowEndpoints.js");
98
+ }>;
99
+ };
100
+ AppData: any;
101
+ RecordSubset: Record<string, any>[];
102
+ Manifest: any;
103
+ };
104
+ /**
105
+ * Executes the section solvers at a given ordinal (or all if no ordinal is passed).
106
+ *
107
+ * @param {import('manyfest')} pManifest - The manifest for the RecordSet.
108
+ * @param {Array} pGlobalSolverArray - The array of view section solvers.
109
+ * @param {number} pOrdinal - The ordinal value.
110
+ * @param {Array<Record<string, any>>} pRecords - The records to solve against.
111
+ */
112
+ executeDashboardSolvers(pManifest: any, pGlobalSolverArray: any[], pOrdinal: number, pRecords: Array<Record<string, any>>): void;
113
+ /**
114
+ * Checks if the given ordinal exists in the provided ordinal set.
115
+ *
116
+ * If not, it adds the ordinal to the set.
117
+ *
118
+ * @param {number} pOrdinal - The ordinal to check.
119
+ * @param {Object} pOrdinalSet - The ordinal set to check against.
120
+ * @returns {Object} - The ordinal object from the ordinal set.
121
+ */
122
+ checkAutoSolveOrdinal(pOrdinal: number, pOrdinalSet: any): any;
123
+ /**
124
+ * Solves the views based on the provided view hashes or all views in pict.
125
+ *
126
+ * If non-dynamic views are also passed in, they are solved as well.
127
+ *
128
+ * This algorithm is particularly complex because it solves views in
129
+ * order across two dimensions:
130
+ *
131
+ * 1. The order of the views in the view hash array.
132
+ * 2. Precedence order (based on Ordinal)
133
+ *
134
+ * The way it manages the precedence order solving is by enumerating the
135
+ * view hash array multiple times until it exhausts the solution set.
136
+ *
137
+ * In dynamic views, when there are collisions in precedence order between
138
+ * Section Solvers and Group RecordSet Solvers, it prefers the RecordSet
139
+ * solvers first. The thinking behind this is that a RecordSet solver is
140
+ * a "tier down" from the core Section it resides within. These are
141
+ * leaves on the tree.
142
+ *
143
+ * @param {Record<string, any>} pManifestDefinition
144
+ * @param {Array<Record<string, any>>} pRecords - The records to solve against.
145
+ */
146
+ solveDashboard(pManifestDefinition: Record<string, any>, pRecords: Array<Record<string, any>>): void;
147
+ lastSolveOutcome: {
148
+ StartTimeStamp: number;
149
+ SolveOrdinals: {};
150
+ EndTimeStamp: number;
151
+ };
152
+ }
153
+ declare namespace RecordSetDynamicSolver {
154
+ export { _DefaultProviderConfiguration as default_configuration };
155
+ }
156
+ /** @type {Record<string, any>} */
157
+ declare const _DefaultProviderConfiguration: Record<string, any>;
158
+ //# sourceMappingURL=RecordSet-DynamicSolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RecordSet-DynamicSolver.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-DynamicSolver.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAwBhB;IAjBA;;;;YAIQ;IACR,MALW,OAAO,MAAM,CAAC,GAAG;QACxB,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;QAC7D,gBAAgB,EAAE,GAAG,CAAC;QACtB,oBAAoB,EAAE,YAAY,CAAC;;;;;;SAAsC,CAAC,CAAA;KAC1E,CACK;IACT,uHAAuH;IACvH,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;QAAC,gBAAgB,EAAE,GAAG,CAAA;KAAE,CACzG;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,qBAAqB;IACrB,MADW,MAAM,CACR;IACT,qBAAqB;IACrB,MADW,MAAM,CACR;IAMV;;;;;;;;;OASG;IACH,qBALW,MAAM,GAAC,MAAM,cACb,OAAO,aACP,MAAM,GACJ,MAAM,GAAC,SAAS,CA8B5B;IAED;;;;;;;;;OASG;IACH,sEAHW,MAAM,YACN,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QAuCpC;IAED;;;;OAIG;IACH,gCAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YACnB,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;mDA7GO,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG;8BAC1C,GAAG;kCACC,YAAY,CAAC;;;;;;aAAsC,CAAC;;;;;MAiH9E;IAED;;;OAGG;IACH,mCAHW,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;;mDAtHO,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG;8BAC1C,GAAG;kCACC,YAAY,CAAC;;;;;;aAAsC,CAAC;;;;;MA+H9E;IAED;;;;;;;OAOG;IACH,6EAHW,MAAM,YACN,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QA+BpC;IAED;;;;;;;;OAQG;IACH,gCAJW,MAAM,yBAWhB;IAED;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,oCAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YACnB,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,QA4DpC;IADA;;;;MAAuC;CAExC;;;;AA3SD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Router.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-Router.js"],"names":[],"mappings":";AAYA;IAEC,2DAWC;IANA,kCAAkC;IAClC,SADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAClB;IACZ,8GAA8G;IAC9G,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,oBAAoB,EAAE,YAAY,CAAC;;;;;;SAAsC,CAAC,CAAA;KAAE,CACjG;IAET,gBAAsB;IAGvB,oBAWC;IAED,8BAUC;IAED;;;;OAIG;IACH,iBAFW,MAAM,QAKhB;CACD;;;;AA1DD,kCAAkC;AAClC,+CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAO7B"}
1
+ {"version":3,"file":"RecordSet-Router.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-Router.js"],"names":[],"mappings":";AAYA;IAEC,2DAWC;IANA,kCAAkC;IAClC,SADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAClB;IACZ,8GAA8G;IAC9G,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,oBAAoB,EAAE,YAAY,CAAC;;;;;;SAAsC,CAAC,CAAA;KAAE,CACjG;IAET,gBAAsB;IAGvB,oBAWC;IAED,8BAYC;IAED;;;;OAIG;IACH,iBAFW,MAAM,QAKhB;CACD;;;;AA5DD,kCAAkC;AAClC,+CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAO7B"}
@@ -1,12 +1,14 @@
1
1
  export = RecordSetMetacontroller;
2
2
  declare class RecordSetMetacontroller {
3
3
  constructor(pFable: any, pOptions: any, pServiceHash: any);
4
- /** @type {import('pict') & { addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any }} */
4
+ /** @type {import('pict') & { addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any, newManyfest: (rec: any) => any }} */
5
5
  fable: import("pict") & {
6
6
  addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any;
7
+ newManyfest: (rec: any) => any;
7
8
  };
8
9
  pict: import("pict") & {
9
10
  addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any;
11
+ newManyfest: (rec: any) => any;
10
12
  };
11
13
  /** @type {any} */
12
14
  log: any;
@@ -24,6 +26,10 @@ declare class RecordSetMetacontroller {
24
26
  recordSetProviderConfigurations: {};
25
27
  dashboardConfigurations: {};
26
28
  sessionProviders: any[];
29
+ manifestDefinitions: {};
30
+ manifests: {
31
+ Default: any;
32
+ };
27
33
  has_initialized: boolean;
28
34
  /**
29
35
  * @return {Record<string, any>} - The registered configuration for the RecordSet
@@ -31,22 +37,17 @@ declare class RecordSetMetacontroller {
31
37
  getRecordSetConfiguration(pRecordSet: any): Record<string, any>;
32
38
  loadRecordSetConfiguration(pRecordSetConfiguration: any): boolean;
33
39
  loadRecordSetConfigurationArray(pRecordSetConfigurationArray: any): boolean;
34
- /**
35
- * @param {Array<Record<string, any>>} pDashboardConfigurationArray - An array of dashboard configurations.
36
- */
37
- loadDashboardConfigurationArray(pDashboardConfigurationArray: Array<Record<string, any>>): boolean;
38
- /**
39
- * TODO: This method is still incomplete.
40
- *
41
- * @param {Record<string, any>} pDashboardConfiguration - The dashboard configuration to add.
42
- */
43
- addDashboardConfiguration(pDashboardConfiguration: Record<string, any>): boolean;
44
40
  loadRecordSetDynamcally(pRecordSet: any, pEntity: any, pDefaultFilter: any): any;
45
41
  handleLoadDynamicRecordSetRoute(pRoutePayload: any): any;
46
42
  addRoutes(pPictRouter: any): boolean;
47
43
  checkSession(pCapability: any): Promise<boolean>;
48
44
  addRecordLinkTemplate(pNameTemplate: any, pURLTemplate: any, pDefault: any): any;
49
45
  initialize(): true | this;
46
+ getManifest(pScope: any): any;
47
+ /**
48
+ * @param {Record<string, any>} pManifest - The manifest to generate table cells for.
49
+ */
50
+ generateManifestTableCells(pManifest: Record<string, any>): void;
50
51
  }
51
52
  declare namespace RecordSetMetacontroller {
52
53
  export { _DEFAULT_CONFIGURATION as default_configuration };
@@ -1 +1 @@
1
- {"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAqBA;IAEC,2DA8BC;IAzBA,0HAA0H;IAC1H,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5G;IACV;2CAFiE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG;MAE9F;IACtB,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qBAAqB;IACrB,MADW,MAAM,CACR;IAET;;;;;MAKC;IAED,uBAA4B;IAC5B,oCAAyC;IAEzC,4BAAiC;IAEjC,wBAA0B;IAE1B,yBAA4B;IA8B7B;;OAEG;IACH,4CAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED,kEA0FC;IAED,4EAmBC;IAED;;OAEG;IACH,8DAFW,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,WAqBpC;IAED;;;;OAIG;IACH,mDAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,WAqC7B;IAED,iFAyCC;IAED,yDAaC;IAED,qCAMC;IAED,iDAUC;IAED,iFAGC;IAED,0BA6CC;CACD;;;;AA/XD,kCAAkC;AAClC,sCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI3B"}
1
+ {"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAsBA;IAEC,2DAiCC;IA5BA,0JAA0J;IAC1J,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAC;QAAC,WAAW,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5I;IACV;2CAFiE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG;qBAAe,CAAC,GAAG,EAAE,GAAG,KAAK,GAAG;MAE9H;IACtB,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qBAAqB;IACrB,MADW,MAAM,CACR;IAET;;;;;MAKC;IAED,uBAA4B;IAC5B,oCAAyC;IAEzC,4BAAiC;IAEjC,wBAA0B;IAE1B,wBAA6B;IAC7B;;MAAgD;IAEhD,yBAA4B;IA8B7B;;OAEG;IACH,4CAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED,kEA0FC;IAED,4EAmBC;IAED,iFAyCC;IAED,yDAaC;IAED,qCAMC;IAED,iDAUC;IAED,iFAGC;IAED,0BAyDC;IAED,8BAGC;IAED;;OAEG;IACH,sCAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAwC7B;CAED;;;;AA7XD,kCAAkC;AAClC,sCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI3B"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Filter.d.ts","sourceRoot":"","sources":["../../source/views/RecordSet-Filter.js"],"names":[],"mappings":";AA+EA;IAEC,2DAMC;IAFA,kHAAkH;IAClH,MADW,GAAe,GAAG,OAAO,MAAM,CAAC,GAAG;QAAE,oBAAoB,EAAE;;;;;;SAAsC,CAAA;KAAE,CACrG;IAGV;;;;OAIG;IACH,qBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAQhB;IAED;;;;OAIG;IACH,0BAJW,MAAM,gBACN,MAAM,kBACN,MAAM,QAmBhB;IAED;;;;OAIG;IACH,oBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAOhB;CACD;;;;;AAvID,kCAAkC;AAClC,oDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA2E5B"}
1
+ {"version":3,"file":"RecordSet-Filter.d.ts","sourceRoot":"","sources":["../../source/views/RecordSet-Filter.js"],"names":[],"mappings":";AA+EA;IAEC,2DAMC;IAFA,kHAAkH;IAClH,MADW,GAAe,GAAG,OAAO,MAAM,CAAC,GAAG;QAAE,oBAAoB,EAAE;;;;;;SAAsC,CAAA;KAAE,CACrG;IAGV;;;;OAIG;IACH,qBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAQhB;IAED;;;;OAIG;IACH,0BAJW,MAAM,gBACN,MAAM,kBACN,MAAM,QA4BhB;IAED;;;;OAIG;IACH,oBAJW,KAAK,cACL,MAAM,gBACN,MAAM,QAOhB;CACD;;;;;AAhJD,kCAAkC;AAClC,oDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA2E5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Dashboard-RecordListHeader.d.ts","sourceRoot":"","sources":["../../../source/views/dashboard/RecordSet-Dashboard-RecordListHeader.js"],"names":[],"mappings":";AAsFA;IAEC,2DAIC;CACD;;;;;AA3FD,kCAAkC;AAClC,4DADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAkF1B"}
1
+ {"version":3,"file":"RecordSet-Dashboard-RecordListHeader.d.ts","sourceRoot":"","sources":["../../../source/views/dashboard/RecordSet-Dashboard-RecordListHeader.js"],"names":[],"mappings":";AAkGA;IAEC,2DAIC;CACD;;;;;AAvGD,kCAAkC;AAClC,4DADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA8F1B"}
@@ -9,7 +9,7 @@ declare class viewRecordSetDashboard extends libPictRecordSetRecordView {
9
9
  recordListEntry: any;
10
10
  paginationBottom: any;
11
11
  };
12
- handleRecordSetDashboardRoute(pRoutePayload: any): Promise<boolean>;
12
+ handleRecordSetDashboardRoute(pRoutePayload: any): Promise<void>;
13
13
  /**
14
14
  * @param {import('pict-router')} pPictRouter
15
15
  */
@@ -17,7 +17,27 @@ declare class viewRecordSetDashboard extends libPictRecordSetRecordView {
17
17
  onBeforeRenderList(pRecordListData: any): any;
18
18
  dynamicallyGenerateColumns(pRecordListData: any): any;
19
19
  excludedByDefaultCells: string[];
20
- renderList(pRecordSetConfiguration: any, pProviderHash: any, pFilterString: any, pOffset: any, pPageSize: any): Promise<boolean>;
20
+ /**
21
+ * @param {string} pDashboardHash
22
+ * @param {Record<string, any>} pRecordSetConfiguration
23
+ * @param {string} pProviderHash
24
+ * @param {string} pFilterString
25
+ * @param {number} pOffset
26
+ * @param {number} pPageSize
27
+ *
28
+ * @return {Promise<void>}
29
+ */
30
+ renderSpecificDashboard(pDashboardHash: string, pRecordSetConfiguration: Record<string, any>, pProviderHash: string, pFilterString: string, pOffset: number, pPageSize: number): Promise<void>;
31
+ /**
32
+ * @param {Record<string, any>} pRecordSetConfiguration
33
+ * @param {string} pProviderHash
34
+ * @param {string} pFilterString
35
+ * @param {number} pOffset
36
+ * @param {number} pPageSize
37
+ *
38
+ * @return {Promise<void>}
39
+ */
40
+ renderDashboard(pRecordSetConfiguration: Record<string, any>, pProviderHash: string, pFilterString: string, pOffset: number, pPageSize: number): Promise<void>;
21
41
  }
22
42
  declare namespace viewRecordSetDashboard {
23
43
  export { _DEFAULT_CONFIGURATION__Dashboard as default_configuration };
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-Dashboard.d.ts","sourceRoot":"","sources":["../../../source/views/dashboard/RecordSet-Dashboard.js"],"names":[],"mappings":";AA8EA;IAOE;;;;;;;;MAQC;IAGF,oEAuBC;IAED;;OAEG;IACH,qCASC;IAED,8CAGC;IAED,sDAkCC;IA9BA,iCAUC;IAsBF,iIA+KC;CAwBD;;;;;AA5WD,kCAAkC;AAClC,iDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAiE1B"}
1
+ {"version":3,"file":"RecordSet-Dashboard.d.ts","sourceRoot":"","sources":["../../../source/views/dashboard/RecordSet-Dashboard.js"],"names":[],"mappings":";AA0EA;IAOE;;;;;;;;MAQC;IAGF,iEAsCC;IAED;;OAEG;IACH,qCAeC;IAED,8CAGC;IAED,sDAuCC;IAnCA,iCAUC;IA2BF;;;;;;;;;OASG;IACH,wCATW,MAAM,2BACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBACnB,MAAM,iBACN,MAAM,WACN,MAAM,aACN,MAAM,GAEL,OAAO,CAAC,IAAI,CAAC,CAiNxB;IAED;;;;;;;;OAQG;IACH,yCARW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBACnB,MAAM,iBACN,MAAM,WACN,MAAM,aACN,MAAM,GAEL,OAAO,CAAC,IAAI,CAAC,CAwMxB;CAwBD;;;;;AA7nBD,kCAAkC;AAClC,iDADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA6D1B"}
@@ -1 +1 @@
1
- {"version":3,"file":"RecordSet-List.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List.js"],"names":[],"mappings":";AA0EA;IAOE;;;;;;;;MAQC;IAGF,+DAuBC;IAaD,8CAGC;IAED,sDAkCC;IA9BA,iCAUC;IAsBF,iIA+KC;CAwBD;;;;;AArWD,kCAAkC;AAClC,4CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA6D1B"}
1
+ {"version":3,"file":"RecordSet-List.d.ts","sourceRoot":"","sources":["../../../source/views/list/RecordSet-List.js"],"names":[],"mappings":";AA0EA;IAOE;;;;;;;;MAQC;IAGF,+DAuBC;IAaD,8CAGC;IAED,sDAkCC;IA9BA,iCAUC;IAsBF,iIAmLC;CAwBD;;;;;AAzWD,kCAAkC;AAClC,4CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA6D1B"}