Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5a5cd46
feat: angular 22
mumenthalers Aug 21, 2026
3c29d6d
build(dev-dependencies): update
mumenthalers Aug 21, 2026
2e27037
style: remove unnecessary type casts
mumenthalers Aug 21, 2026
779a711
build: suppress rules in existing code
mumenthalers Aug 21, 2026
42d3b08
style: format with new prettier
mumenthalers Aug 21, 2026
7f4ab48
build(release): next version [skip_build]
actions-user Aug 21, 2026
cadea8d
refactor: replace `@Injectable({providedIn:'root'}) with `@Service()`
mumenthalers Aug 21, 2026
62b79fe
build(npmrc): fund and min-release-age settings
mumenthalers Oct 5, 2026
0f49daa
build(dependencies): update @shiftcode lib versions
mumenthalers Oct 5, 2026
ede0656
build(angular): update angular to v22.2
mumenthalers Oct 5, 2026
c3f7a50
build(release): next version [skip_build]
actions-user Oct 5, 2026
9217589
feat(tooltip): use native css animations
mumenthalers Oct 6, 2026
b47b2ec
build(release): next version [skip_build]
actions-user Oct 6, 2026
cec6ee7
docs: correct package name for shiftcode lib
mumenthalers Oct 9, 2026
b750a41
build(release): next version [skip_build]
actions-user Oct 9, 2026
c8fa2de
build: update node and npm engine requirements
mumenthalers Oct 16, 2026
b117a02
build: update vitest to v5.0.3
mumenthalers Oct 16, 2026
025d4ed
test: add fixture for console error to keep the output clean
mumenthalers Oct 16, 2026
89bf7dd
build(release): next version [skip_build]
actions-user Oct 16, 2026
fde87bc
build: update lerna and nx
mumenthalers Oct 16, 2026
1bc7026
build(release): next version [skip_build]
actions-user Oct 16, 2026
0ab22cf
build: enable extended ng build diagnostics
mumenthalers Oct 16, 2026
5dbb337
build(release): next version [skip_build]
actions-user Oct 16, 2026
31c605b
build: do not suppress extendedDiagnostics
mumenthalers Oct 21, 2026
286f10d
build(release): next version [skip_build]
mumenthalers Oct 21, 2026
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: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
@shiftcode:registry=https://npm.pkg.github.com
fund=false
min-release-age=5
min-release-age-exclude[]=@shiftcode/*
2 changes: 1 addition & 1 deletion apps/styleguide/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shiftcode/styleguide",
"version": "15.3.1",
"version": "16.0.0-pr85.7",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 0 additions & 2 deletions apps/styleguide/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { provideHttpClient } from '@angular/common/http'
import { DOCUMENT, inject, provideEnvironmentInitializer, provideZoneChangeDetection } from '@angular/core'
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'
import { bootstrapApplication } from '@angular/platform-browser'
import { provideAnimations } from '@angular/platform-browser/animations'
import { NavigationEnd, provideRouter, Router } from '@angular/router'
import { LogLevel } from '@shiftcode/logger'
import { provideNavigationClassHandler, provideTestingFab } from '@shiftcode/ngx-components'
Expand All @@ -23,7 +22,6 @@ bootstrapApplication(AppComponent, {
providers: [
provideZoneChangeDetection(),
provideHttpClient(),
provideAnimations(),
provideRouter(ROUTES),

provideLocalStorage({ prefix: 'sg.' }),
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"useNx": false,
"packages": ["libs/*", "apps/*"],
"version": "15.3.1",
"version": "16.0.0-pr85.7",
"command": {
"version": {
"allowBranch": "*",
Expand Down
15 changes: 15 additions & 0 deletions libs/components/eslint-suppressions.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
{
"src/lib/rx/rx-if.directive.ts": {
"unused-imports/no-unused-vars": {
"count": 1
}
},
"src/lib/rx/rx-let.directive.ts": {
"unused-imports/no-unused-vars": {
"count": 1
}
},
"src/lib/tooltip/flexible-connected-position-strategy-2.ts": {
"@typescript-eslint/no-unsafe-call": {
"count": 9
},
"@typescript-eslint/no-unsafe-member-access": {
"count": 17
}
},
"src/lib/tooltip/tooltip.component.html": {
"@angular-eslint/template/prefer-class-binding": {
"count": 1
}
}
}
1 change: 1 addition & 0 deletions libs/components/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineScAngularConfig(
'@angular-eslint/prefer-signals': 'error',
'@angular-eslint/prefer-output-emitter-ref': 'error',
'@angular-eslint/use-component-selector': 'error',
'@angular-eslint/prefer-service-decorator': 'error',
},
},
{
Expand Down
15 changes: 7 additions & 8 deletions libs/components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@shiftcode/ngx-components",
"version": "15.3.1",
"version": "16.0.0-pr85.7",
"repository": "https://github.com/shiftcode/sc-ng-commons-public",
"license": "MIT",
"author": "shiftcode GmbH <[email protected]>",
Expand All @@ -10,14 +10,13 @@
"tslib": "^2.5.0"
},
"peerDependencies": {
"@angular/animations": "^21.0.0",
"@angular/cdk": "^21.0.0",
"@angular/common": "^21.0.0",
"@angular/core": "^21.0.0",
"@angular/forms": "^21.0.0",
"@angular/router": "^21.0.0",
"@angular/cdk": "^22.2.0",
"@angular/common": "^22.2.0",
"@angular/core": "^22.2.0",
"@angular/forms": "^22.2.0",
"@angular/router": "^22.2.0",
"@shiftcode/logger": "^5.0.0",
"@shiftcode/ngx-core": "^15.0.0 || ^15.3.0-pr87",
"@shiftcode/ngx-core": "^15.0.0 || ^16.0.0-pr85",
"@shiftcode/utilities": "^5.0.0",
"rxjs": "^6.5.3 || ^7.4.0"
},
Expand Down
4 changes: 2 additions & 2 deletions libs/components/src/lib/svg/svg-registry.service.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { HttpClient, HttpErrorResponse } from '@angular/common/http'
import { DOCUMENT, inject, Injectable } from '@angular/core'
import { DOCUMENT, inject, Service } from '@angular/core'
import { firstValueFrom } from 'rxjs'

/**
* Service to load, cache and create svg elements
*/
@Injectable({ providedIn: 'root' })
@Service()
export class SvgRegistry {
private readonly cache = new Map<string, Promise<SVGElement>>()
private readonly document = inject(DOCUMENT)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function setup(testingFabProviders: EnvironmentProviders) {
delete: vi.fn(),
clear: vi.fn(),
keys: vi.fn().mockReturnValue([]),
} as unknown as LocalStorage
}
}

TestBed.configureTestingModule({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { Type } from '@angular/core'

export type TestingFabWidget =
| TestingFabSelectQueryParamWidget
| TestingFabToggleQueryParamWidget
| TestingFabCustomComponentWidget
TestingFabSelectQueryParamWidget | TestingFabToggleQueryParamWidget | TestingFabCustomComponentWidget

interface TestingFabWidgetBase {
type: 'select-query-param' | 'toggle-query-param' | 'custom-component'
Expand Down
28 changes: 0 additions & 28 deletions libs/components/src/lib/tooltip/tooltip.animation.ts

This file was deleted.

8 changes: 5 additions & 3 deletions libs/components/src/lib/tooltip/tooltip.component.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<div
#tooltip
class="sc-tooltip"
[ngClass]="tooltipClass"
[class.sc-tooltip--above]="tooltipPosition === 'above'"
[class.sc-tooltip--below]="tooltipPosition === 'below'"
[class.sc-tooltip--before]="tooltipPosition === 'before'"
[class.sc-tooltip--after]="tooltipPosition === 'after'"
[@state]="visibility"
(@state.start)="animationStart()"
(@state.done)="animationDone($event)"
[class.sc-tooltip--visible]="visibility === 'visible'"
[class.sc-tooltip--hidden]="visibility === 'hidden'"
(transitionstart)="transitionStart($event)"
(transitionend)="transitionDone($event)"
>
<div class="sc-tooltip__label" [innerHTML]="message"></div>
<div
Expand Down
33 changes: 30 additions & 3 deletions libs/components/src/lib/tooltip/tooltip.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@
$default-padding: 4px 8px;
$default-filter: drop-shadow(0 0 0 rgba(1, 1, 1, 0));

// otherwise we'll have flickering
pointer-events: none !important;

.sc-tooltip {
opacity: 0;
scale: 0;
position: relative;
background: var(--sc-tooltip-background, #{$default-background});
border-radius: var(--sc-tooltip-border-radius, #{$default-border-radius});
Expand All @@ -23,6 +22,27 @@
--neg-notch-size: calc(var(--sc-tooltip-notch-size, #{$default-notch-size}) * -1);
// the space from notch to the boundary of the tooltip
--notch-spacer: calc(var(--sc-tooltip-notch-size, #{$default-notch-size}) * 0.5);

&.sc-tooltip--visible {
opacity: 1;
scale: 1;
transition:
opacity 250ms cubic-bezier(0, 0, 0.2, 1),
scale 125ms cubic-bezier(0, 0, 0.2, 1);
}

&.sc-tooltip--hidden {
scale: 1;
transition: opacity 150ms cubic-bezier(0, 0, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
&.sc-tooltip--visible,
&.sc-tooltip--hidden {
// Keep completion events so the overlay can be detached.
transition-duration: 1ms;
}
}
}

.sc-tooltip {
Expand Down Expand Up @@ -136,3 +156,10 @@
outline: solid 1px;
}
}

::ng-deep {
.sc-tooltip-panel {
// otherwise we'll have flickering
pointer-events: none !important;
}
}
Loading
Loading