Skip to content

Commit

Permalink
remove mat icons mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Oct 24, 2024
1 parent c36a56c commit 0612123
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@ import { DownloadItemComponent } from './download-item.component'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { TranslateModule } from '@ngx-translate/core'
import { importProvidersFrom } from '@angular/core'
import { MatIcon } from '@angular/material/icon'

export default {
title: 'Elements/DownloadsListItemComponent',
component: DownloadItemComponent,
decorators: [
moduleMetadata({
declarations: [MatIcon],
imports: [TranslateModule.forRoot()],
}),
applicationConfig({
Expand Down
2 changes: 0 additions & 2 deletions libs/ui/elements/src/lib/error/error.component.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ import {
import { TranslateModule } from '@ngx-translate/core'
import { BrowserAnimationsModule } from '@angular/platform-browser/animations'
import { importProvidersFrom } from '@angular/core'
import { MatIcon } from '@angular/material/icon'

export default {
title: 'Elements/ErrorComponent',
component: ErrorComponent,
decorators: [
moduleMetadata({
declarations: [MatIcon],
imports: [
UtilI18nModule,
TranslateModule.forRoot(TRANSLATE_DEFAULT_CONFIG),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ describe('GnUiLinkifyDirective', () => {
fixture.detectChanges()
await fixture.whenStable()
const href = getAnchorElement()[0].nativeElement.getAttribute('href')
const matIcon = getAnchorElement()[0].nativeElement.childNodes[1]
const ngIcon = getAnchorElement()[0].nativeElement.childNodes[1]
expect(href).toBe(testWithHTML.output)
expect(matIcon.nodeName).toContain('NG-ICON')
expect(ngIcon.nodeName).toContain('NG-ICON')
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,12 @@ import { ButtonComponent } from '@geonetwork-ui/ui/inputs'
import { PaginationButtonsComponent } from './pagination-buttons.component'
import { FormsModule } from '@angular/forms'
import { action } from '@storybook/addon-actions'
import { MatIcon } from '@angular/material/icon'

export default {
title: 'Elements/PaginationButtonsComponent',
component: PaginationButtonsComponent,
decorators: [
moduleMetadata({
declarations: [MatIcon],
imports: [
ButtonComponent,
UtilI18nModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@ import {
} from '@geonetwork-ui/util/i18n'
import { PaginationComponent } from './pagination.component'
import { ButtonComponent } from '@geonetwork-ui/ui/inputs'
import { MatIcon } from '@angular/material/icon'
import { FormsModule } from '@angular/forms'

export default {
title: 'Elements/PaginationComponent',
component: PaginationComponent,
decorators: [
moduleMetadata({
declarations: [MatIcon],
imports: [
ButtonComponent,
UtilI18nModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,13 @@ import {
UtilI18nModule,
} from '@geonetwork-ui/util/i18n'
import { importProvidersFrom } from '@angular/core'
import { MatIcon } from '@angular/material/icon'

export default {
title: 'Inputs/ChipsInputComponent',
component: ChipsInputComponent,
decorators: [
moduleMetadata({
declarations: [
TagInputComponent,
TagComponent,
MatIcon,
DeleteIconComponent,
],
declarations: [TagInputComponent, TagComponent, DeleteIconComponent],
imports: [
FormsModule,
ReactiveFormsModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,13 @@ 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 { MatIcon } from '@angular/material/icon'
import { ButtonComponent } from '../button/button.component'

export default {
title: 'Inputs/DropdownMultiselectComponent',
component: DropdownMultiselectComponent,
decorators: [
moduleMetadata({
declarations: [MatIcon],
imports: [
ButtonComponent,
OverlayModule,
Expand Down
2 changes: 0 additions & 2 deletions libs/ui/inputs/src/lib/star-toggle/star-toggle.stories.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { Meta, moduleMetadata, StoryObj } from '@storybook/angular'
import { StarToggleComponent } from './star-toggle.component'
import { action } from '@storybook/addon-actions'
import { MatIcon } from '@angular/material/icon'

export default {
title: 'Inputs/StarToggle',
component: StarToggleComponent,
decorators: [
moduleMetadata({
declarations: [MatIcon],
imports: [],
}),
],
Expand Down

0 comments on commit 0612123

Please sign in to comment.