pict-section-form 1.0.102 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/example_applications/postcard_example/README.md +6 -0
- package/example_applications/postcard_example/providers/PictProvider-BestPostcardTheme.js +3 -3
- package/example_applications/postcard_example/providers/PictProvider-Dynamic-Sections.js +6 -2
- package/example_applications/postcard_example/views/PictView-Postcard-DynamicInputs.js +9 -2
- package/example_applications/postcard_example/views/PictView-Postcard-Navigation.json +2 -2
- package/package.json +1 -1
- package/source/providers/Pict-Provider-MetaLists.js +7 -0
- package/source/providers/Pict-Provider-MetatemplateGenerator.js +12 -7
- package/source/providers/inputs/Pict-Provider-Input-AutofillTriggerGroup.js +2 -2
- package/source/providers/inputs/Pict-Provider-Input-EntityBundleRequest.js +3 -3
- package/source/providers/inputs/Pict-Provider-Input-TabSectionSelector.js +1 -1
- package/source/templates/Pict-Template-ControlFromDynamicManifest.js +1 -1
- package/source/templates/Pict-Template-ControlFromDynamicManifestForHash.js +1 -1
- package/source/templates/Pict-Template-DyanmicView-Value.js +1 -1
- package/source/templates/Pict-Template-DyanmicView-ValueByHash.js +1 -1
- package/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.js +2 -2
- package/source/views/Pict-View-DynamicForm.js +5 -5
- package/source/views/Pict-View-Form-Metacontroller.js +0 -17
- package/test/PictSectionForm-Basic_tests.js +2 -0
- package/types/source/providers/Pict-Provider-MetaLists.d.ts.map +1 -1
- package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts +3 -1
- package/types/source/providers/Pict-Provider-MetatemplateGenerator.d.ts.map +1 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts +2 -1
- package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.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 +0 -8
- package/types/source/views/Pict-View-Form-Metacontroller.d.ts.map +1 -1
|
@@ -18,3 +18,9 @@ how you can also use configuration to display basic content or other html templa
|
|
|
18
18
|
|
|
19
19
|
By leveraging some of the more rich `{~Entity:` and such jellyfish templates, these
|
|
20
20
|
configuration-only views can be fairly capable (not just static HTML content).
|
|
21
|
+
|
|
22
|
+
## Data Marhsalling
|
|
23
|
+
|
|
24
|
+
Note for long time enjoyers of Postkard, the data marshalling has changed a bit. You
|
|
25
|
+
no longer need to manually marshal using the navigation. Look forward to a new manual
|
|
26
|
+
marhsalling example in the future.
|
|
@@ -76,7 +76,7 @@ Glug glug CUSTOMIZED glug Oo... -->
|
|
|
76
76
|
"Template": /*HTML*/`
|
|
77
77
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
78
78
|
<label {~D:Record.Macro.HTMLForID~}>{~D:Record.Name~}:</label>
|
|
79
|
-
<input type="text" {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} class="pure-u-23-24" />
|
|
79
|
+
<input type="text" {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} class="pure-u-23-24" />
|
|
80
80
|
</div>
|
|
81
81
|
`
|
|
82
82
|
},
|
|
@@ -85,7 +85,7 @@ Glug glug CUSTOMIZED glug Oo... -->
|
|
|
85
85
|
"Template": /*HTML*/`
|
|
86
86
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
87
87
|
<label {~D:Record.Macro.HTMLForID~}>{~D:Record.Name~}:</label>
|
|
88
|
-
<input type="text" {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} class="pure-u-23-24" />
|
|
88
|
+
<input type="text" {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} class="pure-u-23-24" />
|
|
89
89
|
</div>
|
|
90
90
|
`
|
|
91
91
|
},
|
|
@@ -113,7 +113,7 @@ Glug glug CUSTOMIZED glug Oo... -->
|
|
|
113
113
|
"Template": /*HTML*/`
|
|
114
114
|
<div class="pure-u-1 pure-u-md-1-3">
|
|
115
115
|
<label {~D:Record.Macro.HTMLForID~}><em>{~D:Record.Name~}:</em></label>
|
|
116
|
-
<input type="text" {~D:Record.Macro.CustomPictSettingsProperty~} {~D:Record.Macro.DirectAssignment~} {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} class="pure-u-23-24" />
|
|
116
|
+
<input type="text" {~D:Record.Macro.CustomPictSettingsProperty~} {~D:Record.Macro.DirectAssignment~} {~D:Record.Macro.HTMLID~} {~D:Record.Macro.InputFullProperties~} {~D:Record.Macro.InputChangeHandler~} class="pure-u-23-24" />
|
|
117
117
|
<a href="#" onclick="{~P~}.views['{~D:Context[0].Hash~}'].inputEvent('{~D:Record.Hash~}', 'BestEventEvarrrr')" class="pure-button">Sign</a>
|
|
118
118
|
</div>
|
|
119
119
|
`
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const libPictProvider = require('pict-provider');
|
|
2
|
+
const libPictViewDynamicForm = require('../../../source/views/Pict-View-DynamicForm.js');
|
|
2
3
|
|
|
3
4
|
const _DEFAULT_PROVIDER_CONFIGURATION =
|
|
4
5
|
{
|
|
@@ -52,8 +53,11 @@ class PostcardDynamicSectionProvider extends libPictProvider
|
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
55
|
});
|
|
55
|
-
|
|
56
|
-
this.pict.views
|
|
56
|
+
|
|
57
|
+
if (!(tmpDynamicInputViewSection.ViewHash in this.pict.views))
|
|
58
|
+
{
|
|
59
|
+
this.pict.addView(tmpDynamicInputViewSection.ViewHash, Object.assign({}, tmpDynamicInputViewSection), libPictViewDynamicForm);
|
|
60
|
+
}
|
|
57
61
|
this.log.info('PostcardDynamicSectionProvider.onInitializeAsync() called --- loading dynamic section views from "server".');
|
|
58
62
|
// Load the dynamnic section views from the server
|
|
59
63
|
this.pict.settings.DefaultFormManifest = require('./PictProvider-Dynamic-Sections-MockServerResponse.json');
|
|
@@ -44,7 +44,7 @@ and
|
|
|
44
44
|
}]
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class PostcardDynamicInputsView extends libPictView
|
|
48
48
|
{
|
|
49
49
|
constructor(pFable, pOptions, pServiceHash)
|
|
50
50
|
{
|
|
@@ -70,6 +70,12 @@ class PostcardMainApplicationView extends libPictView
|
|
|
70
70
|
return super.onInitialize();
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
+
onAfterRender()
|
|
74
|
+
{
|
|
75
|
+
this.pict.PictApplication.marshalToViews();
|
|
76
|
+
return super.onAfterRender();
|
|
77
|
+
}
|
|
78
|
+
|
|
73
79
|
makeMoreInputs()
|
|
74
80
|
{
|
|
75
81
|
let tmpDefectInput = {
|
|
@@ -97,10 +103,11 @@ class PostcardMainApplicationView extends libPictView
|
|
|
97
103
|
function (pError, pParsedTemplate)
|
|
98
104
|
{
|
|
99
105
|
this.pict.ContentAssignment.appendContent('#DynamicInputContainer', pParsedTemplate);
|
|
106
|
+
this.pict.PictApplication.marshalToViews();
|
|
100
107
|
}.bind(this));
|
|
101
108
|
}
|
|
102
109
|
}
|
|
103
110
|
|
|
104
|
-
module.exports =
|
|
111
|
+
module.exports = PostcardDynamicInputsView;
|
|
105
112
|
|
|
106
113
|
module.exports.default_configuration = _ViewConfiguration;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"Templates": [
|
|
12
12
|
{
|
|
13
13
|
"Hash": "Postcard-Top-Navigation",
|
|
14
|
-
"Template": "<span class=\"pure-menu-heading\">Postkard</span><ul class=\"pure-menu-list\"><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardMainApplication.render()\" class=\"pure-menu-link\">Send a Kard</a></li><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardAbout.render()\" class=\"pure-menu-link\">About</a></li><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardLegal.render()\" class=\"pure-menu-link\">Legal</a></li><li class=\"pure-menu-item menu-item-divided\"><a href=\"#\" onclick=\"{~P~}.PictApplication.
|
|
14
|
+
"Template": "<span class=\"pure-menu-heading\">Postkard</span><ul class=\"pure-menu-list\"><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardMainApplication.render()\" class=\"pure-menu-link\">Send a Kard</a></li><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardAbout.render()\" class=\"pure-menu-link\">About</a></li><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardLegal.render()\" class=\"pure-menu-link\">Legal</a></li><li class=\"pure-menu-item menu-item-divided\"><a href=\"#\" onclick=\"{~P~}.PictApplication.changeToPostcardTheme()\" class=\"pure-menu-link\">Postkard Pure CSS Theme</a></li><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.PictApplication.changeToDefaultTheme()\" class=\"pure-menu-link\">Pict Raw HTML Form Theme</a></li><li class=\"pure-menu-item\"><a href=\"#\" onclick=\"{~P~}.views.PostcardDynamicInputs.render()\" class=\"pure-menu-link\">Dynamo</a></li></ul>"
|
|
15
15
|
}
|
|
16
16
|
],
|
|
17
17
|
"Renderables": [
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
"DestinationAddress": "#Postcard-Navigation-Container"
|
|
22
22
|
}
|
|
23
23
|
]
|
|
24
|
-
}
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -168,6 +168,13 @@ class PictMetalist extends libPictProvider
|
|
|
168
168
|
return false;
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
+
if (!this.pict.views.PictFormMetacontroller)
|
|
172
|
+
{
|
|
173
|
+
this.log.error(`Dynamic MetaList Provider [${this.UUID}]::[${this.Hash}] requires PictFormMetacontroller but not found. Skipping.`);
|
|
174
|
+
this.computedLists[pListObject.Hash] = [];
|
|
175
|
+
return false;
|
|
176
|
+
}
|
|
177
|
+
|
|
171
178
|
// Now try to fetch the list data
|
|
172
179
|
let tmpListData = this.pict.views.PictFormMetacontroller.getValueByHash(pListObject.ListSourceAddress);
|
|
173
180
|
if (!tmpListData)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const libPictProvider = require('pict-provider');
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
const libPictViewDynamicForm = require('../views/Pict-View-DynamicForm.js');
|
|
4
4
|
|
|
5
5
|
/** @type {Record<string, any>} */
|
|
6
6
|
const _DefaultProviderConfiguration = (
|
|
@@ -65,7 +65,8 @@ class PictMetatemplateGenerator extends libPictProvider
|
|
|
65
65
|
/** @type {any} */
|
|
66
66
|
this.log;
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
/** @type {libPictViewDynamicForm} */
|
|
69
|
+
this.dynamicInputView;
|
|
69
70
|
|
|
70
71
|
this.baseTemplatePrefix = "Pict-MT-Base";
|
|
71
72
|
}
|
|
@@ -78,12 +79,16 @@ class PictMetatemplateGenerator extends libPictProvider
|
|
|
78
79
|
|
|
79
80
|
createOnDemandMetatemplateView()
|
|
80
81
|
{
|
|
81
|
-
|
|
82
|
+
const tmpViewConfiguration = JSON.parse(JSON.stringify(_DynamicInputViewSection));
|
|
82
83
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
84
|
+
if (tmpViewConfiguration.ViewHash in this.pict.views)
|
|
85
|
+
{
|
|
86
|
+
this.dynamicInputView = this.pict.views[tmpViewConfiguration.ViewHash];
|
|
87
|
+
}
|
|
88
|
+
else
|
|
89
|
+
{
|
|
90
|
+
this.dynamicInputView = this.pict.addView(tmpViewConfiguration.ViewHash, tmpViewConfiguration, libPictViewDynamicForm);
|
|
91
|
+
}
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
/**
|
|
@@ -118,7 +118,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
118
118
|
onDataChange(pView, pInput, pValue, pHTMLSelector)
|
|
119
119
|
{
|
|
120
120
|
let tmpTriggerGroupConfigurations = this.getTriggerGroupConfigurationArray(pInput);
|
|
121
|
-
if (Array.isArray(tmpTriggerGroupConfigurations))
|
|
121
|
+
if (Array.isArray(tmpTriggerGroupConfigurations) && this.pict.views.PictFormMetacontroller)
|
|
122
122
|
{
|
|
123
123
|
for (let i = 0; i < tmpTriggerGroupConfigurations.length; i++)
|
|
124
124
|
{
|
|
@@ -144,7 +144,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
144
144
|
onDataChangeTabular(pView, pInput, pValue, pHTMLSelector, pRowIndex)
|
|
145
145
|
{
|
|
146
146
|
let tmpTriggerGroupConfigurations = this.getTriggerGroupConfigurationArray(pInput);
|
|
147
|
-
if (Array.isArray(tmpTriggerGroupConfigurations))
|
|
147
|
+
if (Array.isArray(tmpTriggerGroupConfigurations) && this.pict.views.PictFormMetacontroller)
|
|
148
148
|
{
|
|
149
149
|
for (let i = 0; i < tmpTriggerGroupConfigurations.length; i++)
|
|
150
150
|
{
|
|
@@ -245,17 +245,17 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
245
245
|
tmpAnticipate.anticipate(
|
|
246
246
|
(fNext) =>
|
|
247
247
|
{
|
|
248
|
-
if (tmpInput.PictForm.EntityBundleTriggerGroup)
|
|
248
|
+
if (tmpInput.PictForm.EntityBundleTriggerGroup && this.pict.views.PictFormMetacontroller)
|
|
249
249
|
{
|
|
250
250
|
// Trigger the autofill global event
|
|
251
251
|
this.pict.views.PictFormMetacontroller.triggerGlobalInputEvent(`AutoFill-${tmpInput.PictForm.EntityBundleTriggerGroup}`);
|
|
252
252
|
}
|
|
253
|
-
if (tmpInput.PictForm.EntityBundleTriggerMetacontrollerSolve)
|
|
253
|
+
if (tmpInput.PictForm.EntityBundleTriggerMetacontrollerSolve && this.pict.views.PictFormMetacontroller)
|
|
254
254
|
{
|
|
255
255
|
// Trigger the solve global event
|
|
256
256
|
this.pict.views.PictFormMetacontroller.solve();
|
|
257
257
|
}
|
|
258
|
-
if (tmpInput.PictForm.EntityBundleTriggerMetacontrollerRender)
|
|
258
|
+
if (tmpInput.PictForm.EntityBundleTriggerMetacontrollerRender && this.pict.views.PictFormMetacontroller)
|
|
259
259
|
{
|
|
260
260
|
// Trigger the render
|
|
261
261
|
this.pict.views.PictFormMetacontroller.render();
|
|
@@ -47,7 +47,7 @@ class CustomInputHandler extends libPictSectionInputExtension
|
|
|
47
47
|
|
|
48
48
|
getSectionSelector(pTabViewSectionHash)
|
|
49
49
|
{
|
|
50
|
-
return `#Pict-${this.
|
|
50
|
+
return `#Pict-${this.UUID}-${pTabViewSectionHash}-Wrap`;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
selectTabByViewHash(pViewHash, pInputHash, pTabViewHash)
|
|
@@ -91,7 +91,7 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
91
91
|
/** @type{import('../views/Pict-View-Form-Metacontroller.js')} */
|
|
92
92
|
const metacontroller = this.pict.views.PictFormMetacontroller;
|
|
93
93
|
/** @type {Manyfest} */
|
|
94
|
-
const manifest = metacontroller.manifest;
|
|
94
|
+
const manifest = metacontroller ? metacontroller.manifest : this.pict.manifest;
|
|
95
95
|
const descriptor = manifest.getDescriptor(tmpHash);
|
|
96
96
|
if (!descriptor)
|
|
97
97
|
{
|
|
@@ -56,7 +56,7 @@ class PictTemplateControlFromDynamicManifest extends libPictTemplate
|
|
|
56
56
|
/** @type{import('../views/Pict-View-Form-Metacontroller.js')} */
|
|
57
57
|
const metacontroller = this.pict.views.PictFormMetacontroller;
|
|
58
58
|
/** @type {import('./Pict-Template-ControlFromDynamicManifest.js').Manyfest} */
|
|
59
|
-
const manifest = metacontroller.manifest;
|
|
59
|
+
const manifest = metacontroller ? metacontroller.manifest : this.pict.manifest;
|
|
60
60
|
const descriptor = manifest.getDescriptorByHash(tmpHash);
|
|
61
61
|
if (!descriptor)
|
|
62
62
|
{
|
|
@@ -55,7 +55,7 @@ class PictTemplateGetViewSchemaValue extends libPictTemplate
|
|
|
55
55
|
/** @type{import('../views/Pict-View-Form-Metacontroller.js')} */
|
|
56
56
|
const metacontroller = this.pict.views.PictFormMetacontroller;
|
|
57
57
|
/** @type {import('./Pict-Template-ControlFromDynamicManifest.js').Manyfest} */
|
|
58
|
-
const manifest = metacontroller.manifest;
|
|
58
|
+
const manifest = metacontroller ? metacontroller.manifest : this.pict.manifest;
|
|
59
59
|
const descriptor = manifest.getDescriptor(tmpSchemaAddress);
|
|
60
60
|
if (!descriptor)
|
|
61
61
|
{
|
|
@@ -55,7 +55,7 @@ class PictTemplateGetViewSchemaValueByHash extends libPictTemplate
|
|
|
55
55
|
/** @type{import('../views/Pict-View-Form-Metacontroller.js')} */
|
|
56
56
|
const metacontroller = this.pict.views.PictFormMetacontroller;
|
|
57
57
|
/** @type {import('./Pict-Template-ControlFromDynamicManifest.js').Manyfest} */
|
|
58
|
-
const manifest = metacontroller.manifest;
|
|
58
|
+
const manifest = metacontroller ? metacontroller.manifest : this.pict.manifest;
|
|
59
59
|
const descriptor = manifest.getDescriptorByHash(tmpSchemaHash);
|
|
60
60
|
if (!descriptor)
|
|
61
61
|
{
|
|
@@ -16,7 +16,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
16
16
|
|
|
17
17
|
/** @type {import('pict')} */
|
|
18
18
|
this.pict;
|
|
19
|
-
/** @type {import('pict') & { ManifestFactory: import('../services/ManifestFactory.js') }} */
|
|
19
|
+
/** @type {import('pict') & { ManifestFactory: import('../services/ManifestFactory.js'), DataFormat: any }} */
|
|
20
20
|
this.fable;
|
|
21
21
|
/** @type {any} */
|
|
22
22
|
this.log;
|
|
@@ -193,7 +193,7 @@ class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libPictTempl
|
|
|
193
193
|
}
|
|
194
194
|
if (!pDescriptor.Hash)
|
|
195
195
|
{
|
|
196
|
-
pDescriptor.Hash = pDescriptor.Address;
|
|
196
|
+
pDescriptor.Hash = this.fable.DataFormat.cleanNonAlphaCharacters(pDescriptor.Address);
|
|
197
197
|
}
|
|
198
198
|
if (!pDescriptor.Name)
|
|
199
199
|
{
|
|
@@ -3,8 +3,6 @@ const libPictViewClass = require('pict-view');
|
|
|
3
3
|
/** @type {Record<string, any>} */
|
|
4
4
|
const libPackage = require('../../package.json');
|
|
5
5
|
|
|
6
|
-
const libPictDynamicApplication = require(`../services/Pict-Service-DynamicApplication.js`);
|
|
7
|
-
|
|
8
6
|
const libFableServiceTransactionTracking = require(`../services/Fable-Service-TransactionTracking.js`);
|
|
9
7
|
|
|
10
8
|
/** @type {Record<string, any>} */
|
|
@@ -65,15 +63,17 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
65
63
|
/** @type {import('pict') & { PictApplication: import('pict-application'), log: any; instantiateServiceProviderWithoutRegistration: (hash: string) => any; }} */
|
|
66
64
|
this.pict;
|
|
67
65
|
|
|
66
|
+
if (!this.fable.PictDynamicApplication)
|
|
67
|
+
{
|
|
68
|
+
throw new Error('PictSectionForm instantiation attempt without a PictDynamicApplication service in fable -- cannot instantiate.');
|
|
69
|
+
}
|
|
70
|
+
|
|
68
71
|
this.fable.addServiceTypeIfNotExists('TransactionTracking', libFableServiceTransactionTracking);
|
|
69
72
|
|
|
70
73
|
// Use this to manage transactions
|
|
71
74
|
/** @type {import('../services/Fable-Service-TransactionTracking.js')} */
|
|
72
75
|
this.transactionTracking = this.fable.instantiateServiceProviderWithoutRegistration('TransactionTracking');
|
|
73
76
|
|
|
74
|
-
// Load the dynamic application dependencies if they don't exist
|
|
75
|
-
this.fable.addAndInstantiateSingletonService('PictDynamicApplication', libPictDynamicApplication.default_configuration, libPictDynamicApplication);
|
|
76
|
-
|
|
77
77
|
/** @type {Record<string, any>} */
|
|
78
78
|
this._PackagePictView = this._Package;
|
|
79
79
|
this._Package = libPackage;
|
|
@@ -640,23 +640,6 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
640
640
|
}
|
|
641
641
|
}
|
|
642
642
|
|
|
643
|
-
/**
|
|
644
|
-
* Add a dynamic view to the metacontroller.
|
|
645
|
-
* @param {string} pViewHash
|
|
646
|
-
* @param {Object} pViewConfiguration
|
|
647
|
-
* @return {libPictViewDynamicForm}
|
|
648
|
-
*/
|
|
649
|
-
addDynamicView(pViewHash, pViewConfiguration)
|
|
650
|
-
{
|
|
651
|
-
if (pViewHash in this.pict.views)
|
|
652
|
-
{
|
|
653
|
-
this.log.error(`addDynamicView() called with a view hash that already exists [${pViewHash}].`);
|
|
654
|
-
return null;
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
return this.pict.addView(pViewHash, pViewConfiguration, libPictViewDynamicForm);
|
|
658
|
-
}
|
|
659
|
-
|
|
660
643
|
/**
|
|
661
644
|
* Returns whether the object is a Pict Metacontroller.
|
|
662
645
|
*
|
|
@@ -78,6 +78,8 @@ suite
|
|
|
78
78
|
|
|
79
79
|
tmpViewConfiguration.Manifests = { Section: manifestPostcard };
|
|
80
80
|
|
|
81
|
+
_Pict.addAndInstantiateSingletonService('PictDynamicApplication', libPictSectionForm.PictDynamicApplicationService.default_configuration, libPictSectionForm.PictDynamicApplicationService);
|
|
82
|
+
|
|
81
83
|
let _PictSectionForm = _Pict.addView(tmpViewHash, tmpViewConfiguration, libPictSectionForm);
|
|
82
84
|
|
|
83
85
|
Expect(_PictSectionForm).to.be.an('object');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-MetaLists.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetaLists.js"],"names":[],"mappings":";AAaA;;GAEG;AACH;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAsBhB;IAfA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAQV,kBAAuB;IACvB,oBAAyB;IAG1B;;;;;OAKG;IACH,mBAHW,MAAM,SAUhB;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;IAEC;;;;;;OAMG;IACH,oBAJW,MAAM,YACN,MAAM,gBACN,MAAM,EAsBhB;IAfA,kBAAkB;IAClB,SADW,GAAG,CACF;IACZ,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,6BAA6B;IAC7B,OADW,OAAO,MAAM,CAAC,CACf;IAQV,kBAAuB;IACvB,oBAAyB;IAG1B;;;;;OAKG;IACH,mBAHW,MAAM,SAUhB;IAED;;;;;OAKG;IACH,mBAHW,MAAM,GACJ,OAAO,CAKnB;IAED;;;OAGG;IACH,iDAsBC;IAED;;;;OAIG;IACH,6BAFW,MAAM,QAQhB;IAED;;;;OAIG;IACH,qCAwGC;CACD;;;;;AA9ND,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
|
@@ -7,7 +7,8 @@ declare class PictMetatemplateGenerator extends libPictProvider {
|
|
|
7
7
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
8
8
|
/** @type {import('pict')} */
|
|
9
9
|
pict: import("pict");
|
|
10
|
-
|
|
10
|
+
/** @type {libPictViewDynamicForm} */
|
|
11
|
+
dynamicInputView: libPictViewDynamicForm;
|
|
11
12
|
baseTemplatePrefix: string;
|
|
12
13
|
onInitializeAsync(fCallback: any): any;
|
|
13
14
|
createOnDemandMetatemplateView(): void;
|
|
@@ -82,6 +83,7 @@ declare namespace PictMetatemplateGenerator {
|
|
|
82
83
|
export { _DefaultProviderConfiguration as default_configuration };
|
|
83
84
|
}
|
|
84
85
|
import libPictProvider = require("pict-provider");
|
|
86
|
+
import libPictViewDynamicForm = require("../views/Pict-View-DynamicForm.js");
|
|
85
87
|
/** @type {Record<string, any>} */
|
|
86
88
|
declare const _DefaultProviderConfiguration: Record<string, any>;
|
|
87
89
|
//# sourceMappingURL=Pict-Provider-MetatemplateGenerator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Provider-MetatemplateGenerator.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetatemplateGenerator.js"],"names":[],"mappings":";AAkDA;;;GAGG;AACH;IAEC,
|
|
1
|
+
{"version":3,"file":"Pict-Provider-MetatemplateGenerator.d.ts","sourceRoot":"","sources":["../../../source/providers/Pict-Provider-MetatemplateGenerator.js"],"names":[],"mappings":";AAkDA;;;GAGG;AACH;IAEC,2DAeC;IATA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IAIT,qCAAqC;IACrC,kBADW,sBAAsB,CACZ;IAErB,2BAAwC;IAGzC,uCAIC;IAED,uCAYC;IAED;;;;;;;OAOG;IACH,kEAJW,MAAM,2BACN,MAAM,GACJ,MAAM,CAmBlB;IAED;;;;;;;OAOG;IACH,+DAJW,MAAM,oBACN,MAAM,GACJ,MAAM,CAKlB;IAED;;;;;;;;OAQG;IACH,6DALW,MAAM,cACN,MAAM,oBACN,MAAM,GACJ,MAAM,CA4BlB;IAED;;;;;;;;;;OAUG;IACH,oEAPW,MAAM,cACN,MAAM,oBACN,MAAM,eACN,MAAM,aACN,MAAM,GACJ,MAAM,CAqDlB;IAED;;;;;;;;OAQG;IACH,qEALW,MAAM,cACN,MAAM,oBACN,MAAM,GACJ,MAAM,CA4BlB;IAED;;;;;;OAMG;IACH,qDA2BC;IAED;;;;;;OAMG;IACH,wCA8BC;CACD;;;;;;AArVD,kCAAkC;AAClC,6CADW,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAS3B"}
|
package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts
CHANGED
|
@@ -11,9 +11,10 @@ declare class PictTemplateInputWithViewAndDescriptorAddressTemplate extends libP
|
|
|
11
11
|
constructor(pFable: any, pOptions: any, pServiceHash: string);
|
|
12
12
|
/** @type {import('pict')} */
|
|
13
13
|
pict: import("pict");
|
|
14
|
-
/** @type {import('pict') & { ManifestFactory: import('../services/ManifestFactory.js') }} */
|
|
14
|
+
/** @type {import('pict') & { ManifestFactory: import('../services/ManifestFactory.js'), DataFormat: any }} */
|
|
15
15
|
fable: import("pict") & {
|
|
16
16
|
ManifestFactory: import("../services/ManifestFactory.js");
|
|
17
|
+
DataFormat: any;
|
|
17
18
|
};
|
|
18
19
|
/** @type {any} */
|
|
19
20
|
log: any;
|
package/types/source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,
|
|
1
|
+
{"version":3,"file":"Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.d.ts","sourceRoot":"","sources":["../../../source/templates/Pict-Template-Metatemplate-InputWithViewAndDescriptorAddress.js"],"names":[],"mappings":";AAEA;;GAEG;AACH;IAEC;;;;OAIG;IACH,8DAeC;IAXA,6BAA6B;IAC7B,MADW,OAAO,MAAM,CAAC,CAChB;IACT,8GAA8G;IAC9G,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,eAAe,EAAE,OAAO,gCAAgC,CAAC,CAAC;QAAC,UAAU,EAAE,GAAG,CAAA;KAAE,CAChG;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IAKR,0BAA0B;IAiF3B;;;;;;;;;;OAUG;IACH,2BARW,MAAM,WACN,MAAM,aACN,WAAW,IAAI,iCAEf,GAAG,GAEF,IAAI,CAiEf;IAED,2CAsCC;CACD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Pict-View-DynamicForm.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-DynamicForm.js"],"names":[],"mappings":"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"}
|
|
@@ -123,13 +123,6 @@ declare class PictFormMetacontroller extends libPictViewClass {
|
|
|
123
123
|
* @param {string} pEvent - The event to trigger
|
|
124
124
|
*/
|
|
125
125
|
triggerGlobalInputEvent(pEvent: string): void;
|
|
126
|
-
/**
|
|
127
|
-
* Add a dynamic view to the metacontroller.
|
|
128
|
-
* @param {string} pViewHash
|
|
129
|
-
* @param {Object} pViewConfiguration
|
|
130
|
-
* @return {libPictViewDynamicForm}
|
|
131
|
-
*/
|
|
132
|
-
addDynamicView(pViewHash: string, pViewConfiguration: any): libPictViewDynamicForm;
|
|
133
126
|
/**
|
|
134
127
|
* Returns whether the object is a Pict Metacontroller.
|
|
135
128
|
*
|
|
@@ -141,7 +134,6 @@ declare namespace PictFormMetacontroller {
|
|
|
141
134
|
export { default_configuration, SortFunction };
|
|
142
135
|
}
|
|
143
136
|
import libPictViewClass = require("pict-view");
|
|
144
|
-
import libPictViewDynamicForm = require("./Pict-View-DynamicForm.js");
|
|
145
137
|
declare const default_configuration: Record<string, any>;
|
|
146
138
|
type SortFunction = (a: any, b: any) => number;
|
|
147
139
|
//# sourceMappingURL=Pict-View-Form-Metacontroller.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAeC;IAPA,+BAAuC;IAEvC,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAGnC;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mCAGC;IAED;;;OAGG;IACH,6BAFW,MAAM,OAKhB;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAsBhB;IA2BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAmHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEA+HC;IA3GA,yBAAiD;IA6GlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED
|
|
1
|
+
{"version":3,"file":"Pict-View-Form-Metacontroller.d.ts","sourceRoot":"","sources":["../../../source/views/Pict-View-Form-Metacontroller.js"],"names":[],"mappings":";AASA;;GAEG;AAEH;;;;;;GAMG;AACH;IAEC,2DAeC;IAPA,+BAAuC;IAEvC,yBAA2B;IAE3B,wBAAsF;IAEtF,cAAkC;IAGnC;;;;OAIG;IACH,qBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mBAFa,GAAG,CAaf;IAED;;;;OAIG;IACH,mCAGC;IAED;;;OAGG;IACH,6BAFW,MAAM,OAKhB;IAED,yCAYC;IAED;;;;;OAKG;IACH,kCAHW,aAAa,GACX,IAAI,CAsBhB;IA2BD;;;;OAIG;IACH,WAFa,GAAG,CAMf;IAED,gDAGC;IAED,+CAGC;IAED;;;;;;;;OAQG;IACH,wDAHW,YAAY,SAmHtB;IAED;;;;;;;OAOG;IACH,4CAHW,MAAM,GACJ,IAAI,CAShB;IAED;;;;OAIG;IACH,6BAFa,IAAI,CAQhB;IAED;;;;;;;OAOG;IACH,+DAFW,YAAY,QAatB;IAED;;;;;OAKG;IACH,8EAFW,YAAY,QAmBtB;IAED;;;;;;OAMG;IACH,oEAHW,YAAY,GACV,IAAI,CAkDhB;IAED;;;;;OAKG;IACH,qCAHW,MAAM,GACJ,MAAM,GAAC,OAAO,CA2C1B;IAED;;;;;OAKG;IACH,qEA+HC;IA3GA,yBAAiD;IA6GlD;;;OAGG;IACH,gCAFW,MAAM,QAgBhB;IAED;;;;OAIG;IACH,4BAFa,OAAO,CAKnB;CACD;;;;;qCAGU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;oBApoBjB,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,MAAM"}
|