From b5ff5e95f531747648438c4b9295eb611a67677c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure-H=C3=A9l=C3=A8ne=20Bruneton?= Date: Thu, 30 Jan 2025 16:52:19 +0100 Subject: [PATCH] refactor: imports order --- .../record-user-feedbacks.component.ts | 16 +++--- .../dashboard/sidebar/sidebar.component.ts | 16 +++--- .../page-selector/page-selector.component.ts | 6 +-- .../publish-button.component.ts | 1 + .../top-toolbar/top-toolbar.component.ts | 10 ++-- .../records/my-draft/my-draft.component.ts | 1 + .../my-records/my-records.component.ts | 20 +++---- .../constraint-card.component.ts | 12 ++--- .../contact-card.component.spec.ts | 6 +-- .../contact-card.component.stories.ts | 6 +-- .../contact-card/contact-card.component.ts | 2 +- .../import-record.component.stories.ts | 20 +++---- .../import-record/import-record.component.ts | 12 ++--- .../online-resource-card.component.ts | 6 +-- .../form-field-constraints.component.ts | 12 ++--- .../form-field-rich.component.ts | 2 +- .../form-field-temporal-extents.component.ts | 8 +-- .../add-layer-record-preview.component.ts | 16 +++--- .../add-layer-from-wfs.component.ts | 12 ++--- .../add-layer-from-wms.component.ts | 12 ++--- .../external-viewer-button.component.spec.ts | 8 +-- .../external-viewer-button.component.ts | 8 +-- .../src/lib/map-view/map-view.component.ts | 52 +++++++++---------- .../results-list.container.component.spec.ts | 6 +-- .../src/lib/api-card/api-card.component.ts | 8 +-- .../downloads-list.component.ts | 6 +-- .../image-overlay-preview.component.ts | 8 +-- .../markdown-editor.component.ts | 6 +-- .../metadata-info/metadata-info.component.ts | 18 +++---- .../notification/notification.component.ts | 6 +-- .../record-api-form.component.ts | 6 +-- .../ui/elements/src/lib/ui-elements.module.ts | 20 +++---- .../user-feedback-item.component.stories.ts | 22 ++++---- .../user-feedback-item.component.ts | 6 +-- libs/ui/inputs/src/index.ts | 9 ++-- .../autocomplete/autocomplete.component.ts | 20 +++---- .../src/lib/badge/badge.component.stories.ts | 4 +- .../copy-text-button.component.ts | 2 +- .../date-range-dropdown.component.ts | 6 +-- .../dropdown-multiselect.component.spec.ts | 8 +-- .../dropdown-multiselect.component.stories.ts | 8 +-- .../dropdown-selector.component.ts | 10 ++-- libs/ui/inputs/src/lib/ui-inputs.module.ts | 44 ++++++++-------- .../lib/url-input/url-input.component.spec.ts | 3 +- .../src/lib/url-input/url-input.component.ts | 4 +- .../modal-dialog/modal-dialog.component.ts | 2 +- .../pagination-buttons.component.ts | 2 +- .../pagination/pagination.component.spec.ts | 4 +- .../lib/pagination/pagination.component.ts | 4 +- .../previous-next-buttons.component.ts | 2 +- libs/ui/widgets/src/index.ts | 8 +-- .../lib/button/button.component.stories.ts | 22 ++++---- libs/ui/widgets/src/lib/ui-widgets.module.ts | 8 +-- 53 files changed, 273 insertions(+), 273 deletions(-) diff --git a/apps/datahub/src/app/record/record-user-feedbacks/record-user-feedbacks.component.ts b/apps/datahub/src/app/record/record-user-feedbacks/record-user-feedbacks.component.ts index eaa4f49a36..e5cd3f9042 100644 --- a/apps/datahub/src/app/record/record-user-feedbacks/record-user-feedbacks.component.ts +++ b/apps/datahub/src/app/record/record-user-feedbacks/record-user-feedbacks.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -6,22 +7,20 @@ import { OnDestroy, OnInit, } from '@angular/core' -import { catchError, filter, switchMap, takeUntil } from 'rxjs/operators' -import { BehaviorSubject, combineLatest, Observable, of, Subject } from 'rxjs' +import { AuthService, Gn4PlatformMapper } from '@geonetwork-ui/api/repository' import { UserFeedback, UserFeedbackViewModel, } from '@geonetwork-ui/common/domain/model/record' -import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' import { UserModel } from '@geonetwork-ui/common/domain/model/user' +import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' +import { MdViewFacade } from '@geonetwork-ui/feature/record' +import { UserFeedbackItemComponent } from '@geonetwork-ui/ui/elements' import { DropdownChoice, DropdownSelectorComponent, TextAreaComponent, } from '@geonetwork-ui/ui/inputs' -import { MdViewFacade } from '@geonetwork-ui/feature/record' -import { TranslateModule, TranslateService } from '@ngx-translate/core' -import { AuthService, Gn4PlatformMapper } from '@geonetwork-ui/api/repository' import { ButtonComponent, SpinningLoaderComponent, @@ -32,8 +31,9 @@ import { matEditOutline, matSendOutline, } from '@ng-icons/material-icons/outline' -import { CommonModule } from '@angular/common' -import { UserFeedbackItemComponent } from '@geonetwork-ui/ui/elements' +import { TranslateModule, TranslateService } from '@ngx-translate/core' +import { BehaviorSubject, combineLatest, Observable, of, Subject } from 'rxjs' +import { catchError, filter, switchMap, takeUntil } from 'rxjs/operators' type UserFeedbackSortingFunction = ( userFeedbackA: UserFeedback, diff --git a/apps/metadata-editor/src/app/dashboard/sidebar/sidebar.component.ts b/apps/metadata-editor/src/app/dashboard/sidebar/sidebar.component.ts index f84d5d0183..4f1c45b842 100644 --- a/apps/metadata-editor/src/app/dashboard/sidebar/sidebar.component.ts +++ b/apps/metadata-editor/src/app/dashboard/sidebar/sidebar.component.ts @@ -1,21 +1,21 @@ import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core' -import { TranslateModule } from '@ngx-translate/core' -import { DashboardMenuComponent } from '../dashboard-menu/dashboard-menu.component' -import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' +import { RouterLink } from '@angular/router' import { AuthService, AvatarServiceInterface, } from '@geonetwork-ui/api/repository' -import { UiElementsModule } from '@geonetwork-ui/ui/elements' -import { OrganizationsServiceInterface } from '@geonetwork-ui/common/domain/organizations.service.interface' -import { combineLatest, Observable } from 'rxjs' import { Organization } from '@geonetwork-ui/common/domain/model/record' +import { OrganizationsServiceInterface } from '@geonetwork-ui/common/domain/organizations.service.interface' +import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' +import { FeatureSearchModule } from '@geonetwork-ui/feature/search' +import { UiElementsModule } from '@geonetwork-ui/ui/elements' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { RouterLink } from '@angular/router' import { NgIcon, provideIcons } from '@ng-icons/core' import { iconoirSystemShut } from '@ng-icons/iconoir' -import { FeatureSearchModule } from '@geonetwork-ui/feature/search' +import { TranslateModule } from '@ngx-translate/core' +import { combineLatest, Observable } from 'rxjs' +import { DashboardMenuComponent } from '../dashboard-menu/dashboard-menu.component' @Component({ selector: 'md-editor-sidebar', diff --git a/apps/metadata-editor/src/app/edit/components/page-selector/page-selector.component.ts b/apps/metadata-editor/src/app/edit/components/page-selector/page-selector.component.ts index 651124c367..e2fd8137f3 100644 --- a/apps/metadata-editor/src/app/edit/components/page-selector/page-selector.component.ts +++ b/apps/metadata-editor/src/app/edit/components/page-selector/page-selector.component.ts @@ -1,10 +1,10 @@ -import { ChangeDetectionStrategy, Component } from '@angular/core' import { CommonModule } from '@angular/common' +import { ChangeDetectionStrategy, Component } from '@angular/core' +import { EditorFacade } from '@geonetwork-ui/feature/editor' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { LetDirective } from '@ngrx/component' import { TranslateModule } from '@ngx-translate/core' -import { EditorFacade } from '@geonetwork-ui/feature/editor' import { map } from 'rxjs/operators' -import { LetDirective } from '@ngrx/component' @Component({ selector: 'md-editor-page-selector', diff --git a/apps/metadata-editor/src/app/edit/components/publish-button/publish-button.component.ts b/apps/metadata-editor/src/app/edit/components/publish-button/publish-button.component.ts index 8ef7a36ea1..5afeb4144c 100644 --- a/apps/metadata-editor/src/app/edit/components/publish-button/publish-button.component.ts +++ b/apps/metadata-editor/src/app/edit/components/publish-button/publish-button.component.ts @@ -35,6 +35,7 @@ import { combineLatest, Observable, of, Subscription } from 'rxjs' import { catchError, map, skip, switchMap, take } from 'rxjs/operators' export type RecordSaveStatus = 'saving' | 'upToDate' | 'hasChanges' + @Component({ selector: 'md-editor-publish-button', standalone: true, diff --git a/apps/metadata-editor/src/app/edit/components/top-toolbar/top-toolbar.component.ts b/apps/metadata-editor/src/app/edit/components/top-toolbar/top-toolbar.component.ts index dc5b17b982..87912ffe76 100644 --- a/apps/metadata-editor/src/app/edit/components/top-toolbar/top-toolbar.component.ts +++ b/apps/metadata-editor/src/app/edit/components/top-toolbar/top-toolbar.component.ts @@ -5,11 +5,6 @@ import { MatTooltipModule } from '@angular/material/tooltip' import { EditorFacade } from '@geonetwork-ui/feature/editor' import { ConfirmationDialogComponent } from '@geonetwork-ui/ui/elements' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { LetDirective } from '@ngrx/component' -import { TranslateModule, TranslateService } from '@ngx-translate/core' -import { combineLatest, Observable } from 'rxjs' -import { map } from 'rxjs/operators' -import { PublishButtonComponent } from '../publish-button/publish-button.component' import { NgIconComponent, provideIcons, @@ -27,6 +22,11 @@ import { matHelpOutlineOutline, matPendingOutline, } from '@ng-icons/material-icons/outline' +import { LetDirective } from '@ngrx/component' +import { TranslateModule, TranslateService } from '@ngx-translate/core' +import { combineLatest, Observable } from 'rxjs' +import { map } from 'rxjs/operators' +import { PublishButtonComponent } from '../publish-button/publish-button.component' @Component({ selector: 'md-editor-top-toolbar', diff --git a/apps/metadata-editor/src/app/records/my-draft/my-draft.component.ts b/apps/metadata-editor/src/app/records/my-draft/my-draft.component.ts index 640d23a48a..9a89908f6a 100644 --- a/apps/metadata-editor/src/app/records/my-draft/my-draft.component.ts +++ b/apps/metadata-editor/src/app/records/my-draft/my-draft.component.ts @@ -7,6 +7,7 @@ import { UiElementsModule } from '@geonetwork-ui/ui/elements' import { ResultsTableComponent } from '@geonetwork-ui/ui/search' import { TranslateModule } from '@ngx-translate/core' import { startWith, switchMap } from 'rxjs' + @Component({ selector: 'md-editor-my-draft', templateUrl: './my-draft.component.html', diff --git a/apps/metadata-editor/src/app/records/my-records/my-records.component.ts b/apps/metadata-editor/src/app/records/my-records/my-records.component.ts index d666ba0b59..05747a5dbc 100644 --- a/apps/metadata-editor/src/app/records/my-records/my-records.component.ts +++ b/apps/metadata-editor/src/app/records/my-records/my-records.component.ts @@ -1,3 +1,6 @@ +import { Overlay, OverlayRef } from '@angular/cdk/overlay' +import { TemplatePortal } from '@angular/cdk/portal' +import { CommonModule } from '@angular/common' import { ChangeDetectorRef, Component, @@ -7,24 +10,17 @@ import { ViewChild, ViewContainerRef, } from '@angular/core' -import { CommonModule } from '@angular/common' -import { TranslateModule } from '@ngx-translate/core' -import { RecordsListComponent } from '../records-list.component' +import { Router } from '@angular/router' +import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' +import { ImportRecordComponent } from '@geonetwork-ui/feature/editor' import { FeatureSearchModule, FieldsService, FILTER_SUMMARY_IGNORE_LIST, SearchFacade, } from '@geonetwork-ui/feature/search' -import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' import { UiElementsModule } from '@geonetwork-ui/ui/elements' -import { Router } from '@angular/router' -import { Overlay, OverlayRef } from '@angular/cdk/overlay' -import { TemplatePortal } from '@angular/cdk/portal' -import { RecordsCountComponent } from '../records-count/records-count.component' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { ImportRecordComponent } from '@geonetwork-ui/feature/editor' -import { SearchFiltersComponent } from '../../dashboard/search-filters/search-filters.component' import { NgIconComponent, provideIcons, @@ -35,6 +31,10 @@ import { iconoirNavArrowUp, iconoirPagePlus, } from '@ng-icons/iconoir' +import { TranslateModule } from '@ngx-translate/core' +import { SearchFiltersComponent } from '../../dashboard/search-filters/search-filters.component' +import { RecordsCountComponent } from '../records-count/records-count.component' +import { RecordsListComponent } from '../records-list.component' const FILTER_OWNER = 'owner' diff --git a/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.ts b/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.ts index e26d720064..eade388ef2 100644 --- a/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.ts +++ b/libs/feature/editor/src/lib/components/constraint-card/constraint-card.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -5,20 +6,19 @@ import { Input, Output, } from '@angular/core' -import { CommonModule } from '@angular/common' -import { FormFieldRichComponent } from '../record-form/form-field/form-field-rich/form-field-rich.component' -import { UrlInputComponent } from '@geonetwork-ui/ui/inputs' import { MatIconModule } from '@angular/material/icon' -import { TranslateModule } from '@ngx-translate/core' +import { marker } from '@biesbjerg/ngx-translate-extract-marker' import { Constraint } from '@geonetwork-ui/common/domain/model/record' +import { UrlInputComponent } from '@geonetwork-ui/ui/inputs' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, provideNgIconsConfig, } from '@ng-icons/core' import { iconoirPlus } from '@ng-icons/iconoir' -import { marker } from '@biesbjerg/ngx-translate-extract-marker' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' +import { FormFieldRichComponent } from '../record-form/form-field/form-field-rich/form-field-rich.component' @Component({ selector: 'gn-ui-constraint-card', diff --git a/libs/feature/editor/src/lib/components/contact-card/contact-card.component.spec.ts b/libs/feature/editor/src/lib/components/contact-card/contact-card.component.spec.ts index 1fac7f1287..996e71f803 100644 --- a/libs/feature/editor/src/lib/components/contact-card/contact-card.component.spec.ts +++ b/libs/feature/editor/src/lib/components/contact-card/contact-card.component.spec.ts @@ -1,12 +1,12 @@ +import { CommonModule } from '@angular/common' +import { ChangeDetectionStrategy } from '@angular/core' import { ComponentFixture, TestBed } from '@angular/core/testing' -import { ContactCardComponent } from './contact-card.component' import { Individual, Organization, } from '@geonetwork-ui/common/domain/model/record' -import { CommonModule } from '@angular/common' import { AutocompleteComponent } from '@geonetwork-ui/ui/inputs' -import { ChangeDetectionStrategy } from '@angular/core' +import { ContactCardComponent } from './contact-card.component' describe('ContactCardComponent', () => { let component: ContactCardComponent diff --git a/libs/feature/editor/src/lib/components/contact-card/contact-card.component.stories.ts b/libs/feature/editor/src/lib/components/contact-card/contact-card.component.stories.ts index 4fc3689ec9..45a43f85bf 100644 --- a/libs/feature/editor/src/lib/components/contact-card/contact-card.component.stories.ts +++ b/libs/feature/editor/src/lib/components/contact-card/contact-card.component.stories.ts @@ -1,3 +1,6 @@ +import { CommonModule } from '@angular/common' +import { importProvidersFrom } from '@angular/core' +import { BrowserAnimationsModule } from '@angular/platform-browser/animations' import { applicationConfig, componentWrapperDecorator, @@ -6,9 +9,6 @@ import { StoryObj, } from '@storybook/angular' import { ContactCardComponent } from './contact-card.component' -import { BrowserAnimationsModule } from '@angular/platform-browser/animations' -import { importProvidersFrom } from '@angular/core' -import { CommonModule } from '@angular/common' export default { title: 'Elements/ContactCardComponent', diff --git a/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts b/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts index 597270a5d9..12b64dfd29 100644 --- a/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts +++ b/libs/feature/editor/src/lib/components/contact-card/contact-card.component.ts @@ -1,6 +1,6 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, Input } from '@angular/core' import { Individual } from '@geonetwork-ui/common/domain/model/record' -import { CommonModule } from '@angular/common' import { ThumbnailComponent } from '@geonetwork-ui/ui/elements' @Component({ diff --git a/libs/feature/editor/src/lib/components/import-record/import-record.component.stories.ts b/libs/feature/editor/src/lib/components/import-record/import-record.component.stories.ts index cccb87885a..430ef6ddb9 100644 --- a/libs/feature/editor/src/lib/components/import-record/import-record.component.stories.ts +++ b/libs/feature/editor/src/lib/components/import-record/import-record.component.stories.ts @@ -1,3 +1,12 @@ +import { CommonModule } from '@angular/common' +import { importProvidersFrom } from '@angular/core' +import { BrowserAnimationsModule } from '@angular/platform-browser/animations' +import { RecordsRepositoryInterface } from '@geonetwork-ui/common/domain/repository/records-repository.interface' +import { ThumbnailComponent } from '@geonetwork-ui/ui/elements' +import { UrlInputComponent } from '@geonetwork-ui/ui/inputs' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { UtilI18nModule } from '@geonetwork-ui/util/i18n' +import { TranslateModule } from '@ngx-translate/core' import { applicationConfig, componentWrapperDecorator, @@ -5,17 +14,8 @@ import { moduleMetadata, StoryObj, } from '@storybook/angular' -import { ImportRecordComponent } from './import-record.component' -import { BrowserAnimationsModule } from '@angular/platform-browser/animations' -import { importProvidersFrom } from '@angular/core' -import { CommonModule } from '@angular/common' -import { UrlInputComponent } from '@geonetwork-ui/ui/inputs' -import { ThumbnailComponent } from '@geonetwork-ui/ui/elements' -import { UtilI18nModule } from '@geonetwork-ui/util/i18n' -import { TranslateModule } from '@ngx-translate/core' -import { RecordsRepositoryInterface } from '@geonetwork-ui/common/domain/repository/records-repository.interface' import { of } from 'rxjs' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { ImportRecordComponent } from './import-record.component' class MockRecordsRepository { importRecordFromExternalFileUrlAsDraft(url: string) { diff --git a/libs/feature/editor/src/lib/components/import-record/import-record.component.ts b/libs/feature/editor/src/lib/components/import-record/import-record.component.ts index 7900736c57..b650ea487e 100644 --- a/libs/feature/editor/src/lib/components/import-record/import-record.component.ts +++ b/libs/feature/editor/src/lib/components/import-record/import-record.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -5,12 +6,11 @@ import { EventEmitter, Output, } from '@angular/core' -import { CommonModule } from '@angular/common' -import { UrlInputComponent } from '@geonetwork-ui/ui/inputs' -import { TranslateModule, TranslateService } from '@ngx-translate/core' -import { NotificationsService } from '@geonetwork-ui/feature/notifications' -import { RecordsRepositoryInterface } from '@geonetwork-ui/common/domain/repository/records-repository.interface' import { Router } from '@angular/router' +import { RecordsRepositoryInterface } from '@geonetwork-ui/common/domain/repository/records-repository.interface' +import { NotificationsService } from '@geonetwork-ui/feature/notifications' +import { UrlInputComponent } from '@geonetwork-ui/ui/inputs' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, @@ -21,7 +21,7 @@ import { iconoirImport, iconoirLightBulbOn, } from '@ng-icons/iconoir' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule, TranslateService } from '@ngx-translate/core' interface ImportMenuItems { label: string diff --git a/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts b/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts index ab6d18630f..5567095056 100644 --- a/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts +++ b/libs/feature/editor/src/lib/components/online-resource-card/online-resource-card.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -5,21 +6,20 @@ import { Input, Output, } from '@angular/core' -import { CommonModule } from '@angular/common' import { DatasetDownloadDistribution, OnlineLinkResource, OnlineResource, } from '@geonetwork-ui/common/domain/model/record' -import { bytesToMegabytes, getFileFormat } from '@geonetwork-ui/util/shared' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { TranslateModule } from '@ngx-translate/core' +import { bytesToMegabytes, getFileFormat } from '@geonetwork-ui/util/shared' import { NgIconComponent, provideIcons, provideNgIconsConfig, } from '@ng-icons/core' import { iconoirAttachment } from '@ng-icons/iconoir' +import { TranslateModule } from '@ngx-translate/core' @Component({ selector: 'gn-ui-online-resource-card', diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts index 4c61fb9c3f..ad0af3194b 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-constraints/form-field-constraints.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -6,23 +7,22 @@ import { OnInit, Output, } from '@angular/core' -import { CommonModule } from '@angular/common' -import { SortableListComponent } from '@geonetwork-ui/ui/layout' -import { ConstraintCardComponent } from '../../../constraint-card/constraint-card.component' +import { marker } from '@biesbjerg/ngx-translate-extract-marker' import { CatalogRecordKeys, Constraint, } from '@geonetwork-ui/common/domain/model/record' import { UiInputsModule } from '@geonetwork-ui/ui/inputs' -import { marker } from '@biesbjerg/ngx-translate-extract-marker' -import { TranslateModule } from '@ngx-translate/core' +import { SortableListComponent } from '@geonetwork-ui/ui/layout' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, provideNgIconsConfig, } from '@ng-icons/core' import { iconoirPlus } from '@ng-icons/iconoir' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' +import { ConstraintCardComponent } from '../../../constraint-card/constraint-card.component' marker('editor.record.form.constraint.add.legalConstraints') marker('editor.record.form.constraint.add.securityConstraints') diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts index 058ef23a6c..657694576e 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-rich/form-field-rich.component.ts @@ -8,8 +8,8 @@ import { } from '@angular/core' import { ReactiveFormsModule } from '@angular/forms' import { MarkdownEditorComponent } from '@geonetwork-ui/ui/elements' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { FormFieldWrapperComponent } from '@geonetwork-ui/ui/layout' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' @Component({ selector: 'gn-ui-form-field-rich', diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts index 168dd58a97..fd08b0cb3e 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-temporal-extents/form-field-temporal-extents.component.ts @@ -7,20 +7,20 @@ import { Output, } from '@angular/core' import { DatasetTemporalExtent } from '@geonetwork-ui/common/domain/model/record' -import { SortableListComponent } from '@geonetwork-ui/ui/layout' import { DatePickerComponent, DateRangePickerComponent, } from '@geonetwork-ui/ui/inputs' -import { TranslateModule, TranslateService } from '@ngx-translate/core' -import { combineLatest, map } from 'rxjs' +import { SortableListComponent } from '@geonetwork-ui/ui/layout' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, provideNgIconsConfig, } from '@ng-icons/core' import { iconoirPlus } from '@ng-icons/iconoir' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule, TranslateService } from '@ngx-translate/core' +import { combineLatest, map } from 'rxjs' @Component({ selector: 'gn-ui-form-field-temporal-extents', diff --git a/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts b/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts index 65ef2fe642..507752798e 100644 --- a/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts +++ b/libs/feature/map/src/lib/add-layer-from-catalog/add-layer-record-preview/add-layer-record-preview.component.ts @@ -1,20 +1,20 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, ElementRef } from '@angular/core' +import { + DatasetOnlineResource, + DatasetRecord, +} from '@geonetwork-ui/common/domain/model/record' +import { ThumbnailComponent } from '@geonetwork-ui/ui/elements' import { RecordPreviewComponent } from '@geonetwork-ui/ui/search' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { getLinkLabel, LinkClassifierService, LinkUsage, } from '@geonetwork-ui/util/shared' +import { MapContextLayer } from '@geospatial-sdk/core' import { firstValueFrom, Observable, of, throwError } from 'rxjs' import { MapFacade } from '../../+state/map.facade' -import { - DatasetOnlineResource, - DatasetRecord, -} from '@geonetwork-ui/common/domain/model/record' -import { MapContextLayer } from '@geospatial-sdk/core' -import { ThumbnailComponent } from '@geonetwork-ui/ui/elements' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { CommonModule } from '@angular/common' @Component({ selector: 'gn-ui-add-layer-record-preview', diff --git a/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts b/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts index 216f3f21d2..0d61eba986 100644 --- a/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts +++ b/libs/feature/map/src/lib/add-layer-from-wfs/add-layer-from-wfs.component.ts @@ -1,13 +1,13 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectorRef, Component, OnInit } from '@angular/core' import { WfsEndpoint, WfsFeatureTypeBrief } from '@camptocamp/ogc-client' -import { firstValueFrom, Subject } from 'rxjs' -import { MapFacade } from '../+state/map.facade' -import { debounceTime } from 'rxjs/operators' -import { MapContextLayer } from '@geospatial-sdk/core' import { TextInputComponent } from '@geonetwork-ui/ui/inputs' -import { TranslateModule } from '@ngx-translate/core' -import { CommonModule } from '@angular/common' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { MapContextLayer } from '@geospatial-sdk/core' +import { TranslateModule } from '@ngx-translate/core' +import { firstValueFrom, Subject } from 'rxjs' +import { debounceTime } from 'rxjs/operators' +import { MapFacade } from '../+state/map.facade' @Component({ selector: 'gn-ui-add-layer-from-wfs', diff --git a/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts b/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts index f915c8c5ef..9270ac6259 100644 --- a/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts +++ b/libs/feature/map/src/lib/add-layer-from-wms/add-layer-from-wms.component.ts @@ -1,13 +1,13 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectorRef, Component, OnInit } from '@angular/core' import { WmsEndpoint, WmsLayerSummary } from '@camptocamp/ogc-client' -import { MapFacade } from '../+state/map.facade' -import { firstValueFrom, Subject } from 'rxjs' -import { debounceTime } from 'rxjs/operators' -import { MapContextLayer } from '@geospatial-sdk/core' import { TextInputComponent } from '@geonetwork-ui/ui/inputs' -import { CommonModule } from '@angular/common' -import { TranslateModule } from '@ngx-translate/core' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { MapContextLayer } from '@geospatial-sdk/core' +import { TranslateModule } from '@ngx-translate/core' +import { firstValueFrom, Subject } from 'rxjs' +import { debounceTime } from 'rxjs/operators' +import { MapFacade } from '../+state/map.facade' @Component({ selector: 'gn-ui-add-layer-from-wms', diff --git a/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.spec.ts b/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.spec.ts index e48ef9c469..622a88f4b6 100644 --- a/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.spec.ts +++ b/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.spec.ts @@ -1,14 +1,14 @@ +import { importProvidersFrom } from '@angular/core' import { ComponentFixture, TestBed } from '@angular/core/testing' import { By } from '@angular/platform-browser' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' +import { MockBuilder } from 'ng-mocks' import { EXTERNAL_VIEWER_OPEN_NEW_TAB, EXTERNAL_VIEWER_URL_TEMPLATE, ExternalViewerButtonComponent, } from './external-viewer-button.component' -import { MockBuilder } from 'ng-mocks' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { importProvidersFrom } from '@angular/core' -import { TranslateModule } from '@ngx-translate/core' window.open = jest.fn().mockImplementation(() => window) window.focus = jest.fn().mockImplementation(() => window) diff --git a/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts b/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts index e92fc30686..8b2344516e 100644 --- a/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts +++ b/libs/feature/record/src/lib/external-viewer-button/external-viewer-button.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -6,14 +7,13 @@ import { Input, Optional, } from '@angular/core' -import { DatasetOnlineResource } from '@geonetwork-ui/common/domain/model/record' import { marker } from '@biesbjerg/ngx-translate-extract-marker' -import { TranslateModule, TranslateService } from '@ngx-translate/core' -import { getFileFormat } from '@geonetwork-ui/util/shared' +import { DatasetOnlineResource } from '@geonetwork-ui/common/domain/model/record' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { getFileFormat } from '@geonetwork-ui/util/shared' import { NgIcon, provideIcons } from '@ng-icons/core' -import { CommonModule } from '@angular/common' import { matOpenInNew } from '@ng-icons/material-icons/baseline' +import { TranslateModule, TranslateService } from '@ngx-translate/core' marker('externalviewer.dataset.unnamed') diff --git a/libs/feature/record/src/lib/map-view/map-view.component.ts b/libs/feature/record/src/lib/map-view/map-view.component.ts index 1ac0770bad..882faecf78 100644 --- a/libs/feature/record/src/lib/map-view/map-view.component.ts +++ b/libs/feature/record/src/lib/map-view/map-view.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { AfterViewInit, ChangeDetectionStrategy, @@ -6,8 +7,32 @@ import { Input, ViewChild, } from '@angular/core' +import { marker } from '@biesbjerg/ngx-translate-extract-marker' +import { DatasetOnlineResource } from '@geonetwork-ui/common/domain/model/record' +import { DataService } from '@geonetwork-ui/feature/dataviz' import { MapUtilsService } from '@geonetwork-ui/feature/map' +import { DropdownSelectorComponent } from '@geonetwork-ui/ui/inputs' +import { + FeatureDetailComponent, + MapContainerComponent, + MapLegendComponent, + prioritizePageScroll, +} from '@geonetwork-ui/ui/map' +import { + ButtonComponent, + LoadingMaskComponent, + PopupAlertComponent, +} from '@geonetwork-ui/ui/widgets' import { getLinkLabel } from '@geonetwork-ui/util/shared' +import { + createViewFromLayer, + MapContext, + MapContextLayer, +} from '@geospatial-sdk/core' +import { NgIconComponent, provideIcons } from '@ng-icons/core' +import { matClose } from '@ng-icons/material-icons/baseline' +import { TranslateModule } from '@ngx-translate/core' +import { Feature } from 'geojson' import { BehaviorSubject, combineLatest, @@ -27,33 +52,8 @@ import { switchMap, tap, } from 'rxjs/operators' -import { MdViewFacade } from '../state/mdview.facade' -import { DataService } from '@geonetwork-ui/feature/dataviz' -import { DatasetOnlineResource } from '@geonetwork-ui/common/domain/model/record' -import { - createViewFromLayer, - MapContext, - MapContextLayer, -} from '@geospatial-sdk/core' -import { - FeatureDetailComponent, - MapContainerComponent, - prioritizePageScroll, - MapLegendComponent, -} from '@geonetwork-ui/ui/map' -import { Feature } from 'geojson' -import { NgIconComponent, provideIcons } from '@ng-icons/core' -import { matClose } from '@ng-icons/material-icons/baseline' -import { CommonModule } from '@angular/common' -import { DropdownSelectorComponent } from '@geonetwork-ui/ui/inputs' -import { TranslateModule } from '@ngx-translate/core' import { ExternalViewerButtonComponent } from '../external-viewer-button/external-viewer-button.component' -import { - ButtonComponent, - LoadingMaskComponent, - PopupAlertComponent, -} from '@geonetwork-ui/ui/widgets' -import { marker } from '@biesbjerg/ngx-translate-extract-marker' +import { MdViewFacade } from '../state/mdview.facade' marker('map.dropdown.placeholder') marker('wfs.feature.limit') diff --git a/libs/feature/search/src/lib/results-list/results-list.container.component.spec.ts b/libs/feature/search/src/lib/results-list/results-list.container.component.spec.ts index afa6a10db9..5b86548ec9 100644 --- a/libs/feature/search/src/lib/results-list/results-list.container.component.spec.ts +++ b/libs/feature/search/src/lib/results-list/results-list.container.component.spec.ts @@ -1,16 +1,16 @@ import { Component, DebugElement, Input, NO_ERRORS_SCHEMA } from '@angular/core' import { ComponentFixture, TestBed } from '@angular/core/testing' import { By } from '@angular/platform-browser' +import { CatalogRecord } from '@geonetwork-ui/common/domain/model/record' +import { datasetRecordsFixture } from '@geonetwork-ui/common/fixtures' import { DEFAULT_RESULTS_LAYOUT_CONFIG, RESULTS_LAYOUT_CONFIG, } from '@geonetwork-ui/ui/search' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { BehaviorSubject, of } from 'rxjs' import { SearchFacade } from '../state/search.facade' import { ResultsListContainerComponent } from './results-list.container.component' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' -import { datasetRecordsFixture } from '@geonetwork-ui/common/fixtures' -import { CatalogRecord } from '@geonetwork-ui/common/domain/model/record' @Component({ selector: 'gn-ui-results-list', diff --git a/libs/ui/elements/src/lib/api-card/api-card.component.ts b/libs/ui/elements/src/lib/api-card/api-card.component.ts index b8e7e53ce6..5fd8c79bae 100644 --- a/libs/ui/elements/src/lib/api-card/api-card.component.ts +++ b/libs/ui/elements/src/lib/api-card/api-card.component.ts @@ -1,4 +1,4 @@ -import { DatasetServiceDistribution } from '@geonetwork-ui/common/domain/model/record' +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -9,12 +9,12 @@ import { Output, SimpleChanges, } from '@angular/core' -import { CommonModule } from '@angular/common' -import { CopyTextButtonComponent } from '@geonetwork-ui/ui/inputs' -import { TranslateModule } from '@ngx-translate/core' import { MatTooltipModule } from '@angular/material/tooltip' +import { DatasetServiceDistribution } from '@geonetwork-ui/common/domain/model/record' +import { CopyTextButtonComponent } from '@geonetwork-ui/ui/inputs' import { NgIcon, provideIcons } from '@ng-icons/core' import { matMoreHoriz } from '@ng-icons/material-icons/baseline' +import { TranslateModule } from '@ngx-translate/core' @Component({ selector: 'gn-ui-api-card', diff --git a/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts b/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts index 915a302e57..ca203f845c 100644 --- a/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts +++ b/libs/ui/elements/src/lib/downloads-list/downloads-list.component.ts @@ -1,10 +1,10 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, Input } from '@angular/core' -import { TranslateModule, TranslateService } from '@ngx-translate/core' import { marker } from '@biesbjerg/ngx-translate-extract-marker' -import { getBadgeColor, getFileFormat } from '@geonetwork-ui/util/shared' import { DatasetDownloadDistribution } from '@geonetwork-ui/common/domain/model/record' -import { CommonModule } from '@angular/common' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { getBadgeColor, getFileFormat } from '@geonetwork-ui/util/shared' +import { TranslateModule, TranslateService } from '@ngx-translate/core' import { DownloadItemComponent } from '../download-item/download-item.component' marker('datahub.search.filter.all') diff --git a/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts b/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts index c06f230e4e..b24d3cee75 100644 --- a/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts +++ b/libs/ui/elements/src/lib/image-overlay-preview/image-overlay-preview.component.ts @@ -1,11 +1,11 @@ +import { CommonModule } from '@angular/common' import { Component, EventEmitter, Input, Output } from '@angular/core' -import * as basicLightbox from 'basiclightbox' -import { ContentGhostComponent } from '../content-ghost/content-ghost.component' -import { ThumbnailComponent } from '../thumbnail/thumbnail.component' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIcon, provideIcons } from '@ng-icons/core' import { matZoomOutMap } from '@ng-icons/material-icons/baseline' -import { CommonModule } from '@angular/common' +import * as basicLightbox from 'basiclightbox' +import { ContentGhostComponent } from '../content-ghost/content-ghost.component' +import { ThumbnailComponent } from '../thumbnail/thumbnail.component' @Component({ selector: 'gn-ui-image-overlay-preview', diff --git a/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts b/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts index 57a4cfd4f2..3922cfc3ce 100644 --- a/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts +++ b/libs/ui/elements/src/lib/markdown-editor/markdown-editor.component.ts @@ -7,10 +7,10 @@ import { Output, } from '@angular/core' import { FormsModule } from '@angular/forms' -import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component' -import { TranslateModule } from '@ngx-translate/core' -import { TextAreaComponent } from '@geonetwork-ui/ui/inputs' import { MatTooltipModule } from '@angular/material/tooltip' +import { TextAreaComponent } from '@geonetwork-ui/ui/inputs' +import { TranslateModule } from '@ngx-translate/core' +import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component' @Component({ selector: 'gn-ui-markdown-editor', diff --git a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts index e4eed42a12..055c92a385 100644 --- a/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts +++ b/libs/ui/elements/src/lib/metadata-info/metadata-info.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -9,22 +10,21 @@ import { DatasetRecord, Keyword, } from '@geonetwork-ui/common/domain/model/record' -import { getTemporalRangeUnion } from '@geonetwork-ui/util/shared' -import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component' -import { - ExpandablePanelComponent, - MaxLinesComponent, -} from '@geonetwork-ui/ui/layout' -import { TranslateModule } from '@ngx-translate/core' import { BadgeComponent, CopyTextButtonComponent, } from '@geonetwork-ui/ui/inputs' -import { ContentGhostComponent } from '../content-ghost/content-ghost.component' +import { + ExpandablePanelComponent, + MaxLinesComponent, +} from '@geonetwork-ui/ui/layout' +import { getTemporalRangeUnion } from '@geonetwork-ui/util/shared' import { NgIcon, provideIcons } from '@ng-icons/core' -import { CommonModule } from '@angular/common' import { matOpenInNew } from '@ng-icons/material-icons/baseline' import { matMailOutline } from '@ng-icons/material-icons/outline' +import { TranslateModule } from '@ngx-translate/core' +import { ContentGhostComponent } from '../content-ghost/content-ghost.component' +import { MarkdownParserComponent } from '../markdown-parser/markdown-parser.component' import { ThumbnailComponent } from '../thumbnail/thumbnail.component' import { GnUiLinkifyDirective } from './linkify.directive' diff --git a/libs/ui/elements/src/lib/notification/notification.component.ts b/libs/ui/elements/src/lib/notification/notification.component.ts index 9f333c5aca..d0e144b63c 100644 --- a/libs/ui/elements/src/lib/notification/notification.component.ts +++ b/libs/ui/elements/src/lib/notification/notification.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -5,15 +6,14 @@ import { Input, Output, } from '@angular/core' -import { CommonModule } from '@angular/common' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons } from '@ng-icons/core' import { matCheckCircleOutline } from '@ng-icons/material-icons/baseline' import { + matCloseOutline, matErrorOutlineOutline, - matWarningAmberOutline, matInfoOutline, - matCloseOutline, + matWarningAmberOutline, } from '@ng-icons/material-icons/outline' @Component({ diff --git a/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts b/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts index c2d80e233b..f57d7c87b9 100644 --- a/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts +++ b/libs/ui/elements/src/lib/record-api-form/record-api-form.component.ts @@ -1,18 +1,18 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, Input } from '@angular/core' import { OgcApiEndpoint, WfsEndpoint } from '@camptocamp/ogc-client' import { DatasetServiceDistribution, ServiceProtocol, } from '@geonetwork-ui/common/domain/model/record' -import { mimeTypeToFormat } from '@geonetwork-ui/util/shared' -import { BehaviorSubject, combineLatest, filter, map, switchMap } from 'rxjs' import { CopyTextButtonComponent, DropdownSelectorComponent, TextInputComponent, } from '@geonetwork-ui/ui/inputs' -import { CommonModule } from '@angular/common' +import { mimeTypeToFormat } from '@geonetwork-ui/util/shared' import { TranslateModule } from '@ngx-translate/core' +import { BehaviorSubject, combineLatest, filter, map, switchMap } from 'rxjs' const DEFAULT_PARAMS = { OFFSET: '', diff --git a/libs/ui/elements/src/lib/ui-elements.module.ts b/libs/ui/elements/src/lib/ui-elements.module.ts index f65528cf73..da044e848f 100644 --- a/libs/ui/elements/src/lib/ui-elements.module.ts +++ b/libs/ui/elements/src/lib/ui-elements.module.ts @@ -1,23 +1,23 @@ -import { NgModule } from '@angular/core' import { CommonModule, NgOptimizedImage } from '@angular/common' -import { RouterModule } from '@angular/router' +import { NgModule } from '@angular/core' +import { FormsModule } from '@angular/forms' import { MatTooltipModule } from '@angular/material/tooltip' -import { UtilSharedModule } from '@geonetwork-ui/util/shared' -import { PopoverComponent, UiWidgetsModule } from '@geonetwork-ui/ui/widgets' -import { MaxLinesComponent, UiLayoutModule } from '@geonetwork-ui/ui/layout' -import { TranslateModule } from '@ngx-translate/core' -import { ThumbnailComponent } from './thumbnail/thumbnail.component' +import { RouterModule } from '@angular/router' import { BadgeComponent, TextInputComponent, UiInputsModule, } from '@geonetwork-ui/ui/inputs' -import { FormsModule } from '@angular/forms' +import { MaxLinesComponent, UiLayoutModule } from '@geonetwork-ui/ui/layout' +import { PopoverComponent, UiWidgetsModule } from '@geonetwork-ui/ui/widgets' +import { UtilSharedModule } from '@geonetwork-ui/util/shared' +import { provideNgIconsConfig } from '@ng-icons/core' +import { TranslateModule } from '@ngx-translate/core' import { AvatarComponent } from './avatar/avatar.component' -import { UserPreviewComponent } from './user-preview/user-preview.component' import { MarkdownParserComponent } from './markdown-parser/markdown-parser.component' +import { ThumbnailComponent } from './thumbnail/thumbnail.component' import { TimeSincePipe } from './user-feedback-item/time-since.pipe' -import { provideNgIconsConfig } from '@ng-icons/core' +import { UserPreviewComponent } from './user-preview/user-preview.component' @NgModule({ imports: [ diff --git a/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.stories.ts b/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.stories.ts index aa77d767c4..0d300ebe90 100644 --- a/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.stories.ts +++ b/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.stories.ts @@ -1,21 +1,21 @@ +import { CommonModule } from '@angular/common' +import { HttpClientModule } from '@angular/common/http' +import { importProvidersFrom } from '@angular/core' +import { TextAreaComponent } from '@geonetwork-ui/ui/inputs' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { + TRANSLATE_DEFAULT_CONFIG, + UtilI18nModule, +} from '@geonetwork-ui/util/i18n' +import { TranslateModule } from '@ngx-translate/core' import { applicationConfig, componentWrapperDecorator, moduleMetadata, StoryObj, } from '@storybook/angular' -import { CommonModule } from '@angular/common' -import { UserFeedbackItemComponent } from './user-feedback-item.component' -import { TranslateModule } from '@ngx-translate/core' -import { - TRANSLATE_DEFAULT_CONFIG, - UtilI18nModule, -} from '@geonetwork-ui/util/i18n' import { TimeSincePipe } from './time-since.pipe' -import { HttpClientModule } from '@angular/common/http' -import { importProvidersFrom } from '@angular/core' -import { TextAreaComponent } from '@geonetwork-ui/ui/inputs' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { UserFeedbackItemComponent } from './user-feedback-item.component' export default { title: 'Elements/UserFeedbackItemComponent', diff --git a/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts b/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts index 67173db9a1..9ebaff0e70 100644 --- a/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts +++ b/libs/ui/elements/src/lib/user-feedback-item/user-feedback-item.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -11,16 +12,15 @@ import { UserFeedbackViewModel, } from '@geonetwork-ui/common/domain/model/record' import { UserModel } from '@geonetwork-ui/common/domain/model/user' -import { TimeSincePipe } from './time-since.pipe' -import { CommonModule } from '@angular/common' import { TextAreaComponent } from '@geonetwork-ui/ui/inputs' -import { TranslateModule } from '@ngx-translate/core' import { ButtonComponent, SpinningLoaderComponent, } from '@geonetwork-ui/ui/widgets' import { NgIcon, provideIcons } from '@ng-icons/core' import { matSendOutline } from '@ng-icons/material-icons/outline' +import { TranslateModule } from '@ngx-translate/core' +import { TimeSincePipe } from './time-since.pipe' @Component({ selector: 'gn-ui-user-feedback-item', diff --git a/libs/ui/inputs/src/index.ts b/libs/ui/inputs/src/index.ts index aacee74637..1e48c176bb 100644 --- a/libs/ui/inputs/src/index.ts +++ b/libs/ui/inputs/src/index.ts @@ -5,23 +5,22 @@ export * from './lib/checkbox/checkbox.component' export * from './lib/chips-input/chips-input.component' export * from './lib/copy-text-button/copy-text-button.component' export * from './lib/date-picker/date-picker.component' -export * from './lib/date-range-picker/date-range-picker.component' export * from './lib/date-range-dropdown/date-range-dropdown.component' +export * from './lib/date-range-picker/date-range-picker.component' export * from './lib/drag-and-drop-file-input/drag-and-drop-file-input.component' export * from './lib/dropdown-multiselect/dropdown-multiselect.component' export * from './lib/dropdown-multiselect/dropdown-multiselect.model' export * from './lib/dropdown-selector/dropdown-selector.component' export * from './lib/dropdown-selector/dropdown-selector.model' export * from './lib/editable-label/editable-label.directive' +export * from './lib/file-input/file-input.component' +export * from './lib/image-input/image-input.component' export * from './lib/navigation-button/navigation-button.component' export * from './lib/search-input/search-input.component' export * from './lib/star-toggle/star-toggle.component' +export * from './lib/switch-toggle/switch-toggle.component' export * from './lib/text-area/text-area.component' export * from './lib/text-input/text-input.component' export * from './lib/ui-inputs.module' export * from './lib/url-input/url-input.component' export * from './lib/viewport-intersector/viewport-intersector.component' -export * from './lib/switch-toggle/switch-toggle.component' -export * from './lib/file-input/file-input.component' -export * from './lib/image-input/image-input.component' -export * from './lib/url-input/url-input.component' diff --git a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts index 0d96b301d7..08c875f7f3 100644 --- a/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts +++ b/libs/ui/inputs/src/lib/autocomplete/autocomplete.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { AfterViewInit, ChangeDetectionStrategy, @@ -20,6 +21,15 @@ import { MatAutocompleteSelectedEvent, MatAutocompleteTrigger, } from '@angular/material/autocomplete' +import { ButtonComponent, PopupAlertComponent } from '@geonetwork-ui/ui/widgets' +import { + NgIconComponent, + provideIcons, + provideNgIconsConfig, +} from '@ng-icons/core' +import { iconoirSearch } from '@ng-icons/iconoir' +import { matClose } from '@ng-icons/material-icons/baseline' +import { TranslateModule } from '@ngx-translate/core' import { first, merge, Observable, of, ReplaySubject, Subscription } from 'rxjs' import { catchError, @@ -32,16 +42,6 @@ import { take, tap, } from 'rxjs/operators' -import { ButtonComponent, PopupAlertComponent } from '@geonetwork-ui/ui/widgets' -import { CommonModule } from '@angular/common' -import { TranslateModule } from '@ngx-translate/core' -import { - NgIconComponent, - provideIcons, - provideNgIconsConfig, -} from '@ng-icons/core' -import { iconoirSearch } from '@ng-icons/iconoir' -import { matClose } from '@ng-icons/material-icons/baseline' export type AutocompleteItem = unknown diff --git a/libs/ui/inputs/src/lib/badge/badge.component.stories.ts b/libs/ui/inputs/src/lib/badge/badge.component.stories.ts index c4a53e657d..a2e8c20abd 100644 --- a/libs/ui/inputs/src/lib/badge/badge.component.stories.ts +++ b/libs/ui/inputs/src/lib/badge/badge.component.stories.ts @@ -1,11 +1,11 @@ -import { Meta, moduleMetadata, applicationConfig } from '@storybook/angular' -import { BadgeComponent } from './badge.component' import { NgIconComponent, provideIcons } from '@ng-icons/core' import { matDownloading, matPestControl, matWaves, } from '@ng-icons/material-icons/baseline' +import { applicationConfig, Meta, moduleMetadata } from '@storybook/angular' +import { BadgeComponent } from './badge.component' export default { title: 'Widgets/BadgeComponent', diff --git a/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.ts b/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.ts index c23826aeeb..8d5f94c3bb 100644 --- a/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.ts +++ b/libs/ui/inputs/src/lib/copy-text-button/copy-text-button.component.ts @@ -1,5 +1,5 @@ -import { ChangeDetectionStrategy, Component, Input } from '@angular/core' import { CommonModule } from '@angular/common' +import { ChangeDetectionStrategy, Component, Input } from '@angular/core' import { MatTooltipModule } from '@angular/material/tooltip' import { NgIcon, provideIcons } from '@ng-icons/core' import { matContentCopy } from '@ng-icons/material-icons/baseline' diff --git a/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts b/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts index a0f8f05d74..5011267a02 100644 --- a/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts +++ b/libs/ui/inputs/src/lib/date-range-dropdown/date-range-dropdown.component.ts @@ -1,3 +1,5 @@ +import { OverlayContainer } from '@angular/cdk/overlay' +import { CommonModule } from '@angular/common' import { AfterViewChecked, ChangeDetectorRef, @@ -8,13 +10,11 @@ import { Output, ViewChild, } from '@angular/core' -import { CommonModule } from '@angular/common' import { MatNativeDateModule } from '@angular/material/core' import { MatDatepickerModule } from '@angular/material/datepicker' -import { OverlayContainer } from '@angular/cdk/overlay' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons } from '@ng-icons/core' import { matExpandLess, matExpandMore } from '@ng-icons/material-icons/baseline' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' @Component({ selector: 'gn-ui-date-range-dropdown', diff --git a/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.spec.ts b/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.spec.ts index 026893e0aa..37994ce0f6 100644 --- a/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.spec.ts +++ b/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.spec.ts @@ -1,11 +1,11 @@ import { OverlayModule } from '@angular/cdk/overlay' -import { ComponentFixture, TestBed } from '@angular/core/testing' -import { DropdownMultiselectComponent } from './dropdown-multiselect.component' -import { By } from '@angular/platform-browser' import { ChangeDetectionStrategy, DebugElement } from '@angular/core' -import { TranslateModule } from '@ngx-translate/core' +import { ComponentFixture, TestBed } from '@angular/core/testing' import { FormsModule } from '@angular/forms' +import { By } from '@angular/platform-browser' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' +import { DropdownMultiselectComponent } from './dropdown-multiselect.component' describe('DropdownMultiselectComponent', () => { let component: DropdownMultiselectComponent diff --git a/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.stories.ts b/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.stories.ts index 135b5ca452..6f94f5af07 100644 --- a/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.stories.ts +++ b/libs/ui/inputs/src/lib/dropdown-multiselect/dropdown-multiselect.component.stories.ts @@ -1,3 +1,7 @@ +import { OverlayModule } from '@angular/cdk/overlay' +import { MatCheckboxModule } from '@angular/material/checkbox' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' import { componentWrapperDecorator, Meta, @@ -5,10 +9,6 @@ import { StoryObj, } from '@storybook/angular' import { DropdownMultiselectComponent } from './dropdown-multiselect.component' -import { OverlayModule } from '@angular/cdk/overlay' -import { MatCheckboxModule } from '@angular/material/checkbox' -import { TranslateModule } from '@ngx-translate/core' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' export default { title: 'Inputs/DropdownMultiselectComponent', diff --git a/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts b/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts index 01fa88a3ff..16318a2465 100644 --- a/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts +++ b/libs/ui/inputs/src/lib/dropdown-selector/dropdown-selector.component.ts @@ -4,6 +4,7 @@ import { ConnectedPosition, OverlayModule, } from '@angular/cdk/overlay' +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, @@ -16,17 +17,16 @@ import { ViewChild, ViewChildren, } from '@angular/core' -import { firstValueFrom } from 'rxjs' -import { DropdownChoice } from './dropdown-selector.model' -import { CommonModule } from '@angular/common' -import { TranslateModule } from '@ngx-translate/core' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, provideNgIconsConfig, } from '@ng-icons/core' import { matExpandLess, matExpandMore } from '@ng-icons/material-icons/baseline' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' +import { firstValueFrom } from 'rxjs' +import { DropdownChoice } from './dropdown-selector.model' const DEFAULT_ROW_NUMBERS = 6 diff --git a/libs/ui/inputs/src/lib/ui-inputs.module.ts b/libs/ui/inputs/src/lib/ui-inputs.module.ts index 6dab75e34a..e02f70869a 100644 --- a/libs/ui/inputs/src/lib/ui-inputs.module.ts +++ b/libs/ui/inputs/src/lib/ui-inputs.module.ts @@ -1,31 +1,16 @@ +import { OverlayModule } from '@angular/cdk/overlay' +import { CommonModule } from '@angular/common' import { NgModule } from '@angular/core' import { FormsModule, ReactiveFormsModule } from '@angular/forms' -import { UtilSharedModule } from '@geonetwork-ui/util/shared' -import { TranslateModule } from '@ngx-translate/core' -import { TagInputModule } from 'ngx-chips' -import { NgxDropzoneModule } from 'ngx-dropzone' -import { BadgeComponent } from './badge/badge.component' -import { ChipsInputComponent } from './chips-input/chips-input.component' -import { DragAndDropFileInputComponent } from './drag-and-drop-file-input/drag-and-drop-file-input.component' -import { DropdownSelectorComponent } from './dropdown-selector/dropdown-selector.component' -import { TextAreaComponent } from './text-area/text-area.component' import { MatAutocompleteModule } from '@angular/material/autocomplete' -import { DropdownMultiselectComponent } from './dropdown-multiselect/dropdown-multiselect.component' -import { UiWidgetsModule } from '@geonetwork-ui/ui/widgets' -import { OverlayModule } from '@angular/cdk/overlay' import { MatCheckboxModule } from '@angular/material/checkbox' -import { ViewportIntersectorComponent } from './viewport-intersector/viewport-intersector.component' -import { CheckToggleComponent } from './check-toggle/check-toggle.component' -import { MatTooltipModule } from '@angular/material/tooltip' -import { CommonModule } from '@angular/common' -import { CheckboxComponent } from './checkbox/checkbox.component' -import { DateRangePickerComponent } from './date-range-picker/date-range-picker.component' +import { MatNativeDateModule } from '@angular/material/core' +import { MatDatepickerModule } from '@angular/material/datepicker' import { MatFormFieldModule } from '@angular/material/form-field' import { MatInputModule } from '@angular/material/input' -import { MatDatepickerModule } from '@angular/material/datepicker' -import { MatNativeDateModule } from '@angular/material/core' -import { EditableLabelDirective } from './editable-label/editable-label.directive' -import { ImageInputComponent } from './image-input/image-input.component' +import { MatTooltipModule } from '@angular/material/tooltip' +import { UiWidgetsModule } from '@geonetwork-ui/ui/widgets' +import { UtilSharedModule } from '@geonetwork-ui/util/shared' import { NgIconComponent, provideIcons, @@ -36,6 +21,21 @@ import { matExpandLess, matExpandMore, } from '@ng-icons/material-icons/baseline' +import { TranslateModule } from '@ngx-translate/core' +import { TagInputModule } from 'ngx-chips' +import { NgxDropzoneModule } from 'ngx-dropzone' +import { BadgeComponent } from './badge/badge.component' +import { CheckToggleComponent } from './check-toggle/check-toggle.component' +import { CheckboxComponent } from './checkbox/checkbox.component' +import { ChipsInputComponent } from './chips-input/chips-input.component' +import { DateRangePickerComponent } from './date-range-picker/date-range-picker.component' +import { DragAndDropFileInputComponent } from './drag-and-drop-file-input/drag-and-drop-file-input.component' +import { DropdownMultiselectComponent } from './dropdown-multiselect/dropdown-multiselect.component' +import { DropdownSelectorComponent } from './dropdown-selector/dropdown-selector.component' +import { EditableLabelDirective } from './editable-label/editable-label.directive' +import { ImageInputComponent } from './image-input/image-input.component' +import { TextAreaComponent } from './text-area/text-area.component' +import { ViewportIntersectorComponent } from './viewport-intersector/viewport-intersector.component' @NgModule({ declarations: [ diff --git a/libs/ui/inputs/src/lib/url-input/url-input.component.spec.ts b/libs/ui/inputs/src/lib/url-input/url-input.component.spec.ts index 5b7cf189f4..7b1ae8d088 100644 --- a/libs/ui/inputs/src/lib/url-input/url-input.component.spec.ts +++ b/libs/ui/inputs/src/lib/url-input/url-input.component.spec.ts @@ -1,8 +1,7 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' - -import { UrlInputComponent } from './url-input.component' import { By } from '@angular/platform-browser' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { UrlInputComponent } from './url-input.component' describe('UrlInputComponent', () => { let component: UrlInputComponent diff --git a/libs/ui/inputs/src/lib/url-input/url-input.component.ts b/libs/ui/inputs/src/lib/url-input/url-input.component.ts index b7b745925e..7df0e09893 100644 --- a/libs/ui/inputs/src/lib/url-input/url-input.component.ts +++ b/libs/ui/inputs/src/lib/url-input/url-input.component.ts @@ -1,3 +1,4 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, ChangeDetectorRef, @@ -6,14 +7,13 @@ import { Input, Output, } from '@angular/core' -import { CommonModule } from '@angular/common' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, provideNgIconsConfig, } from '@ng-icons/core' import { iconoirArrowUp, iconoirLink } from '@ng-icons/iconoir' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' @Component({ selector: 'gn-ui-url-input', diff --git a/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts b/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts index 67673f3ae6..f50eb1e3d8 100644 --- a/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts +++ b/libs/ui/layout/src/lib/modal-dialog/modal-dialog.component.ts @@ -1,10 +1,10 @@ +import { CommonModule } from '@angular/common' import { ChangeDetectionStrategy, Component, Inject, TemplateRef, } from '@angular/core' -import { CommonModule } from '@angular/common' import { MAT_DIALOG_DATA, MatDialogModule, diff --git a/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.ts b/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.ts index ee86d606c2..f82406236d 100644 --- a/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.ts +++ b/libs/ui/layout/src/lib/pagination-buttons/pagination-buttons.component.ts @@ -1,7 +1,7 @@ +import { CommonModule } from '@angular/common' import { Component, Input } from '@angular/core' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIcon, provideIcons } from '@ng-icons/core' -import { CommonModule } from '@angular/common' import { iconoirNavArrowLeft, iconoirNavArrowRight } from '@ng-icons/iconoir' import { Paginable } from '../paginable.interface' diff --git a/libs/ui/layout/src/lib/pagination/pagination.component.spec.ts b/libs/ui/layout/src/lib/pagination/pagination.component.spec.ts index 855e6f4d86..deedf03106 100644 --- a/libs/ui/layout/src/lib/pagination/pagination.component.spec.ts +++ b/libs/ui/layout/src/lib/pagination/pagination.component.spec.ts @@ -1,9 +1,9 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { By } from '@angular/platform-browser' -import { PaginationComponent } from './pagination.component' -import { TranslateModule } from '@ngx-translate/core' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' +import { TranslateModule } from '@ngx-translate/core' import { Paginable } from '../paginable.interface' +import { PaginationComponent } from './pagination.component' class MockPaginable implements Paginable { currentPage = 1 diff --git a/libs/ui/layout/src/lib/pagination/pagination.component.ts b/libs/ui/layout/src/lib/pagination/pagination.component.ts index 382a409431..49df83ba82 100644 --- a/libs/ui/layout/src/lib/pagination/pagination.component.ts +++ b/libs/ui/layout/src/lib/pagination/pagination.component.ts @@ -1,12 +1,12 @@ +import { CommonModule } from '@angular/common' import { Component, Input } from '@angular/core' +import { FormsModule } from '@angular/forms' import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIcon, provideIcons } from '@ng-icons/core' -import { FormsModule } from '@angular/forms' import { matChevronLeft, matChevronRight, } from '@ng-icons/material-icons/baseline' -import { CommonModule } from '@angular/common' import { TranslateModule } from '@ngx-translate/core' import { Paginable } from '../paginable.interface' diff --git a/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts b/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts index 99e78a0177..bf16783c7b 100644 --- a/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts +++ b/libs/ui/layout/src/lib/previous-next-buttons/previous-next-buttons.component.ts @@ -1,4 +1,5 @@ import { Component, Input } from '@angular/core' +import { ButtonComponent } from '@geonetwork-ui/ui/widgets' import { NgIconComponent, provideIcons, @@ -9,7 +10,6 @@ import { matArrowForward, } from '@ng-icons/material-icons/baseline' import { Paginable } from '../paginable.interface' -import { ButtonComponent } from '@geonetwork-ui/ui/widgets' @Component({ selector: 'gn-ui-previous-next-buttons', diff --git a/libs/ui/widgets/src/index.ts b/libs/ui/widgets/src/index.ts index 03cf75a709..1c00119855 100644 --- a/libs/ui/widgets/src/index.ts +++ b/libs/ui/widgets/src/index.ts @@ -1,9 +1,9 @@ -export * from './lib/ui-widgets.module' export * from './lib/button/button.component' -export * from './lib/progress-bar/progress-bar.component' -export * from './lib/popover/popover.component' -export * from './lib/loading-mask/loading-mask.component' export * from './lib/color-scale/color-scale.component' +export * from './lib/loading-mask/loading-mask.component' +export * from './lib/popover/popover.component' export * from './lib/popup-alert/popup-alert.component' +export * from './lib/progress-bar/progress-bar.component' export * from './lib/spinning-loader/spinning-loader.component' export * from './lib/step-bar/step-bar.component' +export * from './lib/ui-widgets.module' diff --git a/libs/ui/widgets/src/lib/button/button.component.stories.ts b/libs/ui/widgets/src/lib/button/button.component.stories.ts index 013bb6ea6a..353726270f 100644 --- a/libs/ui/widgets/src/lib/button/button.component.stories.ts +++ b/libs/ui/widgets/src/lib/button/button.component.stories.ts @@ -1,24 +1,24 @@ -import { - Meta, - moduleMetadata, - StoryObj, - applicationConfig, -} from '@storybook/angular' -import { ButtonComponent } from './button.component' -import { TranslateModule } from '@ngx-translate/core' +import { MatProgressSpinnerModule } from '@angular/material/progress-spinner' import { TRANSLATE_DEFAULT_CONFIG, UtilI18nModule, } from '@geonetwork-ui/util/i18n' -import { MatProgressSpinnerModule } from '@angular/material/progress-spinner' import { NgIconComponent, provideIcons } from '@ng-icons/core' import { matDownloading, + matFitScreen, matPestControl, - matWaves, matTravelExplore, - matFitScreen, + matWaves, } from '@ng-icons/material-icons/baseline' +import { TranslateModule } from '@ngx-translate/core' +import { + applicationConfig, + Meta, + moduleMetadata, + StoryObj, +} from '@storybook/angular' +import { ButtonComponent } from './button.component' export default { title: 'Widgets/ButtonComponent', diff --git a/libs/ui/widgets/src/lib/ui-widgets.module.ts b/libs/ui/widgets/src/lib/ui-widgets.module.ts index 26229d954f..475713c8dd 100644 --- a/libs/ui/widgets/src/lib/ui-widgets.module.ts +++ b/libs/ui/widgets/src/lib/ui-widgets.module.ts @@ -1,13 +1,13 @@ +import { CommonModule } from '@angular/common' import { NgModule } from '@angular/core' +import { FormsModule, ReactiveFormsModule } from '@angular/forms' +import { MatProgressSpinnerModule } from '@angular/material/progress-spinner' import { UtilSharedModule } from '@geonetwork-ui/util/shared' import { TranslateModule } from '@ngx-translate/core' +import { TagInputModule } from 'ngx-chips' import { NgxDropzoneModule } from 'ngx-dropzone' import { ColorScaleComponent } from './color-scale/color-scale.component' import { StepBarComponent } from './step-bar/step-bar.component' -import { TagInputModule } from 'ngx-chips' -import { FormsModule, ReactiveFormsModule } from '@angular/forms' -import { MatProgressSpinnerModule } from '@angular/material/progress-spinner' -import { CommonModule } from '@angular/common' @NgModule({ declarations: [ColorScaleComponent, StepBarComponent],