pict-section-recordset 1.0.22 → 1.0.24
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/eslint.config.mjs +10 -0
- package/package.json +9 -9
- package/source/providers/RecordSet-DynamicRecordsetSolver.js +1 -0
- package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +2 -2
- package/source/services/RecordsSet-MetaController.js +6 -0
- package/source/views/dashboard/RecordSet-Dashboard.js +1 -1
- package/types/providers/RecordSet-DynamicRecordsetSolver.d.ts +4 -2
- package/types/providers/RecordSet-DynamicRecordsetSolver.d.ts.map +1 -1
- package/types/services/RecordsSet-MetaController.d.ts +12 -8
- package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import globals from "globals";
|
|
2
|
+
import pluginJs from "@eslint/js";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export default [
|
|
6
|
+
{ files: ["source/**", "test/**"], languageOptions: { sourceType: "commonjs" } },
|
|
7
|
+
{ languageOptions: { globals: { ...globals.browser, ...globals.mocha, } } },
|
|
8
|
+
pluginJs.configs.recommended,
|
|
9
|
+
{ rules: { "no-prototype-builtins": "off", "no-unused-vars": "warn" } },
|
|
10
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pict-section-recordset",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.24",
|
|
4
4
|
"description": "Pict dynamic record set management views",
|
|
5
5
|
"main": "source/Pict-Section-RecordSet.js",
|
|
6
6
|
"directories": {
|
|
@@ -27,25 +27,25 @@
|
|
|
27
27
|
"author": "steven velozo <steven@velozo.com>",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@eslint/js": "^9.
|
|
30
|
+
"@eslint/js": "^9.28.0",
|
|
31
31
|
"@types/mocha": "^10.0.10",
|
|
32
32
|
"@types/node": "^16.18.126",
|
|
33
33
|
"browser-env": "^3.3.0",
|
|
34
|
-
"eslint": "^9.
|
|
34
|
+
"eslint": "^9.28.0",
|
|
35
35
|
"jquery": "^3.7.1",
|
|
36
|
-
"pict": "^1.0.
|
|
37
|
-
"pict-application": "^1.0.
|
|
36
|
+
"pict": "^1.0.272",
|
|
37
|
+
"pict-application": "^1.0.27",
|
|
38
38
|
"pict-service-commandlineutility": "^1.0.15",
|
|
39
39
|
"quackage": "^1.0.41",
|
|
40
40
|
"typescript": "^5.8.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"fable-serviceproviderbase": "^3.0.15",
|
|
44
|
-
"pict-provider": "^1.0.
|
|
44
|
+
"pict-provider": "^1.0.6",
|
|
45
45
|
"pict-router": "^1.0.4",
|
|
46
|
-
"pict-section-form": "^1.0.
|
|
47
|
-
"pict-template": "^1.0.
|
|
48
|
-
"pict-view": "^1.0.
|
|
46
|
+
"pict-section-form": "^1.0.98",
|
|
47
|
+
"pict-template": "^1.0.11",
|
|
48
|
+
"pict-view": "^1.0.61"
|
|
49
49
|
},
|
|
50
50
|
"mocha": {
|
|
51
51
|
"diff": true,
|
|
@@ -390,8 +390,8 @@ class MeadowEndpointsRecordSetProvider extends libRecordSetProviderBase
|
|
|
390
390
|
this.pict.log.error('RecordDecorationConfiguration is not an array', { RecordDecorationConfiguration: this.options.RecordDecorationConfiguration });
|
|
391
391
|
return;
|
|
392
392
|
}
|
|
393
|
-
this.pict.
|
|
394
|
-
const config = [{ Type: 'SetStateAddress', StateAddress: `
|
|
393
|
+
this.pict.Bundle[this.Hash] = { CoreEntityRecordSubset: pRecords };
|
|
394
|
+
const config = [{ Type: 'SetStateAddress', StateAddress: `Bundle[${this.Hash}]` }].concat(this.options.RecordDecorationConfiguration);
|
|
395
395
|
|
|
396
396
|
try
|
|
397
397
|
{
|
|
@@ -44,14 +44,20 @@ class RecordSetMetacontroller extends libFableServiceProviderBase
|
|
|
44
44
|
dashboard: null
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
+
/** @type {Record<string, import('pict-provider')>} */
|
|
47
48
|
this.recordSetProviders = {};
|
|
49
|
+
/** @type {Record<string, Record<string, any>>} */
|
|
48
50
|
this.recordSetProviderConfigurations = {};
|
|
49
51
|
|
|
52
|
+
/** @type {Record<string, Record<string, any>>} */
|
|
50
53
|
this.dashboardConfigurations = {};
|
|
51
54
|
|
|
55
|
+
/** @type {Array<(pCapability: string) => Promise<boolean>>} */
|
|
52
56
|
this.sessionProviders = [];
|
|
53
57
|
|
|
58
|
+
/** @type {Record<string, Record<string, any>>} */
|
|
54
59
|
this.manifestDefinitions = {};
|
|
60
|
+
/** @type {Record<string, import('manyfest')>} */
|
|
55
61
|
this.manifests = { Default: this.pict.manifest };
|
|
56
62
|
|
|
57
63
|
this.has_initialized = false;
|
|
@@ -95,7 +95,7 @@ class viewRecordSetDashboard extends libPictRecordSetRecordView
|
|
|
95
95
|
if (typeof(pRoutePayload) != 'object')
|
|
96
96
|
{
|
|
97
97
|
return;
|
|
98
|
-
throw new Error(`Pict RecordSet List view route handler called with invalid route payload.`);
|
|
98
|
+
//throw new Error(`Pict RecordSet List view route handler called with invalid route payload.`);
|
|
99
99
|
}
|
|
100
100
|
if (!pRoutePayload.data || !pRoutePayload.data.RecordSet)
|
|
101
101
|
{
|
|
@@ -71,7 +71,8 @@ declare class RecordSetDynamicRecordsetSolver extends libPictProvider {
|
|
|
71
71
|
RecordSetProviderMeadowEndpoints: typeof import("./RecordSet-RecordProvider-MeadowEndpoints.js");
|
|
72
72
|
}>;
|
|
73
73
|
};
|
|
74
|
-
AppData: any
|
|
74
|
+
AppData: Record<string, any>;
|
|
75
|
+
Bundle: Record<string, any>;
|
|
75
76
|
RecordSubset: Record<string, any>[];
|
|
76
77
|
Manifest: any;
|
|
77
78
|
};
|
|
@@ -91,7 +92,8 @@ declare class RecordSetDynamicRecordsetSolver extends libPictProvider {
|
|
|
91
92
|
RecordSetProviderMeadowEndpoints: typeof import("./RecordSet-RecordProvider-MeadowEndpoints.js");
|
|
92
93
|
}>;
|
|
93
94
|
};
|
|
94
|
-
AppData: any
|
|
95
|
+
AppData: Record<string, any>;
|
|
96
|
+
Bundle: Record<string, any>;
|
|
95
97
|
RecordSubset: Record<string, any>[];
|
|
96
98
|
Manifest: any;
|
|
97
99
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordSet-DynamicRecordsetSolver.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-DynamicRecordsetSolver.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;IAYX;;;;;;;;;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
|
|
1
|
+
{"version":3,"file":"RecordSet-DynamicRecordsetSolver.d.ts","sourceRoot":"","sources":["../../source/providers/RecordSet-DynamicRecordsetSolver.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;IAYX;;;;;;;;;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;;;;;;MAgI9E;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;;;;;AA5SD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -22,14 +22,18 @@ declare class RecordSetMetacontroller {
|
|
|
22
22
|
read: any;
|
|
23
23
|
dashboard: any;
|
|
24
24
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
25
|
+
/** @type {Record<string, import('pict-provider')>} */
|
|
26
|
+
recordSetProviders: Record<string, import("pict-provider")>;
|
|
27
|
+
/** @type {Record<string, Record<string, any>>} */
|
|
28
|
+
recordSetProviderConfigurations: Record<string, Record<string, any>>;
|
|
29
|
+
/** @type {Record<string, Record<string, any>>} */
|
|
30
|
+
dashboardConfigurations: Record<string, Record<string, any>>;
|
|
31
|
+
/** @type {Array<(pCapability: string) => Promise<boolean>>} */
|
|
32
|
+
sessionProviders: Array<(pCapability: string) => Promise<boolean>>;
|
|
33
|
+
/** @type {Record<string, Record<string, any>>} */
|
|
34
|
+
manifestDefinitions: Record<string, Record<string, any>>;
|
|
35
|
+
/** @type {Record<string, import('manyfest')>} */
|
|
36
|
+
manifests: Record<string, any>;
|
|
33
37
|
has_initialized: boolean;
|
|
34
38
|
/**
|
|
35
39
|
* @return {Record<string, any>} - The registered configuration for the RecordSet
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAsBA;IAEC,
|
|
1
|
+
{"version":3,"file":"RecordsSet-MetaController.d.ts","sourceRoot":"","sources":["../../source/services/RecordsSet-MetaController.js"],"names":[],"mappings":";AAsBA;IAEC,2DAuCC;IAlCA,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,sDAAsD;IACtD,oBADW,MAAM,CAAC,MAAM,EAAE,OAAO,eAAe,CAAC,CAAC,CACtB;IAC5B,kDAAkD;IAClD,iCADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACL;IAEzC,kDAAkD;IAClD,yBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACb;IAEjC,+DAA+D;IAC/D,kBADW,KAAK,CAAC,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC,CACjC;IAE1B,kDAAkD;IAClD,qBADW,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CACjB;IAC7B,iDAAiD;IACjD,WADW,MAAM,CAAC,MAAM,EAAE,GAAkB,CAAC,CACG;IAEhD,yBAA4B;IA8B7B;;OAEG;IACH,4CAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED,kEA0FC;IAED,4EAmBC;IAED,kFAyCC;IAED,yDAaC;IAED,qCAMC;IAED,iDAUC;IAED,iFAGC;IAED,0BAyDC;IAED,8BAGC;IAED;;OAEG;IACH,sCAFW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,QAwC7B;CAED;;;;AAnYD,kCAAkC;AAClC,sCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAI3B"}
|