Skip to content
Open
Show file tree
Hide file tree
Changes from 136 commits
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
b6e46ba
Enhance Calendar component with negative and indicator date features,…
Diaan Aug 25, 2025
787a87b
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
Diaan Aug 26, 2025
288260f
Update Calendar component stories and styles to enhance negative and …
Diaan Aug 27, 2025
46692a8
Refactor Calendar component stories to improve rendering logic and en…
Diaan Aug 28, 2025
06258fd
Remove console logs and simplify conditions in Calendar and MonthView…
Diaan Aug 28, 2025
c31f994
Enhance Calendar component stories and styles to improve rendering lo…
Diaan Sep 1, 2025
19b13c7
Refactor styles in select-day.scss for improved layout; add justify-c…
Diaan Sep 2, 2025
62e3589
Refactor SelectMonth component to replace sl-button with button for m…
Diaan Sep 3, 2025
74ee3b9
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
Diaan Sep 3, 2025
cfca76b
Enhance calendar component: add min/max date properties to SelectMont…
Diaan Sep 8, 2025
3538ee1
Refactor SelectYear component: update year property to use dateConver…
Diaan Sep 8, 2025
f816c7a
Add unit tests for SelectDay, SelectMonth, and SelectYear components …
Diaan Sep 9, 2025
fa34625
Remove unused story files for SelectDay and SelectMonth components; a…
Diaan Sep 10, 2025
7c36c0d
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
Diaan Sep 11, 2025
951a458
Merge branch 'main' into feature/1862-calendar-development
Diaan Sep 16, 2025
8abdbf0
feat: add inert property to calendar components and improve mode hand…
Diaan Sep 16, 2025
2e966f1
Merge branch 'feature/1862-calendar-development' of https://github.co…
Diaan Sep 16, 2025
c217ad2
feat: add selected date property to calendar components and update se…
Diaan Sep 16, 2025
7b6fe98
disable some tests to get the build working
Diaan Sep 16, 2025
7915435
feat: refactor SelectDay component to improve scrolling behavior and …
Diaan Sep 18, 2025
eee7d1f
feat: add month display to MonthView and improve SelectDay component …
Diaan Sep 19, 2025
9b65a6c
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
Diaan Sep 19, 2025
96127dd
feat: add logging for month updates in Calendar and SelectDay components
Diaan Sep 22, 2025
94136af
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Sep 24, 2025
6214136
fixes the problem with setting month
anna-lach Sep 24, 2025
df27ffc
fixed arrow keys navigation in the month view, partially got it worki…
anna-lach Sep 24, 2025
173fe8c
select year keyboard navigation changes
anna-lach Sep 25, 2025
f731d36
make it working with min and max in the select year view, also with a…
anna-lach Sep 25, 2025
1874bed
fixing tests for disabled years
anna-lach Sep 26, 2025
8931a06
fixing using arrow keys in the select year view, month view and selec…
anna-lach Sep 26, 2025
8b6a206
problem with not closing the years range or months range when clickin…
anna-lach Sep 26, 2025
3e1aac5
problem with not closing the years range or months range when clickin…
anna-lach Sep 29, 2025
ba45992
partially fixing focusing when years view closed and select month is …
anna-lach Sep 29, 2025
1b05960
some more keyboard navigation improvements, readonly changes
anna-lach Sep 30, 2025
821a5df
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 1, 2025
aa5858f
fixing tests to work with vitest, new indicator story
anna-lach Oct 1, 2025
b9ee1b5
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 1, 2025
618a5ea
trying to get the new indicator working
anna-lach Oct 1, 2025
85a33d3
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 2, 2025
18736b6
partially fixing indicators
anna-lach Oct 2, 2025
76e413c
partially working disabled days
anna-lach Oct 2, 2025
4adad7f
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 2, 2025
b9f35bb
some styling improvements, disabled days are now being rendered prope…
anna-lach Oct 3, 2025
99c3ab3
indicators stories fixes
anna-lach Oct 3, 2025
57a5714
small changes to select year story
anna-lach Oct 3, 2025
acd2d88
stories changes, make it possible to select month and year and day in…
anna-lach Oct 6, 2025
e78bf9e
select month and select year unit tests
anna-lach Oct 7, 2025
fd85209
month view first version of tests and small change in month view
anna-lach Oct 7, 2025
4aca9bc
month view unit tests changes
anna-lach Oct 8, 2025
fbc2c5d
examples improvements
anna-lach Oct 8, 2025
f68b29f
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 8, 2025
f7e6805
mont view tests, fixing selecting day with space or enter key
anna-lach Oct 8, 2025
da6ebf6
fixes styling
anna-lach Oct 9, 2025
9af50ab
some styling fixes, trying to solve the issue with selecting next/pre…
anna-lach Oct 9, 2025
58a3186
styling improvements, solving the issue with selecting next/prev
anna-lach Oct 10, 2025
a4db8f0
trying to find the solution for keyboard navigation when going back f…
anna-lach Oct 10, 2025
b77a2d4
fixing the issue with lost focus in month view, trying to find the so…
anna-lach Oct 13, 2025
ba2e24a
trying to find the solution for keyboard navigation when trying to fo…
anna-lach Oct 14, 2025
24f615d
fixing tests
anna-lach Oct 15, 2025
2cc505f
select year improvements
anna-lach Oct 15, 2025
212fc8d
select year improvements and some in select month
anna-lach Oct 15, 2025
7f10411
select year and month changes, some accessibility improvements
anna-lach Oct 15, 2025
63b7b90
some accessibility improvements
anna-lach Oct 16, 2025
6bf1f10
using table instead of list in select month
anna-lach Oct 16, 2025
3320559
select month accessibility improvements
anna-lach Oct 16, 2025
b19bf19
select year accessibility improvements (table instead of list and so …
anna-lach Oct 16, 2025
9556638
select day and month view accessibility improvements
anna-lach Oct 16, 2025
e5f42bc
more accessibility improvements (tooltips for indicators to improve a…
anna-lach Oct 17, 2025
9465385
more accessibility improvements, some cleanup
anna-lach Oct 17, 2025
59e0193
some refactor
anna-lach Oct 17, 2025
428f95a
alphabetical order
anna-lach Oct 17, 2025
6f07b16
announcer - first version, used in select day
anna-lach Oct 17, 2025
245f738
announcer in select day, select month and select year
anna-lach Oct 20, 2025
7d06b52
translations
anna-lach Oct 20, 2025
2c3f7b8
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 20, 2025
b09729b
more unit tests, some problems with indicators
anna-lach Oct 20, 2025
f8d00a7
tooltips for indicators fixes (using tooltip.lazy), some formatting
anna-lach Oct 21, 2025
8f52db4
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 21, 2025
3fc9086
unit tests
anna-lach Oct 21, 2025
a71d3e4
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 22, 2025
3d69773
unit tests (improvements)
anna-lach Oct 22, 2025
b0f22f0
unit tests (improvements)
anna-lach Oct 22, 2025
b179f03
remove unnecessary changes
anna-lach Oct 22, 2025
f486681
remove unnecessary changes
anna-lach Oct 22, 2025
3fe0f4a
remove unnecessary changes
anna-lach Oct 22, 2025
bdd596d
fixing failing tests?
anna-lach Oct 23, 2025
fbcfdcb
fixing failing tests
anna-lach Oct 23, 2025
d166350
fixing failing tests?
anna-lach Oct 23, 2025
8c73da3
fixing failing tests?
anna-lach Oct 23, 2025
6371a95
fixing failing tests?
anna-lach Oct 23, 2025
bd67964
fixing failing tests?
anna-lach Oct 23, 2025
6276849
fixing tests?
anna-lach Oct 23, 2025
77948ff
some improvements, cleanup
anna-lach Oct 23, 2025
3233478
changeset
anna-lach Oct 23, 2025
7806c79
fixing tests?
anna-lach Oct 23, 2025
46af954
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 28, 2025
20f8c2d
removed unnecessary attributes
anna-lach Oct 29, 2025
b74a14b
clicking outside the component removed
anna-lach Oct 29, 2025
af65d46
indicator renamed to indicatorDays, tooltip added only when the label…
anna-lach Oct 29, 2025
6694831
disabled renamed to disabledDates
anna-lach Oct 29, 2025
979b92f
removed icon size, no months class, tests fixes
anna-lach Oct 29, 2025
4a8808b
more changes after review
anna-lach Oct 29, 2025
75642f2
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 29, 2025
61ebd26
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Oct 30, 2025
d98412e
fixing shaky scrolling
anna-lach Oct 30, 2025
3d2730c
blocking scrolling when moving to next and previous month is not poss…
anna-lach Oct 30, 2025
3ebdee7
trying to improve block scrolling
anna-lach Oct 30, 2025
ac2e9e5
partially improved blocking scrolling
anna-lach Oct 31, 2025
402be13
partially improved blocking scrolling (hiding unselectable months)
anna-lach Oct 31, 2025
5807a1c
partially improved blocking scrolling
anna-lach Oct 31, 2025
842aeb4
Merge remote-tracking branch 'origin/main' into feature/1862-calendar…
anna-lach Nov 3, 2025
944589b
block scrolling when month is unselectable changes, some cleanup
anna-lach Nov 3, 2025
e0ba109
🍦
jpzwarte Nov 3, 2025
ec17c94
Merge branch 'main' into feature/1862-calendar-development
jpzwarte Nov 3, 2025
74cabea
🍌
jpzwarte Nov 3, 2025
20cf0c8
👻
jpzwarte Nov 3, 2025
cf4efe9
🚎
jpzwarte Nov 5, 2025
c83a0d9
🐒
jpzwarte Nov 6, 2025
e98a0ce
🐘
jpzwarte Nov 8, 2025
255bf0a
🏜
jpzwarte Nov 11, 2025
7f8a952
🏅
jpzwarte Nov 14, 2025
b925c21
🐺
jpzwarte Nov 15, 2025
4aa02dd
🌮
jpzwarte Nov 15, 2025
ba22ca4
🚨
jpzwarte Nov 15, 2025
aa736ff
🐗
jpzwarte Nov 17, 2025
0aa133f
🌶
jpzwarte Nov 17, 2025
2d5b21b
jpzwarte Nov 19, 2025
96fe269
🐄
jpzwarte Nov 19, 2025
fc199ae
🍯
jpzwarte Nov 19, 2025
c513a96
🏑
jpzwarte Nov 20, 2025
d16a250
🎤
jpzwarte Nov 20, 2025
9fae9c3
👽
jpzwarte Nov 21, 2025
4a7abbc
😀
jpzwarte Nov 21, 2025
e95968a
Merge branch 'main' into feature/1862-calendar-development
jpzwarte Nov 21, 2025
6c3a5a0
🎾
jpzwarte Nov 21, 2025
7c9798c
⚡️
jpzwarte Nov 21, 2025
54183e7
💾
jpzwarte Nov 21, 2025
a9a34a4
🌻
jpzwarte Nov 21, 2025
4c80926
🎡
jpzwarte Nov 21, 2025
879c589
🌀
jpzwarte Nov 21, 2025
13ea017
🏹
jpzwarte Nov 25, 2025
52f8cde
📟
jpzwarte Nov 25, 2025
632ddd6
🐯
jpzwarte Nov 25, 2025
c8907ac
📌
jpzwarte Nov 25, 2025
760f1ba
🔮
jpzwarte Nov 26, 2025
dc07c1c
🍎
jpzwarte Nov 26, 2025
e101fb7
🐸
jpzwarte Nov 26, 2025
637254e
🎷
jpzwarte Nov 26, 2025
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
5 changes: 5 additions & 0 deletions .changeset/all-dryers-talk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sl-design-system/shared': minor
---

New `dateListConverter` added.
5 changes: 5 additions & 0 deletions .changeset/fast-months-smash.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sl-design-system/calendar': patch
---

New version of the calendar component. Improved styling and accessibility.
5 changes: 5 additions & 0 deletions .changeset/nine-shrimps-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sl-design-system/date-field': patch
---

Make a date-field working with dates (not dates and hours).
15 changes: 15 additions & 0 deletions .github/agents/testing-specialist.agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,21 @@ it('should emit a click event when clicked', () => { ... });
it('should be disabled when disabled prop is set', () => { ... });
```

**Important**: Do not use "by default" in test descriptions within the `defaults` describe block, as this is redundant:
```typescript
// ✅ Good
describe('defaults', () => {
it('should not be disabled', () => { ... });
it('should not show week numbers', () => { ... });
});

// ❌ Bad
describe('defaults', () => {
it('should not be disabled by default', () => { ... });
it('should not show week numbers by default', () => { ... });
});
```

## What to Test

### Essential Tests
Expand Down
16 changes: 16 additions & 0 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,22 @@ All components are built using Lit and TypeScript. All components follow the fol
- Public properties should come before public properties
- Public methods should come before private methods

### Code style

When declaring multiple constants, use a single multiline `const` statement instead of multiple separate statements:

```typescript
// ✅ Good
const foo = 'bar',
baz = 'qux',
another = 'value';

// ❌ Bad
const foo = 'bar';
const baz = 'qux';
const another = 'value';
```

## Tools

To build the components, use the following command from the root of the repository:
Expand Down
1 change: 1 addition & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import '@af-utils/scrollend-polyfill';
import '@webcomponents/scoped-custom-element-registry/scoped-custom-element-registry.min.js';
import '@sl-design-system/announcer/register.js';
import { configureLocalization } from '@lit/localize';
Expand Down
2 changes: 2 additions & 0 deletions chromatic/.storybook/stories/all.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { All as AllIcon } from '../../../packages/components/icon/src/icon.stori
import { All as AllInlineMessage } from '../../../packages/components/inline-message/src/inline-message.stories';
import { All as AllMenu } from '../../../packages/components/menu/src/menu.stories';
import { All as AllMenuButton } from '../../../packages/components/menu/src/menu-button.stories';
import { All as AllMonthView } from '../../../packages/components/calendar/src/month-view.stories';
import { All as AllPopover } from '../../../packages/components/popover/src/popover.stories';
import { All as AllRadioGroup } from '../../../packages/components/radio-group/src/radio-group.stories';
import { All as AllSearchField } from '../../../packages/components/search-field/src/search-field.stories';
Expand Down Expand Up @@ -79,6 +80,7 @@ export const Icon = { render: AllIcon.render };
export const InlineMessage = { render: AllInlineMessage.render };
export const Menu = { render: AllMenu.render };
export const MenuButton = { render: AllMenuButton.render };
export const MonthView = { render: AllMonthView.render };
export const Popover = { render: AllPopover.render };
export const RadioGroup = { render: AllRadioGroup.render };
export const SearchField = { render: AllSearchField.render };
Expand Down
12 changes: 6 additions & 6 deletions chromatic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@
}
},
"devDependencies": {
"@storybook/addon-a11y": "^9.1.13",
"@storybook/addon-docs": "^9.1.13",
"@storybook/addon-themes": "^9.1.13",
"@storybook/web-components-vite": "^9.1.13",
"@storybook/addon-a11y": "^10.0.7",
"@storybook/addon-docs": "^10.0.7",
"@storybook/addon-themes": "^10.0.7",
"@storybook/web-components-vite": "^10.0.7",
"lit": "^3.3.1",
"storybook": "^9.1.13",
"storybook-addon-pseudo-states": "^9.1.13",
"storybook": "^10.0.7",
"storybook-addon-pseudo-states": "^10.0.7",
"tslib": "^2.8.1",
"typescript": "^5.5.4",
"wireit": "^0.14.12"
Expand Down
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -452,24 +452,27 @@
}
},
"devDependencies": {
"@af-utils/scrollend-polyfill": "^0.0.14",
"@changesets/cli": "^2.29.7",
"@changesets/get-github-info": "^0.6.0",
"@custom-elements-manifest/analyzer": "^0.10.10",
"@faker-js/faker": "^10.1.0",
"@lit/localize-tools": "^0.8.0",
"@storybook/addon-a11y": "^9.1.13",
"@storybook/addon-docs": "^9.1.13",
"@storybook/addon-vitest": "^9.1.13",
"@storybook/web-components": "^9.1.13",
"@storybook/web-components-vite": "^9.1.13",
"@storybook/addon-a11y": "^10.0.7",
"@storybook/addon-docs": "^10.0.7",
"@storybook/addon-vitest": "^10.0.7",
"@storybook/web-components": "^10.0.7",
"@storybook/web-components-vite": "^10.0.7",
"@types/chai-datetime": "^1.0.0",
"@types/chai-dom": "^1.11.3",
"@types/sinon": "^17.0.4",
"@types/sinon": "^21.0.0",
"@types/sinon-chai": "^4.0.0",
"@vitest/browser": "^3.2.4",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"@vitest/browser-playwright": "^4.0.9",
"@vitest/coverage-v8": "^4.0.9",
"@vitest/ui": "^4.0.9",
"@webcomponents/scoped-custom-element-registry": "^0.0.10",
"chai": "^6.2.0",
"chai": "^6.2.1",
"chai-datetime": "^1.8.1",
"chai-dom": "^1.12.1",
"chromatic": "^13.3.0",
"eslint": "^9.27.0",
Expand All @@ -480,11 +483,11 @@
"playwright": "^1.56.1",
"sinon": "^21.0.0",
"sinon-chai": "^4.0.1",
"storybook": "^9.1.13",
"storybook": "^10.0.7",
"stylelint": "^16.19.1",
"typescript": "^5.5.4",
"vite": "^7.1.11",
"vitest": "^3.2.4",
"vite": "^7.2.2",
"vitest": "^4.0.9",
"wireit": "^0.14.12"
}
}
4 changes: 2 additions & 2 deletions packages/angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"@angular/platform-browser": "^19.2.14",
"@angular/platform-browser-dynamic": "^19.2.14",
"@angular/router": "^19.2.14",
"@storybook/angular": "^9.1.13",
"@storybook/angular": "^10.0.7",
"@types/jasmine": "~5.1.12",
"jasmine-core": "~5.12.0",
"karma": "~6.4.4",
Expand All @@ -96,7 +96,7 @@
"karma-jasmine-html-reporter": "~2.1.0",
"ng-packagr": "^19.2.2",
"rxjs": "~7.8.2",
"storybook": "^9.1.13",
"storybook": "^10.0.7",
"tslib": "^2.8.1",
"typescript": "~5.5.4",
"wireit": "^0.14.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/components/accordion/src/accordion-item.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fixture } from '@sl-design-system/vitest-browser-lit';
import { userEvent } from '@vitest/browser/context';
import { html } from 'lit';
import { beforeEach, describe, expect, it } from 'vitest';
import { userEvent } from 'vitest/browser';
import '../register.js';
import { AccordionItem } from './accordion-item.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/components/accordion/src/accordion.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fixture } from '@sl-design-system/vitest-browser-lit';
import { userEvent } from '@vitest/browser/context';
import { html } from 'lit';
import { beforeEach, describe, expect, it } from 'vitest';
import { userEvent } from 'vitest/browser';
import '../register.js';
import { Accordion } from './accordion.js';

Expand Down
4 changes: 2 additions & 2 deletions packages/components/announcer/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export * from './src/announce.js';
export * from './src/announcer.js';
export { announce } from './src/announce.js';
export { type SlAnnounceEvent, Announcer } from './src/announcer.js';
2 changes: 1 addition & 1 deletion packages/components/breadcrumbs/src/breadcrumbs.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fixture } from '@sl-design-system/vitest-browser-lit';
import { page } from '@vitest/browser/context';
import { html } from 'lit';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { page } from 'vitest/browser';
import '../register.js';
import { Breadcrumbs } from './breadcrumbs.js';

Expand Down
2 changes: 1 addition & 1 deletion packages/components/button/src/button.spec.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { type Form } from '@sl-design-system/form';
import '@sl-design-system/form/register.js';
import { fixture } from '@sl-design-system/vitest-browser-lit';
import { userEvent } from '@vitest/browser/context';
import { html } from 'lit';
import { restore, spy, stub } from 'sinon';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
import { userEvent } from 'vitest/browser';
import '../register.js';
import { type Button, type ButtonType } from './button.js';

Expand Down
3 changes: 2 additions & 1 deletion packages/components/calendar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
"dependencies": {
"@sl-design-system/button": "^1.2.5",
"@sl-design-system/format-date": "^0.1.3",
"@sl-design-system/icon": "^1.3.0"
"@sl-design-system/icon": "^1.3.0",
"@sl-design-system/tooltip": "^1.3.0"
},
"devDependencies": {
"@lit/localize": "^0.12.2",
Expand Down
Loading
Loading