pict-section-form 1.0.104 → 1.0.105
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/Pict-Application-Postcard.js +1 -0
- package/package.json +2 -2
- package/source/Pict-Section-Form.js +1 -1
- package/source/services/{Pict-Service-DynamicApplication.js → Pict-Service-DynamicFormDependencyManager.js} +3 -3
- package/source/views/Pict-View-DynamicForm.js +1 -1
- package/source/views/Pict-View-Form-Metacontroller.js +2 -2
- package/test/PictSectionForm-Basic_tests.js +1 -1
- package/types/source/Pict-Section-Form.d.ts +1 -1
- package/types/source/services/{Pict-Service-DynamicApplication.d.ts → Pict-Service-DynamicFormDependencyManager.d.ts} +4 -4
- package/types/source/services/Pict-Service-DynamicFormDependencyManager.d.ts.map +1 -0
- package/types/source/services/Pict-Service-DynamicApplication.d.ts.map +0 -1
|
@@ -76,6 +76,7 @@ class PostcardApplication extends libPictApplication
|
|
|
76
76
|
|
|
77
77
|
// Set a custom address for all the views to marshal to.
|
|
78
78
|
// This can also be set on specific views (same property)
|
|
79
|
+
this.pict.AppData.PostKard = { };
|
|
79
80
|
this.pict.views.PictFormMetacontroller.viewMarshalDestination = 'AppData.PostKard';
|
|
80
81
|
|
|
81
82
|
this.pict.views.PostcardNavigation.render()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pict-section-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.105",
|
|
4
4
|
"description": "Pict dynamic form sections",
|
|
5
5
|
"main": "source/Pict-Section-Form.js",
|
|
6
6
|
"directories": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"browser-env": "^3.3.0",
|
|
32
32
|
"eslint": "^9.26.0",
|
|
33
33
|
"jquery": "^3.7.1",
|
|
34
|
-
"pict": "^1.0.
|
|
34
|
+
"pict": "^1.0.281",
|
|
35
35
|
"pict-application": "^1.0.27",
|
|
36
36
|
"pict-service-commandlineutility": "^1.0.15",
|
|
37
37
|
"quackage": "^1.0.42",
|
|
@@ -5,7 +5,7 @@ module.exports = require('./views/Pict-View-DynamicForm.js');
|
|
|
5
5
|
//module.exports.default_configuration = require('./views/Pict-View-DynamicForm-DefaultConfiguration.json');
|
|
6
6
|
|
|
7
7
|
// The dynamic application dependencies
|
|
8
|
-
module.exports.
|
|
8
|
+
module.exports.PictDynamicFormDependencyManager = require('./services/Pict-Service-DynamicFormDependencyManager.js');
|
|
9
9
|
|
|
10
10
|
// The base provider class for form section templates; meant to be subclassed
|
|
11
11
|
module.exports.PictFormTemplateProvider = require('./providers/Pict-Provider-DynamicTemplates.js');
|
|
@@ -23,7 +23,7 @@ const libPictLayoutCustom = require('../providers/layouts/Pict-Layout-Custom.js'
|
|
|
23
23
|
|
|
24
24
|
const libInformary = require('../providers/Pict-Provider-Informary.js');
|
|
25
25
|
|
|
26
|
-
class
|
|
26
|
+
class PictDynamicFormDependencyManager extends libFableServiceProviderBase
|
|
27
27
|
{
|
|
28
28
|
constructor(pFable, pOptions, pServiceHash)
|
|
29
29
|
{
|
|
@@ -63,7 +63,7 @@ class PictDynamicApplication extends libFableServiceProviderBase
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
module.exports =
|
|
66
|
+
module.exports = PictDynamicFormDependencyManager;
|
|
67
67
|
|
|
68
68
|
/** @type {Record<string, any>} */
|
|
69
|
-
|
|
69
|
+
PictDynamicFormDependencyManager.default_configuration = { };
|
|
@@ -63,7 +63,7 @@ class PictViewDynamicForm extends libPictViewClass
|
|
|
63
63
|
/** @type {import('pict') & { PictApplication: import('pict-application'), log: any; instantiateServiceProviderWithoutRegistration: (hash: string) => any; }} */
|
|
64
64
|
this.pict;
|
|
65
65
|
|
|
66
|
-
if (!this.fable.
|
|
66
|
+
if (!this.fable.PictDynamicFormDependencyManager)
|
|
67
67
|
{
|
|
68
68
|
throw new Error('PictSectionForm instantiation attempt without a PictDynamicApplication service in fable -- cannot instantiate.');
|
|
69
69
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const libPictViewClass = require('pict-view');
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const libPictDynamicFormDependencyManager = require(`../services/Pict-Service-DynamicFormDependencyManager.js`);
|
|
4
4
|
const libPictViewDynamicForm = require('./Pict-View-DynamicForm.js');
|
|
5
5
|
|
|
6
6
|
// TODO: Potentially create an internalized list of views for this to manage, separate from the pict.views object
|
|
@@ -26,7 +26,7 @@ class PictFormMetacontroller extends libPictViewClass
|
|
|
26
26
|
this.serviceType = 'PictFormMetacontroller';
|
|
27
27
|
|
|
28
28
|
// Load the dynamic application dependencies if they don't exist
|
|
29
|
-
this.fable.addAndInstantiateSingletonService('
|
|
29
|
+
this.fable.addAndInstantiateSingletonService('PictDynamicFormDependencyManager', libPictDynamicFormDependencyManager.default_configuration, libPictDynamicFormDependencyManager);
|
|
30
30
|
|
|
31
31
|
this.lastRenderedViews = [];
|
|
32
32
|
|
|
@@ -78,7 +78,7 @@ suite
|
|
|
78
78
|
|
|
79
79
|
tmpViewConfiguration.Manifests = { Section: manifestPostcard };
|
|
80
80
|
|
|
81
|
-
_Pict.addAndInstantiateSingletonService('
|
|
81
|
+
_Pict.addAndInstantiateSingletonService('PictDynamicFormDependencyManager', libPictSectionForm.PictDynamicFormDependencyManager.default_configuration, libPictSectionForm.PictDynamicFormDependencyManager);
|
|
82
82
|
|
|
83
83
|
let _PictSectionForm = _Pict.addView(tmpViewHash, tmpViewConfiguration, libPictSectionForm);
|
|
84
84
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare const _exports: {
|
|
2
2
|
new (pFable: any, pOptions: any, pServiceHash: any): import("./views/Pict-View-DynamicForm.js");
|
|
3
3
|
default_configuration: Record<string, any>;
|
|
4
|
-
|
|
4
|
+
PictDynamicFormDependencyManager: typeof import("./services/Pict-Service-DynamicFormDependencyManager.js");
|
|
5
5
|
PictFormTemplateProvider: typeof import("./providers/Pict-Provider-DynamicTemplates.js");
|
|
6
6
|
PictInputExtensionProvider: typeof import("./providers/Pict-Provider-InputExtension.js");
|
|
7
7
|
PictFormMetacontroller: typeof import("./views/Pict-View-Form-Metacontroller.js");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export =
|
|
2
|
-
declare class
|
|
1
|
+
export = PictDynamicFormDependencyManager;
|
|
2
|
+
declare class PictDynamicFormDependencyManager {
|
|
3
3
|
constructor(pFable: any, pOptions: any, pServiceHash: any);
|
|
4
4
|
/** @type {import('pict') & { addAndInstantiateSingletonService: (hash: string, options: any, prototype: any) => any }} */
|
|
5
5
|
fable: import("pict") & {
|
|
@@ -10,7 +10,7 @@ declare class PictDynamicApplication {
|
|
|
10
10
|
/** @type {string} */
|
|
11
11
|
UUID: string;
|
|
12
12
|
}
|
|
13
|
-
declare namespace
|
|
13
|
+
declare namespace PictDynamicFormDependencyManager {
|
|
14
14
|
let default_configuration: Record<string, any>;
|
|
15
15
|
}
|
|
16
|
-
//# sourceMappingURL=Pict-Service-
|
|
16
|
+
//# sourceMappingURL=Pict-Service-DynamicFormDependencyManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pict-Service-DynamicFormDependencyManager.d.ts","sourceRoot":"","sources":["../../../source/services/Pict-Service-DynamicFormDependencyManager.js"],"names":[],"mappings":";AAyBA;IAEC,2DAmCC;IA7BA,0HAA0H;IAC1H,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5G;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,qBAAqB;IACrB,MADW,MAAM,CACR;CAyBV;;+BAIU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Pict-Service-DynamicApplication.d.ts","sourceRoot":"","sources":["../../../source/services/Pict-Service-DynamicApplication.js"],"names":[],"mappings":";AAyBA;IAEC,2DAmCC;IA7BA,0HAA0H;IAC1H,OADW,OAAO,MAAM,CAAC,GAAG;QAAE,iCAAiC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,KAAK,GAAG,CAAA;KAAE,CAC5G;IACV,kBAAkB;IAClB,KADW,GAAG,CACN;IACR,qBAAqB;IACrB,MADW,MAAM,CACR;CAyBV;;+BAIU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC"}
|