pict-section-form 1.0.164 → 1.0.166

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 (86) hide show
  1. package/example_applications/complex_table/Complex-Tabular-Application.js +73 -1
  2. package/package.json +2 -2
  3. package/source/providers/Pict-Provider-DynamicDataChangeDetection.js +4 -3
  4. package/source/providers/Pict-Provider-DynamicFormSolverBehaviors.js +4 -3
  5. package/source/providers/Pict-Provider-DynamicInput.js +3 -3
  6. package/source/providers/Pict-Provider-DynamicInputEvents.js +3 -3
  7. package/source/providers/Pict-Provider-DynamicLayout.js +3 -3
  8. package/source/providers/Pict-Provider-DynamicRecordSet.js +3 -3
  9. package/source/providers/Pict-Provider-DynamicSolver.js +3 -3
  10. package/source/providers/Pict-Provider-DynamicTabularData.js +4 -5
  11. package/source/providers/Pict-Provider-DynamicTemplates.js +4 -3
  12. package/source/providers/Pict-Provider-Informary.js +4 -3
  13. package/source/providers/Pict-Provider-InputExtension.js +3 -3
  14. package/source/providers/Pict-Provider-ListDistilling.js +6 -0
  15. package/source/providers/Pict-Provider-MetaLists.js +22 -6
  16. package/source/providers/Pict-Provider-MetatemplateGenerator.js +6 -0
  17. package/source/providers/Pict-Provider-MetatemplateMacros.js +6 -0
  18. package/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.js +5 -0
  19. package/source/providers/inputs/Pict-Provider-Input-Chart.js +5 -0
  20. package/source/providers/inputs/Pict-Provider-Input-DateTime.js +5 -0
  21. package/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js +5 -0
  22. package/source/providers/inputs/Pict-Provider-Input-HTML.js +5 -0
  23. package/source/providers/inputs/Pict-Provider-Input-Link.js +5 -0
  24. package/source/providers/inputs/Pict-Provider-Input-Markdown.js +5 -0
  25. package/source/providers/inputs/Pict-Provider-Input-PreciseNumber.js +5 -0
  26. package/source/providers/inputs/Pict-Provider-Input-Select.js +5 -0
  27. package/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.js +5 -0
  28. package/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.js +5 -0
  29. package/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.js +5 -0
  30. package/source/services/ManifestFactory.js +2 -2
  31. package/types/source/providers/Pict-Provider-DynamicDataChangeDetection.d.ts +0 -7
  32. package/types/source/providers/Pict-Provider-DynamicDataChangeDetection.d.ts.map +1 -1
  33. package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts +0 -7
  34. package/types/source/providers/Pict-Provider-DynamicFormSolverBehaviors.d.ts.map +1 -1
  35. package/types/source/providers/Pict-Provider-DynamicInput.d.ts +0 -8
  36. package/types/source/providers/Pict-Provider-DynamicInput.d.ts.map +1 -1
  37. package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts +0 -8
  38. package/types/source/providers/Pict-Provider-DynamicInputEvents.d.ts.map +1 -1
  39. package/types/source/providers/Pict-Provider-DynamicLayout.d.ts +0 -8
  40. package/types/source/providers/Pict-Provider-DynamicLayout.d.ts.map +1 -1
  41. package/types/source/providers/Pict-Provider-DynamicRecordSet.d.ts +0 -8
  42. package/types/source/providers/Pict-Provider-DynamicRecordSet.d.ts.map +1 -1
  43. package/types/source/providers/Pict-Provider-DynamicSolver.d.ts +0 -8
  44. package/types/source/providers/Pict-Provider-DynamicSolver.d.ts.map +1 -1
  45. package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts +0 -8
  46. package/types/source/providers/Pict-Provider-DynamicTabularData.d.ts.map +1 -1
  47. package/types/source/providers/Pict-Provider-DynamicTemplates.d.ts +0 -7
  48. package/types/source/providers/Pict-Provider-DynamicTemplates.d.ts.map +1 -1
  49. package/types/source/providers/Pict-Provider-Informary.d.ts +0 -7
  50. package/types/source/providers/Pict-Provider-Informary.d.ts.map +1 -1
  51. package/types/source/providers/Pict-Provider-InputExtension.d.ts +0 -8
  52. package/types/source/providers/Pict-Provider-InputExtension.d.ts.map +1 -1
  53. package/types/source/providers/Pict-Provider-ListDistilling.d.ts +0 -1
  54. package/types/source/providers/Pict-Provider-ListDistilling.d.ts.map +1 -1
  55. package/types/source/providers/Pict-Provider-MetaLists.d.ts +15 -12
  56. package/types/source/providers/Pict-Provider-MetaLists.d.ts.map +1 -1
  57. package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts +1 -2
  58. package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts.map +1 -1
  59. package/types/source/providers/Pict-Provider-MetatemplateMacros.d.ts +0 -1
  60. package/types/source/providers/Pict-Provider-MetatemplateMacros.d.ts.map +1 -1
  61. package/types/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.d.ts +0 -1
  62. package/types/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.d.ts.map +1 -1
  63. package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts +0 -1
  64. package/types/source/providers/inputs/Pict-Provider-Input-Chart.d.ts.map +1 -1
  65. package/types/source/providers/inputs/Pict-Provider-Input-DateTime.d.ts +0 -1
  66. package/types/source/providers/inputs/Pict-Provider-Input-DateTime.d.ts.map +1 -1
  67. package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts +0 -1
  68. package/types/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.d.ts.map +1 -1
  69. package/types/source/providers/inputs/Pict-Provider-Input-HTML.d.ts +0 -1
  70. package/types/source/providers/inputs/Pict-Provider-Input-HTML.d.ts.map +1 -1
  71. package/types/source/providers/inputs/Pict-Provider-Input-Link.d.ts +0 -1
  72. package/types/source/providers/inputs/Pict-Provider-Input-Link.d.ts.map +1 -1
  73. package/types/source/providers/inputs/Pict-Provider-Input-Markdown.d.ts +0 -1
  74. package/types/source/providers/inputs/Pict-Provider-Input-Markdown.d.ts.map +1 -1
  75. package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts +0 -1
  76. package/types/source/providers/inputs/Pict-Provider-Input-PreciseNumber.d.ts.map +1 -1
  77. package/types/source/providers/inputs/Pict-Provider-Input-Select.d.ts +0 -1
  78. package/types/source/providers/inputs/Pict-Provider-Input-Select.d.ts.map +1 -1
  79. package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts +0 -1
  80. package/types/source/providers/inputs/Pict-Provider-Input-TabGroupSelector.d.ts.map +1 -1
  81. package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts +0 -1
  82. package/types/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.d.ts.map +1 -1
  83. package/types/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.d.ts +0 -1
  84. package/types/source/providers/inputs/Pict-Provider-Input-TemplatedEntityLookup.d.ts.map +1 -1
  85. package/types/source/services/ManifestFactory.d.ts +2 -1
  86. package/types/source/services/ManifestFactory.d.ts.map +1 -1
@@ -2,6 +2,62 @@ const libPictSectionForm = require('../../source/Pict-Section-Form.js');
2
2
 
3
3
  const libCustomDataProvider = require('./Complex-Tabular-CustomDataProvider.js');
4
4
 
5
+ const SelectInputProvider = require('../../source/providers/inputs/Pict-Provider-Input-Select.js');
6
+
7
+ class CustomSelectInputProvider extends SelectInputProvider
8
+ {
9
+ /**
10
+ * Handles events for the Pict-Provider-InputExtension.
11
+ *
12
+ * @param {Object} pView - The view object.
13
+ * @param {Object} pInput - The input object.
14
+ * @param {any} pValue - The value from AppData.
15
+ * @param {string} pHTMLSelector - The HTML selector.
16
+ * @param {string} pEvent - The event hash that is expected to be triggered.
17
+ * @param {string} pTransactionGUID - The transaction GUID, if any.
18
+ * @returns {boolean} - Returns true.
19
+ */
20
+ onEvent(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID)
21
+ {
22
+ const tmpResult = super.onEvent(pView, pInput, pValue, pHTMLSelector, pEvent, pTransactionGUID);
23
+ if (typeof pEvent !== "string")
24
+ {
25
+ return tmpResult;
26
+ }
27
+ const tmpEventParts = pEvent.split(':');
28
+ const tmpEventHash = tmpEventParts[0];
29
+ if (tmpEventHash !== 'GetPickList')
30
+ {
31
+ return tmpResult;
32
+ }
33
+ const tmpListHash = tmpEventParts[1];
34
+ if (tmpListHash !== pInput.PictForm.SelectOptionsPickList)
35
+ {
36
+ return tmpResult;
37
+ }
38
+ const tmpListDataAddress = tmpEventParts[2];
39
+ const tmpEventOptions = JSON.parse(tmpEventParts.slice(3).join(':'));
40
+ this.pict.log.info(`CustomSelectInputProvider received event: ${pEvent} for list ${tmpListHash} with options:`, { tmpEventHash, tmpListHash, tmpListDataAddress, tmpEventOptions });
41
+ const tmpListData = this.pict.manifest.getValueByHash(this.pict, tmpListDataAddress);
42
+ if (!Array.isArray(tmpListData))
43
+ {
44
+ this.pict.log.error(`CustomSelectInputProvider expected array data at address ${tmpListDataAddress} but found:`, { tmpListData });
45
+ return tmpResult;
46
+ }
47
+ if (tmpListData.length > 0)
48
+ {
49
+ return tmpResult;
50
+ }
51
+ for (let i = 0; i < 10; ++i)
52
+ {
53
+ const tmpRandomNumber = Math.floor(Math.random() * 1000);
54
+ tmpListData.push({ id: `random-${tmpRandomNumber}`, text: `${tmpRandomNumber}` });
55
+ }
56
+
57
+ return tmpResult;
58
+ }
59
+ }
60
+
5
61
  class ComplexTabularApplication extends libPictSectionForm.PictFormApplication
6
62
  {
7
63
  constructor(pFable, pOptions, pServiceHash)
@@ -16,6 +72,12 @@ class ComplexTabularApplication extends libPictSectionForm.PictFormApplication
16
72
  this.pict.AppData.UI.StatisticsTabState = "FruitStatistics";
17
73
  this.pict.addProvider('CustomDataProvider', libCustomDataProvider.default_configuration, libCustomDataProvider);
18
74
  }
75
+
76
+ onInitialize()
77
+ {
78
+ this.pict.addProvider('Pict-Input-Select', CustomSelectInputProvider.default_configuration, CustomSelectInputProvider);
79
+ return super.onInitialize();
80
+ }
19
81
  }
20
82
 
21
83
  module.exports = ComplexTabularApplication;
@@ -67,7 +129,11 @@ module.exports.default_configuration.pict_configuration = {
67
129
  IDTemplate: "{~D:Record.IDBook~}",
68
130
  Sorted: true,
69
131
  UpdateFrequency: "Always",
70
- }
132
+ },
133
+ {
134
+ Hash: "RandomNumbers",
135
+ Dynamic: true,
136
+ },
71
137
  ],
72
138
 
73
139
  Sections: [
@@ -200,6 +266,12 @@ module.exports.default_configuration.pict_configuration = {
200
266
  ],
201
267
 
202
268
  Descriptors: {
269
+ RandomNumber: {
270
+ Name: "Pick a Random Number",
271
+ Hash: "PickRandomNumber",
272
+ DataType: "String",
273
+ PictForm: { Section: "Recipe", Group: "Recipe", Row: 1, InputType: "Option", SelectOptionsPickList: "RandomNumbers" },
274
+ },
203
275
  RecipeName: {
204
276
  Name: "Recipe Name",
205
277
  Hash: "RecipeName",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pict-section-form",
3
- "version": "1.0.164",
3
+ "version": "1.0.166",
4
4
  "description": "Pict dynamic form sections",
5
5
  "main": "source/Pict-Section-Form.js",
6
6
  "directories": {
@@ -45,7 +45,7 @@
45
45
  "chart.js": "^4.5.1",
46
46
  "fable-serviceproviderbase": "^3.0.15",
47
47
  "marked": "^15.0.12",
48
- "pict-provider": "^1.0.6",
48
+ "pict-provider": "^1.0.7",
49
49
  "pict-section-tuigrid": "^1.0.27",
50
50
  "pict-template": "^1.0.13",
51
51
  "pict-view": "^1.0.64"
@@ -23,9 +23,10 @@ class PictDataChangeDetection extends libPictProvider
23
23
  {
24
24
  /**
25
25
  * Creates an instance of PictDataChangeDetection.
26
- * @param {Object} pFable - The Fable object.
27
- * @param {Object} pOptions - Custom options for the provider.
28
- * @param {string} pServiceHash - The service hash.
26
+ *
27
+ * @param {import('fable')} pFable - The Fable instance.
28
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
29
+ * @param {string} [pServiceHash] - The service hash for the provider.
29
30
  */
30
31
  constructor(pFable, pOptions, pServiceHash)
31
32
  {
@@ -21,9 +21,10 @@ class PictDynamicFormsSolverBehaviors extends libPictProvider
21
21
  {
22
22
  /**
23
23
  * Creates an instance of the `PictDynamicFormsInformary` class.
24
- * @param {object} pFable - The fable object.
25
- * @param {object} pOptions - The options object.
26
- * @param {object} pServiceHash - The service hash object.
24
+ *
25
+ * @param {import('fable')} pFable - The Fable instance.
26
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
27
+ * @param {string} [pServiceHash] - The service hash for the provider.
27
28
  */
28
29
  constructor(pFable, pOptions, pServiceHash)
29
30
  {
@@ -19,9 +19,9 @@ class PictDynamicInput extends libPictProvider
19
19
  /**
20
20
  * Creates an instance of the PictDynamicInput class.
21
21
  *
22
- * @param {import('pict')} pFable - The fable object.
23
- * @param {any} [pOptions={}] - The options object.
24
- * @param {string} [pServiceHash] - The service hash object.
22
+ * @param {import('fable')} pFable - The Fable instance.
23
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
24
+ * @param {string} [pServiceHash] - The service hash for the provider.
25
25
  */
26
26
  constructor(pFable, pOptions, pServiceHash)
27
27
  {
@@ -19,9 +19,9 @@ class PictDynamicInputEvents extends libPictProvider
19
19
  /**
20
20
  * Creates an instance of the PictDynamicInputEvents class.
21
21
  *
22
- * @param {object} pFable - The fable object.
23
- * @param {object} pOptions - The options object.
24
- * @param {object} pServiceHash - The service hash object.
22
+ * @param {import('fable')} pFable - The Fable instance.
23
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
24
+ * @param {string} [pServiceHash] - The service hash for the provider.
25
25
  */
26
26
  constructor(pFable, pOptions, pServiceHash)
27
27
  {
@@ -19,9 +19,9 @@ class PictDynamicLayout extends libPictProvider
19
19
  /**
20
20
  * Creates an instance of the PictDynamicLayout class.
21
21
  *
22
- * @param {object} pFable - The fable object.
23
- * @param {object} pOptions - The options object.
24
- * @param {object} pServiceHash - The service hash object.
22
+ * @param {import('fable')} pFable - The Fable instance.
23
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
24
+ * @param {string} [pServiceHash] - The service hash for the provider.
25
25
  */
26
26
  constructor(pFable, pOptions, pServiceHash)
27
27
  {
@@ -22,9 +22,9 @@ class PictRecordSet extends libPictProvider
22
22
  /**
23
23
  * Creates an instance of the PictRecordSet class.
24
24
  *
25
- * @param {object} pFable - The fable object.
26
- * @param {object} pOptions - The options object.
27
- * @param {object} pServiceHash - The service hash object.
25
+ * @param {import('fable')} pFable - The Fable instance.
26
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
27
+ * @param {string} [pServiceHash] - The service hash for the provider.
28
28
  */
29
29
  constructor(pFable, pOptions, pServiceHash)
30
30
  {
@@ -37,9 +37,9 @@ class PictDynamicSolver extends libPictProvider
37
37
  /**
38
38
  * Creates an instance of the PictDynamicSolver class.
39
39
  *
40
- * @param {object} pFable - The fable object.
41
- * @param {object} pOptions - The options object.
42
- * @param {object} pServiceHash - The service hash object.
40
+ * @param {import('fable')} pFable - The Fable instance.
41
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
42
+ * @param {string} [pServiceHash] - The service hash for the provider.
43
43
  */
44
44
  constructor(pFable, pOptions, pServiceHash)
45
45
  {
@@ -24,9 +24,9 @@ class DynamicTabularData extends libPictProvider
24
24
  /**
25
25
  * Creates an instance of the DynamicTabularData class.
26
26
  *
27
- * @param {object} pFable - The fable object.
28
- * @param {object} pOptions - The options object.
29
- * @param {object} pServiceHash - The service hash object.
27
+ * @param {import('fable')} pFable - The Fable instance.
28
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
29
+ * @param {string} [pServiceHash] - The service hash for the provider.
30
30
  */
31
31
  constructor(pFable, pOptions, pServiceHash)
32
32
  {
@@ -216,6 +216,7 @@ class DynamicTabularData extends libPictProvider
216
216
  // Also render any other views that have this as the RecordSetAddress
217
217
  // Filter the views by each Group.RecordSetAddress and find the ones with this RecordSetAddress
218
218
  let tmpViewsToRender = this.pict.views.PictFormMetacontroller.filterViews(
219
+ /** @param {import('../views/Pict-View-DynamicForm.js')} pViewToTestForGroup */
219
220
  (pViewToTestForGroup) =>
220
221
  {
221
222
  if (!pViewToTestForGroup.isPictSectionForm)
@@ -277,8 +278,6 @@ class DynamicTabularData extends libPictProvider
277
278
  {
278
279
  tmpRowPrototype = JSON.parse(JSON.stringify(tmpGroup.DefaultRows[tmpDestinationObject.length]));
279
280
  }
280
- console.log(tmpRowPrototype);
281
- console.log(tmpGroup.supportingManifest.populateDefaults(tmpRowPrototype));
282
281
  tmpDestinationObject.push(tmpGroup.supportingManifest.populateDefaults(tmpRowPrototype))
283
282
  }
284
283
  }
@@ -39,9 +39,10 @@ class PictDynamicFormsTemplates extends libPictProvider
39
39
  {
40
40
  /**
41
41
  * Constructs a new instance of the PictProviderDynamicTemplates class.
42
- * @param {Object} pFable - The pFable object.
43
- * @param {Object} pOptions - The options object.
44
- * @param {Object} pServiceHash - The service hash object.
42
+ *
43
+ * @param {import('fable')} pFable - The Fable instance.
44
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
45
+ * @param {string} [pServiceHash] - The service hash for the provider.
45
46
  */
46
47
  constructor(pFable, pOptions, pServiceHash)
47
48
  {
@@ -20,9 +20,10 @@ class PictDynamicFormsInformary extends libPictProvider
20
20
  {
21
21
  /**
22
22
  * Creates an instance of the `PictDynamicFormsInformary` class.
23
- * @param {object} pFable - The fable object.
24
- * @param {object} pOptions - The options object.
25
- * @param {object} pServiceHash - The service hash object.
23
+ *
24
+ * @param {import('fable')} pFable - The Fable instance.
25
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
26
+ * @param {string} [pServiceHash] - The service hash for the provider.
26
27
  */
27
28
  constructor(pFable, pOptions, pServiceHash)
28
29
  {
@@ -21,9 +21,9 @@ class PictInputExtensionProvider extends libPictProvider
21
21
  /**
22
22
  * Creates an instance of the PictInputExtensionProvider class.
23
23
  *
24
- * @param {object} pFable - The fable object.
25
- * @param {object} pOptions - The options object.
26
- * @param {object} pServiceHash - The service hash object.
24
+ * @param {import('fable')} pFable - The Fable instance.
25
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
26
+ * @param {string} [pServiceHash] - The service hash for the provider.
27
27
  */
28
28
  constructor(pFable, pOptions, pServiceHash)
29
29
  {
@@ -16,6 +16,12 @@ const _DefaultProviderConfiguration = (
16
16
  */
17
17
  class PictListDistilling extends libPictProvider
18
18
  {
19
+ /**
20
+ *
21
+ * @param {import('fable')} pFable - The Fable instance.
22
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
23
+ * @param {string} [pServiceHash] - The service hash for the provider.
24
+ */
19
25
  constructor(pFable, pOptions, pServiceHash)
20
26
  {
21
27
  super(pFable, pOptions, pServiceHash);
@@ -19,9 +19,9 @@ class PictMetalist extends libPictProvider
19
19
  /**
20
20
  * Creates an instance of the PictMetalist class.
21
21
  *
22
- * @param {object} pFable - The fable object.
23
- * @param {object} pOptions - The options object.
24
- * @param {object} pServiceHash - The service hash object.
22
+ * @param {import('fable')} pFable - The Fable instance.
23
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
24
+ * @param {string} [pServiceHash] - The service hash for the provider.
25
25
  */
26
26
  constructor(pFable, pOptions, pServiceHash)
27
27
  {
@@ -30,7 +30,7 @@ class PictMetalist extends libPictProvider
30
30
 
31
31
  /** @type {any} */
32
32
  this.options;
33
- /** @type {import('pict')} */
33
+ /** @type {import('pict') & { log: any, instantiateServiceProviderWithoutRegistration: (hash: String) => any, instantiateServiceProviderIfNotExists: (hash: string) => any, TransactionTracking: import('pict/types/source/services/Fable-Service-TransactionTracking') }} */
34
34
  this.pict;
35
35
  /** @type {import('pict')} */
36
36
  this.fable;
@@ -44,15 +44,31 @@ class PictMetalist extends libPictProvider
44
44
  this.computedLists = {};
45
45
  this.listDefinitions = {};
46
46
  }
47
+ /** @typedef {{ id: string, text: string }} PickListItem */
47
48
 
48
49
  /**
49
50
  * Retrieves a list based on the provided view hash and list hash.
50
51
  *
51
52
  * @param {string} pListHash - The list hash.
52
- * @returns {Array} - The retrieved list.
53
+ * @param {Object} [pOptions={}] - (optional) Additional options for retrieving the list. (ex. search term)
54
+ *
55
+ * @returns {Array<PickListItem>} - The retrieved list.
53
56
  */
54
- getList(pListHash)
57
+ getList(pListHash, pOptions = {})
55
58
  {
59
+ if (this.listDefinitions[pListHash].Dynamic)
60
+ {
61
+ const tmpList = [];
62
+ const tmpTransactionGUID = this.pict.getUUID();
63
+ const tmpHash = tmpTransactionGUID.substring(0, 8);
64
+ const tmpAddress = `AppData._MetaLists.${tmpHash}`;
65
+ this.pict.manifest.setValueByHash(this.pict, tmpAddress, tmpList);
66
+ this.pict.TransactionTracking.registerTransaction(tmpTransactionGUID);
67
+ this.pict.views.PictFormMetacontroller.triggerGlobalInputEvent(`GetPickList:${pListHash}:${tmpAddress}:${JSON.stringify(pOptions)}`, tmpTransactionGUID);
68
+ this.pict.views.PictFormMetacontroller.finalizeTransaction(tmpTransactionGUID);
69
+ delete this.pict.AppData._MetaLists[tmpHash];
70
+ return tmpList;
71
+ }
56
72
  if (pListHash in this.computedLists)
57
73
  {
58
74
  return this.computedLists[pListHash];
@@ -54,6 +54,12 @@ const _DynamicInputViewSection = (
54
54
  */
55
55
  class PictMetatemplateGenerator extends libPictProvider
56
56
  {
57
+ /**
58
+ *
59
+ * @param {import('fable')} pFable - The Fable instance.
60
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
61
+ * @param {string} [pServiceHash] - The service hash for the provider.
62
+ */
57
63
  constructor(pFable, pOptions, pServiceHash)
58
64
  {
59
65
  let tmpOptions = Object.assign({}, JSON.parse(JSON.stringify(_DefaultProviderConfiguration)), pOptions);
@@ -17,6 +17,12 @@ const _DefaultProviderConfiguration = (
17
17
  */
18
18
  class PictMetatemplateMacros extends libPictProvider
19
19
  {
20
+ /**
21
+ *
22
+ * @param {import('fable')} pFable - The Fable instance.
23
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
24
+ * @param {string} [pServiceHash] - The service hash for the provider.
25
+ */
20
26
  constructor(pFable, pOptions, pServiceHash)
21
27
  {
22
28
  let tmpOptions = Object.assign({}, JSON.parse(JSON.stringify(_DefaultProviderConfiguration)), pOptions);
@@ -29,6 +29,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
29
29
  */
30
30
  class CustomInputHandler extends libPictSectionInputExtension
31
31
  {
32
+ /**
33
+ * @param {import('fable')} pFable - The Fable instance.
34
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
35
+ * @param {string} [pServiceHash] - The service hash for the provider.
36
+ */
32
37
  constructor(pFable, pOptions, pServiceHash)
33
38
  {
34
39
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class CustomInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -7,6 +7,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
7
7
  */
8
8
  class CustomInputHandler extends libPictSectionInputExtension
9
9
  {
10
+ /**
11
+ * @param {import('fable')} pFable - The Fable instance.
12
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
13
+ * @param {string} [pServiceHash] - The service hash for the provider.
14
+ */
10
15
  constructor(pFable, pOptions, pServiceHash)
11
16
  {
12
17
  super(pFable, pOptions, pServiceHash);
@@ -38,6 +38,11 @@ Providers: ["Pict-Input-EntityBundleRequest", "Pict-Input-TriggerGroup"],
38
38
  */
39
39
  class CustomInputHandler extends libPictSectionInputExtension
40
40
  {
41
+ /**
42
+ * @param {import('fable')} pFable - The Fable instance.
43
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
44
+ * @param {string} [pServiceHash] - The service hash for the provider.
45
+ */
41
46
  constructor(pFable, pOptions, pServiceHash)
42
47
  {
43
48
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class CustomInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class LinkInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -11,6 +11,11 @@ const libMarked = require('marked');
11
11
  */
12
12
  class CustomInputHandler extends libPictSectionInputExtension
13
13
  {
14
+ /**
15
+ * @param {import('fable')} pFable - The Fable instance.
16
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
17
+ * @param {string} [pServiceHash] - The service hash for the provider.
18
+ */
14
19
  constructor(pFable, pOptions, pServiceHash)
15
20
  {
16
21
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class CustomInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class CustomInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class CustomInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -9,6 +9,11 @@ const libPictSectionInputExtension = require('../Pict-Provider-InputExtension.js
9
9
  */
10
10
  class CustomInputHandler extends libPictSectionInputExtension
11
11
  {
12
+ /**
13
+ * @param {import('fable')} pFable - The Fable instance.
14
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
15
+ * @param {string} [pServiceHash] - The service hash for the provider.
16
+ */
12
17
  constructor(pFable, pOptions, pServiceHash)
13
18
  {
14
19
  super(pFable, pOptions, pServiceHash);
@@ -11,6 +11,11 @@ const libMarked = require('marked');
11
11
  */
12
12
  class CustomInputHandler extends libPictSectionInputExtension
13
13
  {
14
+ /**
15
+ * @param {import('fable')} pFable - The Fable instance.
16
+ * @param {Record<string, any>} [pOptions] - The options for the provider.
17
+ * @param {string} [pServiceHash] - The service hash for the provider.
18
+ */
14
19
  constructor(pFable, pOptions, pServiceHash)
15
20
  {
16
21
  super(pFable, pOptions, pServiceHash);
@@ -13,7 +13,7 @@ class ManifestFactory extends libFableServiceProviderBase
13
13
  let tmpOptions = Object.assign({}, JSON.parse(JSON.stringify(_DefaultManifestSettings)), pOptions);
14
14
  super(pFable, pOptions, pServiceHash);
15
15
 
16
- /** @type {import('pict') & { instantiateServiceProviderWithoutRegistration: (hash: string, options?: any, uuid?: string) => any }} */
16
+ /** @type {import('pict') & { instantiateServiceProviderWithoutRegistration: (hash: string, options?: any, uuid?: string) => any, newManyfest: () => import('manyfest') }} */
17
17
  this.fable;
18
18
  /** @type {any} */
19
19
  this.log;
@@ -695,7 +695,7 @@ class ManifestFactory extends libFableServiceProviderBase
695
695
  {
696
696
  tmpGroup.Layout = 'Tabular';
697
697
  // If the csv defines the GroupRecordSetAddress, use that explicitly
698
- console.log(`Group ${tmpGroup.Hash} RSA ${tmpRecord['GroupRecordSetAddress']} -> Descriptor ${tmpDescriptor.DataAddress}`)
698
+ this.log.info(`Group ${tmpGroup.Hash} RSA ${tmpRecord['GroupRecordSetAddress']} -> Descriptor ${tmpDescriptor.DataAddress}`);
699
699
  if (tmpRecord['GroupRecordSetAddress'] && (typeof (tmpRecord.GroupRecordSetAddress == 'string')) && (tmpRecord.GroupRecordSetAddress.length > 0))
700
700
  {
701
701
  tmpGroup.RecordSetAddress = tmpRecord.GroupRecordSetAddress;
@@ -4,13 +4,6 @@ export = PictDataChangeDetection;
4
4
  * @extends libPictProvider
5
5
  */
6
6
  declare class PictDataChangeDetection extends libPictProvider {
7
- /**
8
- * Creates an instance of PictDataChangeDetection.
9
- * @param {Object} pFable - The Fable object.
10
- * @param {Object} pOptions - Custom options for the provider.
11
- * @param {string} pServiceHash - The service hash.
12
- */
13
- constructor(pFable: any, pOptions: any, pServiceHash: string);
14
7
  /**
15
8
  * @property {Object} cachedValues - Stores the cached values for comparison.
16
9
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-DynamicDataChangeDetection.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicDataChangeDetection.js"],"names":[],"mappings":";AAiBA;;;GAGG;AACH;IAEC;;;;;OAKG;IACH,sDAFW,MAAM,EAYhB;IAJA;;OAEG;IACH,iBAAsB;IAGvB;;OAEG;IACH,mBAGC;IAED;;;;OAIG;IACH,mBAHW,MAAM,UACN,GAAC,QAKX;IAED;;;;;OAKG;IACH,0BAJW,MAAM,UACN,GAAC,GACC,OAAO,CAenB;CACD;;;;;AAzED;;;GAGG;AACH,6CAFU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAO3B"}
1
+ {"version":3,"file":"Pict-Provider-DynamicDataChangeDetection.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicDataChangeDetection.js"],"names":[],"mappings":";AAiBA;;;GAGG;AACH;IAeE;;OAEG;IACH,iBAAsB;IAGvB;;OAEG;IACH,mBAGC;IAED;;;;OAIG;IACH,mBAHW,MAAM,UACN,GAAC,QAKX;IAED;;;;;OAKG;IACH,0BAJW,MAAM,UACN,GAAC,GACC,OAAO,CAenB;CACD;;;;;AA1ED;;;GAGG;AACH,6CAFU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAO3B"}
@@ -6,13 +6,6 @@ export = PictDynamicFormsSolverBehaviors;
6
6
  * Extends the `libPictProvider` class.
7
7
  */
8
8
  declare class PictDynamicFormsSolverBehaviors extends libPictProvider {
9
- /**
10
- * Creates an instance of the `PictDynamicFormsInformary` class.
11
- * @param {object} pFable - The fable object.
12
- * @param {object} pOptions - The options object.
13
- * @param {object} pServiceHash - The service hash object.
14
- */
15
- constructor(pFable: object, pOptions: object, pServiceHash: object);
16
9
  /** @type {any} */
17
10
  options: any;
18
11
  /** @type {import('pict') & { newManyfest: (options: any) => import('manyfest') }} */
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAEC;;;;;OAKG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAuBhB;IAfA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qFAAqF;IACrF,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,WAAW,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,UAAU,CAAC,CAAA;KAAE,CACxE;IAIT,qBAAqB;IACrB,qBADW,MAAM,CAC4C;IAC7D,0BAAyD;IACzD,mBAA2H;IAE3H,qBAA0B;IAK3B,2DAMC;IAJA,kBAAsD;IAMvD,kHAaC;IAED,iDAoBC;IAED;;;OAGG;IACH,wCAHW,MAAM,GAAC,MAAM,YACb,OAAO,GAAC,MAAM,GAAC,MAAM,QAK/B;IAED;;OAEG;IACH,oCAFW,MAAM,GAAC,MAAM,QAKvB;IAED;;OAEG;IACH,qCAFW,MAAM,GAAC,MAAM,QAKvB;IAED;;;;OAIG;IACH,yCAJW,MAAM,GAAC,MAAM,GAEZ,OAAO,CAMlB;IAED,gDAGC;IAED,gEAUC;IAGD,wCAiBC;IAED,wCAiBC;IAED,+DAGC;IAED,+EAUC;IAED,uDAiBC;IAED,uDAiBC;IAED,iEAqBC;IAED,mFA2BC;IAED,kGA0BC;IAED;;;;;;;;OAQG;IACH,mCAPW,MAAM,cACN,MAAM,UACN,MAAM,gBACN,MAAM,iBACN,MAAM,GACJ,OAAO,CAmCnB;IAED;;;;;;;;;;;OAWG;IACH,0CAVW,MAAM,cACN,MAAM,cAEN,MAAM,aADN,MAAM,UAEN,MAAM,gBACN,MAAM,iBACN,MAAM,qBACN,MAAM,GACJ,OAAO,CA0CnB;IAED;;;;;;OAMG;IACH,oCANW,KAAK,CAAC,WAAW,CAAC,UAClB,MAAM,iBACN,MAAM,GAEJ,OAAO,CA2BnB;IAED,+BAWC;CACD;;;;;AA/cD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ3B"}
1
+ {"version":3,"file":"Pict-Provider-DynamicFormSolverBehaviors.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicFormSolverBehaviors.js"],"names":[],"mappings":";AAaA;;;;;GAKG;AACH;IAeE,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,qFAAqF;IACrF,MADW,OAAO,MAAM,CAAC,GAAG;QAAE,WAAW,EAAE,CAAC,OAAO,EAAE,GAAG,KAAK,OAAO,UAAU,CAAC,CAAA;KAAE,CACxE;IAIT,qBAAqB;IACrB,qBADW,MAAM,CAC4C;IAC7D,0BAAyD;IACzD,mBAA2H;IAE3H,qBAA0B;IAK3B,2DAMC;IAJA,kBAAsD;IAMvD,kHAaC;IAED,iDAoBC;IAED;;;OAGG;IACH,wCAHW,MAAM,GAAC,MAAM,YACb,OAAO,GAAC,MAAM,GAAC,MAAM,QAK/B;IAED;;OAEG;IACH,oCAFW,MAAM,GAAC,MAAM,QAKvB;IAED;;OAEG;IACH,qCAFW,MAAM,GAAC,MAAM,QAKvB;IAED;;;;OAIG;IACH,yCAJW,MAAM,GAAC,MAAM,GAEZ,OAAO,CAMlB;IAED,gDAGC;IAED,gEAUC;IAGD,wCAiBC;IAED,wCAiBC;IAED,+DAGC;IAED,+EAUC;IAED,uDAiBC;IAED,uDAiBC;IAED,iEAqBC;IAED,mFA2BC;IAED,kGA0BC;IAED;;;;;;;;OAQG;IACH,mCAPW,MAAM,cACN,MAAM,UACN,MAAM,gBACN,MAAM,iBACN,MAAM,GACJ,OAAO,CAmCnB;IAED;;;;;;;;;;;OAWG;IACH,0CAVW,MAAM,cACN,MAAM,cAEN,MAAM,aADN,MAAM,UAEN,MAAM,gBACN,MAAM,iBACN,MAAM,qBACN,MAAM,GACJ,OAAO,CA0CnB;IAED;;;;;;OAMG;IACH,oCANW,KAAK,CAAC,WAAW,CAAC,UAClB,MAAM,iBACN,MAAM,GAEJ,OAAO,CA2BnB;IAED,+BAWC;CACD;;;;;AAhdD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAQ3B"}
@@ -3,14 +3,6 @@ export = PictDynamicInput;
3
3
  * The PictDynamicInput class is a provider that manages data brokering and provider mappings for dynamic inputs.
4
4
  */
5
5
  declare class PictDynamicInput extends libPictProvider {
6
- /**
7
- * Creates an instance of the PictDynamicInput class.
8
- *
9
- * @param {import('pict')} pFable - The fable object.
10
- * @param {any} [pOptions={}] - The options object.
11
- * @param {string} [pServiceHash] - The service hash object.
12
- */
13
- constructor(pFable: import("pict"), pOptions?: any, pServiceHash?: string);
14
6
  templateProviderMap: {};
15
7
  /** @type {Record<string, boolean>} */
16
8
  ignoredEventHashes: Record<string, boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"Pict-Provider-DynamicInput.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInput.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,OAAO,MAAM,CAAC,aACd,GAAG,iBACH,MAAM,EAUhB;IAHA,wBAA6B;IAC7B,sCAAsC;IACtC,oBADW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACN;IAG7B;;OAEG;IACH,qCAFW,MAAM,QAKhB;IAED;;;;;;OAMG;IACH,4BAJW,OAAO,gCAAgC,CAAC,UACxC,GAAG,GACD,MAAM,GAAC,OAAO,CAkD1B;IAED;;;;;OAKG;IACH,2CAHW,MAAM,aACN,GAAG,QAYb;IAED;;;;;;OAMG;IACH,gCAJW,OAAO,gCAAgC,CAAC,UACxC,MAAM,SAWhB;CACD;;;;;AApID,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
1
+ {"version":3,"file":"Pict-Provider-DynamicInput.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-DynamicInput.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAcE,wBAA6B;IAC7B,sCAAsC;IACtC,oBADW,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACN;IAG7B;;OAEG;IACH,qCAFW,MAAM,QAKhB;IAED;;;;;;OAMG;IACH,4BAJW,OAAO,gCAAgC,CAAC,UACxC,GAAG,GACD,MAAM,GAAC,OAAO,CAkD1B;IAED;;;;;OAKG;IACH,2CAHW,MAAM,aACN,GAAG,QAYb;IAED;;;;;;OAMG;IACH,gCAJW,OAAO,gCAAgC,CAAC,UACxC,MAAM,SAWhB;CACD;;;;;AApID,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}