-
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.
Merge pull request #608 from geonetwork/ME/sorting
Metadata-editor : Sorting catalog
- Loading branch information
Showing
17 changed files
with
277 additions
and
29 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,7 @@ body { | |
.menu-title { | ||
@apply text-xl px-9 py-3; | ||
} | ||
|
||
.mat-mdc-button-base { | ||
line-height: normal; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/* makes sure icons will not make the buttons grow vertically */ | ||
mat-icon.mat-icon { | ||
margin-top: -0.3em; | ||
margin-bottom: -0.3em; | ||
} |
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
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, | ||
}, | ||
} |
Oops, something went wrong.