diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d71926e --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,28 @@ +{ + "editor.formatOnSave": true, + "editor.renderWhitespace": "all", + "prettier.arrowParens": "avoid", + "prettier.printWidth": 120, + "editor.tabSize": 2, + "files.trimTrailingWhitespace": true, + "files.trimFinalNewlines": 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", + "[typescript]": { + "editor.codeActionsOnSave": { + "source.organizeImports": true + } + }, + "angular.enable-strict-mode-prompt": false, + "files.associations": { + ".env*": "shell" + }, + "[html]": { + "editor.defaultFormatter": "esbenp.prettier-vscode" + } +} diff --git a/package.json b/package.json index 85bd351..03d0a02 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@angular/platform-browser": "~13.3.11", "@angular/platform-browser-dynamic": "~13.3.11", "@angular/router": "~13.3.11", - "moment": "^2.29.4", + "date-fns": "^2.29.3", "rxjs": "~7.5.6", "tslib": "^2.4.0", "zone.js": "~0.11.7" diff --git a/projects/lib-workspace/src/app/content/calender-showcase/calender-showcase.component.html b/projects/lib-workspace/src/app/content/calender-showcase/calender-showcase.component.html index 0a90982..4443ea6 100644 --- a/projects/lib-workspace/src/app/content/calender-showcase/calender-showcase.component.html +++ b/projects/lib-workspace/src/app/content/calender-showcase/calender-showcase.component.html @@ -1,4 +1,4 @@ -
Selected range: {{range | json}}
+Selected range: {{ range | json }}
| + | - {{dayname}} + {{ dayname }} | |||||
|---|---|---|---|---|---|---|
| - | + | |||||
|
-
+
+ |
-
- {{day.dayNumber}}
+ [class.selected-end]="isSelectedDayEnd(day.date)"
+ [class.date-between]="getAmIBetween(day.date)"
+ >
+ {{ day.dayNumber }}
-
+ [ngStyle]="{ background: day.backgroundColor }"
+ >
- |
- {{placeholderDay? day.kw : ''}}
+
+ |
-
+ {{ placeholderDay ? day.kw : "" }}
{{day.kw}}
+ {{ day.kw }}
+ |
|
-
{{ day.dayNumber }}
+ [ngClass]="config.calendarWeek ? 'eight' : 'seven'"
+ >
|
|
| - | + |