pict-section-recordset 1.0.24 → 1.0.26
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/simple_entity/Simple-RecordSet-Application.js +170 -110
- package/package.json +7 -7
- package/source/application/Pict-Application-RecordSet.js +8 -0
- package/source/providers/RecordSet-Link-Manager.js +2 -2
- package/source/providers/RecordSet-RecordProvider-Base.js +9 -2
- package/source/providers/RecordSet-RecordProvider-MeadowEndpoints.js +116 -14
- package/source/services/RecordsSet-MetaController.js +41 -19
- package/source/templates/Pict-Template-FilterInstanceViews.js +222 -0
- package/source/templates/Pict-Template-FilterView.js +4 -2
- package/source/views/RecordSet-Filters.js +449 -0
- package/source/views/dashboard/RecordSet-Dashboard.js +65 -8
- package/source/views/filters/RecordSet-Filter-Base-Range.js +38 -0
- package/source/views/filters/RecordSet-Filter-Base.js +88 -0
- package/source/views/filters/RecordSet-Filter-DateMatch.js +56 -0
- package/source/views/filters/RecordSet-Filter-DateRange.js +75 -0
- package/source/views/filters/RecordSet-Filter-ExternalJoinDateMatch.js +55 -0
- package/source/views/filters/RecordSet-Filter-ExternalJoinDateRange.js +57 -0
- package/source/views/filters/RecordSet-Filter-ExternalJoinNumericMatch.js +54 -0
- package/source/views/filters/RecordSet-Filter-ExternalJoinNumericRange.js +57 -0
- package/source/views/filters/RecordSet-Filter-ExternalJoinStringMatch.js +45 -0
- package/source/views/filters/RecordSet-Filter-ExternalJoinStringRange.js +46 -0
- package/source/views/filters/RecordSet-Filter-InternalJoinDateMatch.js +55 -0
- package/source/views/filters/RecordSet-Filter-InternalJoinDateRange.js +57 -0
- package/source/views/filters/RecordSet-Filter-InternalJoinNumericMatch.js +55 -0
- package/source/views/filters/RecordSet-Filter-InternalJoinNumericRange.js +57 -0
- package/source/views/filters/RecordSet-Filter-InternalJoinStringMatch.js +45 -0
- package/source/views/filters/RecordSet-Filter-InternalJoinStringRange.js +46 -0
- package/source/views/filters/RecordSet-Filter-NumericMatch.js +55 -0
- package/source/views/filters/RecordSet-Filter-NumericRange.js +57 -0
- package/source/views/filters/RecordSet-Filter-StringMatch.js +45 -0
- package/source/views/filters/RecordSet-Filter-StringRange.js +46 -0
- package/source/views/filters/index.js +27 -0
- package/source/views/list/RecordSet-List.js +44 -6
- package/test/PictSectionRecordSet-RecordProvider-Meadow_tests.js +11 -0
- package/types/application/Pict-Application-RecordSet.d.ts.map +1 -1
- package/types/providers/RecordSet-DynamicRecordsetSolver.d.ts +6 -6
- package/types/providers/RecordSet-DynamicRecordsetSolver.d.ts.map +1 -1
- package/types/providers/RecordSet-Link-Manager.d.ts +3 -3
- package/types/providers/RecordSet-RecordProvider-Base.d.ts +9 -0
- package/types/providers/RecordSet-RecordProvider-Base.d.ts.map +1 -1
- package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts +30 -4
- package/types/providers/RecordSet-RecordProvider-MeadowEndpoints.d.ts.map +1 -1
- package/types/services/RecordsSet-MetaController.d.ts +2 -2
- package/types/services/RecordsSet-MetaController.d.ts.map +1 -1
- package/types/templates/Pict-Template-FilterInstanceViews.d.ts +19 -0
- package/types/templates/Pict-Template-FilterInstanceViews.d.ts.map +1 -0
- package/types/templates/Pict-Template-FilterView.d.ts.map +1 -1
- package/types/views/RecordSet-Filters.d.ts +84 -0
- package/types/views/RecordSet-Filters.d.ts.map +1 -0
- package/types/views/dashboard/RecordSet-Dashboard.d.ts +4 -2
- package/types/views/dashboard/RecordSet-Dashboard.d.ts.map +1 -1
- package/types/views/filters/RecordSet-Filter-Base-Range.d.ts +5 -0
- package/types/views/filters/RecordSet-Filter-Base-Range.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-Base.d.ts +29 -0
- package/types/views/filters/RecordSet-Filter-Base.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-DateMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-DateMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-DateRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-DateRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinDateMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinDateMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinDateRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinDateRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinNumericMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinNumericMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinNumericRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinNumericRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinStringMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinStringMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinStringRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-ExternalJoinStringRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinDateMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinDateMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinDateRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinDateRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinNumericMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinNumericMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinNumericRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinNumericRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinStringMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinStringMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinStringRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-InternalJoinStringRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-NumericMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-NumericMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-NumericRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-NumericRange.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-StringMatch.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-StringMatch.d.ts.map +1 -0
- package/types/views/filters/RecordSet-Filter-StringRange.d.ts +9 -0
- package/types/views/filters/RecordSet-Filter-StringRange.d.ts.map +1 -0
- package/types/views/filters/index.d.ts +20 -0
- package/types/views/filters/index.d.ts.map +1 -0
- package/types/views/list/RecordSet-List.d.ts +12 -2
- package/types/views/list/RecordSet-List.d.ts.map +1 -1
- package/source/views/RecordSet-Filter.js +0 -159
- package/types/views/RecordSet-Filter.d.ts +0 -39
- package/types/views/RecordSet-Filter.d.ts.map +0 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBase = require('./RecordSet-Filter-Base');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_InternalJoin_NumericMatch =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-InternalJoin-NumericMatch',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_InternalJoin_NumericMatch',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_InternalJoin_NumericMatch',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-InternalJoin-NumericMatch-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-NumericMatch-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.ClauseDescriptor~}
|
|
19
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-NumericMatch-Template] -->
|
|
20
|
+
`
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
Renderables:
|
|
25
|
+
[
|
|
26
|
+
{
|
|
27
|
+
RenderableHash: 'PRSP_Renderable_Filter_InternalJoin_NumericMatch',
|
|
28
|
+
TemplateHash: 'PRSP-Filter-InternalJoin-NumericMatch-Template',
|
|
29
|
+
DestinationAddress: '#PRSP_Filter_InternalJoin_NumericMatch_Container',
|
|
30
|
+
RenderMethod: 'replace'
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
class ViewRecordSetSUBSETFilterInternalJoinNumericMatch extends ViewRecordSetSUBSETFilterBase
|
|
36
|
+
{
|
|
37
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
38
|
+
{
|
|
39
|
+
super(pFable, pOptions, pServiceHash);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param {Record<string, any>} pRecord
|
|
44
|
+
*/
|
|
45
|
+
prepareRecord(pRecord)
|
|
46
|
+
{
|
|
47
|
+
super.prepareRecord(pRecord);
|
|
48
|
+
|
|
49
|
+
pRecord.ClauseDescriptor.DataType = 'Number';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
module.exports = ViewRecordSetSUBSETFilterInternalJoinNumericMatch;
|
|
54
|
+
|
|
55
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterInternalJoinNumericMatch.default_configuration, _DEFAULT_CONFIGURATION_Filter_InternalJoin_NumericMatch);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBaseRange = require('./RecordSet-Filter-Base-Range.js');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_InternalJoin_NumericRange =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-InternalJoin-NumericRange',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_InternalJoin_NumericRange',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_InternalJoin_NumericRange',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-InternalJoin-NumericRange-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-NumericRange-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.StartClauseDescriptor~}
|
|
19
|
+
{~IWVDA:PSRSFilterProxyView:Record.EndClauseDescriptor~}
|
|
20
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-NumericRange-Template] -->
|
|
21
|
+
`
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
Renderables:
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
RenderableHash: 'PRSP_Renderable_Filter_InternalJoin_NumericRange',
|
|
29
|
+
TemplateHash: 'PRSP-Filter-InternalJoin-NumericRange-Template',
|
|
30
|
+
DestinationAddress: '#PRSP_Filter_InternalJoin_NumericRange_Container',
|
|
31
|
+
RenderMethod: 'replace'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
class ViewRecordSetSUBSETFilterInternalJoinNumericRange extends ViewRecordSetSUBSETFilterBaseRange
|
|
37
|
+
{
|
|
38
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
39
|
+
{
|
|
40
|
+
super(pFable, pOptions, pServiceHash);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {Record<string, any>} pRecord
|
|
45
|
+
*/
|
|
46
|
+
prepareRecord(pRecord)
|
|
47
|
+
{
|
|
48
|
+
super.prepareRecord(pRecord);
|
|
49
|
+
|
|
50
|
+
pRecord.StartClauseDescriptor.DataType = 'Number';
|
|
51
|
+
pRecord.EndClauseDescriptor.DataType = 'Number';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
module.exports = ViewRecordSetSUBSETFilterInternalJoinNumericRange;
|
|
56
|
+
|
|
57
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterInternalJoinNumericRange.default_configuration, _DEFAULT_CONFIGURATION_Filter_InternalJoin_NumericRange);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBase = require('./RecordSet-Filter-Base');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_InternalJoin_StringMatch =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-InternalJoin-StringMatch',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_InternalJoin_StringMatch',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_InternalJoin_StringMatch',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-InternalJoin-StringMatch-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-StringMatch-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.ClauseDescriptor~}
|
|
19
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-StringMatch-Template] -->
|
|
20
|
+
`
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
Renderables:
|
|
25
|
+
[
|
|
26
|
+
{
|
|
27
|
+
RenderableHash: 'PRSP_Renderable_Filter_InternalJoin_StringMatch',
|
|
28
|
+
TemplateHash: 'PRSP-Filter-InternalJoin-StringMatch-Template',
|
|
29
|
+
DestinationAddress: '#PRSP_Filter_InternalJoin_StringMatch_Container',
|
|
30
|
+
RenderMethod: 'replace'
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
class ViewRecordSetSUBSETFilterInternalJoinStringMatch extends ViewRecordSetSUBSETFilterBase
|
|
36
|
+
{
|
|
37
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
38
|
+
{
|
|
39
|
+
super(pFable, pOptions, pServiceHash);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
module.exports = ViewRecordSetSUBSETFilterInternalJoinStringMatch;
|
|
44
|
+
|
|
45
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterInternalJoinStringMatch.default_configuration, _DEFAULT_CONFIGURATION_Filter_InternalJoin_StringMatch);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBaseRange = require('./RecordSet-Filter-Base-Range.js');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_InternalJoin_StringRange =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-InternalJoin-StringRange',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_InternalJoin_StringRange',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_InternalJoin_StringRange',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-InternalJoin-StringRange-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-InternalJoin-StringRange-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.StartClauseDescriptor~}
|
|
19
|
+
{~IWVDA:PSRSFilterProxyView:Record.EndClauseDescriptor~}
|
|
20
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-InternalJoin-StringRange-Template] -->
|
|
21
|
+
`
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
Renderables:
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
RenderableHash: 'PRSP_Renderable_Filter_InternalJoin_StringRange',
|
|
29
|
+
TemplateHash: 'PRSP-Filter-InternalJoin-StringRange-Template',
|
|
30
|
+
DestinationAddress: '#PRSP_Filter_InternalJoin_StringRange_Container',
|
|
31
|
+
RenderMethod: 'replace'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
class ViewRecordSetSUBSETFilterInternalJoinStringRange extends ViewRecordSetSUBSETFilterBaseRange
|
|
37
|
+
{
|
|
38
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
39
|
+
{
|
|
40
|
+
super(pFable, pOptions, pServiceHash);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = ViewRecordSetSUBSETFilterInternalJoinStringRange;
|
|
45
|
+
|
|
46
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterInternalJoinStringRange.default_configuration, _DEFAULT_CONFIGURATION_Filter_InternalJoin_StringRange);
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBase = require('./RecordSet-Filter-Base');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_NumericMatch =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-NumericMatch',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_NumericMatch',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_NumericMatch',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-NumericMatch-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-NumericMatch-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.ClauseDescriptor~}
|
|
19
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-NumericMatch-Template] -->
|
|
20
|
+
`
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
Renderables:
|
|
25
|
+
[
|
|
26
|
+
{
|
|
27
|
+
RenderableHash: 'PRSP_Renderable_Filter_NumericMatch',
|
|
28
|
+
TemplateHash: 'PRSP-Filter-NumericMatch-Template',
|
|
29
|
+
DestinationAddress: '#PRSP_Filter_NumericMatch_Container',
|
|
30
|
+
RenderMethod: 'replace'
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
class ViewRecordSetSUBSETFilterNumericMatch extends ViewRecordSetSUBSETFilterBase
|
|
36
|
+
{
|
|
37
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
38
|
+
{
|
|
39
|
+
super(pFable, pOptions, pServiceHash);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @param {Record<string, any>} pRecord
|
|
44
|
+
*/
|
|
45
|
+
prepareRecord(pRecord)
|
|
46
|
+
{
|
|
47
|
+
super.prepareRecord(pRecord);
|
|
48
|
+
|
|
49
|
+
pRecord.ClauseDescriptor.DataType = 'Number';
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
module.exports = ViewRecordSetSUBSETFilterNumericMatch;
|
|
54
|
+
|
|
55
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterNumericMatch.default_configuration, _DEFAULT_CONFIGURATION_Filter_NumericMatch);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBaseRange = require('./RecordSet-Filter-Base-Range.js');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_NumericRange =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-NumericRange',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_NumericRange',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_NumericRange',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-NumericRange-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-NumericRange-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.StartClauseDescriptor~}
|
|
19
|
+
{~IWVDA:PSRSFilterProxyView:Record.EndClauseDescriptor~}
|
|
20
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-NumericRange-Template] -->
|
|
21
|
+
`
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
Renderables:
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
RenderableHash: 'PRSP_Renderable_Filter_NumericRange',
|
|
29
|
+
TemplateHash: 'PRSP-Filter-NumericRange-Template',
|
|
30
|
+
DestinationAddress: '#PRSP_Filter_NumericRange_Container',
|
|
31
|
+
RenderMethod: 'replace'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
class ViewRecordSetSUBSETFilterNumericRange extends ViewRecordSetSUBSETFilterBaseRange
|
|
37
|
+
{
|
|
38
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
39
|
+
{
|
|
40
|
+
super(pFable, pOptions, pServiceHash);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @param {Record<string, any>} pRecord
|
|
45
|
+
*/
|
|
46
|
+
prepareRecord(pRecord)
|
|
47
|
+
{
|
|
48
|
+
super.prepareRecord(pRecord);
|
|
49
|
+
|
|
50
|
+
pRecord.StartClauseDescriptor.DataType = 'Number';
|
|
51
|
+
pRecord.EndClauseDescriptor.DataType = 'Number';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
module.exports = ViewRecordSetSUBSETFilterNumericRange;
|
|
56
|
+
|
|
57
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterNumericRange.default_configuration, _DEFAULT_CONFIGURATION_Filter_NumericRange);
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBase = require('./RecordSet-Filter-Base');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_StringMatch =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-StringMatch',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_StringMatch',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_StringMatch',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-StringMatch-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-StringMatch-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.ClauseDescriptor~}
|
|
19
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-StringMatch-Template] -->
|
|
20
|
+
`
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
|
|
24
|
+
Renderables:
|
|
25
|
+
[
|
|
26
|
+
{
|
|
27
|
+
RenderableHash: 'PRSP_Renderable_Filter_StringMatch',
|
|
28
|
+
TemplateHash: 'PRSP-Filter-StringMatch-Template',
|
|
29
|
+
DestinationAddress: '#PRSP_Filter_StringMatch_Container',
|
|
30
|
+
RenderMethod: 'replace'
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
class ViewRecordSetSUBSETFilterStringMatch extends ViewRecordSetSUBSETFilterBase
|
|
36
|
+
{
|
|
37
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
38
|
+
{
|
|
39
|
+
super(pFable, pOptions, pServiceHash);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
module.exports = ViewRecordSetSUBSETFilterStringMatch;
|
|
44
|
+
|
|
45
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterStringMatch.default_configuration, _DEFAULT_CONFIGURATION_Filter_StringMatch);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
const ViewRecordSetSUBSETFilterBaseRange = require('./RecordSet-Filter-Base-Range.js');
|
|
3
|
+
|
|
4
|
+
/** @type {Record<string, any>} */
|
|
5
|
+
const _DEFAULT_CONFIGURATION_Filter_StringRange =
|
|
6
|
+
{
|
|
7
|
+
ViewIdentifier: 'PRSP-Filter-StringRange',
|
|
8
|
+
|
|
9
|
+
DefaultRenderable: 'PRSP_Renderable_Filter_StringRange',
|
|
10
|
+
DefaultDestinationAddress: '#PRSP_Renderable_Filter_StringRange',
|
|
11
|
+
|
|
12
|
+
Templates:
|
|
13
|
+
[
|
|
14
|
+
{
|
|
15
|
+
Hash: 'PRSP-Filter-StringRange-Template',
|
|
16
|
+
Template: /*html*/`
|
|
17
|
+
<!-- DefaultPackage pict view template: [PRSP-Filter-StringRange-Template] -->
|
|
18
|
+
{~IWVDA:PSRSFilterProxyView:Record.StartClauseDescriptor~}
|
|
19
|
+
{~IWVDA:PSRSFilterProxyView:Record.EndClauseDescriptor~}
|
|
20
|
+
<!-- DefaultPackage end view template: [PRSP-Filter-StringRange-Template] -->
|
|
21
|
+
`
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
|
|
25
|
+
Renderables:
|
|
26
|
+
[
|
|
27
|
+
{
|
|
28
|
+
RenderableHash: 'PRSP_Renderable_Filter_StringRange',
|
|
29
|
+
TemplateHash: 'PRSP-Filter-StringRange-Template',
|
|
30
|
+
DestinationAddress: '#PRSP_Filter_StringRange_Container',
|
|
31
|
+
RenderMethod: 'replace'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
class ViewRecordSetSUBSETFilterStringRange extends ViewRecordSetSUBSETFilterBaseRange
|
|
37
|
+
{
|
|
38
|
+
constructor(pFable, pOptions, pServiceHash)
|
|
39
|
+
{
|
|
40
|
+
super(pFable, pOptions, pServiceHash);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
module.exports = ViewRecordSetSUBSETFilterStringRange;
|
|
45
|
+
|
|
46
|
+
module.exports.default_configuration = Object.assign({}, ViewRecordSetSUBSETFilterStringRange.default_configuration, _DEFAULT_CONFIGURATION_Filter_StringRange);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
|
|
2
|
+
module.exports =
|
|
3
|
+
{
|
|
4
|
+
Base: require('./RecordSet-Filter-Base.js'),
|
|
5
|
+
|
|
6
|
+
DateMatch: require('./RecordSet-Filter-DateMatch.js'),
|
|
7
|
+
DateRange: require('./RecordSet-Filter-DateRange.js'),
|
|
8
|
+
NumericMatch: require('./RecordSet-Filter-NumericMatch.js'),
|
|
9
|
+
NumericRange: require('./RecordSet-Filter-NumericRange.js'),
|
|
10
|
+
StringMatch: require('./RecordSet-Filter-StringMatch.js'),
|
|
11
|
+
StringRange: require('./RecordSet-Filter-StringRange.js'),
|
|
12
|
+
|
|
13
|
+
InternalJoinDateMatch: require('./RecordSet-Filter-InternalJoinDateMatch.js'),
|
|
14
|
+
InternalJoinDateRange: require('./RecordSet-Filter-InternalJoinDateRange.js'),
|
|
15
|
+
InternalJoinNumericMatch: require('./RecordSet-Filter-InternalJoinNumericMatch.js'),
|
|
16
|
+
InternalJoinNumericRange: require('./RecordSet-Filter-InternalJoinNumericRange.js'),
|
|
17
|
+
InternalJoinStringMatch: require('./RecordSet-Filter-InternalJoinStringMatch.js'),
|
|
18
|
+
InternalJoinStringRange: require('./RecordSet-Filter-InternalJoinStringRange.js'),
|
|
19
|
+
|
|
20
|
+
ExternalJoinDateMatch: require('./RecordSet-Filter-ExternalJoinDateMatch.js'),
|
|
21
|
+
ExternalJoinDateRange: require('./RecordSet-Filter-ExternalJoinDateRange.js'),
|
|
22
|
+
ExternalJoinNumericMatch: require('./RecordSet-Filter-ExternalJoinNumericMatch.js'),
|
|
23
|
+
ExternalJoinNumericRange: require('./RecordSet-Filter-ExternalJoinNumericRange.js'),
|
|
24
|
+
ExternalJoinStringMatch: require('./RecordSet-Filter-ExternalJoinStringMatch.js'),
|
|
25
|
+
ExternalJoinStringRange: require('./RecordSet-Filter-ExternalJoinStringRange.js'),
|
|
26
|
+
};
|
|
27
|
+
|
|
@@ -2,7 +2,7 @@ const libPictRecordSetRecordView = require('../RecordSet-RecordBaseView.js');
|
|
|
2
2
|
|
|
3
3
|
const viewHeaderList = require('./RecordSet-List-HeaderList.js');
|
|
4
4
|
const viewTitle = require('./RecordSet-List-Title.js');
|
|
5
|
-
const viewFilters = require('../RecordSet-
|
|
5
|
+
const viewFilters = require('../RecordSet-Filters.js');
|
|
6
6
|
const viewPaginationTop = require('./RecordSet-List-PaginationTop.js');
|
|
7
7
|
const viewRecordList = require('./RecordSet-List-RecordList.js');
|
|
8
8
|
const viewRecordListHeader = require('./RecordSet-List-RecordListHeader.js');
|
|
@@ -108,17 +108,22 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
108
108
|
const tmpProviderHash = `RSP-Provider-${pRoutePayload.data.RecordSet}`;
|
|
109
109
|
|
|
110
110
|
const tmpFilterString = pRoutePayload.data.FilterString || '';
|
|
111
|
+
const tmpFilterExperience = pRoutePayload.data.FilterExperience || '';
|
|
111
112
|
|
|
112
113
|
const tmpOffset = pRoutePayload.data.Offset ? pRoutePayload.data.Offset : 0;
|
|
113
114
|
const tmpPageSize = pRoutePayload.data.PageSize ? pRoutePayload.data.PageSize : 100;
|
|
114
115
|
|
|
115
|
-
return this.renderList(tmpProviderConfiguration, tmpProviderHash, tmpFilterString, tmpOffset, tmpPageSize);
|
|
116
|
+
return this.renderList(tmpProviderConfiguration, tmpProviderHash, tmpFilterString, tmpFilterExperience, tmpOffset, tmpPageSize);
|
|
116
117
|
}
|
|
117
118
|
|
|
118
119
|
addRoutes(pPictRouter)
|
|
119
120
|
{
|
|
121
|
+
pPictRouter.router.on('/PSRS/:RecordSet/List/FilterExperience/:FilterExperience', this.handleRecordSetListRoute.bind(this));
|
|
122
|
+
pPictRouter.router.on('/PSRS/:RecordSet/List/FilteredTo/:FilterString/FilterExperience/:FilterExperience', this.handleRecordSetListRoute.bind(this));
|
|
123
|
+
pPictRouter.router.on('/PSRS/:RecordSet/List/FilteredTo/:FilterString/:Offset/:PageSize/FilterExperience/:FilterExperience', this.handleRecordSetListRoute.bind(this));
|
|
120
124
|
pPictRouter.router.on('/PSRS/:RecordSet/List/FilteredTo/:FilterString/:Offset/:PageSize', this.handleRecordSetListRoute.bind(this));
|
|
121
125
|
pPictRouter.router.on('/PSRS/:RecordSet/List/FilteredTo/:FilterString', this.handleRecordSetListRoute.bind(this));
|
|
126
|
+
pPictRouter.router.on('/PSRS/:RecordSet/List/:Offset/:PageSize/FilterExperience/:FilterExperience', this.handleRecordSetListRoute.bind(this));
|
|
122
127
|
pPictRouter.router.on('/PSRS/:RecordSet/List/:Offset/:PageSize', this.handleRecordSetListRoute.bind(this));
|
|
123
128
|
pPictRouter.router.on('/PSRS/:RecordSet/List/:Offset', this.handleRecordSetListRoute.bind(this));
|
|
124
129
|
pPictRouter.router.on('/PSRS/:RecordSet/List', this.handleRecordSetListRoute.bind(this));
|
|
@@ -167,13 +172,34 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
167
172
|
return pRecordListData;
|
|
168
173
|
}
|
|
169
174
|
|
|
170
|
-
|
|
175
|
+
/**
|
|
176
|
+
* @param {Record<string, any>} pRecordSetConfiguration
|
|
177
|
+
* @param {string} pProviderHash
|
|
178
|
+
* @param {string} pFilterString
|
|
179
|
+
* @param {string} pSerializedFilterExperience
|
|
180
|
+
* @param {number} pOffset
|
|
181
|
+
* @param {number} pPageSize
|
|
182
|
+
*
|
|
183
|
+
* @return {Promise<void>}
|
|
184
|
+
*/
|
|
185
|
+
async renderList(pRecordSetConfiguration, pProviderHash, pFilterString, pSerializedFilterExperience, pOffset, pPageSize)
|
|
171
186
|
{
|
|
172
187
|
// Get the records
|
|
173
188
|
if (!(pProviderHash in this.pict.providers))
|
|
174
189
|
{
|
|
175
|
-
this.pict.log.error(`RecordSetList: No provider found for ${pProviderHash} in ${pRecordSetConfiguration.RecordSet}. List Render failed.`);
|
|
176
|
-
return
|
|
190
|
+
this.pict.log.error(`RecordSetList: No provider found for ${pProviderHash} in RecordSet ${(pRecordSetConfiguration || {}).RecordSet}. List Render failed.`);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const tmpEncodedFilterExperience = pSerializedFilterExperience && encodeURIComponent(pSerializedFilterExperience);
|
|
195
|
+
if (tmpEncodedFilterExperience)
|
|
196
|
+
{
|
|
197
|
+
// shove filter xp into the active filters for this recordset
|
|
198
|
+
const tmpExperienceFromURL = await this.pict.views['PRSP-Filters'].deserializeFilterExperience(pSerializedFilterExperience);
|
|
199
|
+
if (tmpExperienceFromURL)
|
|
200
|
+
{
|
|
201
|
+
this.pict.manifest.setValueByHash(this.pict.Bundle, `_ActiveFilterState[${pRecordSetConfiguration.RecordSet}].FilterClauses`, tmpExperienceFromURL);
|
|
202
|
+
}
|
|
177
203
|
}
|
|
178
204
|
|
|
179
205
|
let tmpRecordListData =
|
|
@@ -211,7 +237,7 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
211
237
|
tmpRecordListData.GUIDAddress = `GUID${this.pict.providers[pProviderHash].options.Entity}`;
|
|
212
238
|
|
|
213
239
|
// Get the "page end record number" for the current page (e.g. for messaging like Record 700 to 800 of 75,000)
|
|
214
|
-
tmpRecordListData.PageEnd =
|
|
240
|
+
tmpRecordListData.PageEnd = Number(tmpRecordListData.Offset) + tmpRecordListData.Records.Records.length;
|
|
215
241
|
|
|
216
242
|
// Compute the number of pages total
|
|
217
243
|
tmpRecordListData.PageCount = Math.ceil(tmpRecordListData.TotalRecordCount.Count / tmpRecordListData.PageSize);
|
|
@@ -244,6 +270,10 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
244
270
|
URL: `#/PSRS/${tmpRecordListData.RecordSet}/List/${i * tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
|
|
245
271
|
});
|
|
246
272
|
}
|
|
273
|
+
if (tmpEncodedFilterExperience)
|
|
274
|
+
{
|
|
275
|
+
tmpRecordListData.PageLinks[tmpRecordListData.PageLinks.length - 1].URL += `/FilterExperience/${tmpEncodedFilterExperience}`;
|
|
276
|
+
}
|
|
247
277
|
}
|
|
248
278
|
|
|
249
279
|
//FIXME: short-term workaround to not blow up the tempplate rendering with way too many links
|
|
@@ -270,6 +300,10 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
270
300
|
URL: `#/PSRS/${tmpRecordListData.RecordSet}/List/${0}/${tmpRecordListData.PageSize}`
|
|
271
301
|
});
|
|
272
302
|
}
|
|
303
|
+
if (tmpEncodedFilterExperience)
|
|
304
|
+
{
|
|
305
|
+
tmpRecordListData.PageLinksLimited[tmpRecordListData.PageLinksLimited.length - 1].URL += `/FilterExperience/${tmpEncodedFilterExperience}`;
|
|
306
|
+
}
|
|
273
307
|
}
|
|
274
308
|
if (linkRangeEnd < tmpRecordListData.PageLinks.length)
|
|
275
309
|
{
|
|
@@ -291,6 +325,10 @@ class viewRecordSetList extends libPictRecordSetRecordView
|
|
|
291
325
|
URL: `#/PSRS/${tmpRecordListData.RecordSet}/List/${(tmpRecordListData.PageCount - 1) * tmpRecordListData.PageSize}/${tmpRecordListData.PageSize}`
|
|
292
326
|
});
|
|
293
327
|
}
|
|
328
|
+
if (tmpEncodedFilterExperience)
|
|
329
|
+
{
|
|
330
|
+
tmpRecordListData.PageLinksLimited[tmpRecordListData.PageLinksLimited.length - 1].URL += `/FilterExperience/${tmpEncodedFilterExperience}`;
|
|
331
|
+
}
|
|
294
332
|
}
|
|
295
333
|
|
|
296
334
|
tmpRecordListData.PageLinkBookmarks.Previous = tmpRecordListData.PageLinkBookmarks.Current - 1;
|
|
@@ -198,6 +198,17 @@ suite
|
|
|
198
198
|
Expect(schema).to.be.an('object', 'Schema should be an object.');
|
|
199
199
|
Expect(Object.keys(schema).length).to.be.greaterThan(0, 'Schema should have properties.');
|
|
200
200
|
});
|
|
201
|
+
|
|
202
|
+
test('temp', async () =>
|
|
203
|
+
{
|
|
204
|
+
const libPictDynamicFormDependencyManager = require('pict-section-form').PictDynamicFormDependencyManager;
|
|
205
|
+
_Pict.addAndInstantiateSingletonService('PictDynamicFormDependencyManager', libPictDynamicFormDependencyManager.default_configuration, libPictDynamicFormDependencyManager);
|
|
206
|
+
const filterView = new (require('../source/views/RecordSet-Filters.js'))(_Pict);
|
|
207
|
+
const ser = await filterView.serializeFilterExperience([ { Type: 'fake', Value: 'valyou' } ]);
|
|
208
|
+
const deser = await filterView.deserializeFilterExperience(ser);
|
|
209
|
+
Expect(deser).to.be.an('array', 'Deserialized filter experience should be an array.');
|
|
210
|
+
Expect(deser).to.deep.equal([ { Type: 'fake', Value: 'valyou' } ], 'Deserialized filter experience should match the original.');
|
|
211
|
+
});
|
|
201
212
|
});
|
|
202
213
|
}
|
|
203
214
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Application-RecordSet.d.ts","sourceRoot":"","sources":["../../source/application/Pict-Application-RecordSet.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Application-RecordSet.d.ts","sourceRoot":"","sources":["../../source/application/Pict-Application-RecordSet.js"],"names":[],"mappings":";AAOA;;;;;;;GAOG;AACH;IAEC,2DAeC;CAoBD;;;;;qCAIU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC"}
|
|
@@ -53,13 +53,13 @@ declare class RecordSetDynamicRecordsetSolver extends libPictProvider {
|
|
|
53
53
|
* @param {number} pOrdinal - The ordinal value to filter to. Optional.
|
|
54
54
|
* @param {Array<Record<string, any>>} pRecords - The records to solve against.
|
|
55
55
|
*/
|
|
56
|
-
executeCellSolvers(pManifest:
|
|
56
|
+
executeCellSolvers(pManifest: import("manyfest"), pCellSolverArray: any[], pOrdinal: number, pRecords: Array<Record<string, any>>): void;
|
|
57
57
|
/**
|
|
58
58
|
* @param {Record<string, any>} pRecord - The record to build the context for.
|
|
59
59
|
* @param {Array<Record<string, any>>} pRecords - The records to build the context from.
|
|
60
60
|
* @param {import('manyfest')} pManifest - The manifest for the RecordSet.
|
|
61
61
|
*/
|
|
62
|
-
buildCellContextRecord(pRecord: Record<string, any>, pRecords: Array<Record<string, any>>, pManifest:
|
|
62
|
+
buildCellContextRecord(pRecord: Record<string, any>, pRecords: Array<Record<string, any>>, pManifest: import("manyfest")): Record<string, any> & {
|
|
63
63
|
Pict: import("pict") & {
|
|
64
64
|
instantiateServiceProviderIfNotExists: (hash: string) => any;
|
|
65
65
|
ExpressionParser: any;
|
|
@@ -74,13 +74,13 @@ declare class RecordSetDynamicRecordsetSolver extends libPictProvider {
|
|
|
74
74
|
AppData: Record<string, any>;
|
|
75
75
|
Bundle: Record<string, any>;
|
|
76
76
|
RecordSubset: Record<string, any>[];
|
|
77
|
-
Manifest:
|
|
77
|
+
Manifest: import("manyfest");
|
|
78
78
|
};
|
|
79
79
|
/**
|
|
80
80
|
* @param {Array<Record<string, any>>} pRecords - The records to build the context from.
|
|
81
81
|
* @param {import('manyfest')} pManifest - The manifest for the RecordSet.
|
|
82
82
|
*/
|
|
83
|
-
buildGlobalContextRecord(pRecords: Array<Record<string, any>>, pManifest:
|
|
83
|
+
buildGlobalContextRecord(pRecords: Array<Record<string, any>>, pManifest: import("manyfest")): {
|
|
84
84
|
Pict: import("pict") & {
|
|
85
85
|
instantiateServiceProviderIfNotExists: (hash: string) => any;
|
|
86
86
|
ExpressionParser: any;
|
|
@@ -95,7 +95,7 @@ declare class RecordSetDynamicRecordsetSolver extends libPictProvider {
|
|
|
95
95
|
AppData: Record<string, any>;
|
|
96
96
|
Bundle: Record<string, any>;
|
|
97
97
|
RecordSubset: Record<string, any>[];
|
|
98
|
-
Manifest:
|
|
98
|
+
Manifest: import("manyfest");
|
|
99
99
|
};
|
|
100
100
|
/**
|
|
101
101
|
* Executes the section solvers at a given ordinal (or all if no ordinal is passed).
|
|
@@ -105,7 +105,7 @@ declare class RecordSetDynamicRecordsetSolver extends libPictProvider {
|
|
|
105
105
|
* @param {number} pOrdinal - The ordinal value.
|
|
106
106
|
* @param {Array<Record<string, any>>} pRecords - The records to solve against.
|
|
107
107
|
*/
|
|
108
|
-
executeDashboardSolvers(pManifest:
|
|
108
|
+
executeDashboardSolvers(pManifest: import("manyfest"), pGlobalSolverArray: any[], pOrdinal: number, pRecords: Array<Record<string, any>>): void;
|
|
109
109
|
/**
|
|
110
110
|
* Checks if the given ordinal exists in the provided ordinal set.
|
|
111
111
|
*
|
|
@@ -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,
|
|
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,8BALW,OAAO,UAAU,CAAC,qCAElB,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,aAC1B,OAAO,UAAU,CAAC;;mDA9Ge,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,aAC1B,OAAO,UAAU,CAAC;;mDAvHe,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG;8BAC1C,GAAG;kCACC,YAAY,CAAC;;;;;;aAAsC,CAAC;;;;;;MAgI9E;IAED;;;;;;;OAOG;IACH,mCALW,OAAO,UAAU,CAAC,uCAElB,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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export =
|
|
2
|
-
declare class
|
|
1
|
+
export = PictRecordSetLinkManager;
|
|
2
|
+
declare class PictRecordSetLinkManager extends libPictProvider {
|
|
3
3
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
4
4
|
/** @type {import('pict')} */
|
|
5
5
|
pict: import("pict");
|
|
@@ -10,7 +10,7 @@ declare class PictRecordSetRouter extends libPictProvider {
|
|
|
10
10
|
Default: any;
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
|
-
declare namespace
|
|
13
|
+
declare namespace PictRecordSetLinkManager {
|
|
14
14
|
export { _DEFAULT_PROVIDER_CONFIGURATION as default_configuration };
|
|
15
15
|
}
|
|
16
16
|
import libPictProvider = require("pict-provider");
|
|
@@ -32,6 +32,15 @@ export = RecordSetProviderBase;
|
|
|
32
32
|
* @extends libPictProvider
|
|
33
33
|
*/
|
|
34
34
|
declare class RecordSetProviderBase extends libPictProvider {
|
|
35
|
+
/**
|
|
36
|
+
* Creates an instance of RecordSetProvider.
|
|
37
|
+
* @param {import('pict')} pFable - The Fable object.
|
|
38
|
+
* @param {Record<string, any>} [pOptions] - Custom options for the provider.
|
|
39
|
+
* @param {string} [pServiceHash] - The service hash.
|
|
40
|
+
*/
|
|
41
|
+
constructor(pFable: import("pict"), pOptions?: Record<string, any>, pServiceHash?: string);
|
|
42
|
+
/** @type {import('pict')} */
|
|
43
|
+
fable: import("pict");
|
|
35
44
|
/** @type {import('pict')} */
|
|
36
45
|
pict: import("pict");
|
|
37
46
|
/**
|