Browse Source
Task/add Storybook story for copy-to-clipboard functionality in value component (#7365)
* Add Storybook story for copy-to-clipboard functionality
* Update changelog
pull/7364/head
David Requeno
2 days ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
18 additions and
1 deletions
-
CHANGELOG.md
-
libs/ui/src/lib/value/value.component.stories.ts
|
|
|
@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
|
|
|
|
## Unreleased |
|
|
|
|
|
|
|
### Added |
|
|
|
|
|
|
|
- Added a _Storybook_ story for the copy-to-clipboard functionality in the value component |
|
|
|
|
|
|
|
### Changed |
|
|
|
|
|
|
|
- Improved the language localization for German (`de`) |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
import '@angular/localize/init'; |
|
|
|
import { moduleMetadata } from '@storybook/angular'; |
|
|
|
import { provideNoopAnimations } from '@angular/platform-browser/animations'; |
|
|
|
import { applicationConfig, moduleMetadata } from '@storybook/angular'; |
|
|
|
import type { Meta, StoryObj } from '@storybook/angular'; |
|
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
|
|
|
|
@ -9,6 +10,9 @@ export default { |
|
|
|
title: 'Value', |
|
|
|
component: GfValueComponent, |
|
|
|
decorators: [ |
|
|
|
applicationConfig({ |
|
|
|
providers: [provideNoopAnimations()] |
|
|
|
}), |
|
|
|
moduleMetadata({ |
|
|
|
imports: [NgxSkeletonLoaderModule] |
|
|
|
}) |
|
|
|
@ -103,3 +107,12 @@ export const Precision: Story = { |
|
|
|
value: 7.2534802394809285309 |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
export const WithCopyButton: Story = { |
|
|
|
args: { |
|
|
|
enableCopyToClipboardButton: true, |
|
|
|
locale: 'en-US', |
|
|
|
value: 1234.56 |
|
|
|
}, |
|
|
|
name: 'With Copy Button' |
|
|
|
}; |
|
|
|
|