diff --git a/src/app/mock-api/common/navigation/data.ts b/src/app/mock-api/common/navigation/data.ts index 2255d914..1e230442 100644 --- a/src/app/mock-api/common/navigation/data.ts +++ b/src/app/mock-api/common/navigation/data.ts @@ -683,9 +683,9 @@ export const defaultNavigation: FuseNavigationItem[] = [ children: [ { id : 'user-interface.angular-material', - title: 'Angular Material', + title: 'Angular Material components', type : 'basic', - icon : 'heroicons_outline:shield-check', + icon : 'heroicons_outline:chip', link : '/ui/angular-material' }, { diff --git a/src/app/modules/admin/ui/angular-material/angular-material.component.html b/src/app/modules/admin/ui/angular-material/angular-material.component.html index f532ae9c..466232c7 100644 --- a/src/app/modules/admin/ui/angular-material/angular-material.component.html +++ b/src/app/modules/admin/ui/angular-material/angular-material.component.html @@ -12,16 +12,30 @@

- Angular Material + Angular Material components

+ +
+ + + Official docs + +
-
+

Fuse uses @@ -46,26 +60,28 @@

Component examples and API documentation

- Because it makes this demo app very heavy and unusable, we don't showcase any of the components - within this demo. It also makes it harder for us to upgrade to the latest version of the Angular - Material whenever there is a new version, simply because we have to update all the component demos - as well, and it's not an easy task. -

-

- With that being said, you should always refer to the official docs, they always have the latest version - up and running so you won't end up with an outdated examples and/or API documentation. + Following, you can find links to the official documentation. Click on the component you want to + learn more about and it will redirect you to the related section of the official documentation.

+
-

Official docs

-

- Angular Material examples and API documentation: +

diff --git a/src/app/modules/admin/ui/angular-material/angular-material.component.ts b/src/app/modules/admin/ui/angular-material/angular-material.component.ts index 5bce8e1a..7018211f 100644 --- a/src/app/modules/admin/ui/angular-material/angular-material.component.ts +++ b/src/app/modules/admin/ui/angular-material/angular-material.component.ts @@ -7,10 +7,509 @@ import { Component, ViewEncapsulation } from '@angular/core'; }) export class AngularMaterialComponent { + components: any[]; + /** * Constructor */ constructor() { + this.components = [ + { + id : 'autocomplete', + name : 'Autocomplete', + summary : 'Suggests relevant options as the user types.', + exampleSpecs : { + prefix: 'autocomplete-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-autocomplete-testing.html' + } + ] + }, + { + id : 'badge', + name : 'Badge', + summary : 'A small value indicator that can be overlaid on another object.', + exampleSpecs : { + prefix: 'badge-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-badge-testing.html' + } + ] + }, + { + id : 'bottom-sheet', + name : 'Bottom Sheet', + summary : 'A large interactive panel primarily for mobile devices.', + exampleSpecs : { + prefix: 'bottom-sheet-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-bottom-sheet-testing.html' + } + ] + }, + { + id : 'button', + name : 'Button', + summary : 'An interactive button with a range of presentation options.', + exampleSpecs : { + prefix : 'button-', + exclude: ['button-toggle-'] + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-button-testing.html' + } + ] + }, + { + id : 'button-toggle', + name : 'Button toggle', + summary : 'A groupable on/off toggle for enabling and disabling options.', + exampleSpecs : { + prefix: 'button-toggle-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-button-toggle-testing.html' + } + ] + }, + { + id : 'card', + name : 'Card', + summary : 'A styled container for pieces of itemized content.', + exampleSpecs : { + prefix: 'card-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-card-testing.html' + } + ] + }, + { + id : 'checkbox', + name : 'Checkbox', + summary : 'Captures boolean input with an optional indeterminate mode.', + exampleSpecs : { + prefix: 'checkbox-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-checkbox-testing.html' + } + ] + }, + { + id : 'chips', + name : 'Chips', + summary : 'Presents a list of items as a set of small, tactile entities.', + exampleSpecs : { + prefix: 'chips-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-chips-testing.html' + } + ] + }, + { + id : 'core', + name : 'Core', + summary : 'Reusable parts used by other components in the library.', + exampleSpecs : { + prefix: 'core-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-core-testing.html' + } + ] + }, + { + id : 'datepicker', + name : 'Datepicker', + summary : 'Captures dates, agnostic about their internal representation.', + exampleSpecs : { + prefix: 'date' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-datepicker-testing.html' + } + ] + }, + { + id : 'dialog', + name : 'Dialog', + summary : 'A configurable modal that displays dynamic content.', + exampleSpecs : { + prefix: 'dialog-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-dialog-testing.html' + } + ] + }, + { + id : 'divider', + name : 'Divider', + summary : 'A vertical or horizontal visual divider.', + exampleSpecs : { + prefix: 'divider-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-divider-testing.html' + } + ] + }, + { + id : 'expansion', + name : 'Expansion Panel', + summary : 'A container which can be expanded to reveal more content.', + exampleSpecs : { + prefix: 'expansion-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-expansion-testing.html' + } + ] + }, + { + id : 'form-field', + name : 'Form field', + summary : 'Wraps input fields so they are displayed consistently.', + exampleSpecs : { + prefix: 'form-field-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-form-field-testing.html' + } + ] + }, + { + id : 'grid-list', + name : 'Grid list', + summary : 'A flexible structure for presenting content items in a grid.', + exampleSpecs : { + prefix: 'grid-list-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-grid-list-testing.html' + } + ] + }, + { + id : 'icon', + name : 'Icon', + summary : 'Renders a specified icon.', + exampleSpecs : { + prefix: 'icon-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-icon-testing.html' + } + ] + }, + { + id : 'input', + name : 'Input', + summary : 'Enables native inputs to be used within a Form field.', + exampleSpecs : { + prefix: 'input-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-input-testing.html' + } + ] + }, + { + id : 'list', + name : 'List', + summary : 'Presents conventional lists of items.', + exampleSpecs : { + prefix: 'list-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-list-testing.html' + } + ] + }, + { + id : 'menu', + name : 'Menu', + summary : 'A floating panel of nestable options.', + exampleSpecs : { + prefix: 'menu-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-menu-testing.html' + } + ] + }, + { + id : 'paginator', + name : 'Paginator', + summary : 'Controls for displaying paged data.', + exampleSpecs : { + prefix: 'paginator-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-paginator-testing.html' + } + ] + }, + { + id : 'progress-bar', + name : 'Progress bar', + summary : 'A linear progress indicator.', + exampleSpecs : { + prefix: 'progress-bar-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-progress-bar-testing.html' + } + ] + }, + { + id : 'progress-spinner', + name : 'Progress spinner', + summary : 'A circular progress indicator.', + exampleSpecs : { + prefix: 'progress-spinner-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-progress-spinner-testing.html' + } + ] + }, + { + id : 'radio', + name : 'Radio button', + summary : 'Allows the user to select one option from a group.', + exampleSpecs : { + prefix: 'radio-' + + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-radio-testing.html' + } + ] + }, + { + id : 'ripple', + name : 'Ripples', + overviewPath: 'material/core/ripple/ripple.html', + summary : 'Directive for adding Material Design ripple effects', + exampleSpecs: { + prefix: 'ripple-' + } + }, + { + id : 'select', + name : 'Select', + summary : 'Allows the user to select one or more options using a dropdown.', + exampleSpecs : { + prefix: 'select-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-select-testing.html' + } + ] + }, + { + id : 'sidenav', + name : 'Sidenav', + summary : 'A container for content that is fixed to one side of the screen.', + exampleSpecs : { + prefix: 'sidenav-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-sidenav-testing.html' + } + ] + }, + { + id : 'slide-toggle', + name : 'Slide toggle', + summary : 'Captures boolean values as a clickable and draggable switch.', + exampleSpecs : { + prefix: 'slide-toggle-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-slide-toggle-testing.html' + } + ] + }, + { + id : 'slider', + name : 'Slider', + summary : 'Allows the user to input a value by dragging along a slider.', + exampleSpecs : { + prefix: 'slider-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-slider-testing.html' + } + ] + }, + { + id : 'snack-bar', + name : 'Snackbar', + summary : 'Displays short actionable messages as an uninvasive alert.', + exampleSpecs : { + prefix: 'snack-bar-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-snack-bar-testing.html' + } + ] + }, + { + id : 'sort', + name : 'Sort header', + summary : 'Allows the user to configure how tabular data is sorted.', + exampleSpecs : { + prefix: 'sort-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-sort-testing.html' + } + ] + }, + { + id : 'stepper', + name : 'Stepper', + summary : 'Presents content as steps through which to progress.', + exampleSpecs : { + prefix: 'stepper-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-stepper-testing.html' + } + ] + }, + { + id : 'table', + name : 'Table', + summary : 'A configurable component for displaying tabular data.', + exampleSpecs : { + prefix: 'table-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-table-testing.html' + } + ] + }, + { + id : 'tabs', + name : 'Tabs', + summary : 'Only presents one view at a time from a provided set of views.', + exampleSpecs : { + prefix: 'tab-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-tabs-testing.html' + } + ] + }, + { + id : 'toolbar', + name : 'Toolbar', + summary : 'A container for top-level titles and controls.', + exampleSpecs : { + prefix: 'toolbar-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-toolbar-testing.html' + } + ] + }, + { + id : 'tooltip', + name : 'Tooltip', + summary : 'Displays floating content when an object is hovered.', + exampleSpecs : { + prefix: 'tooltip-' + }, + additionalApiDocs: [ + { + name: 'Testing', + path: 'material-tooltip-testing.html' + } + ] + }, + { + id : 'tree', + name : 'Tree', + summary : 'Presents hierarchical content as an expandable tree.', + exampleSpecs: { + prefix: 'tree-' + } + } + ]; } } diff --git a/src/app/modules/admin/ui/angular-material/angular-material.module.ts b/src/app/modules/admin/ui/angular-material/angular-material.module.ts index e9f50694..795eb091 100644 --- a/src/app/modules/admin/ui/angular-material/angular-material.module.ts +++ b/src/app/modules/admin/ui/angular-material/angular-material.module.ts @@ -1,5 +1,7 @@ import { NgModule } from '@angular/core'; import { Route, RouterModule } from '@angular/router'; +import { MatButtonModule } from '@angular/material/button'; +import { MatIconModule } from '@angular/material/icon'; import { SharedModule } from 'app/shared/shared.module'; import { AngularMaterialComponent } from 'app/modules/admin/ui/angular-material/angular-material.component'; @@ -16,6 +18,8 @@ export const routes: Route[] = [ ], imports : [ RouterModule.forChild(routes), + MatButtonModule, + MatIconModule, SharedModule ] }) diff --git a/src/assets/images/ui/angular-material/scenes/autocomplete.scene.png b/src/assets/images/ui/angular-material/scenes/autocomplete.scene.png new file mode 100644 index 00000000..de997b1f Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/autocomplete.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/badge.scene.png b/src/assets/images/ui/angular-material/scenes/badge.scene.png new file mode 100644 index 00000000..e9a79dbe Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/badge.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/bottom-sheet.scene.png b/src/assets/images/ui/angular-material/scenes/bottom-sheet.scene.png new file mode 100644 index 00000000..f23e8644 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/bottom-sheet.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/button-toggle.scene.png b/src/assets/images/ui/angular-material/scenes/button-toggle.scene.png new file mode 100644 index 00000000..5a227fda Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/button-toggle.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/button.scene.png b/src/assets/images/ui/angular-material/scenes/button.scene.png new file mode 100644 index 00000000..74448b3d Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/button.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/card.scene.png b/src/assets/images/ui/angular-material/scenes/card.scene.png new file mode 100644 index 00000000..4f6cac99 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/card.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/checkbox.scene.png b/src/assets/images/ui/angular-material/scenes/checkbox.scene.png new file mode 100644 index 00000000..7b0327a7 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/checkbox.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/chips.scene.png b/src/assets/images/ui/angular-material/scenes/chips.scene.png new file mode 100644 index 00000000..40f6085b Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/chips.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/core.scene.png b/src/assets/images/ui/angular-material/scenes/core.scene.png new file mode 100644 index 00000000..9f70df7d Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/core.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/datepicker.scene.png b/src/assets/images/ui/angular-material/scenes/datepicker.scene.png new file mode 100644 index 00000000..8bfbd872 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/datepicker.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/dialog.scene.png b/src/assets/images/ui/angular-material/scenes/dialog.scene.png new file mode 100644 index 00000000..ff3c3528 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/dialog.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/divider.scene.png b/src/assets/images/ui/angular-material/scenes/divider.scene.png new file mode 100644 index 00000000..ac7749fb Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/divider.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/expansion.scene.png b/src/assets/images/ui/angular-material/scenes/expansion.scene.png new file mode 100644 index 00000000..c95ce30f Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/expansion.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/form-field.scene.png b/src/assets/images/ui/angular-material/scenes/form-field.scene.png new file mode 100644 index 00000000..868454db Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/form-field.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/grid-list.scene.png b/src/assets/images/ui/angular-material/scenes/grid-list.scene.png new file mode 100644 index 00000000..236fe74d Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/grid-list.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/icon.scene.png b/src/assets/images/ui/angular-material/scenes/icon.scene.png new file mode 100644 index 00000000..0e94810d Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/icon.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/input.scene.png b/src/assets/images/ui/angular-material/scenes/input.scene.png new file mode 100644 index 00000000..653478fa Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/input.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/list.scene.png b/src/assets/images/ui/angular-material/scenes/list.scene.png new file mode 100644 index 00000000..575c4fc4 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/list.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/menu.scene.png b/src/assets/images/ui/angular-material/scenes/menu.scene.png new file mode 100644 index 00000000..e9ec270d Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/menu.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/paginator.scene.png b/src/assets/images/ui/angular-material/scenes/paginator.scene.png new file mode 100644 index 00000000..8c393575 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/paginator.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/progress-bar.scene.png b/src/assets/images/ui/angular-material/scenes/progress-bar.scene.png new file mode 100644 index 00000000..296e9dce Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/progress-bar.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/progress-spinner.scene.png b/src/assets/images/ui/angular-material/scenes/progress-spinner.scene.png new file mode 100644 index 00000000..869917c6 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/progress-spinner.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/radio.scene.png b/src/assets/images/ui/angular-material/scenes/radio.scene.png new file mode 100644 index 00000000..ecac3b10 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/radio.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/ripple.scene.png b/src/assets/images/ui/angular-material/scenes/ripple.scene.png new file mode 100644 index 00000000..9d9c93dd Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/ripple.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/select.scene.png b/src/assets/images/ui/angular-material/scenes/select.scene.png new file mode 100644 index 00000000..90b44cc1 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/select.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/sidenav.scene.png b/src/assets/images/ui/angular-material/scenes/sidenav.scene.png new file mode 100644 index 00000000..18ceeac0 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/sidenav.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/slide-toggle.scene.png b/src/assets/images/ui/angular-material/scenes/slide-toggle.scene.png new file mode 100644 index 00000000..15ea8313 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/slide-toggle.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/slider.scene.png b/src/assets/images/ui/angular-material/scenes/slider.scene.png new file mode 100644 index 00000000..8bae38c2 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/slider.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/snack-bar.scene.png b/src/assets/images/ui/angular-material/scenes/snack-bar.scene.png new file mode 100644 index 00000000..d327b5d0 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/snack-bar.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/sort.scene.png b/src/assets/images/ui/angular-material/scenes/sort.scene.png new file mode 100644 index 00000000..8055fe0a Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/sort.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/stepper.scene.png b/src/assets/images/ui/angular-material/scenes/stepper.scene.png new file mode 100644 index 00000000..031aadea Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/stepper.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/table.scene.png b/src/assets/images/ui/angular-material/scenes/table.scene.png new file mode 100644 index 00000000..749a16ae Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/table.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/tabs.scene.png b/src/assets/images/ui/angular-material/scenes/tabs.scene.png new file mode 100644 index 00000000..22d9d20a Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/tabs.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/toolbar.scene.png b/src/assets/images/ui/angular-material/scenes/toolbar.scene.png new file mode 100644 index 00000000..1cf42685 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/toolbar.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/tooltip.scene.png b/src/assets/images/ui/angular-material/scenes/tooltip.scene.png new file mode 100644 index 00000000..6d032805 Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/tooltip.scene.png differ diff --git a/src/assets/images/ui/angular-material/scenes/tree.scene.png b/src/assets/images/ui/angular-material/scenes/tree.scene.png new file mode 100644 index 00000000..d8aec40a Binary files /dev/null and b/src/assets/images/ui/angular-material/scenes/tree.scene.png differ