Skip to content
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
3 changes: 1 addition & 2 deletions projects/www/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down Expand Up @@ -31,7 +31,6 @@
href="https://fonts.googleapis.com/css2?family=Oxanium:[email protected]&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap"
rel="stylesheet"
/>

</head>
<body class="mat-typography mat-app-background">
<ngrx-root></ngrx-root>
Expand Down
34 changes: 17 additions & 17 deletions projects/www/public/site.webmanifest
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "NgRx",
"short_name": "NgRx",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"display": "standalone"
"name": "NgRx",
"short_name": "NgRx",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#000000",
"background_color": "#000000",
"display": "standalone"
}
2 changes: 1 addition & 1 deletion projects/www/src/app/examples/__base/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
Expand Down
8 changes: 8 additions & 0 deletions projects/www/src/app/examples/__base/stackblitz-empty.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: Base withouth main and app files
description: Base template for NgRx examples
files:
src/_theme.scss: './src/_theme.scss'
src/styles.scss: './src/styles.scss'
package.json: './package.json'
tsconfig.json: './tsconfig.json'
vite.config.js: './vite.config.js'
Original file line number Diff line number Diff line change
@@ -1,79 +1,99 @@
<div class="mat-paginator-outer-container" *ngIf="vm$ | async as vm">
<div class="mat-paginator-container">
<div class="mat-paginator-page-size">
<div class="mat-paginator-page-size-label">
Items per page
</div>
<div class="mat-paginator-page-size-label">Items per page</div>

<mat-form-field
*ngIf="vm.pageSizeOptions.length > 1"
class="mat-paginator-page-size-select">
class="mat-paginator-page-size-select"
>
<mat-select
[value]="vm.pageSize"
(selectionChange)="changePageSize($any($event).value)">
<mat-option *ngFor="let pageSizeOption of vm.pageSizeOptions" [value]="pageSizeOption">
(selectionChange)="changePageSize($any($event).value)"
>
<mat-option
*ngFor="let pageSizeOption of vm.pageSizeOptions"
[value]="pageSizeOption"
>
{{pageSizeOption}}
</mat-option>
</mat-select>
</mat-form-field>

<div
class="mat-paginator-page-size-value"
*ngIf="vm.pageSizeOptions.length <= 1">{{vm.pageSize}}</div>
*ngIf="vm.pageSizeOptions.length <= 1"
>
{{vm.pageSize}}
</div>
</div>

<div class="mat-paginator-range-actions">
<div class="mat-paginator-range-label">
{{vm.rangeLabel}}
</div>
<div class="mat-paginator-range-label">{{vm.rangeLabel}}</div>

<button mat-icon-button type="button"
class="mat-paginator-navigation-first"
(click)="firstPage()"
matTooltip="First page"
[matTooltipDisabled]="!vm.hasPreviousPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasPreviousPage">
<button
mat-icon-button
type="button"
class="mat-paginator-navigation-first"
(click)="firstPage()"
matTooltip="First page"
[matTooltipDisabled]="!vm.hasPreviousPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasPreviousPage"
>
<svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
<path
d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"
/>
</svg>
</button>
<button mat-icon-button type="button"
class="mat-paginator-navigation-previous"
(click)="previousPage()"
[attr.aria-label]="'Previous Page'"
[matTooltip]="'Previous Page'"
[matTooltipDisabled]="!vm.hasPreviousPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasPreviousPage">
<button
mat-icon-button
type="button"
class="mat-paginator-navigation-previous"
(click)="previousPage()"
[attr.aria-label]="'Previous Page'"
[matTooltip]="'Previous Page'"
[matTooltipDisabled]="!vm.hasPreviousPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasPreviousPage"
>
<svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/>
<path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z" />
</svg>
</button>
<button mat-icon-button type="button"
class="mat-paginator-navigation-next"
(click)="nextPage()"
[attr.aria-label]="'Next Page'"
[matTooltip]="'Next Page'"
[matTooltipDisabled]="!vm.hasNextPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasNextPage">
<button
mat-icon-button
type="button"
class="mat-paginator-navigation-next"
(click)="nextPage()"
[attr.aria-label]="'Next Page'"
[matTooltip]="'Next Page'"
[matTooltipDisabled]="!vm.hasNextPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasNextPage"
>
<svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" />
</svg>
</button>
<button mat-icon-button type="button"
class="mat-paginator-navigation-last"
(click)="lastPage()"
[attr.aria-label]="'Last Page'"
[matTooltip]="'Last Page'"
[matTooltipDisabled]="!vm.hasNextPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasNextPage">
<button
mat-icon-button
type="button"
class="mat-paginator-navigation-last"
(click)="lastPage()"
[attr.aria-label]="'Last Page'"
[matTooltip]="'Last Page'"
[matTooltipDisabled]="!vm.hasNextPage"
[matTooltipPosition]="'above'"
[disabled]="!vm.hasNextPage"
>
<svg class="mat-paginator-icon" viewBox="0 0 24 24" focusable="false">
<path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/>
<path
d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"
/>
</svg>
</button>
</div>
</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import '~@angular/material/prebuilt-themes/indigo-pink.css';
/* Add application styles & imports to this file! */


$mat-paginator-padding: 0 8px;
$mat-paginator-page-size-margin-right: 8px;

Expand Down Expand Up @@ -77,4 +76,4 @@ $mat-paginator-button-icon-size: 28px;
[dir='rtl'] & {
transform: rotate(180deg);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Paginator ComponentStore Example</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<app-root></app-root>
</body>
<head>
<meta charset="utf-8" />
<title>Paginator ComponentStore Example</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico" />
</head>
<body>
<app-root></app-root>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
@import '~@angular/material/prebuilt-themes/indigo-pink.css';
/* Add application styles & imports to this file! */


$mat-paginator-padding: 0 8px;
$mat-paginator-page-size-margin-right: 8px;

Expand Down Expand Up @@ -77,4 +76,4 @@ $mat-paginator-button-icon-size: 28px;
[dir='rtl'] & {
transform: rotate(180deg);
}
}
}
Loading