@mintplayer/ng-spark 0.0.1 → 0.0.4
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/package.json
CHANGED
|
@@ -53,6 +53,7 @@ interface PersistentObjectAttribute {
|
|
|
53
53
|
showedOn?: ShowedOn | string;
|
|
54
54
|
isValueChanged?: boolean;
|
|
55
55
|
rules: ValidationRule[];
|
|
56
|
+
group?: string;
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
interface PersistentObject {
|
|
@@ -90,6 +91,26 @@ interface EntityAttributeDefinition {
|
|
|
90
91
|
*/
|
|
91
92
|
showedOn?: ShowedOn | string;
|
|
92
93
|
rules: ValidationRule[];
|
|
94
|
+
/** References an AttributeGroup.id to assign this attribute to a group */
|
|
95
|
+
group?: string;
|
|
96
|
+
/** Number of grid columns this attribute spans within a tab's column layout */
|
|
97
|
+
columnSpan?: number;
|
|
98
|
+
}
|
|
99
|
+
interface AttributeTab {
|
|
100
|
+
id: string;
|
|
101
|
+
name: string;
|
|
102
|
+
label?: TranslatedString;
|
|
103
|
+
order: number;
|
|
104
|
+
/** Number of columns for the grid layout within this tab */
|
|
105
|
+
columnCount?: number;
|
|
106
|
+
}
|
|
107
|
+
interface AttributeGroup {
|
|
108
|
+
id: string;
|
|
109
|
+
name: string;
|
|
110
|
+
label?: TranslatedString;
|
|
111
|
+
/** References an AttributeTab.id to assign this group to a tab */
|
|
112
|
+
tab?: string;
|
|
113
|
+
order: number;
|
|
93
114
|
}
|
|
94
115
|
interface EntityType {
|
|
95
116
|
id: string;
|
|
@@ -106,6 +127,8 @@ interface EntityType {
|
|
|
106
127
|
* (Fallback) Single attribute name to use as display value when displayFormat is not specified.
|
|
107
128
|
*/
|
|
108
129
|
displayAttribute?: string;
|
|
130
|
+
tabs?: AttributeTab[];
|
|
131
|
+
groups?: AttributeGroup[];
|
|
109
132
|
attributes: EntityAttributeDefinition[];
|
|
110
133
|
}
|
|
111
134
|
|
|
@@ -324,6 +347,11 @@ declare class SparkPoFormComponent {
|
|
|
324
347
|
lookupSearchTerm: _angular_core.WritableSignal<string>;
|
|
325
348
|
ELookupDisplayType: typeof ELookupDisplayType;
|
|
326
349
|
editableAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
350
|
+
private static readonly DEFAULT_TAB;
|
|
351
|
+
ungroupedAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
352
|
+
resolvedTabs: _angular_core.Signal<AttributeTab[]>;
|
|
353
|
+
groupsForTab(tab: AttributeTab): AttributeGroup[];
|
|
354
|
+
attrsForGroup(group: AttributeGroup): EntityAttributeDefinition[];
|
|
327
355
|
referenceVisibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
328
356
|
filteredLookupItems: _angular_core.Signal<LookupReferenceValue[]>;
|
|
329
357
|
getFieldTemplate(attr: EntityAttributeDefinition): TemplateRef<SparkFieldTemplateContext> | null;
|
|
@@ -456,6 +484,11 @@ declare class SparkPoDetailComponent {
|
|
|
456
484
|
constructor();
|
|
457
485
|
private onParamsChange;
|
|
458
486
|
visibleAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
487
|
+
private static readonly DEFAULT_TAB;
|
|
488
|
+
ungroupedAttributes: _angular_core.Signal<EntityAttributeDefinition[]>;
|
|
489
|
+
resolvedTabs: _angular_core.Signal<AttributeTab[]>;
|
|
490
|
+
groupsForTab(tab: AttributeTab): AttributeGroup[];
|
|
491
|
+
attrsForGroup(group: AttributeGroup): EntityAttributeDefinition[];
|
|
459
492
|
getDetailFieldTemplate(attr: EntityAttributeDefinition): TemplateRef<SparkDetailFieldTemplateContext> | null;
|
|
460
493
|
getDetailFieldContext(attr: EntityAttributeDefinition, item: PersistentObject): SparkDetailFieldTemplateContext;
|
|
461
494
|
private loadLookupReferenceOptions;
|
|
@@ -699,4 +732,4 @@ declare function sparkRoutes(config?: SparkRouteConfig): Routes;
|
|
|
699
732
|
declare function provideSpark(config?: Partial<SparkConfig>): Provider[];
|
|
700
733
|
|
|
701
734
|
export { ArrayValuePipe, AsDetailCellValuePipe, AsDetailColumnsPipe, AsDetailDisplayValuePipe, AsDetailTypePipe, AttributeValuePipe, CanCreateDetailRowPipe, CanDeleteDetailRowPipe, ELookupDisplayType, ErrorForAttributePipe, IconNamePipe, InlineRefOptionsPipe, InputTypePipe, LookupDisplayTypePipe, LookupDisplayValuePipe, LookupOptionsPipe, RawAttributeValuePipe, ReferenceAttrValuePipe, ReferenceDisplayValuePipe, ReferenceLinkRoutePipe, ResolveTranslationPipe, RetryActionService, RouterLinkPipe, SPARK_CONFIG, ShowedOn, SparkColumnTemplateDirective, SparkDetailFieldTemplateDirective, SparkFieldTemplateDirective, SparkIconComponent, SparkIconRegistry, SparkLanguageService, SparkPoCreateComponent, SparkPoDetailComponent, SparkPoEditComponent, SparkPoFormComponent, SparkQueryListComponent, SparkRetryActionModalComponent, SparkService, TranslateKeyPipe, defaultSparkConfig, hasShowedOnFlag, provideSpark, resolveTranslation, sparkRoutes };
|
|
702
|
-
export type { CustomActionDefinition, EntityAttributeDefinition, EntityPermissions, EntityType, LookupReference, LookupReferenceListItem, LookupReferenceValue, PersistentObject, PersistentObjectAttribute, ProgramUnit, ProgramUnitGroup, ProgramUnitsConfiguration, RetryActionPayload, RetryActionResult, SparkColumnTemplateContext, SparkConfig, SparkDetailFieldTemplateContext, SparkFieldTemplateContext, SparkQuery, SparkRouteConfig, TranslatedString, ValidationError, ValidationRule };
|
|
735
|
+
export type { AttributeGroup, AttributeTab, CustomActionDefinition, EntityAttributeDefinition, EntityPermissions, EntityType, LookupReference, LookupReferenceListItem, LookupReferenceValue, PersistentObject, PersistentObjectAttribute, ProgramUnit, ProgramUnitGroup, ProgramUnitsConfiguration, RetryActionPayload, RetryActionResult, SparkColumnTemplateContext, SparkConfig, SparkDetailFieldTemplateContext, SparkFieldTemplateContext, SparkQuery, SparkRouteConfig, TranslatedString, ValidationError, ValidationRule };
|