jupiter-dynamic-forms 1.0.1 → 1.2.0
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/dist/core/dynamic-form.d.ts +2 -0
- package/dist/core/dynamic-form.d.ts.map +1 -1
- package/dist/index.js +8 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +197 -13
- package/dist/index.mjs.map +1 -1
- package/dist/schema/types.d.ts +3 -0
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/utils/xbrl-form-builder.d.ts +27 -3
- package/dist/utils/xbrl-form-builder.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { XBRLFormInput } from '../schema/xbrl-types';
|
|
2
|
-
import { XBRLFormSchema } from '../schema/types';
|
|
1
|
+
import { XBRLFormInput, XBRLPresentationRole, XBRLPresentationConcept } from '../schema/xbrl-types';
|
|
2
|
+
import { XBRLFormSchema, FormColumn } from '../schema/types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* XBRL Form Builder Service
|
|
@@ -11,7 +11,7 @@ export declare class XBRLFormBuilder {
|
|
|
11
11
|
* Build form schema from XBRL input data
|
|
12
12
|
* Creates accordion sections for each presentation role
|
|
13
13
|
*/
|
|
14
|
-
static buildFormSchema(xbrlInput: XBRLFormInput): XBRLFormSchema;
|
|
14
|
+
static buildFormSchema(xbrlInput: XBRLFormInput, periodStartDate?: string, periodEndDate?: string): XBRLFormSchema;
|
|
15
15
|
/**
|
|
16
16
|
* Build a form section from a presentation role
|
|
17
17
|
*/
|
|
@@ -32,6 +32,30 @@ export declare class XBRLFormBuilder {
|
|
|
32
32
|
* Get preferred label from labels array
|
|
33
33
|
*/
|
|
34
34
|
private static getPreferredLabel;
|
|
35
|
+
/**
|
|
36
|
+
* Assign appropriate column IDs to fields based on section's generated columns
|
|
37
|
+
*/
|
|
38
|
+
private static assignFieldColumnIds;
|
|
39
|
+
/**
|
|
40
|
+
* Recursively assign column IDs to fields in a concept tree
|
|
41
|
+
*/
|
|
42
|
+
private static assignColumnIdsToConceptFields;
|
|
43
|
+
/**
|
|
44
|
+
* Get all non-abstract concepts from a role recursively
|
|
45
|
+
*/
|
|
46
|
+
static getAllNonAbstractConcepts(role: XBRLPresentationRole): XBRLPresentationConcept[];
|
|
47
|
+
/**
|
|
48
|
+
* Recursively collect non-abstract concepts from a concept tree
|
|
49
|
+
*/
|
|
50
|
+
private static collectNonAbstractConcepts;
|
|
51
|
+
/**
|
|
52
|
+
* Generate default columns based on period types of non-abstract concepts in a role
|
|
53
|
+
*/
|
|
54
|
+
static generateDefaultColumnsForRole(role: XBRLPresentationRole, periodStartDate: string, periodEndDate: string): FormColumn[];
|
|
55
|
+
/**
|
|
56
|
+
* Format date for display in column headers
|
|
57
|
+
*/
|
|
58
|
+
private static formatDateForDisplay;
|
|
35
59
|
/**
|
|
36
60
|
* Extract entity name from entrypoint URL
|
|
37
61
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xbrl-form-builder.d.ts","sourceRoot":"","sources":["../../src/utils/xbrl-form-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,
|
|
1
|
+
{"version":3,"file":"xbrl-form-builder.d.ts","sourceRoot":"","sources":["../../src/utils/xbrl-form-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,oBAAoB,EACpB,uBAAuB,EAExB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EAGd,UAAU,EAGX,MAAM,iBAAiB,CAAC;AAEzB;;;;GAIG;AACH,qBAAa,eAAe;IAE1B;;;OAGG;IACH,MAAM,CAAC,eAAe,CACpB,SAAS,EAAE,aAAa,EACxB,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,GACrB,cAAc;IA6BjB;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAiCnC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAwC/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAuCrC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAgBrC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAmBhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAcnC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,8BAA8B;IA2B7C;;OAEG;IACH,MAAM,CAAC,yBAAyB,CAAC,IAAI,EAAE,oBAAoB,GAAG,uBAAuB,EAAE;IAYvF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,0BAA0B;IAiBzC;;OAEG;IACH,MAAM,CAAC,6BAA6B,CAClC,IAAI,EAAE,oBAAoB,EAC1B,eAAe,EAAE,MAAM,EACvB,aAAa,EAAE,MAAM,GACpB,UAAU,EAAE;IA+Ff;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAanC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAWhC;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAK/B;;OAEG;IACH,MAAM,CAAC,0BAA0B,IAA4B,GAAG,EAAE;CASnE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jupiter-dynamic-forms",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Framework-agnostic dynamic form builder for XBRL entrypoints using Web Components. Supports Angular 18+, React, Vue, and vanilla HTML.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|