pict-section-form 1.3.14 → 1.3.16
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/docs/Injection_Conformance.md +137 -0
- package/docs/Providers.md +12 -7
- package/docs/_sidebar.md +3 -0
- package/docs/input_providers/016-facet-filter.md +106 -0
- package/docs/input_providers/README.md +1 -0
- package/example_applications/README.md +6 -0
- package/example_applications/facet_filter/.quackage.json +9 -0
- package/example_applications/facet_filter/Facet-Filter-Application.js +210 -0
- package/example_applications/facet_filter/Facet-Filter-Server.js +233 -0
- package/example_applications/facet_filter/Facet-Filter-Smoke-Runner.js +101 -0
- package/example_applications/facet_filter/FacetFilterData.json +44 -0
- package/example_applications/facet_filter/README-FacetFilter.md +70 -0
- package/example_applications/facet_filter/html/Facet-Filter-Smoke.js +128 -0
- package/example_applications/facet_filter/html/index.html +74 -0
- package/example_applications/facet_filter/package.json +27 -0
- package/example_applications/nested_distill_sandbox/Sandbox-Driver-Headlight.js +17 -0
- package/example_applications/nested_distill_sandbox/Sandbox-Driver.js +369 -0
- package/example_applications/nested_distill_sandbox/Sandbox-Runner.js +372 -0
- package/example_applications/nested_distill_sandbox/approaches/A1-tabular-trigger-group.js +67 -0
- package/example_applications/nested_distill_sandbox/approaches/A3-crossmap-selectoptionsrefresh.js +61 -0
- package/example_applications/nested_distill_sandbox/approaches/A4-graph-solvers-flat-list.js +53 -0
- package/example_applications/nested_distill_sandbox/approaches/A5-facet-filter.js +75 -0
- package/example_applications/nested_distill_sandbox/approaches/A5b-facet-filter-symmetric.js +15 -0
- package/example_applications/nested_distill_sandbox/approaches/A5h-facet-filter-headlight-picker.js +15 -0
- package/example_applications/nested_distill_sandbox/approaches/R0-original-jmf-manifest-headlight.js +27 -0
- package/example_applications/nested_distill_sandbox/approaches/R1-real-jmf-manifest-headlight.js +136 -0
- package/example_applications/nested_distill_sandbox/approaches/_Common.js +344 -0
- package/example_applications/nested_distill_sandbox/approaches/_Scenarios.js +262 -0
- package/package.json +6 -5
- package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +73 -5
- package/source/providers/Pict-Provider-DynamicSolver.js +22 -2
- package/source/providers/Pict-Provider-ListDistilling.js +266 -1
- package/source/providers/Pict-Provider-MetaLists.js +16 -2
- package/source/providers/inputs/Pict-Provider-Input-FacetFilter.js +232 -0
- package/source/providers/inputs/Pict-Provider-Input-Select.js +41 -1
- package/source/views/Pict-View-Form-Metacontroller.js +690 -93
- package/test/Pict-Provider-DynamicFormSolverBehaviors-OrdinalScope_tests.js +105 -0
- package/test/Pict-Provider-ListDistilling-Facet_tests.js +375 -0
- package/test/Pict-View-Form-Metacontroller-DistinctManifest_tests.js +410 -0
- package/test/PictSectionForm-Injection-Conformance_tests.js +762 -0
- package/test/browser/Injection-Conformance-Differential-Scenario.js +346 -0
- package/test/browser/Injection-Conformance-EdgeCase-Scenario.js +168 -0
- package/test/browser/Injection-Conformance-Harness-Driver.js +538 -0
- package/test/browser/Injection-Conformance-Harness-Runner.js +487 -0
- package/test/browser/Injection-Conformance-Reconstitution-Scenario.js +191 -0
- package/test/browser/Injection-Conformance-Standalone-Scenario.js +114 -0
- package/test/fixtures/injection/Injection-Fixture-Cases.js +204 -0
- package/test/fixtures/injection/Injection-Fixture-Manifest.json +381 -0
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +110 -1
- package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts +17 -1
- package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-InputExtension.d.ts +31 -0
- package/types/source/providers/Pict-Provider-InputExtension.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-ListDistilling.d.ts +90 -1
- package/types/source/providers/Pict-Provider-ListDistilling.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-MetaLists.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-Chart-CSS.d.ts +16 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Chart-CSS.d.ts.map +1 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts +47 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-Diagram.d.ts +86 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Diagram.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-FacetFilter.d.ts +103 -0
- package/types/source/providers/inputs/Pict-Provider-Input-FacetFilter.d.ts.map +1 -0
- package/types/source/providers/inputs/Pict-Provider-Input-ObjectEditor.d.ts +128 -0
- package/types/source/providers/inputs/Pict-Provider-Input-ObjectEditor.d.ts.map +1 -0
- package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-Select.d.ts +12 -0
- package/types/source/providers/inputs/Pict-Provider-Input-Select.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts +10 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts.map +1 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts +10 -1
- package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts.map +1 -1
- package/types/source/providers/layouts/Pict-Layout-Tabular.d.ts +76 -4
- package/types/source/providers/layouts/Pict-Layout-Tabular.d.ts.map +1 -1
- package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts +63 -2
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-InputExtension.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-InputExtension.js"],"names":[],"mappings":";AAaA;;;;GAIG;AACH;IAgBC;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,oCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;OAYG;IACH,2EAJW,GAAG,iBAEH,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;;;OAYG;IACH,uEALW,GAAG,iBACH,MAAM,aAEN,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;OAUG;IACH,8CAJW,GAAG,iBACH,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;OASG;IACH,qDALW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;;;OAWG;IACH,mDAPW,MAAM,uBAEN,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAGD;;;;;;;;;;OAUG;IACH,yCANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;OAUG;IACH,wDANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,gDAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,+DAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;CACD;;;;;
|
|
1
|
+
{"version":3,"file":"Pict-Provider-InputExtension.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-InputExtension.js"],"names":[],"mappings":";AAaA;;;;GAIG;AACH;IAgBC;;;;;OAKG;IACH,6BAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,oCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;;;OAYG;IACH,2EAJW,GAAG,iBAEH,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;;;OAYG;IACH,uEALW,GAAG,iBACH,MAAM,aAEN,MAAM,oBADN,MAAM,WAMhB;IAED;;;;;;;;;;OAUG;IACH,8CAJW,GAAG,iBACH,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;OASG;IACH,qDALW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,WAKhB;IAED;;;;;;;;;;;OAWG;IACH,mDAPW,MAAM,uBAEN,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,0DAPW,MAAM,uBAEN,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,gFANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAGD;;;;;;;;;;OAUG;IACH,yCANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;OAUG;IACH,wDANW,GAAG,iBACH,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,gDAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;;;;;;OAWG;IACH,+DAPW,GAAG,iBACH,MAAM,aACN,MAAM,UACN,MAAM,oBACN,MAAM,GACJ,OAAO,CAKnB;CACD;;;;;AAlSD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -36,9 +36,98 @@ declare class PictListDistilling extends libPictProvider {
|
|
|
36
36
|
* @param {Object} pView - The pict view the list is within
|
|
37
37
|
* @param {*} pInput - The input within the dynamic forms view
|
|
38
38
|
* @param {*} pList - The raw list of options to filter
|
|
39
|
+
* @param {number} [pRowIndex] - The tabular row the list is for; Facet rules read sibling values from this row
|
|
39
40
|
* @returns
|
|
40
41
|
*/
|
|
41
|
-
filterList(pView: any, pInput: any, pList: any): any;
|
|
42
|
+
filterList(pView: any, pInput: any, pList: any, pRowIndex?: number): any;
|
|
43
|
+
/**
|
|
44
|
+
* @param {Record<string, any>} pInput
|
|
45
|
+
* @return {Record<string, any>|null} the input's Facet rule, if it has one
|
|
46
|
+
*/
|
|
47
|
+
getFacetRule(pInput: Record<string, any>): Record<string, any> | null;
|
|
48
|
+
/**
|
|
49
|
+
* @param {Object} pView
|
|
50
|
+
* @param {Record<string, any>} pRule
|
|
51
|
+
* @return {Array<any>} the join list a Facet rule distills, as an array
|
|
52
|
+
*/
|
|
53
|
+
getFacetJoinList(pView: any, pRule: Record<string, any>): Array<any>;
|
|
54
|
+
/**
|
|
55
|
+
* Every input that shares a Facet rule's join list with pInput, in the same tabular row (or the same
|
|
56
|
+
* view, outside a table), with the value it currently holds. pInput itself is included.
|
|
57
|
+
*
|
|
58
|
+
* @param {Object} pView
|
|
59
|
+
* @param {Record<string, any>} pInput
|
|
60
|
+
* @param {number} [pRowIndex]
|
|
61
|
+
* @return {Array<{ Input: Record<string, any>, Rule: Record<string, any>, Value: any }>}
|
|
62
|
+
*/
|
|
63
|
+
getFacetSiblings(pView: any, pInput: Record<string, any>, pRowIndex?: number): Array<{
|
|
64
|
+
Input: Record<string, any>;
|
|
65
|
+
Rule: Record<string, any>;
|
|
66
|
+
Value: any;
|
|
67
|
+
}>;
|
|
68
|
+
/**
|
|
69
|
+
* @param {any} pValue
|
|
70
|
+
* @return {boolean}
|
|
71
|
+
*/
|
|
72
|
+
isEmptyFacetValue(pValue: any): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* The values a Facet rule's dropdown offers: the allowed values (narrowed per the rule's NarrowBy), plus
|
|
75
|
+
* the input's own current value unless KeepCurrentValue is false, so a filter never hides what the row
|
|
76
|
+
* already stores (a saved choice that has since fallen out of scope still shows).
|
|
77
|
+
*
|
|
78
|
+
* @param {Object} pView
|
|
79
|
+
* @param {Record<string, any>} pInput
|
|
80
|
+
* @param {Record<string, any>} pRule - the input's Facet rule
|
|
81
|
+
* @param {number} [pRowIndex]
|
|
82
|
+
* @return {Set<string>}
|
|
83
|
+
*/
|
|
84
|
+
getFacetOfferedValues(pView: any, pInput: Record<string, any>, pRule: Record<string, any>, pRowIndex?: number): Set<string>;
|
|
85
|
+
/**
|
|
86
|
+
* @param {any} pJoinValue - the value on the join record
|
|
87
|
+
* @param {string} pOperator - EQ (default), NE, LT, LE, GT or GE
|
|
88
|
+
* @param {string} pValue - the constraint value
|
|
89
|
+
* @return {boolean}
|
|
90
|
+
*/
|
|
91
|
+
compareFacetValue(pJoinValue: any, pOperator: string, pValue: string): boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The values a Facet rule's input may hold, given what its siblings hold: the distinct
|
|
94
|
+
* JoinListValueAddress values of the join records that agree with every constraining non-empty sibling
|
|
95
|
+
* value and every explicit facet. Empty siblings do not constrain.
|
|
96
|
+
*
|
|
97
|
+
* pNarrowBy picks the constraining siblings: 'All' (default) is every sibling; 'Preceding' is only the
|
|
98
|
+
* siblings before this input (column order in a table), so a list offers every value its upstream
|
|
99
|
+
* choices allow and picking one never needs a downstream value cleared first.
|
|
100
|
+
*
|
|
101
|
+
* @param {Object} pView
|
|
102
|
+
* @param {Record<string, any>} pInput
|
|
103
|
+
* @param {Record<string, any>} pRule - the input's Facet rule
|
|
104
|
+
* @param {number} [pRowIndex]
|
|
105
|
+
* @param {Array<{ Input: Record<string, any>, Rule: Record<string, any>, Value: any }>} [pSiblings] - precomputed siblings (values may be overridden by the caller)
|
|
106
|
+
* @param {string} [pNarrowBy] - 'All' or 'Preceding'
|
|
107
|
+
* @return {Set<string>}
|
|
108
|
+
*/
|
|
109
|
+
getFacetAllowedValues(pView: any, pInput: Record<string, any>, pRule: Record<string, any>, pRowIndex?: number, pSiblings?: Array<{
|
|
110
|
+
Input: Record<string, any>;
|
|
111
|
+
Rule: Record<string, any>;
|
|
112
|
+
Value: any;
|
|
113
|
+
}>, pNarrowBy?: string): Set<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The join records that agree with every constraining non-empty sibling value and every explicit facet;
|
|
116
|
+
* see getFacetAllowedValues for pNarrowBy. pInput's own value does not constrain.
|
|
117
|
+
*
|
|
118
|
+
* @param {Object} pView
|
|
119
|
+
* @param {Record<string, any>} pInput
|
|
120
|
+
* @param {Record<string, any>} pRule - the input's Facet rule
|
|
121
|
+
* @param {number} [pRowIndex]
|
|
122
|
+
* @param {Array<{ Input: Record<string, any>, Rule: Record<string, any>, Value: any }>} [pSiblings]
|
|
123
|
+
* @param {string} [pNarrowBy] - 'All' or 'Preceding'
|
|
124
|
+
* @return {Array<Record<string, any>>}
|
|
125
|
+
*/
|
|
126
|
+
getFacetMatchingRecords(pView: any, pInput: Record<string, any>, pRule: Record<string, any>, pRowIndex?: number, pSiblings?: Array<{
|
|
127
|
+
Input: Record<string, any>;
|
|
128
|
+
Rule: Record<string, any>;
|
|
129
|
+
Value: any;
|
|
130
|
+
}>, pNarrowBy?: string): Array<Record<string, any>>;
|
|
42
131
|
}
|
|
43
132
|
declare namespace PictListDistilling {
|
|
44
133
|
export { _DefaultProviderConfiguration as default_configuration };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-ListDistilling.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-ListDistilling.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAYE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAuBX
|
|
1
|
+
{"version":3,"file":"Pict-Provider-ListDistilling.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-ListDistilling.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAYE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAuBX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA+BI;IACJ,+BALY,GAAC,SACD,GAAC,cACD,MAAM,OAuPjB;IAED;;;OAGG;IACH,qBAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAClB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAC,IAAI,CAUnC;IAED;;;;OAIG;IACH,oCAHW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAClB,KAAK,CAAC,GAAG,CAAC,CAuBrB;IAED;;;;;;;;OAQG;IACH,qCAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cACnB,MAAM,GACL,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,CA6CvF;IAED;;;OAGG;IACH,0BAHW,GAAG,GACF,OAAO,CAKlB;IAED;;;;;;;;;;OAUG;IACH,0CALW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SACnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cACnB,MAAM,GACL,GAAG,CAAC,MAAM,CAAC,CAYtB;IAED;;;;;OAKG;IACH,8BALW,GAAG,aACH,MAAM,UACN,MAAM,GACL,OAAO,CAuClB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,0CAPW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SACnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cACnB,MAAM,cACN,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,cAC5E,MAAM,GACL,GAAG,CAAC,MAAM,CAAC,CActB;IAED;;;;;;;;;;;OAWG;IACH,4CAPW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,SACnB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cACnB,MAAM,cACN,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,cAC5E,MAAM,GACL,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAsCrC;CACD;;;;;AAvkBD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-MetaLists.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetaLists.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAcE,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,6QAA6Q;IAC7Q,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,GAAG,EAAE,GAAG,CAAC;QAAC,6CAA6C,EAAE,CAAC,IAAI,QAAQ,KAAK,GAAG,CAAC;QAAC,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;QAAC,mBAAmB,EAAE,OAAO,8DAA8D,CAAC,CAAA;KAAE,CAChQ;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAQV,kBAAuB;IACvB,oBAAyB;IAE1B,2DAA2D;IAE3D;;;;;;;OAOG;IACH,mBALW,MAAM,mBAGJ,KAAK;YARE,MAAM;cAAQ,MAAM;MAQR,CAsB/B;IAED;;;;;OAKG;IACH,mBAHW,MAAM,GACJ,OAAO,CAKnB;IAED;;;OAGG;IACH,iDAsBC;IAED;;;;OAIG;IACH,6BAFW,MAAM,QAQhB;IAED;;;;OAIG;IACH,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-MetaLists.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetaLists.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAcE,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,6QAA6Q;IAC7Q,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,GAAG,EAAE,GAAG,CAAC;QAAC,6CAA6C,EAAE,CAAC,IAAI,QAAQ,KAAK,GAAG,CAAC;QAAC,qCAAqC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,GAAG,CAAC;QAAC,mBAAmB,EAAE,OAAO,8DAA8D,CAAC,CAAA;KAAE,CAChQ;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAQV,kBAAuB;IACvB,oBAAyB;IAE1B,2DAA2D;IAE3D;;;;;;;OAOG;IACH,mBALW,MAAM,mBAGJ,KAAK;YARE,MAAM;cAAQ,MAAM;MAQR,CAsB/B;IAED;;;;;OAKG;IACH,mBAHW,MAAM,GACJ,OAAO,CAKnB;IAED;;;OAGG;IACH,iDAsBC;IAED;;;;OAIG;IACH,6BAFW,MAAM,QAQhB;IAED;;;;OAIG;IACH,qCAsHC;CACD;;;;;AA5PD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export = libCSS;
|
|
2
|
+
/**
|
|
3
|
+
* Scoped CSS for the chart input's grouped legend. Registered once by
|
|
4
|
+
* Pict-Provider-Input-Chart via
|
|
5
|
+
* `pict.CSSMap.addCSS('Pict-Input-Chart-CSS', libCSS, 500)`.
|
|
6
|
+
*
|
|
7
|
+
* Chart.js's own legend is a single flow-wrapped row of swatches. On a control
|
|
8
|
+
* chart that is eight entries of near-identical colour, with the limit lines
|
|
9
|
+
* indistinguishable from the readings, wrapping into an unreadable block. This
|
|
10
|
+
* legend is a vertical list, grouped, with each group toggleable as a unit.
|
|
11
|
+
*
|
|
12
|
+
* Everything is themeable through the --theme-color-* tokens; the hardcoded
|
|
13
|
+
* values are fallbacks.
|
|
14
|
+
*/
|
|
15
|
+
declare const libCSS: "\n.pict-chart-shell { display: flex; align-items: stretch; gap: 0.75rem; width: 100%; }\n.pict-chart-shell.pict-chart-legend-top { flex-direction: column-reverse; }\n.pict-chart-shell.pict-chart-legend-bottom { flex-direction: column; }\n.pict-chart-shell .pict-chart-canvas-area { flex: 1 1 auto; min-width: 0; position: relative; }\n\n.pict-chart-legend { flex: 0 0 auto; max-width: 15rem; font-size: 0.78rem; line-height: 1.35;\n\tcolor: var(--theme-color-text-primary, #1f2733); user-select: none; }\n.pict-chart-legend-top .pict-chart-legend,\n.pict-chart-legend-bottom .pict-chart-legend { max-width: none; }\n\n.pict-chart-legend-group + .pict-chart-legend-group { margin-top: 0.5rem; }\n.pict-chart-legend-group-header { display: flex; align-items: center; gap: 0.35rem; cursor: pointer;\n\tfont-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;\n\tcolor: var(--theme-color-text-muted, #6b7686); padding: 0.15rem 0; }\n.pict-chart-legend-group-header:hover { color: var(--theme-color-text-primary, #1f2733); }\n.pict-chart-legend-group-caret { font-size: 0.6rem; transition: transform 0.12s ease; }\n.pict-chart-legend-group.pict-collapsed .pict-chart-legend-group-caret { transform: rotate(-90deg); }\n.pict-chart-legend-group.pict-collapsed .pict-chart-legend-items { display: none; }\n/* A group whose series are ALL hidden is dimmed as a whole, so the group toggle\n reads as a control rather than decoration. */\n.pict-chart-legend-group.pict-group-off .pict-chart-legend-group-header { opacity: 0.45; }\n\n.pict-chart-legend-items { display: flex; flex-direction: column; gap: 0.1rem; }\n.pict-chart-legend-top .pict-chart-legend-items,\n.pict-chart-legend-bottom .pict-chart-legend-items { flex-direction: row; flex-wrap: wrap; gap: 0.1rem 0.75rem; }\n\n.pict-chart-legend-item { display: flex; align-items: center; gap: 0.4rem; cursor: pointer;\n\tpadding: 0.1rem 0.2rem; border-radius: 4px; }\n.pict-chart-legend-item:hover { background: var(--theme-color-background-hover, rgba(0,0,0,0.04)); }\n.pict-chart-legend-item.pict-hidden { opacity: 0.4; }\n.pict-chart-legend-item.pict-hidden .pict-chart-legend-label { text-decoration: line-through; }\n.pict-chart-legend-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n\n/* The swatch carries the series' identity: colour, and whether it is a solid\n line, a dashed one, or unconnected markers. A legend that shows every entry\n as the same solid block cannot distinguish a reading from its control limit. */\n.pict-chart-legend-swatch { flex: 0 0 auto; width: 1.4rem; height: 0.7rem; position: relative; }\n.pict-chart-legend-swatch::before { content: ''; position: absolute; left: 0; right: 0; top: 50%;\n\ttransform: translateY(-50%); height: 0.15rem; border-radius: 1px; background: currentColor; }\n.pict-chart-legend-swatch.pict-swatch-dashed::before {\n\tbackground: repeating-linear-gradient(to right, currentColor 0 0.28rem, transparent 0.28rem 0.5rem); }\n.pict-chart-legend-swatch.pict-swatch-dotted::before {\n\tbackground: repeating-linear-gradient(to right, currentColor 0 0.12rem, transparent 0.12rem 0.28rem); }\n.pict-chart-legend-swatch.pict-swatch-markers::before { display: none; }\n.pict-chart-legend-swatch.pict-swatch-markers::after { content: ''; position: absolute; left: 50%; top: 50%;\n\ttransform: translate(-50%, -50%); width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }\n\n.pict-chart-legend-toggle { display: inline-flex; align-items: center; gap: 0.3rem; cursor: pointer;\n\tfont-size: 0.68rem; color: var(--theme-color-text-muted, #6b7686);\n\tbackground: none; border: 1px solid var(--theme-color-border-light, #e8ebf0);\n\tborder-radius: 5px; padding: 0.1rem 0.4rem; margin-bottom: 0.35rem; }\n.pict-chart-legend-toggle:hover { color: var(--theme-color-text-primary, #1f2733);\n\tborder-color: var(--theme-color-border-strong, #c2c9d2); }\n";
|
|
16
|
+
//# sourceMappingURL=Pict-Provider-Input-Chart-CSS.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-Chart-CSS.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Chart-CSS.js"],"names":[],"mappings":";AACA;;;;;;;;;;;;GAYG;AACH,w3HAsDE"}
|
|
@@ -16,6 +16,53 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
|
|
|
16
16
|
defaultDataParsingConfiguration: any;
|
|
17
17
|
currentChartObjects: {};
|
|
18
18
|
currentChartDataObjects: {};
|
|
19
|
+
currentChartLegendState: {};
|
|
20
|
+
/**
|
|
21
|
+
* Classify a dataset's line style for its legend swatch, so a reading, a
|
|
22
|
+
* dashed control limit and an unconnected marker series are told apart at a
|
|
23
|
+
* glance. Chart.js's own legend draws every entry as the same block.
|
|
24
|
+
*
|
|
25
|
+
* @param {Object} pDataset - The Chart.js dataset.
|
|
26
|
+
* @return {string} A swatch modifier class.
|
|
27
|
+
*/
|
|
28
|
+
_legendSwatchClass(pDataset: any): string;
|
|
29
|
+
/**
|
|
30
|
+
* Group the datasets for the legend. A dataset declares its group with
|
|
31
|
+
* `LegendGroup` on the solver entry (carried onto the dataset as
|
|
32
|
+
* `pictLegendGroup`); anything that does not is "Data". Group ORDER follows
|
|
33
|
+
* first appearance, so configuration controls it rather than sort order.
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} pChart - The Chart.js instance.
|
|
36
|
+
* @return {Array<{Key: string, Items: Array<{Index: number, Dataset: Object}>}>}
|
|
37
|
+
*/
|
|
38
|
+
_legendGroups(pChart: any): Array<{
|
|
39
|
+
Key: string;
|
|
40
|
+
Items: Array<{
|
|
41
|
+
Index: number;
|
|
42
|
+
Dataset: any;
|
|
43
|
+
}>;
|
|
44
|
+
}>;
|
|
45
|
+
/**
|
|
46
|
+
* Build (or rebuild) the grouped HTML legend beside a chart's canvas.
|
|
47
|
+
*
|
|
48
|
+
* The legend is created in the DOM rather than in the template because there
|
|
49
|
+
* are several chart templates (the base set plus per-theme copies) and a
|
|
50
|
+
* legend added to only some of them is the kind of divergence that goes
|
|
51
|
+
* unnoticed. Chart.js's built-in legend is switched off whenever this runs.
|
|
52
|
+
*
|
|
53
|
+
* @param {string} pRawHTMLID - The input's Macro.RawHTMLID.
|
|
54
|
+
* @param {Object} pChart - The Chart.js instance.
|
|
55
|
+
* @param {Object} pLegendConfiguration - The resolved ChartLegend config.
|
|
56
|
+
*/
|
|
57
|
+
renderChartLegend(pRawHTMLID: string, pChart: any, pLegendConfiguration: any): boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Resolve the ChartLegend configuration for an input. Returns null when the
|
|
60
|
+
* grouped legend is not in use, in which case Chart.js's own legend stands.
|
|
61
|
+
*
|
|
62
|
+
* @param {Object} pInput - The PictForm input object.
|
|
63
|
+
* @return {Object|null}
|
|
64
|
+
*/
|
|
65
|
+
resolveChartLegendConfiguration(pInput: any): any | null;
|
|
19
66
|
/**
|
|
20
67
|
*
|
|
21
68
|
* @param {Object} pInput - The PictForm input object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-Chart.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Chart.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-Chart.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Chart.js"],"names":[],"mappings":";AAGA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAoCV,qCAA+G;IAiC/G,sCAAiH;IAiCjH,qCAA+G;IAE/G,wBAA6B;IAC7B,4BAAiC;IAGjC,4BAAiC;IAQlC;;;;;;;OAOG;IACH,mCAFY,MAAM,CASjB;IAED;;;;;;;;OAQG;IACH,4BAFY,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,KAAK,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,OAAO,MAAQ;SAAC,CAAC,CAAA;KAAC,CAAC,CAkB/E;IAED;;;;;;;;;;;OAWG;IACH,8BAJW,MAAM,mDAsIhB;IAED;;;;;;OAMG;IACH,8CAFY,MAAO,IAAI,CAWtB;IAED;;;;;;;OAOG;IACH,iEALW,GAAC,yBACD,GAAC,mCACD,GAAC,WAgdX;IAED,sEAmFC;IAED,wHAiCC;IAoBD;;;;;;;;;;;OAWG;IACH,uEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;OASG;IACH,8CALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;;OAUG;IACH,qDANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;;;OAWG;IACH,6EALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAyBnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,GAAG,CAKf;CACD"}
|
|
@@ -70,10 +70,96 @@ declare class PictInputDiagram extends libPictSectionInputExtension {
|
|
|
70
70
|
*/
|
|
71
71
|
_buildViewHTML(pValue: string): string;
|
|
72
72
|
/**
|
|
73
|
+
* Flag edit/view mode on the DISPLAY SLOT so the scoped CSS (sizing, the resize grip, the toggle
|
|
74
|
+
* chip pseudo) has something to key off.
|
|
75
|
+
*
|
|
76
|
+
* The slot is resolved FIRST and the RawHTMLID element is only a fallback. That order is
|
|
77
|
+
* load-bearing: a host template is free to put `id="{RawHTMLID}"` on the hidden <input> (it has
|
|
78
|
+
* to, if it wants the provider's value write-back to find it), and when it does,
|
|
79
|
+
* `getElementById(RawHTMLID)` returns that hidden input — so every mode class, and with it every
|
|
80
|
+
* sizing rule keyed off `.pict-section-form-diagram-edit`, lands on an invisible element and the
|
|
81
|
+
* editor silently falls back to the embed's own min-height. Our own default template omits that
|
|
82
|
+
* id, so this reordering is a no-op there.
|
|
83
|
+
*
|
|
73
84
|
* @param {Object} pInput - The input definition object.
|
|
74
85
|
* @param {string} pMode - The mode to set ('edit' or 'view').
|
|
75
86
|
*/
|
|
76
87
|
_setSlotModeClass(pInput: any, pMode: string): void;
|
|
88
|
+
/**
|
|
89
|
+
* @param {Object} pInput - The input definition object.
|
|
90
|
+
* @returns {Element} The display slot element for this input, or null when it isn't in the DOM.
|
|
91
|
+
*/
|
|
92
|
+
_getSlotElement(pInput: any): Element;
|
|
93
|
+
/**
|
|
94
|
+
* Coerce a configured height into a CSS length. Bare numbers (and numeric strings) are treated as
|
|
95
|
+
* pixels so a descriptor can say 640 or "640" as readily as "640px".
|
|
96
|
+
*
|
|
97
|
+
* @param {any} pValue - The configured height.
|
|
98
|
+
* @returns {string} A CSS length, or '' when the value isn't usable.
|
|
99
|
+
*/
|
|
100
|
+
_normalizeHeight(pValue: any): string;
|
|
101
|
+
/**
|
|
102
|
+
* @param {Object} pInput - The input definition object.
|
|
103
|
+
* @returns {string} The localStorage key this input's user-dragged height is remembered under.
|
|
104
|
+
*/
|
|
105
|
+
_heightStorageKey(pInput: any): string;
|
|
106
|
+
/**
|
|
107
|
+
* @param {Object} pInput - The input definition object.
|
|
108
|
+
* @returns {string} The remembered height for this input, or '' if there isn't one.
|
|
109
|
+
*/
|
|
110
|
+
_readStoredHeight(pInput: any): string;
|
|
111
|
+
/**
|
|
112
|
+
* @param {Object} pInput - The input definition object.
|
|
113
|
+
* @param {string} pHeight - The height to remember.
|
|
114
|
+
* @returns {boolean} True if it was written.
|
|
115
|
+
*/
|
|
116
|
+
_writeStoredHeight(pInput: any, pHeight: string): boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Resolve the editor height for an input: a height the user dragged to wins over the descriptor's
|
|
119
|
+
* configured Height, which wins over the stylesheet default (signalled by '').
|
|
120
|
+
*
|
|
121
|
+
* @param {Object} pInput - The input definition object.
|
|
122
|
+
* @returns {string} A CSS length, or '' to leave the stylesheet in charge.
|
|
123
|
+
*/
|
|
124
|
+
_resolveEditorHeight(pInput: any): string;
|
|
125
|
+
/**
|
|
126
|
+
* Push the resolved height onto the slot as `--pict-diagram-height`, which the scoped CSS reads.
|
|
127
|
+
* Any inline height left behind by an earlier drag is dropped first so the variable is what
|
|
128
|
+
* actually applies on a fresh mount.
|
|
129
|
+
*
|
|
130
|
+
* @param {Object} pInput - The input definition object.
|
|
131
|
+
*/
|
|
132
|
+
_applyEditorHeight(pInput: any): void;
|
|
133
|
+
/**
|
|
134
|
+
* Strip the edit-mode sizing when dropping back to view. The resize grip writes an INLINE height
|
|
135
|
+
* onto the slot, and that would otherwise pin the static SVG view to whatever the canvas was
|
|
136
|
+
* dragged to.
|
|
137
|
+
*
|
|
138
|
+
* @param {Object} pInput - The input definition object.
|
|
139
|
+
*/
|
|
140
|
+
_clearEditorHeight(pInput: any): void;
|
|
141
|
+
/**
|
|
142
|
+
* Remember whatever height the slot is currently sitting at. Only an INLINE height counts — that is
|
|
143
|
+
* what the native resize grip writes; a height coming from the stylesheet or the descriptor is not
|
|
144
|
+
* a user decision and must not be frozen into storage.
|
|
145
|
+
*
|
|
146
|
+
* @param {Object} pInput - The input definition object.
|
|
147
|
+
* @returns {boolean} True if a height was remembered.
|
|
148
|
+
*/
|
|
149
|
+
_captureEditorHeight(pInput: any): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* Watch the slot so a height the user drags to is remembered for next time. The grip is native CSS
|
|
152
|
+
* `resize` (no drag handling of our own), so a ResizeObserver is the only signal that it moved.
|
|
153
|
+
* Debounced — a drag fires continuously.
|
|
154
|
+
*
|
|
155
|
+
* @param {Object} pInput - The input definition object.
|
|
156
|
+
* @param {Object} pInstance - The instance record to hang the observer off.
|
|
157
|
+
*/
|
|
158
|
+
_observeEditorResize(pInput: any, pInstance: any): void;
|
|
159
|
+
/**
|
|
160
|
+
* @param {Object} pInstance - The instance record whose resize watcher should be torn down.
|
|
161
|
+
*/
|
|
162
|
+
_unobserveEditorResize(pInstance: any): void;
|
|
77
163
|
_mountView(pView: any, pInput: any, pValue: any): void;
|
|
78
164
|
_extractSceneFromSvg(pSVG: any, fCallback: any): any;
|
|
79
165
|
_buildEditorOptions(pInput: any, pValue: any, pInst: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-Diagram.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Diagram.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-Diagram.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Diagram.js"],"names":[],"mappings":";AAyDA;;;;;;;;GAQG;AAEH;IAEC;;;;;;OAMG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBACnB,MAAM,EAmBhB;IAZA,6BAA6B,CAAC,MAAnB,OAAO,MAAM,CAAC,CAAc;IAIvC,uCAAuC;IACvC,YADW,MAAM,SAAS,QAAQ,CAAC,CACf;IAarB;;;OAGG;IACH,sCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;OAIG;IACH,8CAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;;;OAUG;IACH,mCAHW,GAAG,GACD,MAAM,CAQlB;IAED;;;OAGG;IACH,qBAHW,GAAG,GACF,OAAO,CAKlB;IAED;;;;OAIG;IACH,4BAJW,MAAM,SACN,MAAM,GACJ,OAAO,CAWnB;IAED;;;;OAIG;IACH,qCAJW,MAAM,UACN,MAAM,GACJ,OAAO,CAUnB;IAED,sBAIC;IAED;;;;;;OAMG;IACH,uBAHW,MAAM,GACJ,MAAM,CASlB;IAED;;;;;;;;;;;;;;OAcG;IACH,sCAFW,MAAM,QAkBhB;IAMD;;;OAGG;IACH,8BAFa,OAAO,CAMnB;IAED;;;;;;OAMG;IACH,yBAHW,GAAG,GACD,MAAM,CAelB;IAED;;;OAGG;IACH,gCAFa,MAAM,CAKlB;IAED;;;OAGG;IACH,gCAFa,MAAM,CAelB;IAED;;;;OAIG;IACH,yCAHW,MAAM,GACJ,OAAO,CAcnB;IAED;;;;;;OAMG;IACH,mCAFa,MAAM,CAQlB;IAED;;;;;;OAMG;IACH,sCAcC;IAED;;;;;;OAMG;IACH,sCAOC;IAED;;;;;;;OAOG;IACH,mCAFa,OAAO,CAOnB;IAED;;;;;;;OAOG;IACH,wDAiBC;IAED;;OAEG;IACH,6CAcC;IAMD,uDAiBC;IAMD,qDA+BC;IAED,+DA+BC;IAED,uEAsHC;IAED,gCAoCC;IAMD,iCAIC;IAED,2DA8BC;IAED,kDAKC;IAED,8CAsCC;IAMD,oIAIC;IAqED,kJAGC;CACD;;;;;;;;;;;;;;;UAxxBa,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;;;;;cAEN,MAAM"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export = FacetFilterInputHandler;
|
|
2
|
+
/**
|
|
3
|
+
* FacetFilter input provider.
|
|
4
|
+
*
|
|
5
|
+
* Keeps a set of inputs that choose from one shared join list (their `Facet` ListFilterRules name the same
|
|
6
|
+
* `JoinListAddress`) mutually consistent when one of them changes. In a tabular group the set is the
|
|
7
|
+
* facet inputs in the changed row only; outside a table it is the facet inputs in the same view.
|
|
8
|
+
*
|
|
9
|
+
* On a change it runs, before the form solves:
|
|
10
|
+
* 1. ClearInvalid (default true): walking the siblings in column order, a sibling whose value no longer
|
|
11
|
+
* appears in any join record agreeing with the changed value (and the siblings already kept) is cleared.
|
|
12
|
+
* 2. AutoFillSingle (default true): an empty sibling left with exactly one allowed value takes it, repeated
|
|
13
|
+
* until nothing changes. The changed input itself is never filled, so clearing it sticks.
|
|
14
|
+
* 3. CarryFields ({ "<row address>": "<join record address>" }): on a sibling that holds a value, the join
|
|
15
|
+
* record its facet set now identifies (exactly one agreeing record) is copied into the row; with no value,
|
|
16
|
+
* or no single record, those row fields are cleared.
|
|
17
|
+
*
|
|
18
|
+
* It only acts on a user change, never on load or marshal, so a saved value -- carried fields included -- is
|
|
19
|
+
* never rewritten by opening a document or by the join list changing later. Narrowing the offered options
|
|
20
|
+
* is the `Facet` rule's job in ListDistilling.filterList.
|
|
21
|
+
*
|
|
22
|
+
* ListFilterRules: [ { FilterType: "Facet", JoinListAddress: "AppData.Graph", JoinListAddressGlobal: true, JoinListValueAddress: "Colour" } ],
|
|
23
|
+
* Providers: [ "Pict-Input-FacetFilter" ]
|
|
24
|
+
*
|
|
25
|
+
* @class
|
|
26
|
+
* @extends libPictSectionInputExtension
|
|
27
|
+
* @memberof providers.inputs
|
|
28
|
+
*/
|
|
29
|
+
declare class FacetFilterInputHandler extends libPictSectionInputExtension {
|
|
30
|
+
/** @type {import('pict')} */
|
|
31
|
+
pict: import("pict");
|
|
32
|
+
reconciling: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* @param {Object} pView
|
|
35
|
+
* @param {Record<string, any>} pInput
|
|
36
|
+
* @param {number|undefined} pRowIndex - undefined outside a table
|
|
37
|
+
* @param {any} pValue
|
|
38
|
+
*/
|
|
39
|
+
setFacetValue(pView: any, pInput: Record<string, any>, pRowIndex: number | undefined, pValue: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* Reconciles the changed input's facet siblings; see the class description.
|
|
42
|
+
*
|
|
43
|
+
* @param {Object} pView
|
|
44
|
+
* @param {Record<string, any>} pInput - the input the user changed
|
|
45
|
+
* @param {number} [pRowIndex]
|
|
46
|
+
* @return {Array<string>} hashes of the siblings whose value was changed
|
|
47
|
+
*/
|
|
48
|
+
reconcileFacets(pView: any, pInput: Record<string, any>, pRowIndex?: number): Array<string>;
|
|
49
|
+
/**
|
|
50
|
+
* @param {Object} pView
|
|
51
|
+
* @param {Record<string, any>} pInput - the input the user changed
|
|
52
|
+
* @param {number} [pRowIndex]
|
|
53
|
+
* @return {Array<string>} hashes of the siblings whose value was changed
|
|
54
|
+
*/
|
|
55
|
+
reconcileFacetSiblings(pView: any, pInput: Record<string, any>, pRowIndex?: number): Array<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Copies a sibling's CarryFields from the one join record its facet set identifies, or clears them.
|
|
58
|
+
*
|
|
59
|
+
* @param {Object} pView
|
|
60
|
+
* @param {{ Input: Record<string, any>, Rule: Record<string, any>, Value: any }} pSibling
|
|
61
|
+
* @param {number|undefined} pRowIndex
|
|
62
|
+
* @param {Array<{ Input: Record<string, any>, Rule: Record<string, any>, Value: any }>} pSiblings
|
|
63
|
+
*/
|
|
64
|
+
carryFields(pView: any, pSibling: {
|
|
65
|
+
Input: Record<string, any>;
|
|
66
|
+
Rule: Record<string, any>;
|
|
67
|
+
Value: any;
|
|
68
|
+
}, pRowIndex: number | undefined, pSiblings: Array<{
|
|
69
|
+
Input: Record<string, any>;
|
|
70
|
+
Rule: Record<string, any>;
|
|
71
|
+
Value: any;
|
|
72
|
+
}>): void;
|
|
73
|
+
/**
|
|
74
|
+
* @param {Object} pView - The view object.
|
|
75
|
+
* @param {Object} pInput - The input object.
|
|
76
|
+
* @param {any} pValue - The new value.
|
|
77
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
78
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
79
|
+
* @returns {any}
|
|
80
|
+
*/
|
|
81
|
+
onDataChange(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pTransactionGUID: string): any;
|
|
82
|
+
/**
|
|
83
|
+
* @param {Object} pView - The view object.
|
|
84
|
+
* @param {Object} pInput - The input object.
|
|
85
|
+
* @param {any} pValue - The new value.
|
|
86
|
+
* @param {string} pHTMLSelector - The HTML selector.
|
|
87
|
+
* @param {number} pRowIndex - The index of the row.
|
|
88
|
+
* @param {string} pTransactionGUID - The transaction GUID, if any.
|
|
89
|
+
* @returns {any}
|
|
90
|
+
*/
|
|
91
|
+
onDataChangeTabular(pView: any, pInput: any, pValue: any, pHTMLSelector: string, pRowIndex: number, pTransactionGUID: string): any;
|
|
92
|
+
}
|
|
93
|
+
declare namespace FacetFilterInputHandler {
|
|
94
|
+
export { default_configuration };
|
|
95
|
+
}
|
|
96
|
+
import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
|
|
97
|
+
declare namespace default_configuration {
|
|
98
|
+
let ProviderIdentifier: string;
|
|
99
|
+
let AutoInitialize: boolean;
|
|
100
|
+
let AutoInitializeOrdinal: number;
|
|
101
|
+
let AutoSolveWithApp: boolean;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=Pict-Provider-Input-FacetFilter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-FacetFilter.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-FacetFilter.js"],"names":[],"mappings":";AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAKT,qBAAwB;IAGzB;;;;;OAKG;IACH,kCAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,aACnB,MAAM,GAAC,SAAS,UAChB,GAAG,QAUb;IAED;;;;;;;OAOG;IACH,oCAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cACnB,MAAM,GACL,KAAK,CAAC,MAAM,CAAC,CAiBxB;IAED;;;;;OAKG;IACH,2CAJW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,cACnB,MAAM,GACL,KAAK,CAAC,MAAM,CAAC,CAkExB;IAED;;;;;;;OAOG;IACH,kCAJW;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,aACrE,MAAM,GAAC,SAAS,aAChB,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,CAAC,QAuBtF;IAED;;;;;;;OAOG;IACH,8CALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;OAQG;IACH,qDANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;CACD"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
export = PictInputObjectEditor;
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} Instance
|
|
4
|
+
* @property {string} mode - 'edit' or 'view'
|
|
5
|
+
* @property {string} slotID - The HTML ID selector of the content slot for this input
|
|
6
|
+
* @property {Object} viewInstance - The object editor view instance
|
|
7
|
+
* @property {string} viewHash - The hash of the object editor view
|
|
8
|
+
* @property {Object} input - The input definition object
|
|
9
|
+
*/
|
|
10
|
+
declare class PictInputObjectEditor extends libPictSectionInputExtension {
|
|
11
|
+
/**
|
|
12
|
+
* Creates an instance of the PictInputObjectEditor class.
|
|
13
|
+
*
|
|
14
|
+
* @param {import('pict')} pFable - The Pict instance.
|
|
15
|
+
* @param {Record<string, any>} [pOptions] - The options for the provider.
|
|
16
|
+
* @param {string} [pServiceHash] - The service hash for the provider.
|
|
17
|
+
*/
|
|
18
|
+
constructor(pFable: import("pict"), pOptions?: Record<string, any>, pServiceHash?: string);
|
|
19
|
+
/** @type {import('pict')} */ pict: import("pict");
|
|
20
|
+
/** @type {Record<String, Instance>} */
|
|
21
|
+
_instances: Record<string, Instance>;
|
|
22
|
+
/**
|
|
23
|
+
* @param {string} pInputHTMLID - The RawHTMLID of the input.
|
|
24
|
+
* @returns {string} The HTML ID selector for the content display slot.
|
|
25
|
+
*/
|
|
26
|
+
getContentDisplayHTMLID(pInputHTMLID: string): string;
|
|
27
|
+
/**
|
|
28
|
+
* The AppData address where this input's editable object is stashed.
|
|
29
|
+
*
|
|
30
|
+
* @param {string} pInputHash - The input Hash.
|
|
31
|
+
* @returns {string} The dotted AppData address the object editor binds to.
|
|
32
|
+
*/
|
|
33
|
+
getObjectDataAddress(pInputHash: string): string;
|
|
34
|
+
/**
|
|
35
|
+
* Resolve the incoming value to a plain object, accepting either a live
|
|
36
|
+
* object or a JSON string. Falls back to the input's Content / Default /
|
|
37
|
+
* an empty object.
|
|
38
|
+
*
|
|
39
|
+
* @param {Object} pInput - The input definition object.
|
|
40
|
+
* @param {any} pValue - The value provided for the input.
|
|
41
|
+
* @returns {Object} The resolved object to edit/display.
|
|
42
|
+
*/
|
|
43
|
+
_resolveValue(pInput: any, pValue: any): any;
|
|
44
|
+
/**
|
|
45
|
+
* Determine whether the editor should be editable for this input. An
|
|
46
|
+
* explicit PictForm.ObjectEditor.Editable boolean wins; otherwise the tree
|
|
47
|
+
* is editable unless PictForm.ReadOnly is true.
|
|
48
|
+
*
|
|
49
|
+
* @param {Object} pInput - The input definition object.
|
|
50
|
+
* @returns {boolean} True if the tree should be editable.
|
|
51
|
+
*/
|
|
52
|
+
_resolveEditable(pInput: any): boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Ensure the per-input AppData stash exists and return its wrapper.
|
|
55
|
+
*
|
|
56
|
+
* @param {string} pInputHash - The input Hash.
|
|
57
|
+
* @returns {Object} The stash wrapper { Data }.
|
|
58
|
+
*/
|
|
59
|
+
_ensureStash(pInputHash: string): any;
|
|
60
|
+
/**
|
|
61
|
+
* @param {string} pInputHash - The input Hash.
|
|
62
|
+
* @returns {Object} The current edited object from the stash.
|
|
63
|
+
*/
|
|
64
|
+
_currentObject(pInputHash: string): any;
|
|
65
|
+
/**
|
|
66
|
+
* Serialize an object into the input's hidden field.
|
|
67
|
+
*
|
|
68
|
+
* @param {string} pInputHTMLID - The RawHTMLID of the input.
|
|
69
|
+
* @param {Object} pObject - The object to serialize.
|
|
70
|
+
* @param {boolean} [pDispatchChange] - When true, dispatch a DOM change event.
|
|
71
|
+
* @returns {boolean} True if the value was written.
|
|
72
|
+
*/
|
|
73
|
+
_writeHiddenInputValue(pInputHTMLID: string, pObject: any, pDispatchChange?: boolean): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Mount (or re-render) the object editor for an input. Re-uses the view
|
|
76
|
+
* instance across re-renders, re-painting into the (possibly fresh) slot.
|
|
77
|
+
*
|
|
78
|
+
* @param {Object} pInput - The input definition object.
|
|
79
|
+
* @param {any} pValue - The value to edit/display.
|
|
80
|
+
* @param {boolean} pEditable - Whether the tree is editable.
|
|
81
|
+
* @param {Function} [fCallback] - Optional completion callback.
|
|
82
|
+
*/
|
|
83
|
+
_mount(pInput: any, pValue: any, pEditable: boolean, fCallback?: Function): void;
|
|
84
|
+
getMode(pInputHash: any): string;
|
|
85
|
+
setMode(pInputHash: any, pMode: any, fCallback: any): void;
|
|
86
|
+
toggleMode(pInputHash: any, fCallback: any): void;
|
|
87
|
+
/**
|
|
88
|
+
* Flush the current edited object to the input's hidden field.
|
|
89
|
+
*
|
|
90
|
+
* @param {string} pInputHash - The input Hash.
|
|
91
|
+
* @param {Function} [fCallback] - Optional completion callback.
|
|
92
|
+
*/
|
|
93
|
+
commit(pInputHash: string, fCallback?: Function): void;
|
|
94
|
+
onInputInitialize(pView: any, pGroup: any, pRow: any, pInput: any, pValue: any, pHTMLSelector: any, pTransactionGUID: any): boolean;
|
|
95
|
+
}
|
|
96
|
+
declare namespace PictInputObjectEditor {
|
|
97
|
+
export { _DefaultProviderConfiguration as default_configuration, Instance };
|
|
98
|
+
}
|
|
99
|
+
import libPictSectionInputExtension = require("../Pict-Provider-InputExtension.js");
|
|
100
|
+
declare namespace _DefaultProviderConfiguration {
|
|
101
|
+
let ProviderIdentifier: string;
|
|
102
|
+
let AutoInitialize: boolean;
|
|
103
|
+
let AutoInitializeOrdinal: number;
|
|
104
|
+
let AutoSolveWithApp: boolean;
|
|
105
|
+
}
|
|
106
|
+
type Instance = {
|
|
107
|
+
/**
|
|
108
|
+
* - 'edit' or 'view'
|
|
109
|
+
*/
|
|
110
|
+
mode: string;
|
|
111
|
+
/**
|
|
112
|
+
* - The HTML ID selector of the content slot for this input
|
|
113
|
+
*/
|
|
114
|
+
slotID: string;
|
|
115
|
+
/**
|
|
116
|
+
* - The object editor view instance
|
|
117
|
+
*/
|
|
118
|
+
viewInstance: any;
|
|
119
|
+
/**
|
|
120
|
+
* - The hash of the object editor view
|
|
121
|
+
*/
|
|
122
|
+
viewHash: string;
|
|
123
|
+
/**
|
|
124
|
+
* - The input definition object
|
|
125
|
+
*/
|
|
126
|
+
input: any;
|
|
127
|
+
};
|
|
128
|
+
//# sourceMappingURL=Pict-Provider-Input-ObjectEditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-ObjectEditor.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-ObjectEditor.js"],"names":[],"mappings":";AAyDA;;;;;;;GAOG;AAEH;IAEC;;;;;;OAMG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,iBACnB,MAAM,EAahB;IANA,6BAA6B,CAAC,MAAnB,OAAO,MAAM,CAAC,CAAc;IAIvC,uCAAuC;IACvC,YADW,MAAM,SAAS,QAAQ,CAAC,CACf;IAOrB;;;OAGG;IACH,sCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;OAKG;IACH,iCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;OAQG;IACH,mCAHW,GAAG,OA+Cb;IAED;;;;;;;OAOG;IACH,+BAFa,OAAO,CAUnB;IAED;;;;;OAKG;IACH,yBAHW,MAAM,OAchB;IAED;;;OAGG;IACH,2BAHW,MAAM,OAMhB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,kCAEN,OAAO,GACL,OAAO,CA6BnB;IAMD;;;;;;;;OAQG;IACH,4BAJW,GAAG,aACH,OAAO,8BA+FjB;IAMD,iCAIC;IAED,2DAgBC;IAED,kDAKC;IAED;;;;;OAKG;IACH,mBAHW,MAAM,8BAahB;IAMD,oIAIC;CA8DD;;;;;;;;;;;;;;;UAraa,MAAM;;;;YACN,MAAM;;;;;;;;cAEN,MAAM"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-PreciseNumber.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-PreciseNumber.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,mEAAmE;IACnE,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,GAAG;QAAE,UAAU,EAAE,GAAG,CAAA;KAAE,CACrD;IAKX,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-PreciseNumber.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-PreciseNumber.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,mEAAmE;IACnE,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,IAAI,EAAE,GAAG,CAAA;KAAE,GAAG;QAAE,UAAU,EAAE,GAAG,CAAA;KAAE,CACrD;IAKX,0CA8CC;IAED;;;;;;;;;;;OAWG;IACH,6EALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAMnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAOf;CACD"}
|
|
@@ -34,6 +34,18 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
|
|
|
34
34
|
* @returns {string} - The generated tabular select dropdown ID.
|
|
35
35
|
*/
|
|
36
36
|
getTabularSelectDropdownID(pInputHTMLID: string, pRowIndex: number): string;
|
|
37
|
+
/**
|
|
38
|
+
* Records the option ids on the element and reports whether they differ from what it last rendered,
|
|
39
|
+
* so a refresh on every marshal does not rebuild (and blur) a dropdown whose options are unchanged.
|
|
40
|
+
*
|
|
41
|
+
* @param {HTMLElement} pSelectElement
|
|
42
|
+
* @param {Array<{ id: string, text: string }>} pListData
|
|
43
|
+
* @return {boolean}
|
|
44
|
+
*/
|
|
45
|
+
optionsChanged(pSelectElement: HTMLElement, pListData: Array<{
|
|
46
|
+
id: string;
|
|
47
|
+
text: string;
|
|
48
|
+
}>): boolean;
|
|
37
49
|
/**
|
|
38
50
|
* Refreshes the select list for a dynamic input.
|
|
39
51
|
* @param {Object} pView - The view object.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-Select.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Select.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAKX;;;;;OAKG;IACH,mCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,sCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,yCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;OAQG;IACH,2EAHW,GAAG,iBACH,MAAM,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-Select.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-Select.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAKX;;;;;OAKG;IACH,mCAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,sCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;OAMG;IACH,yCAJW,MAAM,aACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;OAOG;IACH,+BAJW,WAAW,aACX,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,GAClC,OAAO,CAelB;IAED;;;;;;;;OAQG;IACH,2EAHW,GAAG,iBACH,MAAM,WAwChB;IAED;;;;;;;;;OASG;IACH,kFAJW,GAAG,iBACH,MAAM,aACN,MAAM,QA0ChB;IAoBD;;;;;;;;;;;OAWG;IACH,uEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAMf;IAED;;;;;;;;;OASG;IACH,8CALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;;OAUG;IACH,qDANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;;;;;;;;;OAWG;IACH,6EALW,GAAG,iBACH,MAAM,oBACN,MAAM,GACJ,OAAO,CAuCnB;IAED;;;;;;;;;;;OAWG;IACH,yEANW,GAAG,iBACH,MAAM,aACN,MAAM,oBACN,MAAM,GACJ,GAAG,CAuCf;IAED;;;;;;;;OAQG;IACH,+CAJW,GAAG,iBACH,MAAM,GACJ,GAAG,CAQf;IAED;;;;;;;;;OASG;IACH,sDALW,GAAG,iBACH,MAAM,aACN,MAAM,GACJ,GAAG,CAQf;CACD"}
|
|
@@ -35,12 +35,21 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
|
|
|
35
35
|
* @return {string}
|
|
36
36
|
*/
|
|
37
37
|
getGroupSelector(pView: any, pGroupHash: string): string;
|
|
38
|
+
/**
|
|
39
|
+
* Is this tab group hash actually one of the input's tabs?
|
|
40
|
+
*
|
|
41
|
+
* @param {Object} pInput - The input object.
|
|
42
|
+
* @param {string} pTabGroupHash - The tab group hash to test.
|
|
43
|
+
*
|
|
44
|
+
* @return {boolean}
|
|
45
|
+
*/
|
|
46
|
+
isTabInSet(pInput: any, pTabGroupHash: string): boolean;
|
|
38
47
|
/**
|
|
39
48
|
* @param {string} pViewHash
|
|
40
49
|
* @param {string} pInputHash
|
|
41
50
|
* @param {string} pTabHash
|
|
42
51
|
*
|
|
43
|
-
* @return {boolean}
|
|
52
|
+
* @return {boolean} - true once the tab is shown; false (nothing changed) if the view, input or tab hash is not valid.
|
|
44
53
|
*/
|
|
45
54
|
selectTabByViewHash(pViewHash: string, pInputHash: string, pTabHash: string): boolean;
|
|
46
55
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-Input-TabGroupSelector.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAIV,qBAAqB;IACrB,cADW,MAAM,CAC0B;IAC3C,4BAAuD;IACvD,mBAAgH;IAKjH;;;OAGG;IACH,+BAHW,MAAM,gBACN,MAAM,QAShB;IAED;;;;;;OAMG;IACH,oDAJW,MAAM,GAEL,MAAM,CAKjB;IAGD;;;;;OAKG;IACH,yCAJW,MAAM,GAEL,MAAM,CAKjB;IAED;;;;;;OAMG;IACH,+BANW,MAAM,cACN,MAAM,YACN,MAAM,GAEL,OAAO,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-Input-TabGroupSelector.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js"],"names":[],"mappings":";AAEA;;;;;;GAMG;AACH;IAWE,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAIV,qBAAqB;IACrB,cADW,MAAM,CAC0B;IAC3C,4BAAuD;IACvD,mBAAgH;IAKjH;;;OAGG;IACH,+BAHW,MAAM,gBACN,MAAM,QAShB;IAED;;;;;;OAMG;IACH,oDAJW,MAAM,GAEL,MAAM,CAKjB;IAGD;;;;;OAKG;IACH,yCAJW,MAAM,GAEL,MAAM,CAKjB;IAED;;;;;;;OAOG;IACH,uCAJW,MAAM,GAEL,OAAO,CAMlB;IAED;;;;;;OAMG;IACH,+BANW,MAAM,cACN,MAAM,YACN,MAAM,GAEL,OAAO,CAoDlB;IAED;;;;OAIG;IACH,wCAHW,MAAM,GACJ,MAAM,CAKlB;CA6DD"}
|