Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add wireframes #156

Open
wants to merge 1 commit into
base: next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions prez-components/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { type Preview, setup } from "@storybook/vue3";
import PrimeVue from "primevue/config";
import "primevue/resources/themes/lara-dark-indigo/theme.css";
// import "primevue/resources/themes/saga-blue/theme.css";
//import "primevue/resources/themes/lara-dark-indigo/theme.css";
import "primevue/resources/themes/saga-blue/theme.css";
import "primeicons/primeicons.css";
import Tooltip from 'primevue/tooltip';

Expand Down
45 changes: 37 additions & 8 deletions prez-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions prez-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@
"vue-tsc": "^1.8.4"
},
"dependencies": {
"@vue-leaflet/vue-leaflet": "^0.10.1",
"leaflet": "^1.9.4",
"prez-lib": "file:../prez-lib",
"primeicons": "^6.0.1",
"primevue": "^3.41.1"
Expand Down
127 changes: 127 additions & 0 deletions prez-components/src/stories/Wireframe.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
import type { Meta, StoryObj } from "@storybook/vue3";
import { vueRouter } from "storybook-vue3-router";
import wf from "../wireframes/PrezWireframes01.vue";

import DataTable from "primevue/datatable";

const meta = {
title: "Wireframes",
component: wf,
tags: ["autodocs"],
argTypes: {
title: { description: 'Title to use', type: 'string'},
sidePanel: { description: 'Show the side panel', type: 'boolean'},
sidePanelSearch: { description: 'Show the search box', type: 'boolean'},
sidePanelProfile: { description: 'Show the profile selector', type: 'boolean'},
pageType: { description: 'List, item or search page', type: 'string', control: 'radio', options: ['list', 'item', 'search']},
showMap: { description: 'Show the map component', type: 'boolean'}
}
} satisfies Meta<typeof wf>;

export default meta;
type Story = StoryObj<typeof meta>;

export const ListingPage: Story = {
args: {
title: 'Catalog collection',
sidePanel: false,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: false,
pageType: 'list'
}
}

export const ListingPageWithSidePanel: Story = {
args: {
title: 'Catalog collection',
sidePanel: true,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: false,
pageType: 'list'
}
}

export const ListingPageWithMap: Story = {
args: {
title: 'Catalog collection',
sidePanel: false,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: true,
pageType: 'list'
}
}

export const ListingPageWithMapAndSidePanel: Story = {
args: {
title: 'Catalog collection',
sidePanel: true,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: true,
pageType: 'list'
}
}

export const ItemPage: Story = {
args: {
title: 'A catalog of Building Block Vocabularies',
sidePanel: false,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: false,
pageType: 'item'
}
}
// include hierarchy, embedded form

export const ItemPageWithMap: Story = {
args: {
title: 'A catalog of Building Block Vocabularies',
sidePanel: false,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: true,
pageType: 'item'
}
}

export const ItemPageWithPanelAndMap: Story = {
args: {
title: 'A catalog of Building Block Vocabularies',
sidePanel: true,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: true,
pageType: 'item'
}
}

export const SearchPage: Story = {
args: {
title: 'Search page',
sidePanel: false,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: false,
pageType: 'search'
}
}

export const SearchPageWithMap: Story = {
args: {
title: 'Search page',
sidePanel: false,
sidePanelSearch: true,
sidePanelProfile: true,
showMap: true,
pageType: 'search'
}
}


// ListingPage.decorators = [
// vueRouter()
// ];
Loading