Skip to content

Commit 182b962

Browse files
authored
feat: Add softLimit to events
1 parent 3372a0a commit 182b962

File tree

10 files changed

+446
-391
lines changed

10 files changed

+446
-391
lines changed

dist/atomic-calendar-revive.js

Lines changed: 110 additions & 119 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/options/event-mode-options.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,15 @@ nav_order: 3
77

88
## Config Options
99

10-
| Name | Type | Since | Description |
11-
| -------------------- | :-----: | :----: | --------------------------------------------------------------------------------------------------- |
12-
| showCurrentEventLine | boolean | v0.3.0 | `false` Show line before next event. Don't enable when showProgressBar is true - will look bad |
13-
| showProgressBar | boolean | v0.5.5 | `true` Show event progress with moving icon. Don't enable when showCurrentEventLine - will look bad |
14-
| showEventIcon | boolean | v2.2.3 | `false` Show the entity icon before the event title |
15-
| europeanDate | boolean | v2.2.3 | `false` Show date for event days in european format |
10+
| Name | Type | Since | Description |
11+
| -------------------- | :-----: | :----: | ------------------------------------------------------------------------------------------------------ |
12+
| showCurrentEventLine | boolean | v0.3.0 | `false` Show line before next event. Don't enable when showProgressBar is true - will look bad |
13+
| showProgressBar | boolean | v0.5.5 | `true` Show event progress with moving icon. Don't enable when showCurrentEventLine - will look bad |
14+
| showFullDayProgress | boolean | v1.7.0 | `false` Enables the progress bar for full day events |
15+
| showRelativeTime | boolean | v2.1.0 | `true` show relative time to event |
16+
| showEventIcon | boolean | v2.2.3 | `false` Show the entity icon before the event title |
17+
| europeanDate | boolean | v2.2.3 | `false` Show date for event days in european format |
18+
| softLimit | integer | v2.7.0 | Adds flexibility when `maxEventCount` is set, so if there is only e.g. 1 extra event it would be shown |
1619

1720
## Color Options
1821

docs/options/main-options.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ nav_order: 1
2424
| disableEventLink | boolean | optional | v0.10.0 | `false` disables links in event title. |
2525
| disableLocationLink | boolean | optional | v0.10.0 | `false` disables links in event location. |
2626
| linkTarget | string | optional | v0.11.0 | `_blank` Allows custom target for links, default will open new tab. |
27-
| showFullDayProgress | boolean | optional | v1.7.0 | `false` Enables the progress bar for full day events |
2827
| showDeclined | boolean | optional | v2.0.0 | `false` show/hide events that have been declined |
2928
| defaultMode | integer | optional | v2.0.0 | `Event` Set `Event` to make Events default mode, set `Calendar` to make Calendar mode default |
3029
| refreshInterval | integer | optional | v2.1.0 | `60` Set how often the calendar should refresh data in seconds |
31-
| showRelativeTime | boolean | optional | v2.1.0 | `true` show relative time to event |
30+
3231

3332
# Color Options
3433

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "atomic-calendar-revive",
3-
"version": "2.6.1",
3+
"version": "2.7.0",
44
"editor_version": "1.3.0",
55
"description": "Calendar Card for Home Assistant",
66
"main": "atomic-calendar-revive.js",
77
"scripts": {
88
"lint": "eslint src/*.ts | more ",
9-
"lintapp": "eslint src/app.js",
10-
"linteditor": "eslint src/app-editor.js",
9+
"lintindex": "eslint src/index.ts | more",
10+
"lintindexfix": "eslint src/index.ts --fix",
11+
"linteditor": "eslint src/index-editor.ts",
1112
"babel": "babel dist/index.js --out-file dist/atomic-calendar-revive.js",
1213
"rollup": "rollup -c",
1314
"start": "rollup -c --watch",

src/defaults.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ export default {
44
// text translations
55
fullDayEventText: localize('common.fullDayEventText'), // "All day" custom text
66
untilText: localize('common.untilText'), // "Until" custom text
7+
hiddenEventText: localize('common.hiddenEventText'), // "Until" custom text
78

89
// main settings
910
maxDaysToShow: 7, // maximum days to show (if zero, show only currently running events)

0 commit comments

Comments
 (0)