Skip to content
This repository was archived by the owner on Jun 22, 2023. It is now read-only.
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
427 changes: 186 additions & 241 deletions package-lock.json

Large diffs are not rendered by default.

136 changes: 136 additions & 0 deletions src/app/components/list/view-switcher/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,136 @@
<sky-tabbed-demo-page
pageTitle="List view switcher"
>

<sky-demo-page-summary>
<p>
The list view switcher module displays toolbar options that enable users to switch between different views of the same data.
</p>
</sky-demo-page-summary>

<sky-demo-page-example>
<div class="sky-text-info sky-margin-stacked-content-section">We are still working on the demo and code samples for the list view switcher. We will update the documentation as soon as they are ready.</div>
</sky-demo-page-example>

<sky-tabset id="content-tabs">

<sky-tab
tabHeading="Design">

<sky-demo-page-content sectionHeading="Usage">
<h3 class="sky-text-success">Use when</h3>
<sky-docs-visual-example>
<sky-docs-visual-example-text>
<p>Use list view switchers when users need to switch between different views of the same data. For example, users may want a sortable grid of events and a calendar view of those same events.</p>
</sky-docs-visual-example-text>
<sky-docs-visual-example-image>
<div>
<img src="~/assets/img/guidelines/list-view-switcher/use-when.png" />
<div class="caption caption-success sky-text-success">Do use list view switchers when more than one view of data is available to users.</div>
</div>
</sky-docs-visual-example-image>
</sky-docs-visual-example>
<h3 class="sky-text-danger">Don't use when</h3>
<sky-docs-visual-example>
<sky-docs-visual-example-text>
<p>Don't use list view switchers when only one view of data is available.</p>
</sky-docs-visual-example-text>
<sky-docs-visual-example-image>
<div>
<img src="~/assets/img/guidelines/list-view-switcher/dont-use-when.png" />
<div class="caption caption-danger sky-text-danger">Don't use list view switchers when users cannot switch between different views.</div>
</div>
</sky-docs-visual-example-image>
</sky-docs-visual-example>
</sky-demo-page-content>

<sky-demo-page-content sectionHeading="Anatomy">
<sky-docs-anatomy imagePath="~/assets/img/guidelines/list-view-switcher/anatomy.png">
<sky-docs-anatomy-item anatomyNumber="1">Active view button</sky-docs-anatomy-item>
<sky-docs-anatomy-item anatomyNumber="2">Inactive view button</sky-docs-anatomy-item>
</sky-docs-anatomy>
</sky-demo-page-content>

<sky-demo-page-content sectionHeading="Options">
<h3>Available views</h3>
<div class="sky-text-block">
<p>You must specify the views that are available to users.</p>
</div>
<h3>Default view</h3>
<div class="sky-text-block">
<p>You must specify the default view to display when the page loads. You specify this default on the list component, not on the list view switcher.</p>
</div>
<h3>Custom views</h3>
<div class="sky-text-block">
<p>You can add custom views if the available SKY UX list types don't work for your scenario.</p>
</div>
</sky-demo-page-content>

<sky-demo-page-content sectionHeading="Behavior & states">
<h3>Maintained state</h3>
<div class="sky-text-block">
<p>When users switch views, the view changes while filters and sorting remain applied.</p>
</div>
<h3>Responsiveness</h3>
<sky-docs-visual-example>
<sky-docs-visual-example-text>
<p>On small viewports, the view switcher collapses to a <a routerLink="/components/dropdown">dropdown</a> to conserve space.</p>
</sky-docs-visual-example-text>
<sky-docs-visual-example-image>
<img src="~/assets/img/guidelines/list-view-switcher/behavior-responsive.png" />
</sky-docs-visual-example-image>
</sky-docs-visual-example>
<h3>States</h3>
<sky-demo-page-component-states>
<sky-demo-page-component-state stateName="Active" imagePath="~/assets/img/guidelines/list-view-switcher/state-active.png"></sky-demo-page-component-state>
<sky-demo-page-component-state stateName="Inactive" imagePath="~/assets/img/guidelines/list-view-switcher/state-inactive.png"></sky-demo-page-component-state>
</sky-demo-page-component-states>
</sky-demo-page-content>

<sky-demo-page-content sectionHeading="Related information">
<h3>Components</h3>
<ul>
<li><a stacheRouterLink="/components/list/overview">List</a></li>
<li><a routerLink="/components/list/toolbar">List toolbar</a></li>
</ul>
</sky-demo-page-content>

</sky-tab>

<sky-tab tabHeading="Development">

<sky-demo-page-module-info
skyuxModule="SkyListViewSwitcherModule"
packageName="@skyux/list-builder"
githubRepo="skyux-list-builder"
>
</sky-demo-page-module-info>

<sky-demo-page-properties
sectionHeading="List view switcher custom button properties"
>
<sky-demo-page-property
propertyName="icon"
isOptional="true"
>
Specifies the icon to display in the list view switcher custom button. This property accepts <sky-code>string</sky-code> values.
</sky-demo-page-property>
<sky-demo-page-property
propertyName="label"
isOptional="true"
>
Specifies a label to display in the list view switcher custom button. This property accepts <sky-code>string</sky-code> values.
</sky-demo-page-property>
<sky-demo-page-property
propertyName="view"
isOptional="true"
>
Specifies the view for the list view switcher custom button to display. The button is useful for custom views because they do not have built-in configurations and are not automatically included as options in the list view switcher. This property accepts <sky-code>ListViewComponent</sky-code> values.
</sky-demo-page-property>
</sky-demo-page-properties>

</sky-tab>

</sky-tabset>

</sky-tabbed-demo-page>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.