pict-section-form 1.3.13 → 1.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/docs/Injection_Conformance.md +137 -0
  2. package/docs/_sidebar.md +1 -0
  3. package/docs/input_providers/012-tab-group-selector.md +3 -1
  4. package/docs/input_providers/013-tab-section-selector.md +3 -1
  5. package/package.json +6 -5
  6. package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +73 -5
  7. package/source/providers/Pict-Provider-DynamicSolver.js +20 -2
  8. package/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js +42 -3
  9. package/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.js +42 -3
  10. package/source/views/Pict-View-Form-Metacontroller.js +685 -90
  11. package/test/Pict-Provider-DynamicFormSolverBehaviors-OrdinalScope_tests.js +105 -0
  12. package/test/Pict-Provider-Input-TabGroupSelector-TabHashValidation_tests.js +178 -0
  13. package/test/Pict-Provider-Input-TabSectionSelector-TabHashValidation_tests.js +193 -0
  14. package/test/Pict-View-Form-Metacontroller-DistinctManifest_tests.js +410 -0
  15. package/test/PictSectionForm-Injection-Conformance_tests.js +751 -0
  16. package/test/browser/Injection-Conformance-Differential-Scenario.js +346 -0
  17. package/test/browser/Injection-Conformance-EdgeCase-Scenario.js +168 -0
  18. package/test/browser/Injection-Conformance-Harness-Driver.js +538 -0
  19. package/test/browser/Injection-Conformance-Harness-Runner.js +487 -0
  20. package/test/browser/Injection-Conformance-Reconstitution-Scenario.js +191 -0
  21. package/test/browser/Injection-Conformance-Standalone-Scenario.js +114 -0
  22. package/test/fixtures/injection/Injection-Fixture-Cases.js +203 -0
  23. package/test/fixtures/injection/Injection-Fixture-Manifest.json +366 -0
  24. package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +110 -1
  25. package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -1
  26. package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
  27. package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts +17 -1
  28. package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts.map +1 -1
  29. package/types/source/providers/Pict-Provider-InputExtension.d.ts +31 -0
  30. package/types/source/providers/Pict-Provider-InputExtension.d.ts.map +1 -1
  31. package/types/source/providers/inputs/Pict-Provider-Input-Chart-CSS.d.ts +16 -0
  32. package/types/source/providers/inputs/Pict-Provider-Input-Chart-CSS.d.ts.map +1 -0
  33. package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts +47 -0
  34. package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts.map +1 -1
  35. package/types/source/providers/inputs/Pict-Provider-Input-Diagram.d.ts +86 -0
  36. package/types/source/providers/inputs/Pict-Provider-Input-Diagram.d.ts.map +1 -1
  37. package/types/source/providers/inputs/Pict-Provider-Input-ObjectEditor.d.ts +128 -0
  38. package/types/source/providers/inputs/Pict-Provider-Input-ObjectEditor.d.ts.map +1 -0
  39. package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts.map +1 -1
  40. package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts +10 -1
  41. package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts.map +1 -1
  42. package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts +10 -1
  43. package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts.map +1 -1
  44. package/types/source/providers/layouts/Pict-Layout-Tabular.d.ts +76 -4
  45. package/types/source/providers/layouts/Pict-Layout-Tabular.d.ts.map +1 -1
  46. package/types/source/views/Pict-View-DynamicForm.d.ts.map +1 -1
  47. package/types/source/views/Pict-View-Form-Metacontroller.d.ts +63 -2
  48. package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
@@ -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":";AAEA;;;;;;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;IAGlC;;;;;;;OAOG;IACH,iEALW,GAAC,yBACD,GAAC,mCACD,GAAC,WA6bX;IAED,sEAwBC;IAED,wHA2BC;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,CAoBnB;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"}
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":";AAwDA;;;;;;;;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;;;OAGG;IACH,sCAFW,MAAM,QAkBhB;IAMD,uDAgBC;IAMD,qDA+BC;IAED,+DA0BC;IAED,uEAoHC;IAED,gCA6BC;IAMD,iCAIC;IAED,2DA8BC;IAED,kDAKC;IAED,8CAsCC;IAMD,oIAIC;IAqED,kJAGC;CACD;;;;;;;;;;;;;;;UAxjBa,MAAM;;;;YACN,MAAM;;;;eACN,MAAM;;;;;;;;cAEN,MAAM"}
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,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,0CAoCC;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"}
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"}
@@ -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,CA4ClB;IAED;;;;OAIG;IACH,wCAHW,MAAM,GACJ,MAAM,CAKlB;CA4CD"}
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"}
@@ -39,12 +39,21 @@ declare class CustomInputHandler extends libPictSectionInputExtension {
39
39
  * @return {string}
40
40
  */
41
41
  getSectionSelector(pTabViewSectionHash: string): string;
42
+ /**
43
+ * Is this tab section hash actually one of the input's tabs?
44
+ *
45
+ * @param {Object} pInput - The input object.
46
+ * @param {string} pTabSectionHash - The tab section hash to test.
47
+ *
48
+ * @return {boolean}
49
+ */
50
+ isTabInSet(pInput: any, pTabSectionHash: string): boolean;
42
51
  /**
43
52
  * @param {string} pViewHash
44
53
  * @param {string} pInputHash
45
54
  * @param {string} pTabViewHash
46
55
  *
47
- * @return {boolean}
56
+ * @return {boolean} - true once the section is shown; false (nothing changed) if the view, input or tab hash is not valid.
48
57
  */
49
58
  selectTabByViewHash(pViewHash: string, pInputHash: string, pTabViewHash: string): boolean;
50
59
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-Input-TabSectionSelector.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TabSectionSelector.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,CAC4B;IAC7C,4BAAyD;IACzD,mBAAoH;IAKrH;;;OAGG;IACH,+BAHW,MAAM,gBACN,MAAM,QAOhB;IAED;;;;OAIG;IACH,kCAJW,MAAM,GAEL,MAAM,CAKjB;IAED;;;;;OAKG;IACH,gCALW,MAAM,gBAGL,MAAM,CAKjB;IAED;;;;OAIG;IACH,wCAJW,MAAM,GAEL,MAAM,CAMjB;IAED;;;;;;OAMG;IACH,+BANW,MAAM,cACN,MAAM,gBACN,MAAM,GAEL,OAAO,CAkDlB;IAED;;;;;;OAMG;IACH,wCAJW,MAAM,GAEL,MAAM,CAKjB;CA2CD"}
1
+ {"version":3,"file":"Pict-Provider-Input-TabSectionSelector.d.ts","sourceRoot":"","sources":["../../../../source/providers/inputs/Pict-Provider-Input-TabSectionSelector.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,CAC4B;IAC7C,4BAAyD;IACzD,mBAAoH;IAKrH;;;OAGG;IACH,+BAHW,MAAM,gBACN,MAAM,QAOhB;IAED;;;;OAIG;IACH,kCAJW,MAAM,GAEL,MAAM,CAKjB;IAED;;;;;OAKG;IACH,gCALW,MAAM,gBAGL,MAAM,CAKjB;IAED;;;;OAIG;IACH,wCAJW,MAAM,GAEL,MAAM,CAMjB;IAED;;;;;;;OAOG;IACH,yCAJW,MAAM,GAEL,OAAO,CAMlB;IAED;;;;;;OAMG;IACH,+BANW,MAAM,cACN,MAAM,gBACN,MAAM,GAEL,OAAO,CAyDlB;IAED;;;;;;OAMG;IACH,wCAJW,MAAM,GAEL,MAAM,CAKjB;CA6DD"}
@@ -340,15 +340,74 @@ declare class TabularLayout extends libPictSectionGroupLayout {
340
340
  */
341
341
  _paintTabularColumnChooserOpenState(pView: any, pGroup: any, pOpen: boolean): void;
342
342
  /**
343
- * Position the (fixed) chooser popover against its trigger button, flipping
344
- * above when the room below is genuinely cramped — same approach as the
345
- * recordset's column chooser, so no ancestor overflow can clip it.
343
+ * Anchor the (open) chooser popover to its trigger with the same listener-free strategy as
344
+ * pict-section-picker: keep it in the DOM and CSS-absolute under the (position:relative) bar --
345
+ * which rides page scroll for free -- UNLESS a clipping ancestor would cut it, in which case
346
+ * portal it to <body> and place it in document coords. No scroll/resize handlers: an absolute
347
+ * (not fixed) panel tracks the document as it scrolls, so one placement holds.
346
348
  *
347
349
  * @param {Object} pView
348
350
  * @param {Object} pGroup
349
351
  * @param {HTMLElement} pPopover
350
352
  */
351
- _positionTabularColumnChooserPopover(pView: any, pGroup: any, pPopover: HTMLElement): void;
353
+ _applyTabularColumnChooserAnchor(pView: any, pGroup: any, pPopover: HTMLElement): void;
354
+ /**
355
+ * Move the popover to <body> and place it against the trigger in document coords (viewport rect +
356
+ * scroll), flipping above when the room below is genuinely cramped. Carries the resolved
357
+ * --theme-color-* tokens across so the panel stays themed off its scoped container.
358
+ *
359
+ * @param {HTMLElement} pPopover
360
+ * @param {HTMLElement} pTrigger
361
+ */
362
+ _portalTabularColumnChooserPopover(pPopover: HTMLElement, pTrigger: HTMLElement): void;
363
+ /**
364
+ * Re-home a portaled popover into its bar and drop everything the portal wrote. Doubles as the
365
+ * orphan sweeper: if a re-render already baked a fresh in-bar popover, the portaled one is stale
366
+ * and gets discarded rather than duplicated.
367
+ *
368
+ * @param {Object} pView
369
+ * @param {Object} pGroup
370
+ * @param {HTMLElement} pPopover
371
+ */
372
+ _restoreTabularColumnChooserPopover(pView: any, pGroup: any, pPopover: HTMLElement): void;
373
+ /**
374
+ * Remove any portaled copies of a chooser popover (matched by element id) that are direct children
375
+ * of <body>, except the one to keep. Iterates body children so no attribute-selector escaping of
376
+ * the id is needed, and is scoped by id so it never touches another table's portaled popover.
377
+ *
378
+ * @param {string} pElementId
379
+ * @param {HTMLElement} pKeep
380
+ */
381
+ _sweepPortaledColchooserOrphans(pElementId: string, pKeep: HTMLElement): void;
382
+ /**
383
+ * Portal when ANY clipping ancestor of the trigger would actually cut the popover -- an overflow
384
+ * ancestor alone isn't enough, but a roomy inner clipper doesn't excuse a tighter one further out.
385
+ *
386
+ * @param {HTMLElement} pTrigger
387
+ * @param {HTMLElement} pPopover
388
+ * @returns {boolean}
389
+ */
390
+ _tabularColumnChooserShouldPortal(pTrigger: HTMLElement, pPopover: HTMLElement): boolean;
391
+ /**
392
+ * Nearest ancestor (up to, not including, <body>) with an overflow clip on any axis, or null.
393
+ * Stops at <body> because the document's own scroll is what the absolute anchoring rides on.
394
+ *
395
+ * @param {HTMLElement} pElement
396
+ * @returns {HTMLElement|null}
397
+ */
398
+ _tabularColumnChooserClippingAncestor(pElement: HTMLElement): HTMLElement | null;
399
+ /**
400
+ * Would the clipper cut the popover if it opened in place? The CSS path opens downward, right-
401
+ * aligned to the trigger; project that worst-case box (trigger bottom + gap, up to the max height)
402
+ * and test whether any edge falls outside the clipper. 1px slack avoids a needless portal on a
403
+ * flush edge.
404
+ *
405
+ * @param {HTMLElement} pTrigger
406
+ * @param {HTMLElement} pClipper
407
+ * @param {number} pWidth
408
+ * @returns {boolean}
409
+ */
410
+ _tabularColumnChooserClipBites(pTrigger: HTMLElement, pClipper: HTMLElement, pWidth: number): boolean;
352
411
  /**
353
412
  * Rebuild + re-render a tabular view and re-marshal the form data into it.
354
413
  * Same tail as sortTabularColumn: the rebuild re-bakes the table template
@@ -407,6 +466,19 @@ declare class TabularLayout extends libPictSectionGroupLayout {
407
466
  * @returns {boolean}
408
467
  */
409
468
  resetTabularColumnVisibility(pViewHash: string, pGroupIndex: number | string): boolean;
469
+ /**
470
+ * After a mid-marshal DynamicColumns rebuild/re-render, the freshly painted table DOM
471
+ * is empty: the enclosing onMarshalToView already ran its marshalDataToForm BEFORE this
472
+ * hook re-rendered, so the dynamic cells lost the values that pass had just written and
473
+ * would only refill on the NEXT marshal -- the "% Passing table blanks on row add/delete
474
+ * or Source/Name select until another action brings it back" bug. Re-marshal the view's
475
+ * data into the new DOM here so the cells repopulate within the SAME cycle. This is safe
476
+ * to call from inside onDataMarshalToForm: marshalDataToForm only writes model values into
477
+ * the inputs and does NOT itself invoke onDataMarshalToForm, so it cannot recurse here.
478
+ *
479
+ * @param {Object} pView
480
+ */
481
+ _refillAfterDynamicColumnRebuild(pView: any): void;
410
482
  }
411
483
  import libPictSectionGroupLayout = require("../Pict-Provider-DynamicLayout.js");
412
484
  //# sourceMappingURL=Pict-Layout-Tabular.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Layout-Tabular.d.ts","sourceRoot":"","sources":["../../../../source/providers/layouts/Pict-Layout-Tabular.js"],"names":[],"mappings":";AAEA;IAEC,2DAiEC;IA7DA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IA4DX;;;;;;;;;;;OAWG;IACH,kFAHW,MAAM,GACJ,MAAM,CAwBlB;IAED;;;;;;;;;OASG;IACH,mEAFa,GAAG,CAoBf;IAED;;;;;;;OAOG;IACH,+BAJW,GAAG,WACH,GAAG,GACD,MAAM,CAelB;IAED;;;;;;;;;;OAUG;IACH,6BALW,MAAM,eACN,MAAM,GAAC,MAAM,gBACb,MAAM,GAAC,MAAM,GACX,OAAO,CAkEnB;IAED;;;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,MAAM,GACX,OAAO,CAgBnB;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,yCANW,MAAM,eACN,MAAM,GAAC,MAAM,gBACb,MAAM,GAAC,MAAM,YACb,OAAO,GACL,OAAO,CAkDnB;IAED;;;;;;;;;OASG;IACH,wCAJW,MAAM,eACN,MAAM,GAAC,MAAM,GACX,OAAO,CAwBnB;CAsYD"}
1
+ {"version":3,"file":"Pict-Layout-Tabular.d.ts","sourceRoot":"","sources":["../../../../source/providers/layouts/Pict-Layout-Tabular.js"],"names":[],"mappings":";AAYA;IAEC,2DA4FC;IAxFA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAuFX;;;;;;;;;;;OAWG;IACH,kFAHW,MAAM,GACJ,MAAM,CA8BlB;IAED;;;;;;;;;OASG;IACH,mEAFa,GAAG,CAoBf;IAED;;;;;;;OAOG;IACH,+BAJW,GAAG,WACH,GAAG,GACD,MAAM,CAelB;IAED;;;;;;;;;;OAUG;IACH,6BALW,MAAM,eACN,MAAM,GAAC,MAAM,gBACb,MAAM,GAAC,MAAM,GACX,OAAO,CAkEnB;IAED;;;;;;OAMG;IACH,iCAJW,MAAM,iBAEJ,MAAM,CAsBlB;IAED;;;;;;;;;;;;OAYG;IACH,sDAFa,KAAK,CAAC,KAAK,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAC,CAAC,CAAC,CA6I/E;IAED;;;;;;;;;;;;;OAaG;IACH,wDAoFC;IAED;;;;;;;;;OASG;IACH,qDAJW,MAAM,GAAC,MAAM,WACb,MAAM,GAAC,MAAM,GACX,MAAM,CAuDlB;IAED;;;;;;;;;;OAUG;IACH,2DAJW,MAAM,GAAC,MAAM,WACb,MAAM,GAAC,MAAM,GACX,MAAM,CAUlB;IAED,kCAYC;IAED;;;;;;;;;;;;;;;;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AAM,YACb,OAAO,GACL,OAAO,CAkDnB;IAED;;;;;;;;;OASG;IACH,wCAJW,MAAM,eACN,MAAM,GAAC,MAAM,GACX,OAAO,CAwBnB;IAiaD;;;;;;;;;;;OAWG;IACH,mDAUC;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAYA;;;;;;;GAOG;AACH;IAEC,2DAyGC;IAtDA,kCAAkC;IAClC,kBADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CACO;IAIrC,uBAAqC;IAGrC,qBAA2H;IAG3H,sBAAwB;IAcxB,+BAA6D;IAmB7D,iCAAuC;IAEvC,eAAmD;IAEnD,4BAAkC;IAClC,6BAAgC;IAIhC,uBAA4B;IAG7B;;;;OAIG;IACH,6BAFa,MAAM,CAgBlB;IAED;;;;;;;;OAQG;IACH,wBAFW,MAAM,QAkEhB;IAGD;;;;;;OAMG;IACH,gCAJW,MAAM,eACN,MAAM,aACN,MAAM,QAyEhB;IAED;;;;;;;;OAQG;IACH,uBAJW,MAAM,UACN,GAAG,GACD,OAAO,CAqCnB;IAED;;;;;;;;;;OAUG;IACH,kCANW,MAAM,cACN,MAAM,aACN,MAAM,UACN,GAAG,GACD,OAAO,CAyEnB;IAED;;;;OAIG;IACH,gCAFa,MAAM,CAKlB;IAED;;;;OAIG;IACH,+BAFY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAK9B;IAED;;;;;OAKG;IACH,6BAHW,MAAM,GACL,GAAG,CAKd;IAED;;;;;;;OAOG;IACH,mCALW,MAAM,eACN,MAAM,aACN,MAAM,GACL,GAAG,CAOd;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAwBf;IAED,yEAqBC;IAED,gGAqBC;IAED;;;OAGG;IACH,qBAFa,GAAG,CAcf;IAED;;;OAGG;IACH,6BAkBC;IAED;;;;OAIG;IACH,WAFa,GAAG,CAUf;IA6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OASG;IACH,+BAPW,MAAM,eACN,MAAM,aACN,MAAM,UACN,MAAM,qBACN,MAAM,GACJ,GAAG,CAKf;IAED;;;OAGG;IACH,yDAHW,MAAM,uBACN,MAAM,QAKhB;IAED;;;;;;;OAOG;IACH,yDALW,MAAM,uBACN,MAAM,GAEL,OAAO,CA6DlB;IAED;;;;OAIG;IACH,sCAJW,MAAM,GAEL,OAAO,CA4ClB;IAED;;;OAGG;IACH,wDAHW,MAAM,6BA2BhB;IAED;;;;;;OAMG;IACH,6BALW,MAAM,UACN,MAAM,4CAEN,MAAM,QAuDhB;IAED;;;;;OAKG;IACH,0BAJW,MAAM,4CAEN,MAAM,QAmBhB;IAED;;;;;;;;OAQG;IACH,mCAJW,MAAM,eACN,MAAM,OAMhB;IAED;;;;;;;;;OASG;IACH,wCALW,MAAM,cACN,MAAM,OAOhB;IAED;;;;;;OAMG;IACH,kCAJW,MAAM,kBACN,MAAM,OAMhB;IAED;;;;;OAKG;IACH,iCAHW,MAAM,SAMhB;IAED;;;;;;;OAOG;IACH,mCAHW,MAAM,OAMhB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,aACN,MAAM,gBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,qCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,gBAMhB;IAED;;;OAGG;IACH,yBAFa,OAAO,CAKnB;CACD;;;;;AAllDD,kCAAkC;AAClC,qCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC6D"}
1
+ {"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";AAYA;;;;;;;GAOG;AACH;IAEC,2DAyGC;IAtDA,kCAAkC;IAClC,kBADW,MAAM,CAAC,MAAM,EAA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QAuDhB;IAED;;;;;OAKG;IACH,0BAJW,MAAM,4CAEN,MAAM,QAmBhB;IAED;;;;;;;;OAQG;IACH,mCAJW,MAAM,eACN,MAAM,OAMhB;IAED;;;;;;;;;OASG;IACH,wCALW,MAAM,cACN,MAAM,OAOhB;IAED;;;;;;OAMG;IACH,kCAJW,MAAM,kBACN,MAAM,OAMhB;IAED;;;;;OAKG;IACH,iCAHW,MAAM,SAMhB;IAED;;;;;;;OAOG;IACH,mCAHW,MAAM,OAMhB;IAED;;;;;;;OAOG;IACH,qCALW,MAAM,aACN,MAAM,gBACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,qCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,GACJ,OAAO,CAKnB;IAED;;;;;;OAMG;IACH,mCAJW,MAAM,aACN,MAAM,gBAMhB;IAED;;;OAGG;IACH,yBAFa,OAAO,CAKnB;CACD;;;;;AA5lDD,kCAAkC;AAClC,qCADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAC6D"}
@@ -17,6 +17,8 @@ declare class PictFormMetacontroller extends libPictViewClass {
17
17
  manifest: any;
18
18
  AutoSolveOnFirstRender: boolean;
19
19
  FirstRenderCompleted: boolean;
20
+ injectionTriggerGroupProperties: string[];
21
+ injectionTriggerGroupHashProperties: string[];
20
22
  comprehensionDestinationAddress: any;
21
23
  SupportViewPrototypes: {
22
24
  LifecycleVisualization: typeof import("./support/Pict-View-PSF-LifeCycle-Visualization.js");
@@ -88,16 +90,64 @@ declare class PictFormMetacontroller extends libPictViewClass {
88
90
  AddressTranslation: Record<string, string>;
89
91
  HashTranslation: Record<string, string>;
90
92
  };
93
+ /**
94
+ * Translates a reference to something the manifest owns -- an exact hash or address, or a reference that
95
+ * only starts with one (`Rows.length`, `Rows[0].Line`, `Crate.Items.length`), where the longest address
96
+ * the reference starts with wins.
97
+ *
98
+ * @param {string} pReference - The reference to translate.
99
+ * @param {Record<string, string>} pPrimaryTranslation - Consulted first: hashes for symbols, addresses for address-shaped references.
100
+ * @param {Record<string, string>} pSecondaryTranslation - Consulted second.
101
+ * @param {Record<string, string>} [pPrefixTranslation] - Addresses that a partial reference may start with.
102
+ *
103
+ * @return {string|null} The translated reference, or null when the manifest does not own it.
104
+ */
105
+ translateManifestReference(pReference: string, pPrimaryTranslation: Record<string, string>, pSecondaryTranslation: Record<string, string>, pPrefixTranslation?: Record<string, string>): string | null;
106
+ /**
107
+ * Finds the SERIES / MAP / MULTIROWMAP / MONTECARLO directive in a tokenized solver expression, if there
108
+ * is one, and reads its header the way the expression parser does: which header positions hold an address
109
+ * to iterate over (everything else in a header, keyword or not, is not a reference to translate -- notably
110
+ * the per-row property a MULTIROWMAP variable reads), and which names the body sees as iteration variables
111
+ * rather than as addresses.
112
+ *
113
+ * @param {Array<string>} pTokens - The raw tokens of the expression.
114
+ *
115
+ * @return {{ Code: string, HeaderStart: number, HeaderEnd: number, TranslateIndices: Set<number>, Locals: Set<string> }|null} null when the expression has no directive.
116
+ */
117
+ parseSolverDirectiveScope(pTokens: Array<string>): {
118
+ Code: string;
119
+ HeaderStart: number;
120
+ HeaderEnd: number;
121
+ TranslateIndices: Set<number>;
122
+ Locals: Set<string>;
123
+ } | null;
124
+ /**
125
+ * Collects every trigger group an injected manifest declares and maps it onto a salted hash, so a change
126
+ * in one copy does not run the matching trigger group in another copy of the same manifest.
127
+ *
128
+ * A manifest that means to hear the form it is injected into lists those hashes in `SharedTriggerGroups`
129
+ * at its root; those are left alone.
130
+ *
131
+ * @param {Record<string, any>} pManifest - The manifest being copied.
132
+ * @param {string} pUUID - The salt appended to each hash.
133
+ *
134
+ * @return {Record<string, string>} Original trigger group hash to salted hash.
135
+ */
136
+ buildTriggerGroupTranslation(pManifest: Record<string, any>, pUUID: string): Record<string, string>;
91
137
  /**
92
138
  * Rewrite a solver expression by tokenizing, replacing address/hash tokens, and recomposing.
93
139
  *
94
140
  * @param {string} pExpression - The solver expression string.
95
141
  * @param {Record<string, string>} pHashTranslation - A mapping of original hashes to new hashes for replacement.
96
142
  * @param {Record<string, string>} pAddressTranslation - A mapping of original addresses to new addresses for replacement.
143
+ * @param {{ PrefixAddressTranslation?: Record<string, string>, RowRelative?: boolean }} [pOptions] - PrefixAddressTranslation holds the addresses a partial reference may start with (defaults to pAddressTranslation); RowRelative marks an expression solved against a record of a record set rather than against the manifest.
97
144
  *
98
145
  * @return {string} The rewritten expression, or the original if no changes were made.
99
146
  */
100
- rewriteSolverExpression(pExpression: string, pHashTranslation: Record<string, string>, pAddressTranslation: Record<string, string>): string;
147
+ rewriteSolverExpression(pExpression: string, pHashTranslation: Record<string, string>, pAddressTranslation: Record<string, string>, pOptions?: {
148
+ PrefixAddressTranslation?: Record<string, string>;
149
+ RowRelative?: boolean;
150
+ }): string;
101
151
  /**
102
152
  * Changes:
103
153
  * * The hashes of each section+group to be globally unique.
@@ -216,6 +266,16 @@ declare class PictFormMetacontroller extends libPictViewClass {
216
266
  * @returns {void}
217
267
  */
218
268
  marshalInputToView(pInputHashes: string | string[]): void;
269
+ /**
270
+ * Appends the validation solvers of a manifest being added to the form onto the form's own, in order,
271
+ * skipping any the form already holds so adding the same manifest again does not run its solvers twice.
272
+ *
273
+ * @param {Record<string, any>} pTargetManifest - The form's manifest description, which receives the solvers.
274
+ * @param {Record<string, any>} pSourceManifest - The manifest being added to the form.
275
+ *
276
+ * @return {number} The number of validation solvers added.
277
+ */
278
+ mergeValidationSolvers(pTargetManifest: Record<string, any>, pSourceManifest: Record<string, any>): number;
219
279
  /**
220
280
  * Clears out the manifest description set on the meta controller.
221
281
  */
@@ -271,9 +331,10 @@ declare class PictFormMetacontroller extends libPictViewClass {
271
331
  get isPictMetacontroller(): boolean;
272
332
  }
273
333
  declare namespace PictFormMetacontroller {
274
- export { default_configuration, SortFunction, ManifestDescriptor };
334
+ export { InjectionTranslation, default_configuration, SortFunction, ManifestDescriptor };
275
335
  }
276
336
  import libPictViewClass = require("pict-view");
337
+ declare const InjectionTranslation: Record<string, any>;
277
338
  declare const default_configuration: Record<string, any>;
278
339
  type SortFunction = (a: any, b: any) => number;
279
340
  type ManifestDescriptor = import("manyfest").ManifestDescriptor;