@memberjunction/codegen-lib 2.115.0 → 2.117.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/Angular/angular-codegen.d.ts +50 -3
- package/dist/Angular/angular-codegen.d.ts.map +1 -1
- package/dist/Angular/angular-codegen.js +364 -118
- package/dist/Angular/angular-codegen.js.map +1 -1
- package/dist/Angular/related-entity-components.d.ts +6 -0
- package/dist/Angular/related-entity-components.d.ts.map +1 -1
- package/dist/Angular/related-entity-components.js +7 -0
- package/dist/Angular/related-entity-components.js.map +1 -1
- package/dist/Angular/user-view-grid-related-entity-component.d.ts +1 -1
- package/dist/Angular/user-view-grid-related-entity-component.d.ts.map +1 -1
- package/dist/Angular/user-view-grid-related-entity-component.js +14 -12
- package/dist/Angular/user-view-grid-related-entity-component.js.map +1 -1
- package/dist/Config/config.d.ts +0 -18
- package/dist/Config/config.d.ts.map +1 -1
- package/dist/Config/config.js +2 -2
- package/dist/Config/config.js.map +1 -1
- package/dist/Database/manage-metadata.d.ts +48 -7
- package/dist/Database/manage-metadata.d.ts.map +1 -1
- package/dist/Database/manage-metadata.js +383 -146
- package/dist/Database/manage-metadata.js.map +1 -1
- package/dist/Database/sql.d.ts.map +1 -1
- package/dist/Database/sql.js +134 -28
- package/dist/Database/sql.js.map +1 -1
- package/dist/Database/sql_codegen.d.ts.map +1 -1
- package/dist/Database/sql_codegen.js +3 -2
- package/dist/Database/sql_codegen.js.map +1 -1
- package/dist/Misc/action_subclasses_codegen.d.ts.map +1 -1
- package/dist/Misc/action_subclasses_codegen.js +5 -2
- package/dist/Misc/action_subclasses_codegen.js.map +1 -1
- package/dist/Misc/advanced_generation.d.ts +80 -22
- package/dist/Misc/advanced_generation.d.ts.map +1 -1
- package/dist/Misc/advanced_generation.js +248 -142
- package/dist/Misc/advanced_generation.js.map +1 -1
- package/dist/Misc/entity_subclasses_codegen.d.ts.map +1 -1
- package/dist/Misc/entity_subclasses_codegen.js +6 -1
- package/dist/Misc/entity_subclasses_codegen.js.map +1 -1
- package/dist/runCodeGen.d.ts.map +1 -1
- package/dist/runCodeGen.js +7 -0
- package/dist/runCodeGen.js.map +1 -1
- package/package.json +10 -10
|
@@ -13,7 +13,7 @@ export declare class AngularFormSectionInfo {
|
|
|
13
13
|
*/
|
|
14
14
|
Name: string;
|
|
15
15
|
/**
|
|
16
|
-
* The generated HTML code for the tab
|
|
16
|
+
* The generated HTML code for the section (panel or tab)
|
|
17
17
|
*/
|
|
18
18
|
TabCode: string;
|
|
19
19
|
/**
|
|
@@ -52,6 +52,14 @@ export declare class AngularFormSectionInfo {
|
|
|
52
52
|
* The generation result for related entity components
|
|
53
53
|
*/
|
|
54
54
|
GeneratedOutput?: GenerationResult;
|
|
55
|
+
/**
|
|
56
|
+
* The minimum sequence number from fields in this section (used for sorting)
|
|
57
|
+
*/
|
|
58
|
+
MinSequence?: number;
|
|
59
|
+
/**
|
|
60
|
+
* The unique camelCase key used for this section in the sectionsExpanded object
|
|
61
|
+
*/
|
|
62
|
+
UniqueKey?: string;
|
|
55
63
|
}
|
|
56
64
|
/**
|
|
57
65
|
* Base class for generating Angular client code for MemberJunction entities.
|
|
@@ -146,15 +154,17 @@ export declare class AngularClientGeneratorBase {
|
|
|
146
154
|
* @param sections Array of existing sections
|
|
147
155
|
* @param type The type of section to add
|
|
148
156
|
* @param name The name of the section
|
|
157
|
+
* @param fieldSequence Optional sequence number of the field (used to track minimum sequence for sorting)
|
|
149
158
|
*/
|
|
150
|
-
protected AddSectionIfNeeded(entity: EntityInfo, sections: AngularFormSectionInfo[], type: GeneratedFormSectionType, name: string): void;
|
|
159
|
+
protected AddSectionIfNeeded(entity: EntityInfo, sections: AngularFormSectionInfo[], type: GeneratedFormSectionType, name: string, fieldSequence?: number): void;
|
|
151
160
|
/**
|
|
152
161
|
* Generates additional form sections based on entity field metadata
|
|
153
162
|
* @param entity The entity to generate sections for
|
|
154
163
|
* @param startIndex Starting index for tab ordering
|
|
164
|
+
* @param categoryIcons Optional map of category names to Font Awesome icon classes
|
|
155
165
|
* @returns Array of generated form sections
|
|
156
166
|
*/
|
|
157
|
-
protected generateAngularAdditionalSections(entity: EntityInfo, startIndex: number): AngularFormSectionInfo[];
|
|
167
|
+
protected generateAngularAdditionalSections(entity: EntityInfo, startIndex: number, categoryIcons?: Record<string, string>): AngularFormSectionInfo[];
|
|
158
168
|
/**
|
|
159
169
|
* Generates HTML for a specific form section
|
|
160
170
|
* @param entity The entity containing the fields
|
|
@@ -184,6 +194,35 @@ export declare class AngularClientGeneratorBase {
|
|
|
184
194
|
* @returns String with all whitespace removed
|
|
185
195
|
*/
|
|
186
196
|
protected stripWhiteSpace(s: string): string;
|
|
197
|
+
/**
|
|
198
|
+
* Converts a string to camelCase and sanitizes it for use as a JavaScript identifier
|
|
199
|
+
* @param str The string to convert
|
|
200
|
+
* @returns String in camelCase format, safe for use as object key or variable name
|
|
201
|
+
*/
|
|
202
|
+
protected camelCase(str: string): string;
|
|
203
|
+
/**
|
|
204
|
+
* Converts a string to PascalCase and sanitizes it for use as a class name
|
|
205
|
+
* @param str The string to convert
|
|
206
|
+
* @returns String in PascalCase format, safe for use as a class name
|
|
207
|
+
*/
|
|
208
|
+
protected pascalCase(str: string): string;
|
|
209
|
+
/**
|
|
210
|
+
* Sanitizes a string to create a valid filename in lowercase format.
|
|
211
|
+
* Removes all non-alphanumeric characters (except spaces) and converts to lowercase.
|
|
212
|
+
* Used for creating component filenames that are safe across all file systems.
|
|
213
|
+
*
|
|
214
|
+
* Example: "Timeline & Budget" → "timelinebudget"
|
|
215
|
+
*
|
|
216
|
+
* @param str The string to sanitize
|
|
217
|
+
* @returns A sanitized lowercase filename string
|
|
218
|
+
*/
|
|
219
|
+
protected sanitizeFilename(str: string): string;
|
|
220
|
+
/**
|
|
221
|
+
* Maps category names to appropriate Font Awesome icon classes
|
|
222
|
+
* @param category The category name to map
|
|
223
|
+
* @returns Font Awesome icon class string
|
|
224
|
+
*/
|
|
225
|
+
protected getIconForCategory(category: string): string;
|
|
187
226
|
/**
|
|
188
227
|
* Generates the complete HTML template for a single entity form
|
|
189
228
|
* @param entity The entity to generate HTML for
|
|
@@ -210,6 +249,14 @@ export declare class AngularClientGeneratorBase {
|
|
|
210
249
|
*/
|
|
211
250
|
protected innerTopAreaHTML(topArea: string): string;
|
|
212
251
|
/**
|
|
252
|
+
* Generates the HTML for collapsible panels containing all form sections
|
|
253
|
+
* @param additionalSections Array of field-based form sections
|
|
254
|
+
* @param relatedEntitySections Array of related entity sections
|
|
255
|
+
* @returns HTML string for all collapsible panels
|
|
256
|
+
*/
|
|
257
|
+
protected innerCollapsiblePanelsHTML(additionalSections: AngularFormSectionInfo[], relatedEntitySections: AngularFormSectionInfo[]): string;
|
|
258
|
+
/**
|
|
259
|
+
* @deprecated Use innerCollapsiblePanelsHTML instead
|
|
213
260
|
* Generates the HTML for the tab strip containing all form sections
|
|
214
261
|
* @param additionalSections Array of field-based form sections
|
|
215
262
|
* @param relatedEntitySections Array of related entity sections
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-codegen.d.ts","sourceRoot":"","sources":["../../src/Angular/angular-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,wBAAwB,EAAyD,QAAQ,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"angular-codegen.d.ts","sourceRoot":"","sources":["../../src/Angular/angular-codegen.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,wBAAwB,EAAyD,QAAQ,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAKtL,OAAO,EAAE,gBAAgB,EAA8C,MAAM,6BAA6B,CAAC;AAG3G;;GAEG;AACH,qBAAa,sBAAsB;IAC/B;;OAEG;IACH,IAAI,EAAG,wBAAwB,CAAC;IAEhC;;OAEG;IACH,IAAI,EAAG,MAAM,CAAC;IAEd;;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