|
@ -9,6 +9,7 @@ import { moduleMetadata } from '@storybook/angular'; |
|
|
import type { Meta, StoryObj } from '@storybook/angular'; |
|
|
import type { Meta, StoryObj } from '@storybook/angular'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader'; |
|
|
|
|
|
|
|
|
|
|
|
import { NotificationService } from 'apps/client/src/app/core/notification/notification.service'; |
|
|
import { GfEntityLogoComponent } from '../entity-logo'; |
|
|
import { GfEntityLogoComponent } from '../entity-logo'; |
|
|
import { GfValueComponent } from '../value'; |
|
|
import { GfValueComponent } from '../value'; |
|
|
import { GfAccountsTableComponent } from './accounts-table.component'; |
|
|
import { GfAccountsTableComponent } from './accounts-table.component'; |
|
@ -103,16 +104,17 @@ export default { |
|
|
moduleMetadata({ |
|
|
moduleMetadata({ |
|
|
imports: [ |
|
|
imports: [ |
|
|
CommonModule, |
|
|
CommonModule, |
|
|
NgxSkeletonLoaderModule, |
|
|
GfEntityLogoComponent, |
|
|
|
|
|
GfValueComponent, |
|
|
|
|
|
IonIcon, |
|
|
MatButtonModule, |
|
|
MatButtonModule, |
|
|
MatMenuModule, |
|
|
MatMenuModule, |
|
|
MatSortModule, |
|
|
MatSortModule, |
|
|
MatTableModule, |
|
|
MatTableModule, |
|
|
RouterModule.forRoot([]), |
|
|
NgxSkeletonLoaderModule, |
|
|
IonIcon, |
|
|
RouterModule.forChild([]), |
|
|
GfEntityLogoComponent, |
|
|
], |
|
|
GfValueComponent |
|
|
providers: [NotificationService] |
|
|
] |
|
|
|
|
|
}) |
|
|
}) |
|
|
] |
|
|
] |
|
|
} as Meta<GfAccountsTableComponent>; |
|
|
} as Meta<GfAccountsTableComponent>; |
|
@ -123,7 +125,7 @@ export const Loading: Story = { |
|
|
args: { |
|
|
args: { |
|
|
accounts: [], |
|
|
accounts: [], |
|
|
baseCurrency: 'USD', |
|
|
baseCurrency: 'USD', |
|
|
deviceType: 'web', |
|
|
deviceType: 'desktop', |
|
|
locale: 'en-US', |
|
|
locale: 'en-US', |
|
|
showActions: false, |
|
|
showActions: false, |
|
|
showAllocationInPercentage: false, |
|
|
showAllocationInPercentage: false, |
|
@ -142,7 +144,7 @@ export const Default: Story = { |
|
|
args: { |
|
|
args: { |
|
|
accounts: mockAccounts, |
|
|
accounts: mockAccounts, |
|
|
baseCurrency: 'USD', |
|
|
baseCurrency: 'USD', |
|
|
deviceType: 'web', |
|
|
deviceType: 'desktop', |
|
|
locale: 'en-US', |
|
|
locale: 'en-US', |
|
|
showActions: false, |
|
|
showActions: false, |
|
|
showAllocationInPercentage: false, |
|
|
showAllocationInPercentage: false, |
|
@ -161,7 +163,7 @@ export const WithActions: Story = { |
|
|
args: { |
|
|
args: { |
|
|
accounts: mockAccounts, |
|
|
accounts: mockAccounts, |
|
|
baseCurrency: 'USD', |
|
|
baseCurrency: 'USD', |
|
|
deviceType: 'web', |
|
|
deviceType: 'desktop', |
|
|
locale: 'en-US', |
|
|
locale: 'en-US', |
|
|
showActions: true, |
|
|
showActions: true, |
|
|
showAllocationInPercentage: true, |
|
|
showAllocationInPercentage: true, |
|
@ -199,7 +201,7 @@ export const WithoutFooter: Story = { |
|
|
args: { |
|
|
args: { |
|
|
accounts: mockAccounts, |
|
|
accounts: mockAccounts, |
|
|
baseCurrency: 'USD', |
|
|
baseCurrency: 'USD', |
|
|
deviceType: 'web', |
|
|
deviceType: 'desktop', |
|
|
locale: 'en-US', |
|
|
locale: 'en-US', |
|
|
showActions: false, |
|
|
showActions: false, |
|
|
showAllocationInPercentage: true, |
|
|
showAllocationInPercentage: true, |
|
|