@openremote/or-asset-tree 1.20.0 → 1.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements-jsx.d.ts +3 -0
- package/custom-elements.json +28 -0
- package/dist/umd/index.bundle.js +35 -8
- package/dist/umd/index.bundle.js.map +1 -1
- package/dist/umd/index.js +35 -8
- package/dist/umd/index.js.map +1 -1
- package/dist/umd/index.orbundle.js +54 -27
- package/dist/umd/index.orbundle.js.map +1 -1
- package/lib/or-add-asset-dialog.d.ts +2 -0
- package/lib/or-add-asset-dialog.d.ts.map +1 -1
- package/lib/or-add-asset-dialog.js +47 -20
- package/lib/or-add-asset-dialog.js.map +1 -1
- package/package.json +6 -6
|
@@ -26,11 +26,13 @@ export declare class OrAddAssetDialog extends LitElement {
|
|
|
26
26
|
selectedAttributes: AttributeDescriptor[];
|
|
27
27
|
protected showParentAssetSelector: boolean;
|
|
28
28
|
selectedChildAssetType: string;
|
|
29
|
+
private typeFilter;
|
|
29
30
|
name: string;
|
|
30
31
|
protected nameInput: OrMwcInput;
|
|
31
32
|
protected agentList?: OrMwcList;
|
|
32
33
|
protected assetList?: OrMwcList;
|
|
33
34
|
protected parentAssetList?: OrMwcList;
|
|
35
|
+
private _filterInput;
|
|
34
36
|
static get styles(): import("lit").CSSResult;
|
|
35
37
|
constructor();
|
|
36
38
|
protected render(): import("lit").TemplateResult<1>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-add-asset-dialog.d.ts","sourceRoot":"","sources":["../src/or-add-asset-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAY,MAAM,KAAK,CAAC;AAErD,OAAO,EAAC,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAiB,MAAM,mBAAmB,CAAC;AAC/G,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAC,eAAe,EAA4B,MAAM,SAAS,CAAC;AACnE,OAAO,EAG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AGnD,sBAAsB,EAAE,MAAM,CAAM;IAGpC,OAAO,CAAC,UAAU,CAAc;IAEzB,IAAI,EAAE,MAAM,CAAe;IAGlC,SAAS,CAAC,SAAS,EAAG,UAAU,CAAC;IAGjC,SAAS,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAGhC,SAAS,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAGhC,SAAS,CAAC,eAAe,CAAC,EAAE,SAAS,CAAC;IAGtC,OAAO,CAAC,YAAY,CAAc;IAElC,WAAkB,MAAM,4BAoHvB;;IASD,SAAS,CAAC,MAAM;IA+EhB,SAAS,CAAC,eAAe,CAAC,UAAU,EAAE,eAAe,GAAG,eAAe,EAAE,SAAS,EAAE,MAAM;IAwD1F,SAAS,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM;cAKpB,aAAa,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ;IAclE,SAAS,CAAC,UAAU;IAOpB,SAAS,CAAC,4BAA4B,IAAI,IAAI;IAI9C,SAAS,CAAC,kBAAkB;CAG/B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate||function(e,t,o
|
|
1
|
+
var __decorate=this&&this.__decorate||function(e,t,i,o){var r,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(s<3?r(a):s>3?r(t,i,a):r(t,i))||a);return s>3&&a&&Object.defineProperty(t,i,a),a},__awaiter=this&&this.__awaiter||function(e,t,i,o){return new(i||(i=Promise))(function(r,s){function a(e){try{n(o.next(e))}catch(e){s(e)}}function l(e){try{n(o.throw(e))}catch(e){s(e)}}function n(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,l)}n((o=o.apply(e,t||[])).next())})};import{css as e,html as t,LitElement as i,unsafeCSS as o}from"lit";import{customElement as r,property as s,query as a}from"lit/decorators.js";import{AssetModelUtil as l}from"@openremote/model";import{InputType as n}from"@openremote/or-mwc-components/or-mwc-input";import{OrAssetTreeSelectionEvent as d}from"./index";import{createListGroup as p}from"@openremote/or-mwc-components/or-mwc-list";import{i18next as c}from"@openremote/or-translate";import{DefaultColor2 as m,DefaultColor3 as u,DefaultColor5 as h,Util as g}from"@openremote/core";import v from"lodash.debounce";export class OrAddChangedEvent extends CustomEvent{constructor(e){super(OrAddChangedEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrAddChangedEvent.NAME="or-add-asset-changed";let OrAddAssetDialog=class extends i{static get styles(){return e`
|
|
2
2
|
:host{
|
|
3
3
|
border-style: solid;
|
|
4
|
-
border-color: var(--or-app-color5, ${
|
|
4
|
+
border-color: var(--or-app-color5, ${o(h)});
|
|
5
5
|
border-width: 1px 0;
|
|
6
6
|
}
|
|
7
7
|
|
|
@@ -32,12 +32,12 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
32
32
|
|
|
33
33
|
#parent-selector {
|
|
34
34
|
max-width: 250px;
|
|
35
|
-
border-left: 1px solid var(--or-app-color5, ${
|
|
35
|
+
border-left: 1px solid var(--or-app-color5, ${o(h)});
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
#mdc-dialog-form-add {
|
|
39
39
|
display: flex;
|
|
40
|
-
height:
|
|
40
|
+
height: 600px;
|
|
41
41
|
max-height: 600px;
|
|
42
42
|
width: 1000px;
|
|
43
43
|
}
|
|
@@ -60,11 +60,25 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
60
60
|
font-size: 16px;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
#type-list-filter {
|
|
64
|
+
padding: 7px;
|
|
65
|
+
background-color: var(--or-app-color2, ${o(m)}))
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
#filterInput{
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
63
72
|
#type-list {
|
|
64
|
-
width: 260px;
|
|
65
73
|
overflow: auto;
|
|
66
74
|
text-transform: capitalize;
|
|
67
|
-
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
#type-list-container {
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
width: 260px;
|
|
81
|
+
border-right: 1px solid var(--or-app-color5, ${o(h)});
|
|
68
82
|
}
|
|
69
83
|
|
|
70
84
|
#type-title {
|
|
@@ -75,7 +89,7 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
75
89
|
|
|
76
90
|
#type-description {
|
|
77
91
|
text-transform: capitalize;
|
|
78
|
-
color: var(--or-app-color3, ${
|
|
92
|
+
color: var(--or-app-color3, ${o(u)});
|
|
79
93
|
margin-left: 10px;
|
|
80
94
|
font-size: 18px;
|
|
81
95
|
font-weight: bold;
|
|
@@ -88,7 +102,7 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
88
102
|
font-family: "Segoe UI", Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
|
|
89
103
|
font-weight: bolder;
|
|
90
104
|
line-height: 1em;
|
|
91
|
-
color: var(--or-app-color3, ${
|
|
105
|
+
color: var(--or-app-color3, ${o(u)});
|
|
92
106
|
letter-spacing: 0.025em;
|
|
93
107
|
font-size: 14px;
|
|
94
108
|
margin: 20px 0 10px;
|
|
@@ -97,29 +111,42 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
97
111
|
.mdc-list-group__subheader {
|
|
98
112
|
margin: 20px 0 0 16px;
|
|
99
113
|
}
|
|
100
|
-
`}constructor(){super(),this.selectedAttributes=[],this.showParentAssetSelector=!1,this.selectedChildAssetType="",this.name="New Asset",this.addEventListener(d.NAME,e=>{this.parent=e.detail.newNodes[0].asset})}render(){let e=e=>e.map(e=>({styleMap:{"--or-icon-fill":e.colour?"#"+e.colour:"unset"},icon:e.icon,text:g.getAssetTypeLabel(e),value:e.name,data:e})).sort(g.sortByString(e=>e.text)),
|
|
114
|
+
`}constructor(){super(),this.selectedAttributes=[],this.showParentAssetSelector=!1,this.selectedChildAssetType="",this.typeFilter="",this.name="New Asset",this.addEventListener(d.NAME,e=>{this.parent=e.detail.newNodes[0].asset})}render(){let e=e=>e.map(e=>({styleMap:{"--or-icon-fill":e.colour?"#"+e.colour:"unset"},icon:e.icon,text:g.getAssetTypeLabel(e),value:e.name,data:e})).sort(g.sortByString(e=>e.text)),i=e(this.agentTypes),o=e(this.assetTypes),r=e=>{var t;return(null!=(t=e.text)?t:"").toLowerCase().includes(this.typeFilter.toLowerCase())},s=i.filter(r),a=o.filter(r),l=[];i.length>0&&l.push({heading:c.t("agents"),list:t`<or-mwc-list @or-mwc-list-changed="${e=>{1===e.detail.length&&this.onTypeChanged(!0,e.detail[0])}}" .listItems="${s}" id="agent-list"></or-mwc-list>`}),o.length>0&&l.push({heading:c.t("assets"),list:t`<or-mwc-list @or-mwc-list-changed="${e=>{1===e.detail.length&&this.onTypeChanged(!1,e.detail[0])}}" .listItems="${a}" id="asset-list"></or-mwc-list>`});let d=this.parent?this.parent.name+" ("+this.parent.id+")":c.t("none");return t`
|
|
101
115
|
<div class="col" style="height: 100%;">
|
|
102
116
|
<form id="mdc-dialog-form-add" class="row">
|
|
103
|
-
<div id="type-list" class="col">
|
|
104
|
-
|
|
117
|
+
<div id="type-list-container" class="col">
|
|
118
|
+
<div id="type-list-filter">
|
|
119
|
+
<or-mwc-input
|
|
120
|
+
id="filterInput"
|
|
121
|
+
.type="${n.TEXT}"
|
|
122
|
+
placeholder="${c.t("filter.filter")}..."
|
|
123
|
+
compact="true"
|
|
124
|
+
outlined="true"
|
|
125
|
+
@input="${v(()=>{var e;this.typeFilter=null!=(e=this._filterInput.nativeValue)?e:""},200)}"
|
|
126
|
+
></or-mwc-input>
|
|
127
|
+
</div>
|
|
128
|
+
<div id="type-list">
|
|
129
|
+
${p(l)}
|
|
130
|
+
</div>
|
|
105
131
|
</div>
|
|
132
|
+
|
|
106
133
|
<div id="asset-type-option-container" class="col">
|
|
107
|
-
${!this.selectedType?t`<div class="msg"><or-translate value="noAssetTypeSelected"></or-translate></div>`:this.getTypeTemplate(this.selectedType,
|
|
134
|
+
${!this.selectedType?t`<div class="msg"><or-translate value="noAssetTypeSelected"></or-translate></div>`:this.getTypeTemplate(this.selectedType,d)}
|
|
108
135
|
</div>
|
|
109
136
|
${!this.showParentAssetSelector?t``:t`<or-asset-tree id="parent-selector" class="col" .showDeselectBtn="${!1}" .showSortBtn="${!1}" selectedNodes readonly></or-asset-tree>`}
|
|
110
137
|
</form>
|
|
111
138
|
</div>
|
|
112
|
-
`}getTypeTemplate(e,
|
|
139
|
+
`}getTypeTemplate(e,i){var o,r;if(!e.name)return!1;let s=l.getAssetTypeInfo(e.name),a=null==(o=null==s?void 0:s.attributeDescriptors)?void 0:o.filter(e=>!e.optional),d=null==(r=null==s?void 0:s.attributeDescriptors)?void 0:r.filter(e=>!!e.optional);return t`
|
|
113
140
|
<div id="type-title">
|
|
114
141
|
<or-icon style="--or-icon-fill: ${e.colour?"#"+e.colour:"unset"}" id="type-icon" .icon="${e.icon}"></or-icon>
|
|
115
142
|
<or-translate id="type-description" .value="${g.getAssetTypeLabel(e)}"></or-translate>
|
|
116
143
|
</div>
|
|
117
144
|
<div id="name-wrapper">
|
|
118
|
-
<or-mwc-input id="name-input" .type="${
|
|
145
|
+
<or-mwc-input id="name-input" .type="${n.TEXT}" min="1" max="1023" required .label="${c.t("name")}" .value="${this.name}" @or-mwc-input-changed="${e=>this.onNameChanged(e.detail.value)}"></or-mwc-input>
|
|
119
146
|
<div id="parent-wrapper">
|
|
120
|
-
<or-mwc-input id="parent" .type="${
|
|
121
|
-
<or-mwc-input id="remove-parent" ?disabled="${!this.parent}" type="${
|
|
122
|
-
<or-mwc-input id="toggle-parent-selector" icon="${this.showParentAssetSelector?"pencil-off":"pencil"}" type="${
|
|
147
|
+
<or-mwc-input id="parent" .type="${n.TEXT}" readonly .label="${c.t("parent")}" .value="${i}" @click="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
|
|
148
|
+
<or-mwc-input id="remove-parent" ?disabled="${!this.parent}" type="${n.BUTTON}" icon="close" @or-mwc-input-changed="${()=>this._onDeselectClicked()}"></or-mwc-input>
|
|
149
|
+
<or-mwc-input id="toggle-parent-selector" icon="${this.showParentAssetSelector?"pencil-off":"pencil"}" type="${n.BUTTON}" @or-mwc-input-changed="${()=>this._onToggleParentAssetSelector()}"></or-mwc-input>
|
|
123
150
|
</div>
|
|
124
151
|
</div>
|
|
125
152
|
|
|
@@ -128,7 +155,7 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
128
155
|
<div class="heading">${c.t("attribute_plural")}</div>
|
|
129
156
|
<div style="display: grid">
|
|
130
157
|
${a.sort(g.sortByString(e=>e.name)).map(e=>t`
|
|
131
|
-
<or-mwc-input .type="${
|
|
158
|
+
<or-mwc-input .type="${n.CHECKBOX}" .label="${g.getAttributeLabel(void 0,e,void 0,!0)}"
|
|
132
159
|
.disabled="${!0}" .value="${!0}"></or-mwc-input>
|
|
133
160
|
`)}
|
|
134
161
|
</div>
|
|
@@ -139,11 +166,11 @@ var __decorate=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length
|
|
|
139
166
|
<div class="heading">${c.t("optional_attributes")}</div>
|
|
140
167
|
<div style="display: grid">
|
|
141
168
|
${d.sort(g.sortByString(e=>e.name)).map(e=>t`
|
|
142
|
-
<or-mwc-input .type="${
|
|
169
|
+
<or-mwc-input .type="${n.CHECKBOX}" .label="${g.getAttributeLabel(void 0,e,void 0,!0)}"
|
|
143
170
|
.value="${this.selectedAttributes.find(t=>t===e)}"
|
|
144
171
|
@or-mwc-input-changed="${t=>t.detail.value?this.selectedAttributes.push(e):this.selectedAttributes.splice(this.selectedAttributes.findIndex(t=>t===e),1)}"></or-mwc-input>
|
|
145
172
|
`)}
|
|
146
173
|
</div>
|
|
147
174
|
</div>
|
|
148
175
|
`}
|
|
149
|
-
`}onNameChanged(e){this.name=e,this.onModified()}onTypeChanged(e,t){return __awaiter(this,void 0,void 0,function*(){yield this.updateComplete,this.selectedAttributes=[],this.selectedType=t.data;let
|
|
176
|
+
`}onNameChanged(e){this.name=e,this.onModified()}onTypeChanged(e,t){return __awaiter(this,void 0,void 0,function*(){yield this.updateComplete,this.selectedAttributes=[],this.selectedType=t.data;let i=e?this.assetList:this.agentList;i&&(i.values=void 0),this.onModified()})}onModified(){this.dispatchEvent(new OrAddChangedEvent({name:this.name,descriptor:this.selectedType}))}_onToggleParentAssetSelector(){this.showParentAssetSelector=!this.showParentAssetSelector}_onDeselectClicked(){this.parent=void 0}};__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"config",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"agentTypes",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"assetTypes",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"parent",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"selectedType",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"selectedAttributes",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"showParentAssetSelector",void 0),__decorate([s({attribute:!1})],OrAddAssetDialog.prototype,"selectedChildAssetType",void 0),__decorate([s({type:String})],OrAddAssetDialog.prototype,"typeFilter",void 0),__decorate([a("#name-input")],OrAddAssetDialog.prototype,"nameInput",void 0),__decorate([a("#agent-list")],OrAddAssetDialog.prototype,"agentList",void 0),__decorate([a("#asset-list")],OrAddAssetDialog.prototype,"assetList",void 0),__decorate([a("#parent-asset-list")],OrAddAssetDialog.prototype,"parentAssetList",void 0),__decorate([a("#filterInput")],OrAddAssetDialog.prototype,"_filterInput",void 0),OrAddAssetDialog=__decorate([r("or-add-asset-dialog")],OrAddAssetDialog);export{OrAddAssetDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-add-asset-dialog.js","sourceRoot":"","sources":["../src/or-add-asset-dialog.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAA+D,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAC/G,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAkB,yBAAyB,EAAC,MAAM,SAAS,CAAC;AACnE,OAAO,EACH,eAAe,EAKlB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"or-add-asset-dialog.js","sourceRoot":"","sources":["../src/or-add-asset-dialog.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAE,SAAS,EAAC,MAAM,KAAK,CAAC;AACrD,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAA+D,cAAc,EAAC,MAAM,mBAAmB,CAAC;AAC/G,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAkB,yBAAyB,EAAC,MAAM,SAAS,CAAC;AACnE,OAAO,EACH,eAAe,EAKlB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAC,aAAa,EAAE,aAAa,EAAE,aAAa,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACnF,OAAO,E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ES,kBAAkB;QACxB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;IAC5B,CAAC;CACJ,CAAA;AAhVU;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;gDACG;AAGzB;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;oDACS;AAG/B;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;oDACS;AAG/B;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;gDACP;AAGf;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;sDAC2B;AAGjD;IADN,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;4DACyB;AAG5C;IADT,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;iEACsB;AAGnD;IADC,QAAQ,CAAC,EAAC,SAAS,EAAE,KAAK,EAAC,CAAC;gEACO;AAG5B;IADP,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;oDACO;AAKtB;IADT,KAAK,CAAC,aAAa,CAAC;mDACY;AAGvB;IADT,KAAK,CAAC,aAAa,CAAC;mDACW;AAGtB;IADT,KAAK,CAAC,aAAa,CAAC;mDACW;AAGtB;IADT,KAAK,CAAC,oBAAoB,CAAC;yDACU;AAG9B;IADP,KAAK,CAAC,cAAc,CAAC;sDACY;AA5CzB,gBAAgB;IAD5B,aAAa,CAAC,qBAAqB,CAAC;GACxB,gBAAgB,CAmV5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-asset-tree",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.2",
|
|
4
4
|
"description": "OpenRemote Asset Tree",
|
|
5
5
|
"customElements": "custom-elements.json",
|
|
6
6
|
"main": "dist/umd/index.bundle.js",
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
"license": "AGPL-3.0-or-later",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@mdi/js": "^5.9.55",
|
|
25
|
-
"@openremote/core": "1.20.
|
|
26
|
-
"@openremote/model": "1.20.
|
|
27
|
-
"@openremote/or-icon": "1.20.
|
|
28
|
-
"@openremote/or-mwc-components": "1.20.
|
|
29
|
-
"@openremote/or-translate": "1.20.
|
|
25
|
+
"@openremote/core": "1.20.2",
|
|
26
|
+
"@openremote/model": "1.20.2",
|
|
27
|
+
"@openremote/or-icon": "1.20.2",
|
|
28
|
+
"@openremote/or-mwc-components": "1.20.2",
|
|
29
|
+
"@openremote/or-translate": "1.20.2",
|
|
30
30
|
"lit": "^3.3.1",
|
|
31
31
|
"lodash.debounce": "^4.0.8",
|
|
32
32
|
"qs": "^6.8.0"
|