-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(editor): adjustements to the record table, add story
- Loading branch information
Showing
6 changed files
with
46 additions
and
25 deletions.
There are no files selected for viewing
3 changes: 0 additions & 3 deletions
3
apps/datahub/src/app/home/header-badge-button/header-badge-button.component.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
mat-icon { | ||
font-variation-settings: 'FILL' 1; | ||
} | ||
9 changes: 2 additions & 7 deletions
9
libs/ui/elements/src/lib/pagination-buttons/pagination-buttons.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
libs/ui/search/src/lib/record-table/record-table.component.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import type { Meta, StoryObj } from '@storybook/angular' | ||
import { moduleMetadata } from '@storybook/angular' | ||
import { RecordTableComponent } from './record-table.component' | ||
import { DATASET_RECORDS } from '@geonetwork-ui/common/fixtures' | ||
import { action } from '@storybook/addon-actions' | ||
import { MatIconModule } from '@angular/material/icon' | ||
import { UiInputsModule } from '@geonetwork-ui/ui/inputs' | ||
|
||
const meta: Meta<RecordTableComponent> = { | ||
component: RecordTableComponent, | ||
title: 'Search/RecordTableComponent', | ||
decorators: [ | ||
moduleMetadata({ | ||
declarations: [RecordTableComponent], | ||
imports: [UiInputsModule, MatIconModule], | ||
}), | ||
], | ||
render: (args: RecordTableComponent) => ({ | ||
props: { | ||
...args, | ||
recordSelect: action('recordSelect'), | ||
sortByChange: action('sortByChange'), | ||
}, | ||
}), | ||
} | ||
export default meta | ||
type Story = StoryObj<RecordTableComponent> | ||
|
||
export const Primary: Story = { | ||
args: { | ||
records: DATASET_RECORDS.concat(DATASET_RECORDS, DATASET_RECORDS), | ||
totalHits: 1234, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters