Skip to content

Commit dbcf147

Browse files
committed
Merge branch 'dev'
2 parents 7fff737 + be0c4ea commit dbcf147

File tree

8 files changed

+856
-737
lines changed

8 files changed

+856
-737
lines changed

.babelrc

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,16 @@
44
"@babel/preset-env",
55
{
66
"modules": false,
7-
"targets": "> 2.5%, not dead"
8-
7+
"targets": "> 2.5%, not dead"
98
}
109
],
11-
["minify"]
10+
[
11+
"minify",
12+
{
13+
"evaluate": false,
14+
"mangle": false
15+
}
16+
]
1217
],
1318
"plugins": [
1419
[

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = {
99
"SharedArrayBuffer": "readonly"
1010
},
1111
"parserOptions": {
12-
"ecmaVersion": 2018,
12+
"ecmaVersion": 2020,
1313
"sourceType": "module"
1414
},
1515
"rules": {

dist/atomic-calendar-revive-editor.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const e=(e,t,o,i)=>{i=i||{},o=null==o?{}:o;const s=new Event(t,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed});return s.detail=o,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")),o=t.prototype.html,i=t.prototype.css;var s=["_blank","_self","_parent","_top"];class a extends t{setConfig(e){this._config={...e}}static get properties(){return{hass:{},_config:{}}}get _name(){return this._config.name||""}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 _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?o`
1+
!customElements.get("ha-switch")&&customElements.get("paper-toggle-button")&&customElements.define("ha-switch",customElements.get("paper-toggle-button"));const e=Object.getPrototypeOf(customElements.get("hui-view")),t=e.prototype.html,o=e.prototype.css;var i=["_blank","_self","_parent","_top"];class a extends e{setConfig(e){this._config={...e}}static get properties(){return{hass:{},_config:{}}}get _name(){return this._config.name||""}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 _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?t`
22
<div class="card-config">
33
<div>
4+
<span>Editor Version: ${"1.0.0-alpha"}</span>
45
<paper-input
56
label="Name"
67
.value="${this._name}"
@@ -84,16 +85,16 @@ const e=(e,t,o,i)=>{i=i||{},o=null==o?{}:o;const s=new Event(t,{bubbles:void 0==
8485
@value-changed=${this._valueChanged}
8586
.configValue=${"linkTarget"}
8687
>
87-
<paper-listbox slot="dropdown-content" .selected=${s.indexOf(this._linkTarget)}>
88-
${s.map(e=>o`
88+
<paper-listbox slot="dropdown-content" .selected=${i.indexOf(this._linkTarget)}>
89+
${i.map(e=>t`
8990
<paper-item>${e}</paper-item>
9091
`)}
9192
</paper-listbox>
9293
</paper-dropdown-menu>
9394
</div>
9495
</div>
9596
</div>
96-
`:o``}_valueChanged(t){if(!this._config||!this.hass)return;const o=t.target;this[`_${o.configValue}`]!==o.value&&(o.configValue&&(""===o.value?delete this._config[o.configValue]:this._config={...this._config,[o.configValue]:void 0!==o.checked?o.checked:o.value}),e(this,"config-changed",{config:this._config}))}static get styles(){return i`
97+
`:t``}_valueChanged(e){if(!this._config||!this.hass)return;const t=e.target;this[`_${t.configValue}`]!==t.value&&(t.configValue&&(""===t.value?delete this._config[t.configValue]:this._config={...this._config,[t.configValue]:void 0!==t.checked?t.checked:t.value}),((e,t,o,i)=>{i=i||{},o=null==o?{}:o;const a=new Event(t,{bubbles:void 0===i.bubbles||i.bubbles,cancelable:Boolean(i.cancelable),composed:void 0===i.composed||i.composed});a.detail=o,e.dispatchEvent(a)})(this,"config-changed",{config:this._config}))}static get styles(){return o`
9798
ha-switch {
9899
padding-top: 16px;
99100
}

dist/atomic-calendar-revive.js

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

0 commit comments

Comments
 (0)