Skip to content

Commit

Permalink
🐛 📝 v1.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
marksie1988 committed Jun 1, 2020
1 parent d0f900c commit b32fd15
Show file tree
Hide file tree
Showing 11 changed files with 600 additions and 363 deletions.
10 changes: 5 additions & 5 deletions dist/atomic-calendar-revive-editor.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const e=(e,t,i,o)=>{o=o||{},i=null==i?{}:i;const s=new Event(t,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});return s.detail=i,e.dispatchEvent(s),s};!customElements.get("ha-switch")&&customElements.get("paper-toggle-button")&&customElements.define("ha-switch",customElements.get("paper-toggle-button"));const t=Object.getPrototypeOf(customElements.get("hui-view")),i=t.prototype.html,o=t.prototype.css;var s=["_blank","_self","_parent","_top"];class a extends t{setConfig(e){this._config={...e}}configChanged(e){const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:e},this.dispatchEvent(t)}static get properties(){return{hass:{},_config:{}}}get _name(){return this._config.name||""}get _Entities(){return!this._config||this._config.entities}get _showColors(){return this._config&&this._config.showColors||!0}get _showLocation(){return this._config&&this._config.showLocation||!0}get _showMonth(){return this._config&&this._config.showMonth||!1}get _showWeekDay(){return this._config&&this._config.showWeekDay||!1}get _showLoader(){return this._config&&this._config.showLoader||!0}get _showDate(){return this._config&&this._config.showDate||!1}get _showDescription(){return this._config&&this._config.showDescription||!1}get _showNoEventsForToday(){return this._config&&this._config.showNoEventsForToday||!1}get _sortByStartTime(){return this._config&&this._config.sortByStartTime||!1}get _disableEventLink(){return this._config&&this._config.disableEventLink||!1}get _disableLocationLink(){return this._config&&this._config.disableLocationLink||!1}get _linkTarget(){return this._config&&this._config.linkTarget||"_blank"}render(){return this.hass?i`
const e=(e,t,i,o)=>{o=o||{},i=null==i?{}:i;const a=new Event(t,{bubbles:void 0===o.bubbles||o.bubbles,cancelable:Boolean(o.cancelable),composed:void 0===o.composed||o.composed});return a.detail=i,e.dispatchEvent(a),a};!customElements.get("ha-switch")&&customElements.get("paper-toggle-button")&&customElements.define("ha-switch",customElements.get("paper-toggle-button"));const t=Object.getPrototypeOf(customElements.get("hui-view")),i=t.prototype.html,o=t.prototype.css;var a=["_blank","_self","_parent","_top"];class s extends t{setConfig(e){this._config={...e}}configChanged(e){const t=new Event("config-changed",{bubbles:!0,composed:!0});t.detail={config:e},this.dispatchEvent(t)}static get properties(){return{hass:{},_config:{}}}get _name(){return this._config.name||""}get _Entities(){return!this._config||this._config.entities}get _showColors(){return this._config&&this._config.showColors||!0}get _showLocation(){return this._config&&this._config.showLocation||!0}get _showMonth(){return this._config&&this._config.showMonth||!1}get _showWeekDay(){return this._config&&this._config.showWeekDay||!1}get _showLoader(){return this._config&&this._config.showLoader||!0}get _showDate(){return this._config&&this._config.showDate||!1}get _showDescription(){return this._config&&this._config.showDescription||!1}get _showNoEventsForToday(){return this._config&&this._config.showNoEventsForToday||!1}get _sortByStartTime(){return this._config&&this._config.sortByStartTime||!1}get _disableEventLink(){return this._config&&this._config.disableEventLink||!1}get _disableLocationLink(){return this._config&&this._config.disableLocationLink||!1}get _linkTarget(){return this._config&&this._config.linkTarget||"_blank"}render(){return this.hass?i`
<div class="card-config">
<div>
<span style="color:red;font-weight:bold">Editor Version: ${"1.1.0-alpha"}</span>
<span style="color:red;font-weight:bold">Editor Version: ${"1.1.1-alpha"}</span>
<paper-input
label="Name"
.value="${this._name}"
Expand Down Expand Up @@ -97,8 +97,8 @@ const e=(e,t,i,o)=>{o=o||{},i=null==i?{}:i;const s=new Event(t,{bubbles:void 0==
@value-changed=${this._valueChanged}
.configValue=${"linkTarget"}
>
<paper-listbox slot="dropdown-content" .selected=${s.indexOf(this._linkTarget)}>
${s.map(e=>i`
<paper-listbox slot="dropdown-content" .selected=${a.indexOf(this._linkTarget)}>
${a.map(e=>i`
<paper-item>${e}</paper-item>
`)}
</paper-listbox>
Expand All @@ -117,4 +117,4 @@ const e=(e,t,i,o)=>{o=o||{},i=null==i?{}:i;const s=new Event(t,{bubbles:void 0==
flex: 1;
padding-right: 4px;
}
`}}customElements.define("atomic-calendar-revive-editor",a);export{a as AtomicCalendarReviveEditor};
`}}customElements.define("atomic-calendar-revive-editor",s),window.customCards=window.customCards||[],window.customCards.push({type:"atomic-calendar-revive",name:"Atomic Calendar Revive",preview:!1,description:"An advanced calendar card for Home Assistant with Lovelace."});export{s as AtomicCalendarReviveEditor};
453 changes: 302 additions & 151 deletions dist/atomic-calendar-revive.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/config/advanced_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ nav_order: 3
dateSize: 90
timeColor: blue
timeSize: 90
titleColor: black
titleSize: 100
eventTitleColor: black
eventTitleSize: 100
locationIconColor: "rgb(230, 124, 115)"
locationLinkColor: black
locationTextSize: 90
Expand Down
4 changes: 2 additions & 2 deletions docs/config/basic_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ This example is the most basic implementation, it will just show you a list of e
name: "Calendar"
enableModeChange: true
defaultMode: 2
CalEventIcon1Filter: birthday
CalEventIcon2Filter: waste,bills
calEventIcon1Filter: birthday
calEventIcon2Filter: waste,bills
entities:
- entity: calendar.YOUR_CALENDAR_HERE
type: icon2
Expand Down
8 changes: 4 additions & 4 deletions docs/config/calendar_mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ There are four configurable possibilities for showing events occurring any day:
If you want to use any calendar's events, you have to add one or more of types:

```yaml
CalEventIcon1Filter: bills,waste # only events with those words will be shown
CalEventIcon2Filter: cleaning # only events with those words will be shown
calEventIcon1Filter: bills,waste # only events with those words will be shown
calEventIcon2Filter: cleaning # only events with those words will be shown
entities:
- entity: calendar.YOUR_CALENDAR_HERE # no type, it won't be shown in calendar mode
- type: holiday # events from this calendar will be red
Expand All @@ -42,8 +42,8 @@ entities:
- entity: calendar.birthday
type: icon1 # Icon1 has no filters, show all events from this calendar
- entity: calendar.YOUR_CALENDAR2_HERE # no type, it won't be shown in calendar mode
CalEventIcon1Filter: bills,waste # only events with those words will be shown
CalEventIcon2Filter: cleaning # only events with those words will be shown
calEventIcon1Filter: bills,waste # only events with those words will be shown
calEventIcon2Filter: cleaning # only events with those words will be shown
```
If you set filters (keywords) for any type, it will show an icon only when event summary contains one of keywords. If you don't set any filter, it will show icons for all days with any events.
2 changes: 1 addition & 1 deletion docs/options/main-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ nav_order: 1

| Name | Type | Default | Since | Description |
| -------------------- | :-----: | :----------: | :-----: | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| type | string | **required** | v0.3.0 | `custom:atomic-calendar` |
| type | string | **required** | v0.3.0 | `custom:atomic-calendar-revive` |
| entities | list | **required** | v0.3.0 | One or more calendars, configured in HA [Google Calendar Component][googlecalcomp] |
| name | string | optional | v0.12.0 | Card name. |
| showColors | boolean | optional | v0.3.0 | `true` Show colors in events, configured in entities list |
Expand Down
111 changes: 110 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "atomic-calendar-revive",
"version": "1.8.6",
"version": "1.8.7",
"description": "Calendar Card for Home Assistant",
"main": "atomic-calendar-revive.js",
"scripts": {
Expand Down Expand Up @@ -41,6 +41,7 @@
"webpack-merge": "^4.2.2"
},
"dependencies": {
"@material/mwc-linear-progress": "^0.15.0",
"@rollup/plugin-json": "^4.0.3",
"@rollup/plugin-node-resolve": "^8.0.0",
"lit-element": "^2.3.1",
Expand Down
Loading

0 comments on commit b32fd15

Please sign in to comment.