| /******************************************************************************** |
| * Copyright (c) 2020 Contributors to the Eclipse Foundation |
| * |
| * See the NOTICE file(s) distributed with this work for additional |
| * information regarding copyright ownership. |
| * |
| * This program and the accompanying materials are made available under the |
| * terms of the Eclipse Public License 2.0 which is available at |
| * http://www.eclipse.org/legal/epl-2.0 |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| ********************************************************************************/ |
| |
| import {text, withKnobs} from "@storybook/addon-knobs"; |
| import {moduleMetadata, storiesOf} from "@storybook/angular"; |
| import {I18nModule} from "../../../../../core/i18n"; |
| import {createAttachmentTagList} from "../../../../../test"; |
| import {AttachmentsFormModule} from "../../attachments-form.module"; |
| |
| storiesOf("Features / Forms / Attachments", module) |
| .addDecorator(withKnobs) |
| .addDecorator(moduleMetadata({ |
| imports: [ |
| I18nModule, |
| AttachmentsFormModule |
| ] |
| })) |
| .add("AttachmentFileDropFormComponent", () => ({ |
| template: ` |
| <app-attachment-file-drop-form style="margin: 1em; box-sizing: border-box" |
| [appTitle]="appTitle()" |
| [appTagList]="appTagList" |
| > |
| </app-attachment-file-drop-form> |
| `, |
| props: { |
| appTitle: () => text("appTitle", "Anhänge übernehmen"), |
| appTagList: createAttachmentTagList() |
| } |
| })); |