From 2bc1dbee7e46e51c317e761d38e48a1004ca0aad Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Fri, 15 Dec 2023 21:59:27 +0100 Subject: [PATCH 1/5] removed unused modules --- package.json | 2 +- .../src/fs-calendar/fs-calendar.module.ts | 3 +- .../fs-material-full.module.ts | 88 ------------------- .../src/fs-material-full/public-api.ts | 5 -- .../src/fs-nav-frame/fs-nav-frame.module.ts | 3 +- projects/ng-mat-components/src/public-api.ts | 1 - 6 files changed, 3 insertions(+), 99 deletions(-) delete mode 100644 projects/ng-mat-components/src/fs-material-full/fs-material-full.module.ts delete mode 100644 projects/ng-mat-components/src/fs-material-full/public-api.ts diff --git a/package.json b/package.json index 99ed713..5e511bb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@fullstack-devops/ng-mat-components", "version": "0.0.0-PLACEHOLDER", "engines": { - "node": ">=14.0.0 <17.0.0", + "node": ">=18.0.0", "yarn": "^1.22.17", "npm": "Please use Yarn instead of NPM to install dependencies. See: https://yarnpkg.com/lang/en/docs/install/" }, diff --git a/projects/ng-mat-components/src/fs-calendar/fs-calendar.module.ts b/projects/ng-mat-components/src/fs-calendar/fs-calendar.module.ts index 874a41a..2e36837 100644 --- a/projects/ng-mat-components/src/fs-calendar/fs-calendar.module.ts +++ b/projects/ng-mat-components/src/fs-calendar/fs-calendar.module.ts @@ -1,14 +1,13 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; -import { MatDividerModule } from '@angular/material/divider'; import { FsCalendarPanelsComponent } from './calendar-panels/calendar-panels.component'; import { FsCalendarTableComponent } from './calendar-table/fs-calendar-table.component'; import { FsCalendarTableNameDirective } from './directives/fs-calendar-table-name.directive'; @NgModule({ declarations: [FsCalendarPanelsComponent, FsCalendarTableComponent, FsCalendarTableNameDirective], - imports: [CommonModule, MatButtonModule, MatDividerModule], + imports: [CommonModule, MatButtonModule], exports: [FsCalendarPanelsComponent, FsCalendarTableComponent, FsCalendarTableNameDirective], }) export class FsCalendarModule {} diff --git a/projects/ng-mat-components/src/fs-material-full/fs-material-full.module.ts b/projects/ng-mat-components/src/fs-material-full/fs-material-full.module.ts deleted file mode 100644 index 9c0a2bf..0000000 --- a/projects/ng-mat-components/src/fs-material-full/fs-material-full.module.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { A11yModule } from '@angular/cdk/a11y'; -import { DragDropModule } from '@angular/cdk/drag-drop'; -import { ScrollingModule } from '@angular/cdk/scrolling'; -import { CdkStepperModule } from '@angular/cdk/stepper'; -import { CdkTableModule } from '@angular/cdk/table'; -import { CdkTreeModule } from '@angular/cdk/tree'; -import { NgModule } from '@angular/core'; -import { MatAutocompleteModule } from '@angular/material/autocomplete'; -import { MatBadgeModule } from '@angular/material/badge'; -import { MatBottomSheetModule } from '@angular/material/bottom-sheet'; -import { MatButtonModule } from '@angular/material/button'; -import { MatButtonToggleModule } from '@angular/material/button-toggle'; -import { MatCardModule } from '@angular/material/card'; -import { MatCheckboxModule } from '@angular/material/checkbox'; -import { MatChipsModule } from '@angular/material/chips'; -import { MatNativeDateModule, MatRippleModule } from '@angular/material/core'; -import { MatDatepickerModule } from '@angular/material/datepicker'; -import { MatDialogModule } from '@angular/material/dialog'; -import { MatDividerModule } from '@angular/material/divider'; -import { MatExpansionModule } from '@angular/material/expansion'; -import { MatGridListModule } from '@angular/material/grid-list'; -import { MatIconModule } from '@angular/material/icon'; -import { MatInputModule } from '@angular/material/input'; -import { MatListModule } from '@angular/material/list'; -import { MatMenuModule } from '@angular/material/menu'; -import { MatPaginatorModule } from '@angular/material/paginator'; -import { MatProgressBarModule } from '@angular/material/progress-bar'; -import { MatProgressSpinnerModule } from '@angular/material/progress-spinner'; -import { MatRadioModule } from '@angular/material/radio'; -import { MatSelectModule } from '@angular/material/select'; -import { MatSidenavModule } from '@angular/material/sidenav'; -import { MatSlideToggleModule } from '@angular/material/slide-toggle'; -import { MatSliderModule } from '@angular/material/slider'; -import { MatSnackBarModule } from '@angular/material/snack-bar'; -import { MatSortModule } from '@angular/material/sort'; -import { MatStepperModule } from '@angular/material/stepper'; -import { MatTableModule } from '@angular/material/table'; -import { MatTabsModule } from '@angular/material/tabs'; -import { MatToolbarModule } from '@angular/material/toolbar'; -import { MatTooltipModule } from '@angular/material/tooltip'; -import { MatTreeModule } from '@angular/material/tree'; - -@NgModule({ - exports: [ - A11yModule, - CdkStepperModule, - CdkTableModule, - CdkTreeModule, - DragDropModule, - MatAutocompleteModule, - MatBadgeModule, - MatBottomSheetModule, - MatButtonModule, - MatButtonToggleModule, - MatCardModule, - MatCheckboxModule, - MatChipsModule, - MatStepperModule, - MatDatepickerModule, - MatDialogModule, - MatDividerModule, - MatExpansionModule, - MatGridListModule, - MatIconModule, - MatInputModule, - MatListModule, - MatMenuModule, - MatNativeDateModule, - MatPaginatorModule, - MatProgressBarModule, - MatProgressSpinnerModule, - MatRadioModule, - MatRippleModule, - MatSelectModule, - MatSidenavModule, - MatSliderModule, - MatSlideToggleModule, - MatSnackBarModule, - MatSortModule, - MatTableModule, - MatTabsModule, - MatToolbarModule, - MatTooltipModule, - MatTreeModule, - ScrollingModule, - ], -}) -export class FsMaterialFullModule {} diff --git a/projects/ng-mat-components/src/fs-material-full/public-api.ts b/projects/ng-mat-components/src/fs-material-full/public-api.ts deleted file mode 100644 index 2a5e1ef..0000000 --- a/projects/ng-mat-components/src/fs-material-full/public-api.ts +++ /dev/null @@ -1,5 +0,0 @@ -/* - * Public API Surface of ng-mat-components - */ - -export { FsMaterialFullModule } from './fs-material-full.module'; diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts index 7cce4ad..31f65ca 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts @@ -7,7 +7,6 @@ import { RouterModule } from '@angular/router'; import { MatButtonModule } from '@angular/material/button'; import { MatIconModule } from '@angular/material/icon'; -import { MatListModule } from '@angular/material/list'; import { FsNavFrameContentDirective } from './directives/fs-nav-frame-content.directive'; import { FsNavFrameSidebarDirective } from './directives/fs-nav-frame-sidebar.directive'; import { FsNavFrameComponent } from './fs-nav-frame.component'; @@ -21,7 +20,7 @@ import { FsNavFrameToolbarStartDirective } from './nav-frame-toolbar/directives/ import { FsNavFrameToolbarComponent } from './nav-frame-toolbar/fs-nav-frame-toolbar.component'; @NgModule({ - imports: [CommonModule, BrowserModule, BrowserAnimationsModule, RouterModule, MatIconModule, MatButtonModule, MatListModule], + imports: [CommonModule, BrowserModule, BrowserAnimationsModule, RouterModule, MatIconModule, MatButtonModule], exports: [ FsNavFrameComponent, FsNavFrameToolbarComponent, diff --git a/projects/ng-mat-components/src/public-api.ts b/projects/ng-mat-components/src/public-api.ts index 362ade3..6bb6510 100644 --- a/projects/ng-mat-components/src/public-api.ts +++ b/projects/ng-mat-components/src/public-api.ts @@ -3,5 +3,4 @@ */ export * from './fs-calendar/public-api'; -export * from './fs-material-full/public-api'; export * from './fs-nav-frame/public-api'; From 60c6612fc2d416b85b0e1a3a892967cea71f2708 Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Sun, 17 Dec 2023 00:54:50 +0100 Subject: [PATCH 2/5] fix components stage 1 --- .vscode/settings.json | 41 --------------- angular.json | 8 +++ package.json | 48 +++++++++--------- projects/lib-workspace/.browserslistrc | 16 ------ .../lib-workspace/src/app/app.component.html | 22 +++++++- projects/lib-workspace/src/test.ts | 16 ------ projects/ng-mat-components/.browserslistrc | 16 ------ .../components/fs-nav-frame-item.ts | 50 +++++++++++++++++++ .../fs-nav-frame-sidebar-item.component.html | 4 ++ .../fs-nav-frame-sidebar-item.component.scss | 36 +++++++++++++ .../fs-nav-frame-sidebar-item.component.ts | 33 ++++++++++++ .../components/fs-nav-frame-sidebar.ts | 17 +++++++ .../fs-sidebar-item-icon.directive.ts | 9 ++++ .../fs-sidebar-item-title.directive.ts | 9 ++++ .../fs-nav-frame/fs-nav-frame.component.html | 38 ++++---------- .../fs-nav-frame/fs-nav-frame.component.scss | 2 +- .../src/fs-nav-frame/fs-nav-frame.module.ts | 34 +++++++++++-- .../fs-nav-user-profile.component.html | 10 +--- .../fs-nav-user-profile.component.scss | 8 +-- .../services/fs-nav-frame.service.ts | 4 +- projects/ng-mat-components/src/test.ts | 16 ------ .../styles/fs-nav-frame/_theming.scss | 4 +- tsconfig.json | 5 +- 23 files changed, 265 insertions(+), 181 deletions(-) delete mode 100644 projects/lib-workspace/.browserslistrc delete mode 100644 projects/ng-mat-components/.browserslistrc create mode 100644 projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts create mode 100644 projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.html create mode 100644 projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss create mode 100644 projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.ts create mode 100644 projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar.ts create mode 100644 projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts create mode 100644 projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts diff --git a/.vscode/settings.json b/.vscode/settings.json index fe00923..e69de29 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,41 +0,0 @@ -{ - "editor.formatOnPaste": true, - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.organizeImports": true - }, - "workbench.iconTheme": "material-icon-theme", - "editor.defaultFormatter": "esbenp.prettier-vscode", - "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "javascript.updateImportsOnFileMove.enabled": "always", - "typescript.updateImportsOnFileMove.enabled": "always", - "angular.enable-strict-mode-prompt": false, - "files.associations": { - ".env*": "shell" - }, - "[yaml]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - }, - "[scss]": { - "editor.defaultFormatter": "vscode.css-language-features" - }, - "[html]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true - }, - "editor.formatOnSave": true - }, - "[typescript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode", - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true - }, - "editor.formatOnSave": true - }, - "[xml]": { - "editor.defaultFormatter": "redhat.vscode-xml" - } -} \ No newline at end of file diff --git a/angular.json b/angular.json index f332d2f..45d3ed3 100644 --- a/angular.json +++ b/angular.json @@ -142,5 +142,13 @@ }, "cli": { "analytics": false + }, + "schematics": { + "@angular-eslint/schematics:application": { + "setParserOptionsProject": true + }, + "@angular-eslint/schematics:library": { + "setParserOptionsProject": true + } } } diff --git a/package.json b/package.json index 5e511bb..8d67d0a 100644 --- a/package.json +++ b/package.json @@ -20,16 +20,18 @@ }, "private": false, "dependencies": { - "@angular/animations": "^14.2.12", - "@angular/cdk": "^14.2.7", - "@angular/common": "^14.2.12", - "@angular/compiler": "^14.2.12", - "@angular/core": "^14.2.12", - "@angular/forms": "^14.2.12", - "@angular/material": "^14.2.7", - "@angular/platform-browser": "^14.2.12", - "@angular/platform-browser-dynamic": "^14.2.12", - "@angular/router": "^14.2.12", + "@angular/animations": "^15.2.10", + "@angular/cdk": "^15.2.9", + "@angular/common": "^15.2.10", + "@angular/compiler": "^15.2.10", + "@angular/core": "^15.2.10", + "@angular/forms": "^15.2.10", + "@angular/material": "^15.2.9", + "@angular/platform-browser": "^15.2.10", + "@angular/platform-browser-dynamic": "^15.2.10", + "@angular/router": "^15.2.10", + "@ng-icons/core": "24", + "@ng-icons/material-icons": "24", "date-fns": "^2.29.3", "material-icons": "^1.13.1", "postcss": "^8.4.20", @@ -38,30 +40,30 @@ "zone.js": "~0.11.7" }, "devDependencies": { - "@angular-devkit/build-angular": "^14.2.10", - "@angular-eslint/builder": "^14.4.0", - "@angular-eslint/eslint-plugin": "^14.4.0", - "@angular-eslint/eslint-plugin-template": "^14.4.0", - "@angular-eslint/schematics": "^14.4.0", - "@angular-eslint/template-parser": "^14.4.0", - "@angular/cli": "^14.2.10", - "@angular/compiler-cli": "^14.2.12", + "@angular-devkit/build-angular": "^15.2.10", + "@angular-eslint/builder": "^15.2.1", + "@angular-eslint/eslint-plugin": "^15.2.1", + "@angular-eslint/eslint-plugin-template": "^15.2.1", + "@angular-eslint/schematics": "^15.2.1", + "@angular-eslint/template-parser": "^15.2.1", + "@angular/cli": "^15.2.10", + "@angular/compiler-cli": "^15.2.10", "@types/jasmine": "~3.10.0", "@types/node": "^12.11.1", - "@typescript-eslint/eslint-plugin": "^5.36.2", - "@typescript-eslint/parser": "^5.36.2", + "@typescript-eslint/eslint-plugin": "^5.43.0", + "@typescript-eslint/parser": "^5.43.0", "autoprefixer": "^10.4.13", - "eslint": "^8.23.0", + "eslint": "^8.28.0", "jasmine-core": "~4.0.0", "karma": "~6.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "~1.7.0", - "ng-packagr": "^14.2.2", + "ng-packagr": "^15.2.2", "prettier": "^2.8.3", "prettier-eslint": "^15.0.1", "sass": "^1.57.1", "typescript": "~4.8.4" } -} \ No newline at end of file +} diff --git a/projects/lib-workspace/.browserslistrc b/projects/lib-workspace/.browserslistrc deleted file mode 100644 index 4f9ac26..0000000 --- a/projects/lib-workspace/.browserslistrc +++ /dev/null @@ -1,16 +0,0 @@ -# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries - -# For the full list of supported browsers by the Angular framework, please see: -# https://angular.io/guide/browser-support - -# You can see what browsers were selected by your queries by running: -# npx browserslist - -last 1 Chrome version -last 1 Firefox version -last 2 Edge major versions -last 2 Safari major versions -last 2 iOS major versions -Firefox ESR diff --git a/projects/lib-workspace/src/app/app.component.html b/projects/lib-workspace/src/app/app.component.html index 6296468..b125958 100644 --- a/projects/lib-workspace/src/app/app.component.html +++ b/projects/lib-workspace/src/app/app.component.html @@ -25,8 +25,28 @@ + + + home + Home + + + pivot_table_chart + Nav Frame + + + + + - + Some User Enginer diff --git a/projects/lib-workspace/src/test.ts b/projects/lib-workspace/src/test.ts index 437ca40..0c667e3 100644 --- a/projects/lib-workspace/src/test.ts +++ b/projects/lib-workspace/src/test.ts @@ -4,21 +4,5 @@ import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: { - context( - path: string, - deep?: boolean, - filter?: RegExp - ): { - (id: string): T; - keys(): string[]; - }; -}; - // First, initialize the Angular testing environment. getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); - -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/projects/ng-mat-components/.browserslistrc b/projects/ng-mat-components/.browserslistrc deleted file mode 100644 index 4f9ac26..0000000 --- a/projects/ng-mat-components/.browserslistrc +++ /dev/null @@ -1,16 +0,0 @@ -# This file is used by the build system to adjust CSS and JS output to support the specified browsers below. -# For additional information regarding the format and rule options, please see: -# https://github.com/browserslist/browserslist#queries - -# For the full list of supported browsers by the Angular framework, please see: -# https://angular.io/guide/browser-support - -# You can see what browsers were selected by your queries by running: -# npx browserslist - -last 1 Chrome version -last 1 Firefox version -last 2 Edge major versions -last 2 Safari major versions -last 2 iOS major versions -Firefox ESR diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts new file mode 100644 index 0000000..4e4b9aa --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts @@ -0,0 +1,50 @@ +import { CommonModule } from '@angular/common'; +import { ChangeDetectionStrategy, Component, Input, OnInit, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; +import { FsNavFrameService, MenuState } from '../services/fs-nav-frame.service'; + +@Component({ + selector: 'fs-nav-frame-item, a[fs-nav-frame-item], button[fs-nav-frame-item]', + exportAs: 'fsNavFrameItem', + template: ` + + + + `, + styles: [ + ` + .fs-nav-frame-item { + height: 4rem; + display: block; + } + `, + ], + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush, + host: { + class: 'fs-nav-frame-item', + }, + standalone: true, + imports: [CommonModule], +}) +export class FsNavFrameItem implements OnInit { + @Input() routerLink: string | undefined; + @ViewChild(TemplateRef) template: TemplateRef | undefined; + + closed: boolean = true; + isActivePath: string = ''; + + constructor(public frameService: FsNavFrameService) { + this.frameService.menuStateEvent.subscribe(state => { + if (state == MenuState.OPENED) { + this.closed = false; + } else { + this.closed = true; + } + }); + } + + ngOnInit() {} +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.html b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.html new file mode 100644 index 0000000..87b4d6e --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.html @@ -0,0 +1,4 @@ + diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss new file mode 100644 index 0000000..5bb47fd --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss @@ -0,0 +1,36 @@ +fs-nav-frame-sidebar-item { + height: 4rem; + display: block; +} + +fs-nav-frame-sidebar-item button { + width: 100%; + height: 4rem !important; + display: inline-block !important; + + .mdc-button__label { + display: inline-flex; + justify-content: flex-start; + align-items: center; + width: 100%; + overflow: hidden; + text-overflow: ellipsis; + } + + .icon { + margin-left: 13px; + } + + .title { + margin-left: 1rem; + white-space: nowrap; + text-overflow: ellipsis; + } +} + +.sidebar.opened > fs-nav-frame-sidebar > fs-nav-frame-sidebar-item button .title { + display: block; +} +.sidebar:not(.opened) > fs-nav-frame-sidebar > fs-nav-frame-sidebar-item button .title { + display: none; +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.ts b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.ts new file mode 100644 index 0000000..7b29028 --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.ts @@ -0,0 +1,33 @@ +import { ChangeDetectionStrategy, Component, Input, OnInit, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; +import { FsNavFrameService, MenuState } from '../../services/fs-nav-frame.service'; + +@Component({ + selector: 'fs-nav-frame-sidebar-item', + templateUrl: './fs-nav-frame-sidebar-item.component.html', + styleUrls: ['./fs-nav-frame-sidebar-item.component.scss'], + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush, + host: { + class: 'fs-nav-frame-sidebar-item', + }, +}) +export class FsNavFrameSidebarItemComponent implements OnInit { + @Input() routerLink: string | undefined; + @ViewChild(TemplateRef) template: TemplateRef | undefined; + + closed: boolean = this.frameService.menuState == MenuState.CLOSED; + isActivePath: string = ''; + + constructor(public frameService: FsNavFrameService) { + } + + ngOnInit() { + this.frameService.menuStateEvent.subscribe(state => { + if (state == MenuState.OPENED) { + this.closed = false; + } else { + this.closed = true; + } + }); + } +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar.ts b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar.ts new file mode 100644 index 0000000..d5da38d --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar.ts @@ -0,0 +1,17 @@ +import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core'; +import { FsNavFrameService } from '../services/fs-nav-frame.service'; + +@Component({ + selector: 'fs-nav-frame-sidebar', + exportAs: 'fsNavFrameSidebar', + template: '', + host: { + class: 'fs-nav-frame-sidebar', + role: 'navigation', + }, + encapsulation: ViewEncapsulation.None, + changeDetection: ChangeDetectionStrategy.OnPush, + providers: [FsNavFrameService], + standalone: true, +}) +export class FsNavFrameSidebar {} diff --git a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts new file mode 100644 index 0000000..787e86b --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts @@ -0,0 +1,9 @@ +import { Directive } from '@angular/core'; + +@Directive({ + selector: 'fs-sidebar-item-icon, [fsSidebarItemIcon]', + host: { class: 'fs-sidebar-item-icon' }, +}) +export class FsSidebarItemIconDirective { + constructor() {} +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts new file mode 100644 index 0000000..d26cfd5 --- /dev/null +++ b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts @@ -0,0 +1,9 @@ +import { Directive } from '@angular/core'; + +@Directive({ + selector: 'fs-sidebar-item-title, [fsSidebarItemTitle]', + host: { class: 'fs-sidebar-item-title' }, +}) +export class FsSidebarItemTitleDirective { + constructor() {} +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html index 4f10603..e891adb 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html @@ -15,7 +15,15 @@ - diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss index 3fd402d..d4a4b1e 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss @@ -13,9 +13,9 @@ fs-nav-user-profile { align-items: center; button { - width: 4rem; - height: 4rem; - line-height: 4rem; + width: 3rem; + height: 3rem; + font-size: 3rem; .pic { height: 3rem; @@ -29,6 +29,8 @@ fs-nav-user-profile { } .default-profile-pic { + width: 3rem; + height: 3rem; font-size: 3rem; } } diff --git a/projects/ng-mat-components/src/fs-nav-frame/services/fs-nav-frame.service.ts b/projects/ng-mat-components/src/fs-nav-frame/services/fs-nav-frame.service.ts index 7c48984..96a6060 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/services/fs-nav-frame.service.ts +++ b/projects/ng-mat-components/src/fs-nav-frame/services/fs-nav-frame.service.ts @@ -5,9 +5,7 @@ export enum MenuState { OPENED = 'opened', } -@Injectable({ - providedIn: 'root', -}) +@Injectable() export class FsNavFrameService { isMenuClosed = new EventEmitter(); menuState: MenuState = MenuState.CLOSED; diff --git a/projects/ng-mat-components/src/test.ts b/projects/ng-mat-components/src/test.ts index a10d3a7..376a52b 100644 --- a/projects/ng-mat-components/src/test.ts +++ b/projects/ng-mat-components/src/test.ts @@ -5,21 +5,5 @@ import 'zone.js/testing'; import { getTestBed } from '@angular/core/testing'; import { BrowserDynamicTestingModule, platformBrowserDynamicTesting } from '@angular/platform-browser-dynamic/testing'; -declare const require: { - context( - path: string, - deep?: boolean, - filter?: RegExp - ): { - (id: string): T; - keys(): string[]; - }; -}; - // First, initialize the Angular testing environment. getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting()); - -// Then we find all the tests. -const context = require.context('./', true, /\.spec\.ts$/); -// And load the modules. -context.keys().map(context); diff --git a/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss b/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss index 10064ab..71395d5 100644 --- a/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss +++ b/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss @@ -28,10 +28,10 @@ $nav-link-border: 5px; - .sidebar .nav-links li.active::after { + .fs-nav-frame-sidebar-item:has(button.active-link)::after { content: ''; position: absolute; - top: calc($nav-link-border / 2); + margin-top: calc($nav-link-border / 2); left: calc($nav-link-border / 2); z-index: -1; width: calc(100% - $nav-link-border); diff --git a/tsconfig.json b/tsconfig.json index b7cf22c..f4fdaa4 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -21,12 +21,13 @@ "experimentalDecorators": true, "moduleResolution": "node", "importHelpers": true, - "target": "es2020", + "target": "ES2022", "module": "es2020", "lib": [ "es2020", "dom" - ] + ], + "useDefineForClassFields": false }, "angularCompilerOptions": { "enableI18nLegacyMessageIdFormat": false, From 53b07408ffaf00881c03469fc721945e348cf0be Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:57:10 +0100 Subject: [PATCH 3/5] finish --- .github/workflows/build-gh-pages-demo.yaml | 45 ++++++++--------- .../lib-workspace/src/app/app.component.html | 2 +- .../src/app/content/home/home.component.css | 5 +- .../src/app/content/home/home.component.html | 18 +++++-- .../components/fs-nav-frame-item.ts | 50 ------------------- .../fs-nav-frame-sidebar-item.component.scss | 2 +- .../fs-nav-frame-sidebar.directive.ts | 9 ---- .../fs-sidebar-item-icon.directive.ts | 9 ---- .../fs-sidebar-item-title.directive.ts | 9 ---- .../fs-nav-frame/fs-nav-frame.component.html | 5 +- .../fs-nav-frame/fs-nav-frame.component.scss | 17 ++----- .../src/fs-nav-frame/fs-nav-frame.module.ts | 25 +--------- .../fs-nav-user-profile.component.html | 12 ++++- .../fs-nav-user-profile.component.scss | 15 ++++-- .../src/fs-nav-frame/public-api.ts | 6 +-- .../styles/fs-nav-frame/_theming.scss | 8 ++- 16 files changed, 81 insertions(+), 156 deletions(-) delete mode 100644 projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts delete mode 100644 projects/ng-mat-components/src/fs-nav-frame/directives/fs-nav-frame-sidebar.directive.ts delete mode 100644 projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts delete mode 100644 projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts diff --git a/.github/workflows/build-gh-pages-demo.yaml b/.github/workflows/build-gh-pages-demo.yaml index f69f765..c970880 100644 --- a/.github/workflows/build-gh-pages-demo.yaml +++ b/.github/workflows/build-gh-pages-demo.yaml @@ -6,7 +6,7 @@ on: - 'main' jobs: - build-gh-pages-demo: + build-demo: runs-on: ubuntu-latest steps: - name: Checkout code @@ -22,26 +22,25 @@ jobs: - name: build workspace application run: yarn run build:workspace - - name: Checkout code - uses: actions/checkout@v3 - with: - ref: gh-pages-demo - path: 'gh-pages-demo' - - - name: Clean out old dist and copy new dist - run: | - rm -rf gh-pages-demo/* - cp -R dist/lib-workspace/* gh-pages-demo - touch gh-pages-demo/$(date "+%d-%m-%Y_%H-%m-%S")-dummyfile - - - name: push chages to branch - working-directory: gh-pages-demo + - name: Fix permissions run: | - git config user.name "$GITHUB_ACTOR" - git config user.email "$GITHUB_ACTOR@users.noreply.github.com" - - git add . - git status - - git commit -a -m "update dist automated by $GITHUB_ACTOR" - git push + chmod -c -R +rX "_site/" | while read line; do + echo "::warning title=Invalid file permissions automatically fixed::$line" + done + - name: Upload Pages artifact + uses: actions/upload-pages-artifact@v2 + with: + path: dist/lib-workspace + deploy: + needs: build-demo + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v3 diff --git a/projects/lib-workspace/src/app/app.component.html b/projects/lib-workspace/src/app/app.component.html index b125958..5845f90 100644 --- a/projects/lib-workspace/src/app/app.component.html +++ b/projects/lib-workspace/src/app/app.component.html @@ -17,7 +17,7 @@
- + Search diff --git a/projects/lib-workspace/src/app/content/home/home.component.css b/projects/lib-workspace/src/app/content/home/home.component.css index ef4c218..be7e5e3 100644 --- a/projects/lib-workspace/src/app/content/home/home.component.css +++ b/projects/lib-workspace/src/app/content/home/home.component.css @@ -5,9 +5,8 @@ justify-content: center; } -.docs-components .mat-card { - height: 300px; - width: 250px; +.docs-components mat-card { + width: 380px; margin: 8px; cursor: pointer; } diff --git a/projects/lib-workspace/src/app/content/home/home.component.html b/projects/lib-workspace/src/app/content/home/home.component.html index 5580b71..b54d0b2 100644 --- a/projects/lib-workspace/src/app/content/home/home.component.html +++ b/projects/lib-workspace/src/app/content/home/home.component.html @@ -1,23 +1,35 @@
+ + Nav Frame + + Screenshot of Nav Frame - Nav Frame +

Bootstrap your Nav with this nice template and start right away with valuable content.

+ + Calendar Panels + + Screenshot of Calendar Panels - Calendar Panels +

The missing piece to the angular material components.

+ + Calendar Table + + Screenshot of Calendar Table - Calendar Table +

The perfect complement to the calendar panels when it comes to several independent entries.

diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts deleted file mode 100644 index 4e4b9aa..0000000 --- a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-item.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { CommonModule } from '@angular/common'; -import { ChangeDetectionStrategy, Component, Input, OnInit, TemplateRef, ViewChild, ViewEncapsulation } from '@angular/core'; -import { FsNavFrameService, MenuState } from '../services/fs-nav-frame.service'; - -@Component({ - selector: 'fs-nav-frame-item, a[fs-nav-frame-item], button[fs-nav-frame-item]', - exportAs: 'fsNavFrameItem', - template: ` - - - - `, - styles: [ - ` - .fs-nav-frame-item { - height: 4rem; - display: block; - } - `, - ], - encapsulation: ViewEncapsulation.None, - changeDetection: ChangeDetectionStrategy.OnPush, - host: { - class: 'fs-nav-frame-item', - }, - standalone: true, - imports: [CommonModule], -}) -export class FsNavFrameItem implements OnInit { - @Input() routerLink: string | undefined; - @ViewChild(TemplateRef) template: TemplateRef | undefined; - - closed: boolean = true; - isActivePath: string = ''; - - constructor(public frameService: FsNavFrameService) { - this.frameService.menuStateEvent.subscribe(state => { - if (state == MenuState.OPENED) { - this.closed = false; - } else { - this.closed = true; - } - }); - } - - ngOnInit() {} -} diff --git a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss index 5bb47fd..00f4243 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss +++ b/projects/ng-mat-components/src/fs-nav-frame/components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component.scss @@ -18,7 +18,7 @@ fs-nav-frame-sidebar-item button { } .icon { - margin-left: 13px; + margin-left: 12px; } .title { diff --git a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-nav-frame-sidebar.directive.ts b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-nav-frame-sidebar.directive.ts deleted file mode 100644 index a94e4e6..0000000 --- a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-nav-frame-sidebar.directive.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Directive } from '@angular/core'; - -@Directive({ - selector: 'fs-nav-frame-sidebar, [fsNavFrameSidebar]', - host: { class: 'fs-nav-frame-sidebar' }, -}) -export class FsNavFrameSidebarDirective { - constructor() {} -} diff --git a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts deleted file mode 100644 index 787e86b..0000000 --- a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-icon.directive.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Directive } from '@angular/core'; - -@Directive({ - selector: 'fs-sidebar-item-icon, [fsSidebarItemIcon]', - host: { class: 'fs-sidebar-item-icon' }, -}) -export class FsSidebarItemIconDirective { - constructor() {} -} diff --git a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts b/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts deleted file mode 100644 index d26cfd5..0000000 --- a/projects/ng-mat-components/src/fs-nav-frame/directives/fs-sidebar-item-title.directive.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Directive } from '@angular/core'; - -@Directive({ - selector: 'fs-sidebar-item-title, [fsSidebarItemTitle]', - host: { class: 'fs-sidebar-item-title' }, -}) -export class FsSidebarItemTitleDirective { - constructor() {} -} diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html index e891adb..bb91278 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.html @@ -2,7 +2,10 @@
diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.scss b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.scss index 371ff70..ffce2f6 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.scss +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.component.scss @@ -26,10 +26,6 @@ flex-shrink: 0; object-fit: cover; } - - .material-icons { - // font-size: 32px; - } } .app-info-wrapper { @@ -47,11 +43,10 @@ .app-version { padding: 0 1rem; - font-size: .9rem; + font-size: 0.9rem; } } - .app-info-wrapper.opened { display: flex; } @@ -103,14 +98,14 @@ ul { margin: 0; padding: 0; - >li { + > li { position: relative; display: inline-grid; grid-template-columns: 1fr 3rem; align-items: center; width: 100%; - >button:nth-child(1) { + > button:nth-child(1) { width: 100%; height: $sidebar-width-closed; display: inline-flex; @@ -123,10 +118,6 @@ ul { text-overflow: ellipsis; } - .material-icons { - padding-left: 4px; - } - .link-name { margin-left: 1rem; white-space: nowrap; @@ -172,4 +163,4 @@ ul { right: 0; bottom: 0; z-index: 1; -} \ No newline at end of file +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts index 601528b..9a17357 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-frame.module.ts @@ -5,15 +5,10 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RouterModule } from '@angular/router'; import { MatButtonModule } from '@angular/material/button'; -import { MatIconModule } from '@angular/material/icon'; -import { MatListModule } from '@angular/material/list'; -import { FsNavFrameItem } from './components/fs-nav-frame-item'; import { FsNavFrameSidebar } from './components/fs-nav-frame-sidebar'; import { FsNavFrameSidebarItemComponent } from './components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component'; import { FsNavFrameContentDirective } from './directives/fs-nav-frame-content.directive'; -import { FsSidebarItemIconDirective } from './directives/fs-sidebar-item-icon.directive'; -import { FsSidebarItemTitleDirective } from './directives/fs-sidebar-item-title.directive'; import { FsNavFrameComponent } from './fs-nav-frame.component'; import { FsNavUserProfileActionsDirective } from './fs-nav-user-profile/directives/fs-nav-user-profile-actions.directive'; import { FsNavUserProfileNameDirective } from './fs-nav-user-profile/directives/fs-nav-user-profile-name.directive'; @@ -26,17 +21,7 @@ import { FsNavFrameToolbarComponent } from './nav-frame-toolbar/fs-nav-frame-too import { FsNavFrameService } from './services/fs-nav-frame.service'; @NgModule({ - imports: [ - CommonModule, - BrowserModule, - BrowserAnimationsModule, - RouterModule, - FsNavFrameSidebar, - FsNavFrameItem, - MatIconModule, - MatButtonModule, - MatListModule, - ], + imports: [CommonModule, BrowserModule, BrowserAnimationsModule, RouterModule, FsNavFrameSidebar, MatButtonModule], exports: [ FsNavFrameComponent, FsNavFrameToolbarComponent, @@ -45,13 +30,8 @@ import { FsNavFrameService } from './services/fs-nav-frame.service'; FsNavFrameToolbarEndDirective, FsNavFrameContentDirective, - - FsNavFrameItem, FsNavFrameSidebar, - FsNavFrameSidebarItemComponent, - FsSidebarItemTitleDirective, - FsSidebarItemIconDirective, FsNavUserProfileComponent, FsNavUserProfileNameDirective, @@ -66,10 +46,7 @@ import { FsNavFrameService } from './services/fs-nav-frame.service'; FsNavFrameToolbarEndDirective, FsNavFrameContentDirective, - FsNavFrameSidebarItemComponent, - FsSidebarItemTitleDirective, - FsSidebarItemIconDirective, FsNavUserProfileComponent, FsNavUserProfileNameDirective, diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.html b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.html index 13b47c6..d7828c3 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.html +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.html @@ -1,6 +1,14 @@
-
diff --git a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss index d4a4b1e..528a9bc 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss +++ b/projects/ng-mat-components/src/fs-nav-frame/fs-nav-user-profile/fs-nav-user-profile.component.scss @@ -13,10 +13,19 @@ fs-nav-user-profile { align-items: center; button { - width: 3rem; - height: 3rem; + width: 3rem !important; + height: 3rem !important; font-size: 3rem; + .mdc-button__label { + display: inline-flex; + justify-content: center; + align-items: center; + width: 100%; + height: 100%; + overflow: hidden; + } + .pic { height: 3rem; width: 3rem; @@ -70,4 +79,4 @@ fs-nav-user-profile { .profile-content-wrapper.opened { display: flex; -} \ No newline at end of file +} diff --git a/projects/ng-mat-components/src/fs-nav-frame/public-api.ts b/projects/ng-mat-components/src/fs-nav-frame/public-api.ts index 15f0db5..c602187 100644 --- a/projects/ng-mat-components/src/fs-nav-frame/public-api.ts +++ b/projects/ng-mat-components/src/fs-nav-frame/public-api.ts @@ -1,9 +1,11 @@ +import { FsNavFrameSidebarItemComponent } from './components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component'; /* * Public API Surface of ng-mat-components */ export { FsNavFrameContentDirective } from './directives/fs-nav-frame-content.directive'; -export { FsNavFrameSidebarDirective } from './directives/fs-nav-frame-sidebar.directive'; +export { FsNavFrameSidebar } from './components/fs-nav-frame-sidebar'; +export { FsNavFrameSidebarItemComponent } from './components/fs-nav-frame-sidebar-item/fs-nav-frame-sidebar-item.component'; export { FsNavFrameComponent } from './fs-nav-frame.component'; export { FsNavFrameModule } from './fs-nav-frame.module'; export * from './fs-nav-frame.modules'; @@ -15,5 +17,3 @@ export { FsNavFrameToolbarCenterDirective } from './nav-frame-toolbar/directives export { FsNavFrameToolbarEndDirective } from './nav-frame-toolbar/directives/fs-nav-frame-toolbar-end.directive'; export { FsNavFrameToolbarStartDirective } from './nav-frame-toolbar/directives/fs-nav-frame-toolbar-start.directive'; export { FsNavFrameToolbarComponent } from './nav-frame-toolbar/fs-nav-frame-toolbar.component'; - - diff --git a/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss b/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss index 71395d5..f7ec581 100644 --- a/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss +++ b/projects/ng-mat-components/styles/fs-nav-frame/_theming.scss @@ -22,10 +22,14 @@ border-top: 1px solid map-get($foreground, 'divider'); } - .sidebar .profile { + .sidebar .fs-nav-user-profile { border-top: 1px solid map-get($foreground, 'divider'); } + .sidebar .profile-pic-button-wrapper svg { + fill: map-get($foreground, 'text'); + } + $nav-link-border: 5px; .fs-nav-frame-sidebar-item:has(button.active-link)::after { @@ -67,4 +71,4 @@ border-radius: 50%; } -} \ No newline at end of file +} From de457af1cc9277a2655966bcacc81872bec8c712 Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:02:15 +0100 Subject: [PATCH 4/5] fix node version --- .github/workflows/pull-request.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index a2082e4..c0bd1d9 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -19,8 +19,8 @@ jobs: - name: Setup node uses: actions/setup-node@v3 with: - node-version: '16.x' - registry-url: 'https://npm.pkg.github.com' + node-version-file: .nvmrc + registry-url: 'https://registry.npmjs.org' scope: '@fullstack-devops' - name: install packages diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6261efb..8fea0f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,9 +24,9 @@ jobs: uses: actions/checkout@v3 - name: Setup node for npmjs - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version-file: .nvmrc registry-url: 'https://registry.npmjs.org' scope: '@fullstack-devops' From a40f906e3b2ff2106203661bc8f317f0200e04f8 Mon Sep 17 00:00:00 2001 From: eksrha <58111764+eksrha@users.noreply.github.com> Date: Sun, 17 Dec 2023 12:02:15 +0100 Subject: [PATCH 5/5] fix node version --- .nvmrc | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nvmrc diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..3f430af --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18