Skip to content

Commit c37b08a

Browse files
authored
Fix/workspace imports (#94)
1 parent 2436b11 commit c37b08a

27 files changed

+371
-245
lines changed

.eslintrc.json

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
11
{
22
"root": true,
3-
"ignorePatterns": [
4-
"projects/**/*"
5-
],
3+
"ignorePatterns": ["projects/**/*"],
64
"overrides": [
75
{
8-
"files": [
9-
"*.ts"
10-
],
6+
"files": ["*.ts"],
117
"extends": [
128
"eslint:recommended",
139
"plugin:prettier/recommended",
@@ -35,24 +31,14 @@
3531
}
3632
},
3733
{
38-
"files": [
39-
"*.html"
40-
],
41-
"extends": [
42-
"plugin:@angular-eslint/template/recommended"
43-
],
34+
"files": ["*.html"],
35+
"extends": ["plugin:@angular-eslint/template/recommended"],
4436
"rules": {}
4537
},
4638
{
47-
"files": [
48-
"*.html"
49-
],
50-
"excludedFiles": [
51-
"*inline-template-*.component.html"
52-
],
53-
"extends": [
54-
"plugin:prettier/recommended"
55-
],
39+
"files": ["*.html"],
40+
"excludedFiles": ["*inline-template-*.component.html"],
41+
"extends": ["plugin:prettier/recommended"],
5642
"rules": {
5743
"prettier/prettier": [
5844
"error",

angular.json

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,11 @@
5656
"base": "dist/lib-workspace"
5757
},
5858
"index": "projects/lib-workspace/src/index.html",
59-
"polyfills": [
60-
"projects/lib-workspace/src/polyfills.ts"
61-
],
59+
"polyfills": ["projects/lib-workspace/src/polyfills.ts"],
6260
"tsConfig": "projects/lib-workspace/tsconfig.app.json",
6361
"inlineStyleLanguage": "scss",
64-
"assets": [
65-
"projects/lib-workspace/src/favicon.ico",
66-
"projects/lib-workspace/src/assets"
67-
],
68-
"styles": [
69-
"projects/lib-workspace/src/styles.scss"
70-
],
62+
"assets": ["projects/lib-workspace/src/favicon.ico", "projects/lib-workspace/src/assets"],
63+
"styles": ["projects/lib-workspace/src/styles.scss"],
7164
"scripts": [],
7265
"browser": "projects/lib-workspace/src/main.ts"
7366
},
@@ -128,14 +121,8 @@
128121
"tsConfig": "projects/lib-workspace/tsconfig.spec.json",
129122
"karmaConfig": "projects/lib-workspace/karma.conf.js",
130123
"inlineStyleLanguage": "scss",
131-
"assets": [
132-
"projects/lib-workspace/src/favicon.ico",
133-
"projects/lib-workspace/src/assets"
134-
],
135-
"styles": [
136-
"./node_modules/@angular/material/prebuilt-themes/indigo-pink.css",
137-
"projects/lib-workspace/src/styles.scss"
138-
],
124+
"assets": ["projects/lib-workspace/src/favicon.ico", "projects/lib-workspace/src/assets"],
125+
"styles": ["./node_modules/@angular/material/prebuilt-themes/indigo-pink.css", "projects/lib-workspace/src/styles.scss"],
139126
"scripts": []
140127
}
141128
}

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"watch": "ng build --watch --configuration development",
1717
"test": "ng test",
1818
"format": "prettier --write .",
19+
"fix": "yarn-audit-fix",
1920
"lint": "ng lint"
2021
},
2122
"private": false,
@@ -65,6 +66,7 @@
6566
"prettier-eslint": "^16.4.2",
6667
"sass": "^1.89.2",
6768
"typescript": "~5.8.3",
68-
"vite": "^6.0.0"
69+
"vite": "^6.0.0",
70+
"yarn-audit-fix": "^10.1.1"
6971
}
7072
}

projects/lib-workspace/src/app/app.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';
99
import { MAT_SNACK_BAR_DEFAULT_OPTIONS } from '@angular/material/snack-bar';
1010
import { MAT_BUTTON_CONFIG } from '@angular/material/button';
1111
import * as dateFnsLocales from 'date-fns/locale';
12-
import { FsCalendarService } from 'ngx-mat-components';
1312
import { APP_BASE_HREF } from '@angular/common';
13+
import { FsCalendarService } from 'projects/ngx-mat-components/src/public-api';
1414

1515
const locales: any = dateFnsLocales;
1616

projects/lib-workspace/src/app/content/showcase-calendar-table/showcase-calendar-table.component.html

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010
</mat-card-content>
1111
</mat-card>
1212

13-
<fs-calendar-table
14-
[(month)]="month"
15-
[(year)]="year"
16-
[dataSource]="calTableData">
13+
<fs-calendar-table [(month)]="month" [(year)]="year" [dataSource]="calTableData">
1714
<fs-calendar-table-name>Persons</fs-calendar-table-name>
1815
</fs-calendar-table>

projects/lib-workspace/src/app/content/showcase-nav-frame/dialog-content-example-dialog.html

Lines changed: 46 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,71 @@
11
<h2 mat-dialog-title>Install Angular</h2>
22
<mat-dialog-content class="mat-typography">
33
<h3>Develop across all platforms</h3>
4-
<p>Learn one way to build applications with Angular and reuse your code and abilities to build
5-
apps for any deployment target. For web, mobile web, native mobile and native desktop.</p>
4+
<p>
5+
Learn one way to build applications with Angular and reuse your code and abilities to build apps for any deployment target. For web, mobile web, native
6+
mobile and native desktop.
7+
</p>
68

79
<h3>Speed &amp; Performance</h3>
8-
<p>Achieve the maximum speed possible on the Web Platform today, and take it further, via Web
9-
Workers and server-side rendering. Angular puts you in control over scalability. Meet huge
10-
data requirements by building data models on RxJS, Immutable.js or another push-model.</p>
10+
<p>
11+
Achieve the maximum speed possible on the Web Platform today, and take it further, via Web Workers and server-side rendering. Angular puts you in control
12+
over scalability. Meet huge data requirements by building data models on RxJS, Immutable.js or another push-model.
13+
</p>
1114

1215
<h3>Incredible tooling</h3>
13-
<p>Build features quickly with simple, declarative templates. Extend the template language with
14-
your own components and use a wide array of existing components. Get immediate Angular-specific
15-
help and feedback with nearly every IDE and editor. All this comes together so you can focus
16-
on building amazing apps rather than trying to make the code work.</p>
16+
<p>
17+
Build features quickly with simple, declarative templates. Extend the template language with your own components and use a wide array of existing
18+
components. Get immediate Angular-specific help and feedback with nearly every IDE and editor. All this comes together so you can focus on building amazing
19+
apps rather than trying to make the code work.
20+
</p>
1721

1822
<h3>Loved by millions</h3>
19-
<p>From prototype through global deployment, Angular delivers the productivity and scalable
20-
infrastructure that supports Google's largest applications.</p>
23+
<p>From prototype through global deployment, Angular delivers the productivity and scalable infrastructure that supports Google's largest applications.</p>
2124

2225
<h3>What is Angular?</h3>
2326

24-
<p>Angular is a platform that makes it easy to build applications with the web. Angular
25-
combines declarative templates, dependency injection, end to end tooling, and integrated
26-
best practices to solve development challenges. Angular empowers developers to build
27-
applications that live on the web, mobile, or the desktop</p>
27+
<p>
28+
Angular is a platform that makes it easy to build applications with the web. Angular combines declarative templates, dependency injection, end to end
29+
tooling, and integrated best practices to solve development challenges. Angular empowers developers to build applications that live on the web, mobile, or
30+
the desktop
31+
</p>
2832

2933
<h3>Architecture overview</h3>
3034

31-
<p>Angular is a platform and framework for building client applications in HTML and TypeScript.
32-
Angular is itself written in TypeScript. It implements core and optional functionality as a
33-
set of TypeScript libraries that you import into your apps.</p>
35+
<p>
36+
Angular is a platform and framework for building client applications in HTML and TypeScript. Angular is itself written in TypeScript. It implements core and
37+
optional functionality as a set of TypeScript libraries that you import into your apps.
38+
</p>
3439

35-
<p>The basic building blocks of an Angular application are NgModules, which provide a compilation
36-
context for components. NgModules collect related code into functional sets; an Angular app is
37-
defined by a set of NgModules. An app always has at least a root module that enables
38-
bootstrapping, and typically has many more feature modules.</p>
40+
<p>
41+
The basic building blocks of an Angular application are NgModules, which provide a compilation context for components. NgModules collect related code into
42+
functional sets; an Angular app is defined by a set of NgModules. An app always has at least a root module that enables bootstrapping, and typically has
43+
many more feature modules.
44+
</p>
3945

40-
<p>Components define views, which are sets of screen elements that Angular can choose among and
41-
modify according to your program logic and data. Every app has at least a root component.</p>
46+
<p>
47+
Components define views, which are sets of screen elements that Angular can choose among and modify according to your program logic and data. Every app has
48+
at least a root component.
49+
</p>
4250

43-
<p>Components use services, which provide specific functionality not directly related to views.
44-
Service providers can be injected into components as dependencies, making your code modular,
45-
reusable, and efficient.</p>
51+
<p>
52+
Components use services, which provide specific functionality not directly related to views. Service providers can be injected into components as
53+
dependencies, making your code modular, reusable, and efficient.
54+
</p>
4655

47-
<p>Both components and services are simply classes, with decorators that mark their type and
48-
provide metadata that tells Angular how to use them.</p>
56+
<p>Both components and services are simply classes, with decorators that mark their type and provide metadata that tells Angular how to use them.</p>
4957

50-
<p>The metadata for a component class associates it with a template that defines a view. A
51-
template combines ordinary HTML with Angular directives and binding markup that allow Angular
52-
to modify the HTML before rendering it for display.</p>
58+
<p>
59+
The metadata for a component class associates it with a template that defines a view. A template combines ordinary HTML with Angular directives and binding
60+
markup that allow Angular to modify the HTML before rendering it for display.
61+
</p>
5362

54-
<p>The metadata for a service class provides the information Angular needs to make it available
55-
to components through Dependency Injection (DI).</p>
63+
<p>The metadata for a service class provides the information Angular needs to make it available to components through Dependency Injection (DI).</p>
5664

57-
<p>An app's components typically define many views, arranged hierarchically. Angular provides
58-
the Router service to help you define navigation paths among views. The router provides
59-
sophisticated in-browser navigational capabilities.</p>
65+
<p>
66+
An app's components typically define many views, arranged hierarchically. Angular provides the Router service to help you define navigation paths among
67+
views. The router provides sophisticated in-browser navigational capabilities.
68+
</p>
6069
</mat-dialog-content>
6170
<mat-dialog-actions align="end">
6271
<button mat-button mat-dialog-close>Cancel</button>

projects/lib-workspace/src/app/content/showcase-nav-frame/showcase-nav-frame.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
<p style="position: absolute; top: 200px">&#8592; In the sidenav you can set preregisterd entrys</p>
1414
</div>
1515

16-
<button mat-raised-button (click)="openDialog()">Open a dialog</button>
16+
<button mat-raised-button (click)="openDialog()">Open a dialog</button>

projects/lib-workspace/src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@use 'sass:color';
22
@use 'sass:map';
33

4-
@forward 'theming' show component-themes,
5-
core,
6-
normalize;
7-
@forward './styles/fonts/roboto' show roboto;
4+
@forward 'theming' show component-themes, core, normalize;
5+
@forward './styles/fonts/roboto' show roboto;

projects/ngx-mat-components/ng-package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
"./styles/fs-nav-frame/_index.scss",
1515
"./styles/fs-nav-frame/_theming.scss"
1616
]
17-
}
17+
}

0 commit comments

Comments
 (0)