Skip to content

Commit

Permalink
chore: npm run format
Browse files Browse the repository at this point in the history
  • Loading branch information
AlitaBernachot committed Feb 4, 2025
1 parent 9ec6376 commit 3d9381d
Show file tree
Hide file tree
Showing 10 changed files with 123 additions and 53 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
<div class="rounded bg-white shadow-md shadow-gray-300 border-[1px] border-gray-200 mx-[32px] my-[16px] text-sm">
<div class="flex flex-row py-3 px-4 gap-4 overflow-hidden grow border-[1px] border-gray-200">
<div
class="rounded bg-white shadow-md shadow-gray-300 border-[1px] border-gray-200 mx-[32px] my-[16px] text-sm"
>
<div
class="flex flex-row py-3 px-4 gap-4 overflow-hidden grow border-[1px] border-gray-200"
>
<ng-icon class="mt-0.5" name="iconoirFilterAlt"></ng-icon>
<gn-ui-filter-dropdown *ngFor="let filter of searchConfig; let i = index" [fieldName]="filter.fieldName"
[title]="filter.title | translate" [style.--gn-ui-button-height]="'32px'"
<gn-ui-filter-dropdown
*ngFor="let filter of searchConfig; let i = index"
[fieldName]="filter.fieldName"
[title]="filter.title | translate"
[style.--gn-ui-button-height]="'32px'"
[style.--gn-ui-multiselect-counter-text-color]="'var(--color-primary)'"
[style.--gn-ui-multiselect-counter-background-color]="'white'"></gn-ui-filter-dropdown>
[style.--gn-ui-multiselect-counter-background-color]="'white'"
></gn-ui-filter-dropdown>
</div>
<gn-ui-search-filters-summary [searchFields]="searchFields"></gn-ui-search-filters-summary>
</div>
<gn-ui-search-filters-summary
[searchFields]="searchFields"
></gn-ui-search-filters-summary>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
<ng-container *ngTemplateOutlet="fieldContent"></ng-container>
</ng-container>
<ng-template #withGenericWrapper>
<gn-ui-form-field-wrapper [label]="config.labelKey! | translate" [hint]="config.hintKey! | translate">
<gn-ui-form-field-wrapper
[label]="config.labelKey! | translate"
[hint]="config.hintKey! | translate"
>
<ng-container *ngTemplateOutlet="fieldContent"></ng-container>
</gn-ui-form-field-wrapper>
</ng-template>
Expand All @@ -21,56 +24,97 @@
<ng-container [ngSwitch]="model">
<ng-container *ngSwitchCase="'title'">
<div class="flex flex-row flex-start items-center gap-3 mb-[12px]">
<textarea #titleInput cdkTextareaAutosize #autosize="cdkTextareaAutosize" cdkAutosizeMinRows="1"
data-test="recordTitleInput" class="grow font-title text-3xl font-normal overflow-hidden"
<textarea
#titleInput
cdkTextareaAutosize
#autosize="cdkTextareaAutosize"
cdkAutosizeMinRows="1"
data-test="recordTitleInput"
class="grow font-title text-3xl font-normal overflow-hidden"
(change)="valueChange.emit($event.target.value)"
[placeholder]="'editor.record.form.field.title.placeholder' | translate">{{ valueAsString }}</textarea>
[placeholder]="
'editor.record.form.field.title.placeholder' | translate
"
>{{ valueAsString }}</textarea
>
<div class="flex flex-row justify-between self-start mt-0.5">
<span class="material-symbols-outlined gn-ui-icon-small m-2 cursor-pointer"
(click)="focusTitleInput()">edit</span>
<span *ngIf="config.hintKey" class="material-symbols-outlined gn-ui-icon-small m-2"
[matTooltip]="config.hintKey! | translate" matTooltipPosition="above">
<span
class="material-symbols-outlined gn-ui-icon-small m-2 cursor-pointer"
(click)="focusTitleInput()"
>edit</span
>
<span
*ngIf="config.hintKey"
class="material-symbols-outlined gn-ui-icon-small m-2"
[matTooltip]="config.hintKey! | translate"
matTooltipPosition="above"
>
help
</span>
</div>
</div>
</ng-container>
<ng-container *ngSwitchCase="'abstract'">
<gn-ui-form-field-rich [label]="config.labelKey! | translate" [hint]="config.hintKey! | translate"
[value]="valueAsString" (valueChange)="valueChange.emit($event)"></gn-ui-form-field-rich>
<gn-ui-form-field-rich
[label]="config.labelKey! | translate"
[hint]="config.hintKey! | translate"
[value]="valueAsString"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-rich>
</ng-container>
<ng-container *ngSwitchCase="'overviews'">
<gn-ui-form-field-overviews [metadataUuid]="uniqueIdentifier" [value]="valueAsOverviews"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-overviews>
<gn-ui-form-field-overviews
[metadataUuid]="uniqueIdentifier"
[value]="valueAsOverviews"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-overviews>
</ng-container>
<ng-container *ngSwitchCase="'resourceIdentifier'">
<gn-ui-form-field-simple [type]="'text'" [value]="valueAsString"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-simple>
<gn-ui-form-field-simple
[type]="'text'"
[value]="valueAsString"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-simple>
</ng-container>
<ng-container *ngSwitchCase="'resourceCreated'">
<gn-ui-form-field-date [value]="valueAsDate" (valueChange)="valueChange.emit($event)"></gn-ui-form-field-date>
<gn-ui-form-field-date
[value]="valueAsDate"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-date>
</ng-container>
<ng-container *ngSwitchCase="'resourceUpdated'">
<gn-ui-form-field-date [value]="valueAsDate" (valueChange)="valueChange.emit($event)"></gn-ui-form-field-date>
<gn-ui-form-field-date
[value]="valueAsDate"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-date>
</ng-container>
<ng-container *ngSwitchCase="'updateFrequency'">
<gn-ui-form-field-update-frequency [value]="valueAsUpdateFrequency"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-update-frequency>
<gn-ui-form-field-update-frequency
[value]="valueAsUpdateFrequency"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-update-frequency>
</ng-container>
<ng-container *ngSwitchCase="'temporalExtents'">
<gn-ui-form-field-temporal-extents [value]="valueAsTemporalExtents"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-temporal-extents>
<gn-ui-form-field-temporal-extents
[value]="valueAsTemporalExtents"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-temporal-extents>
</ng-container>
<ng-container *ngSwitchCase="'spatialExtents'">
<gn-ui-form-field-spatial-extent></gn-ui-form-field-spatial-extent>
</ng-container>
<ng-container *ngSwitchCase="'keywords'">
<gn-ui-form-field-keywords [value]="valueAsKeywords"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-keywords>
<gn-ui-form-field-keywords
[value]="valueAsKeywords"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-keywords>
</ng-container>
<ng-container *ngSwitchCase="'licenses'">
<gn-ui-form-field-license [label]="config.labelKey! | translate" [recordConstraints]="valueAsConstraints"
(recordConstraintsChange)="valueChange.emit($event)"></gn-ui-form-field-license>
<gn-ui-form-field-license
[label]="config.labelKey! | translate"
[recordConstraints]="valueAsConstraints"
(recordConstraintsChange)="valueChange.emit($event)"
></gn-ui-form-field-license>
</ng-container>

<ng-container *ngSwitchCase="'legalConstraints'">
Expand All @@ -80,28 +124,44 @@
<ng-container *ngTemplateOutlet="formFieldConstraints"></ng-container>
</ng-container>
<ng-container *ngSwitchCase="'otherConstraints'">
<ng-container *ngTemplateOutlet="formFieldConstraints"></ng-container></ng-container>
<ng-container *ngTemplateOutlet="formFieldConstraints"></ng-container
></ng-container>
<ng-template #formFieldConstraints>
<gn-ui-form-field-constraints [label]="config.labelKey" [value]="valueAsConstraints" [constraintType]="model"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-constraints></ng-template>
<gn-ui-form-field-constraints
[label]="config.labelKey"
[value]="valueAsConstraints"
[constraintType]="model"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-constraints
></ng-template>

<ng-container *ngSwitchCase="'contactsForResource'">
<gn-ui-form-field-contacts-for-resource [value]="valueAsIndividuals"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-contacts-for-resource>
<gn-ui-form-field-contacts-for-resource
[value]="valueAsIndividuals"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-contacts-for-resource>
</ng-container>
<ng-container *ngSwitchCase="'contacts'">
<gn-ui-form-field-contacts [value]="valueAsIndividuals"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-contacts>
<gn-ui-form-field-contacts
[value]="valueAsIndividuals"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-contacts>
</ng-container>
<ng-container *ngSwitchCase="'onlineResources'">
<gn-ui-form-field-online-resources *ngIf="modelSpecifier === 'onlineResourceType:!link'"
[metadataUuid]="uniqueIdentifier" [value]="valueAsOnlineResources"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-online-resources>
<gn-ui-form-field-online-resources
*ngIf="modelSpecifier === 'onlineResourceType:!link'"
[metadataUuid]="uniqueIdentifier"
[value]="valueAsOnlineResources"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-online-resources>
</ng-container>
<ng-container *ngSwitchCase="'onlineResources'">
<gn-ui-form-field-online-link-resources *ngIf="modelSpecifier === 'onlineResourceType:link'"
[metadataUuid]="uniqueIdentifier" [value]="valueAsOnlineResources"
(valueChange)="valueChange.emit($event)"></gn-ui-form-field-online-link-resources>
<gn-ui-form-field-online-link-resources
*ngIf="modelSpecifier === 'onlineResourceType:link'"
[metadataUuid]="uniqueIdentifier"
[value]="valueAsOnlineResources"
(valueChange)="valueChange.emit($event)"
></gn-ui-form-field-online-link-resources>
</ng-container>
</ng-container>

Expand All @@ -115,4 +175,4 @@
</ng-container>
</ng-container>
</ng-container>
</ng-template>
</ng-template>
2 changes: 1 addition & 1 deletion translations/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@
"wfs.unreachable.cors": "Der Dienst konnte aufgrund von CORS-Beschränkungen nicht erreicht werden",
"wfs.unreachable.http": "Der Dienst hat einen HTTP-Fehler zurückgegeben",
"wfs.unreachable.unknown": "Der Dienst konnte nicht erreicht werden"
}
}
2 changes: 1 addition & 1 deletion translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -577,4 +577,4 @@
"wfs.unreachable.cors": "The service could not be reached due to CORS limitations",
"wfs.unreachable.http": "The service returned an HTTP error",
"wfs.unreachable.unknown": "The service could not be reached"
}
}
2 changes: 1 addition & 1 deletion translations/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@
"wfs.unreachable.cors": "",
"wfs.unreachable.http": "",
"wfs.unreachable.unknown": ""
}
}
2 changes: 1 addition & 1 deletion translations/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -577,4 +577,4 @@
"wfs.unreachable.cors": "Le service n'est pas accessible en raison de limitations CORS",
"wfs.unreachable.http": "Le service a retourné une erreur HTTP",
"wfs.unreachable.unknown": "Le service n'est pas accessible"
}
}
2 changes: 1 addition & 1 deletion translations/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@
"wfs.unreachable.cors": "Il servizio non è accessibile a causa di limitazioni CORS",
"wfs.unreachable.http": "Il servizio ha restituito un errore HTTP",
"wfs.unreachable.unknown": "Il servizio non è accessibile"
}
}
2 changes: 1 addition & 1 deletion translations/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@
"wfs.unreachable.cors": "",
"wfs.unreachable.http": "",
"wfs.unreachable.unknown": ""
}
}
2 changes: 1 addition & 1 deletion translations/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@
"wfs.unreachable.cors": "",
"wfs.unreachable.http": "",
"wfs.unreachable.unknown": ""
}
}
2 changes: 1 addition & 1 deletion translations/sk.json
Original file line number Diff line number Diff line change
Expand Up @@ -558,4 +558,4 @@
"wfs.unreachable.cors": "Službu nemožno dosiahnuť z dôvodu obmedzení CORS",
"wfs.unreachable.http": "Služba vrátila chybu HTTP",
"wfs.unreachable.unknown": "So službou sa nedalo spojiť"
}
}

0 comments on commit 3d9381d

Please sign in to comment.