Skip to content

Commit 1ab4395

Browse files
committed
WIP configure feature type attachment attributes
1 parent 147976c commit 1ab4395

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import { AttributeSettingsModel } from './attribute-settings.model';
22
import { FeatureTypeTemplateModel } from './feature-type-template.model';
33

4+
export interface AttachmentAttributeModel {
5+
attributeName: string;
6+
mimeType: string | null;
7+
maxAttachmentSize: number | null;
8+
}
9+
410
export interface FeatureTypeSettingsModel {
511
template?: FeatureTypeTemplateModel;
612
attributeOrder?: string[];
713
hideAttributes?: string[];
814
readOnlyAttributes?: string[];
915
attributeSettings?: Record<string, AttributeSettingsModel>;
16+
attachmentAttributes?: AttachmentAttributeModel[];
1017
}

projects/admin-core/src/lib/catalog/feature-type-attributes/feature-type-attributes.component.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
.attributes-wrapper {
22
--selected-items-count: 0;
33
display: flex;
4+
flex-wrap: wrap;
45
padding: 20px 1px 1px 1px;
56
}
67

@@ -23,6 +24,16 @@
2324
text-overflow: ellipsis;
2425
}
2526

27+
.attachments-attributes {
28+
flex: 1 0 100%;
29+
padding-top: 20px;
30+
padding-right: 20px;
31+
}
32+
33+
.attachments-attributes mat-card {
34+
35+
}
36+
2637
mat-header-cell {
2738
font-weight: bold;
2839
}

projects/admin-core/src/lib/catalog/feature-type-attributes/feature-type-attributes.component.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,13 @@
116116
}
117117
</mat-card-content>
118118
</mat-card>
119+
<div class="attachments-attributes">
120+
<mat-card>
121+
<mat-card-title>Attachment attributes</mat-card-title>
122+
<mat-card-content>
123+
<!--tm-feature-type-attachment-attributes></tm-feature-type-attachment-attributes-->
124+
</mat-card-content>
125+
</mat-card>
126+
</div>
119127

120128
</div>

projects/admin-core/src/lib/catalog/feature-type-form/feature-type-form.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class FeatureTypeFormComponent {
7373
attributeSettings: currentUpdatedValue?.settings?.attributeSettings || featureType.settings.attributeSettings || {},
7474
hideAttributes: currentUpdatedValue?.settings?.hideAttributes || featureType.settings.hideAttributes || [],
7575
readOnlyAttributes: currentUpdatedValue?.settings?.readOnlyAttributes || featureType.settings.readOnlyAttributes || [],
76+
attachmentAttributes: featureType.settings.attachmentAttributes || [],
7677
attributeOrder: currentUpdatedValue?.settings?.attributeOrder || featureType.settings.attributeOrder || [],
7778
template: currentUpdatedValue?.settings?.template || featureType.settings.template || undefined,
7879
},

0 commit comments

Comments
 (0)