@openremote/or-attribute-input 1.2.2 → 1.2.3
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/dist/umd/index.orbundle.js +128 -128
- package/lib/or-anomaly-config-chart.d.ts +50 -0
- package/lib/or-anomaly-config-chart.js +15 -0
- package/lib/or-anomaly-config-chart.js.map +1 -0
- package/lib/or-anomaly-config-input.d.ts +80 -0
- package/lib/or-anomaly-config-input.js +98 -0
- package/lib/or-anomaly-config-input.js.map +1 -0
- package/package.json +8 -8
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024, OpenRemote Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify
|
|
5
|
+
* it under the terms of the GNU Affero General Public License as
|
|
6
|
+
* published by the Free Software Foundation, either version 3 of the
|
|
7
|
+
* License, or (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU Affero General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
18
|
+
*/
|
|
19
|
+
import "@openremote/or-chart";
|
|
20
|
+
import { OrChart } from "@openremote/or-chart";
|
|
21
|
+
import { ChartDataset, ScatterDataPoint } from "chart.js";
|
|
22
|
+
import "@openremote/or-mwc-components/or-mwc-input";
|
|
23
|
+
import {
|
|
24
|
+
AnomalyDetectionConfiguration,
|
|
25
|
+
Asset,
|
|
26
|
+
AssetDatapointQueryUnion,
|
|
27
|
+
Attribute,
|
|
28
|
+
AttributeRef,
|
|
29
|
+
} from "@openremote/model";
|
|
30
|
+
import "@openremote/or-components/or-collapsible-panel";
|
|
31
|
+
export declare class OrAnomalyConfigChart extends OrChart {
|
|
32
|
+
attributeRef?: AttributeRef;
|
|
33
|
+
anomalyConfig?: AnomalyDetectionConfiguration;
|
|
34
|
+
timespan?: Number;
|
|
35
|
+
protected errorMessage: string;
|
|
36
|
+
protected canRefresh: boolean;
|
|
37
|
+
protected willUpdate(changedProps: Map<string, any>): void;
|
|
38
|
+
protected _loadData(): Promise<void>;
|
|
39
|
+
protected validateCanUpdate(): Promise<boolean>;
|
|
40
|
+
protected validateConfig(
|
|
41
|
+
timespan: string,
|
|
42
|
+
minimumDatapoints: number | undefined
|
|
43
|
+
): boolean;
|
|
44
|
+
protected getAnomalyLimits(
|
|
45
|
+
asset: Asset,
|
|
46
|
+
attribute: Attribute<any>,
|
|
47
|
+
query: AssetDatapointQueryUnion
|
|
48
|
+
): Promise<ChartDataset<"line", ScatterDataPoint[]>[]>;
|
|
49
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
var __decorate=this&&this.__decorate||function(t,e,i,a){var o,n=arguments.length,r=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,a);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(r=(n<3?o(r):n>3?o(e,i,r):o(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r},__awaiter=this&&this.__awaiter||function(t,e,i,a){return new(i||(i=Promise))((function(o,n){function r(t){try{l(a.next(t))}catch(t){n(t)}}function s(t){try{l(a.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?o(t.value):(e=t.value,e instanceof i?e:new i((function(t){t(e)}))).then(r,s)}l((a=a.apply(t,e||[])).next())}))};import"@openremote/or-chart";import{OrChart}from"@openremote/or-chart";import"@openremote/or-mwc-components/or-mwc-input";import{customElement,property}from"lit/decorators.js";import{html}from"lit";import{DefaultColor4,manager,Util}from"@openremote/core";import moment from"moment";import{AssetModelUtil}from"@openremote/model";import{i18next}from"@openremote/or-translate";import"@openremote/or-components/or-collapsible-panel";let OrAnomalyConfigChart=class extends OrChart{constructor(){super(...arguments),this.attributeRef=void 0,this.anomalyConfig=void 0,this.timespan=void 0,this.errorMessage="",this.canRefresh=!1}willUpdate(t){return super.willUpdate(t)}_loadData(){return __awaiter(this,void 0,void 0,(function*(){if(!(yield this.validateCanUpdate()))return void(this._loading=!1);let t=0;this._startOfPeriod=0,this._endOfPeriod=0,"global"===this.anomalyConfig.type||"change"===this.anomalyConfig.type?(t=moment.duration(this.anomalyConfig.timespan).asMilliseconds(),this._startOfPeriod=Date.now()-5*t,this._endOfPeriod=Date.now()):"forecast"===this.anomalyConfig.type&&(t=12e5,this._startOfPeriod=Date.now()-2*t,this._endOfPeriod=Date.now()+t);const e=(this._endOfPeriod-this._startOfPeriod)/1e3/60/60,i=this._getInterval(e),a=i[0],o=i[1],n=o.toLowerCase();this._timeUnits=n,this._stepSize=a;const r=[];let s;this.dataProvider?yield this.dataProvider(this._startOfPeriod,this._endOfPeriod,o.toString(),a).then((t=>{t.forEach((t=>{r.push(t)}))})):s=this.assetAttributes.map((([t,e],i)=>__awaiter(this,void 0,void 0,(function*(){const i=this.assets[t],a=AssetModelUtil.getAttributeAndValueDescriptors(i.type,e.name,e),o=(Util.getAttributeLabel(e,a[0],i.type,!1),Util.resolveUnits(Util.getAttributeUnits(e,a[0],i.type)));this.colors.length;let n=yield this.getAnomalyLimits(i,e,this.datapointQuery);if(0!==n.length){let t=n[0];t.unit=o,r.push(t),t=n[1],t.unit=o,r.push(t);for(let e=2;e<n.length;e+=2)t=n[e],t.unit=o,r.push(t),t=n[e+1],t.unit=o,r.push(t)}})))),s&&(yield Promise.all(s)),r[0]&&0!==r[0].data.length&&(this._data=r),this._loading=!1}))}validateCanUpdate(){return __awaiter(this,void 0,void 0,(function*(){if(this._loading||!this.anomalyConfig||!this.canRefresh)return!1;if(null==this.anomalyConfig.onOff||!this.anomalyConfig.type||!this.anomalyConfig.deviation)return!1;if("global"===this.anomalyConfig.type){if(!this.validateConfig(this.anomalyConfig.timespan,this.anomalyConfig.minimumDatapoints))return!1}else if("change"===this.anomalyConfig.type&&!this.validateConfig(this.anomalyConfig.timespan,this.anomalyConfig.minimumDatapoints))return!1;if(this.attributeRef){this._loading=!0;const t={ids:[this.attributeRef.id],select:{attributes:[this.attributeRef.name]}};try{const e=yield manager.rest.api.AssetResource.queryAssets(t);this.assets=e.data||[],this.attributeRef.name&&this.assets[0].attributes&&(this.assetAttributes[0]=[0,this.assets[0].attributes[this.attributeRef.name]])}catch(t){console.error("Failed to get assets requested in settings",t)}}return!(this._data||!this.assetAttributes||!this.assets||0===this.assets.length&&!this.dataProvider||0===this.assetAttributes.length&&!this.dataProvider)}))}validateConfig(t,e){return!!(t&&""!==t&&e&&/^P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?$/.test(t))||(this.errorMessage=i18next.t("anomalyDetection.invalidConfiguration"),!1)}getAnomalyLimits(t,e,i){return __awaiter(this,void 0,void 0,(function*(){let i,a=[],o={borderColor:DefaultColor4+"80",backgroundColor:DefaultColor4+"80",label:"min",pointRadius:0,animation:!1,fill:!1,data:[]},n={pointStyle:"cross",label:"anomalies",animation:!1,pointRadius:10,pointRotation:45,pointBorderWidth:2,backgroundColor:"#00000000",borderColor:"#00000000",pointBorderColor:"#be0000",pointBackgroundColor:"#be0000",data:[]},r={borderColor:DefaultColor4+"80",backgroundColor:DefaultColor4+"80",label:"max",animation:!1,pointRadius:0,fill:3,data:[]},s={borderColor:"#2844cc",backgroundColor:"#2844cc",label:"data",animation:!1,pointRadius:2,segment:{borderDash:t=>t.p0.parsed.x>Date.now()?[2,4]:void 0},fill:!1,data:[]};if(this.anomalyConfig)if(i=yield manager.rest.api.AnomalyDetectionResource.getAnomalyDatapointLimits(t.id,e.name,this.anomalyConfig,{getLimits:!0,getAnomalies:!0,getData:!0,maximumDatapoints:100}),200===i.status){if(0===i.data.length)return this.errorMessage=i18next.t("anomalyDetection.noDatapointsSaved"),a;if(1===i.data.length)return this.errorMessage=i18next.t("anomalyDetection.notEnoughDatapointsSaved"),a;4===i.data.length&&-1===i.data[1].findIndex((t=>null!=t))&&(this.errorMessage=i18next.t("anomalyDetection.notEnoughDatapointsSavedForLimits")),s.data=i.data[2].filter((t=>null!=t)),n.data=i.data[3].filter((t=>null!==t));let t=0;for(;i.data[1].length>1;){let e=i.data[1].slice(i.data[1].findIndex((t=>null!==t)),i.data[1].length),o=e.findIndex((t=>null===t));e=e.slice(0,-1===o?e.length:o),r.data=e.filter((t=>null!=t)),a.push(JSON.parse(JSON.stringify(r))),i.data[1]=i.data[1].splice(i.data[1].findIndex((t=>null!==t))+e.length,i.data[1].length),t++}let e=1;for(a.forEach((i=>{i.fill=t+e,e++})),a.push(s);i.data[0].length>1;){let t=i.data[0].slice(i.data[0].findIndex((t=>null!==t)),i.data[0].length),e=t.findIndex((t=>null===t));t=t.slice(0,-1===e?t.length:e),o.data=t.filter((t=>null!=t)),a.push(JSON.parse(JSON.stringify(o))),i.data[0]=i.data[0].splice(i.data[0].findIndex((t=>null!==t))+t.length,i.data[0].length)}a.push(n)}else 204===i.status&&(this.errorMessage=i18next.t("anomalyDetection.invalidConfiguration"));return a}))}render(){const t=this._loading;return html`
|
|
2
|
+
<div id="chart-container" style="display: flex; ">
|
|
3
|
+
${t?html`
|
|
4
|
+
<div style="position: absolute; height: 100%; width: 100%;">
|
|
5
|
+
<or-loading-indicator ?overlay="false"></or-loading-indicator>
|
|
6
|
+
</div>
|
|
7
|
+
`:void 0}
|
|
8
|
+
${null!=this._data?html`
|
|
9
|
+
<canvas id="chart" style="visibility: ${t?"hidden":"visible"}"></canvas>
|
|
10
|
+
`:html`
|
|
11
|
+
<p>${this.errorMessage}</p>
|
|
12
|
+
`}
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
`}};__decorate([property({type:Object})],OrAnomalyConfigChart.prototype,"attributeRef",void 0),__decorate([property({type:Object})],OrAnomalyConfigChart.prototype,"anomalyConfig",void 0),__decorate([property({type:Number})],OrAnomalyConfigChart.prototype,"timespan",void 0),__decorate([property({type:String})],OrAnomalyConfigChart.prototype,"errorMessage",void 0),__decorate([property({type:Boolean})],OrAnomalyConfigChart.prototype,"canRefresh",void 0),OrAnomalyConfigChart=__decorate([customElement("or-anomaly-config-chart")],OrAnomalyConfigChart);export{OrAnomalyConfigChart};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"or-anomaly-config-chart.js","sourceRoot":"","sources":["../src/or-anomaly-config-chart.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,sBAAsB,CAAA;AAC7B,OAAO,EAAkB,OAAO,EAAe,MAAM,sBAAsB,CAAA;AAS3E,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAiB,MAAM,KAAK,CAAC;AAC1C,OAAO,EAAU,aAAa,EAAE,OAAO,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACvE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAOH,cAAc,EAMjB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAC,OAAO,EAAY,MAAM,0BAA0B,CAAC;AAC5D,OAAO,gDAAgD,CAAA;AAMhD,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,OAAO;IAA1C;;QAGI,iBAAY,GAAkB,SAAS,CAAC;QAExC,kBAAa,GAAmC,SAAS,CAAC;QAE1D,aAAQ,GAAY,SAAS,CAAC;QAE3B,iBAAY,GAAG,EAAE,CAAA;QAEjB,eAAU,GAAG,KAAK,CAAA;IAyQhC,CAAC;IAtQa,UAAU,CAAC,YAA8B;QAC/C,OAAO,KAAK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,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA;oEACY,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS;yBAC1E,CAAA,CAAC,CAAC,IAAI,CAAA;iCACE,IAAI,CAAC,YAAY;yBACxB;;;SAGjB,CAAC;IACN,CAAC;CACJ,CAAA;AAjRU;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0DACsB;AAExC;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;2DACwC;AAE1D;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;sDACY;AAE3B;IADT,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;0DACE;AAEjB;IADT,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;wDACE;AAXnB,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAoRhC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024, OpenRemote Inc.
|
|
3
|
+
*
|
|
4
|
+
* This program is free software: you can redistribute it and/or modify
|
|
5
|
+
* it under the terms of the GNU Affero General Public License as
|
|
6
|
+
* published by the Free Software Foundation, either version 3 of the
|
|
7
|
+
* License, or (at your option) any later version.
|
|
8
|
+
*
|
|
9
|
+
* This program is distributed in the hope that it will be useful,
|
|
10
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
+
* GNU Affero General Public License for more details.
|
|
13
|
+
*
|
|
14
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
18
|
+
*/
|
|
19
|
+
import "@openremote/or-chart";
|
|
20
|
+
import "@openremote/or-mwc-components/or-mwc-input";
|
|
21
|
+
import { OrInputChangedEvent } from "@openremote/or-mwc-components/or-mwc-input";
|
|
22
|
+
import { LitElement, TemplateResult } from "lit";
|
|
23
|
+
import {
|
|
24
|
+
AnomalyDetectionConfigObject,
|
|
25
|
+
AnomalyDetectionConfigurationUnion,
|
|
26
|
+
AssetDatapointQueryUnion,
|
|
27
|
+
AttributeRef,
|
|
28
|
+
User,
|
|
29
|
+
} from "@openremote/model";
|
|
30
|
+
import { ErrorObject } from "@openremote/or-json-forms";
|
|
31
|
+
import "@openremote/or-json-forms";
|
|
32
|
+
import "@openremote/or-components/or-collapsible-panel";
|
|
33
|
+
declare const OrAnomalyConfigInput_base: (new (...args: any[]) => {
|
|
34
|
+
_i18nextJustInitialized: boolean;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
disconnectedCallback(): void;
|
|
37
|
+
shouldUpdate(
|
|
38
|
+
changedProps:
|
|
39
|
+
| import("lit").PropertyValueMap<any>
|
|
40
|
+
| Map<PropertyKey, unknown>
|
|
41
|
+
): any;
|
|
42
|
+
initCallback: (options: import("i18next").InitOptions) => void;
|
|
43
|
+
langChangedCallback: () => void;
|
|
44
|
+
readonly isConnected: boolean;
|
|
45
|
+
}) &
|
|
46
|
+
typeof LitElement;
|
|
47
|
+
export declare class OrAnomalyConfigInput extends OrAnomalyConfigInput_base {
|
|
48
|
+
anomalyDetectionConfigObject?: AnomalyDetectionConfigObject;
|
|
49
|
+
attributeRef?: AttributeRef;
|
|
50
|
+
datapointQuery: AssetDatapointQueryUnion;
|
|
51
|
+
timespan?: number;
|
|
52
|
+
expanded: boolean;
|
|
53
|
+
updateBool: boolean;
|
|
54
|
+
users: User[];
|
|
55
|
+
template: TemplateResult;
|
|
56
|
+
selectedIndex: number;
|
|
57
|
+
previousConfig?: AnomalyDetectionConfigurationUnion;
|
|
58
|
+
onChange?: (
|
|
59
|
+
dataAndErrors: {
|
|
60
|
+
errors: ErrorObject[] | undefined;
|
|
61
|
+
data: any;
|
|
62
|
+
},
|
|
63
|
+
update: boolean
|
|
64
|
+
) => void;
|
|
65
|
+
connectedCallback(): Promise<void>;
|
|
66
|
+
render(): TemplateResult<1>;
|
|
67
|
+
protected draw(): TemplateResult<1>;
|
|
68
|
+
protected addMethod(): void;
|
|
69
|
+
protected removeMethod(index: number): void;
|
|
70
|
+
protected updateProperty(e: OrInputChangedEvent, prop: string): void;
|
|
71
|
+
protected updateGraph(): void;
|
|
72
|
+
protected updateData(newConfig: AnomalyDetectionConfigurationUnion): void;
|
|
73
|
+
protected updateConfigObject(newConfig: AnomalyDetectionConfigObject): void;
|
|
74
|
+
protected testValid(
|
|
75
|
+
minimumDatapoints: number | undefined,
|
|
76
|
+
timespan: string | undefined
|
|
77
|
+
): boolean;
|
|
78
|
+
protected loadUsers(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
var __decorate=this&&this.__decorate||function(e,t,o,i){var n,a=arguments.length,l=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(l=(a<3?n(l):a>3?n(t,o,l):n(t,o))||l);return a>3&&l&&Object.defineProperty(t,o,l),l},__awaiter=this&&this.__awaiter||function(e,t,o,i){return new(o||(o=Promise))((function(n,a){function l(e){try{d(i.next(e))}catch(e){a(e)}}function r(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,r)}d((i=i.apply(e,t||[])).next())}))};import"@openremote/or-chart";import"@openremote/or-mwc-components/or-mwc-input";import{customElement,property}from"lit/decorators.js";import{css,html,LitElement}from"lit";import{manager,Util}from"@openremote/core";import"@openremote/or-json-forms";import{showJsonEditor}from"@openremote/or-json-forms";import{i18next,translate}from"@openremote/or-translate";import"@openremote/or-components/or-collapsible-panel";import{createRef}from"lit/directives/ref.js";const styling=css`
|
|
2
|
+
.test {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
width: 100%;
|
|
6
|
+
}
|
|
7
|
+
.item{
|
|
8
|
+
display: flex;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
`;let OrAnomalyConfigInput=class extends(translate(i18next)(LitElement)){constructor(){super(...arguments),this.anomalyDetectionConfigObject=void 0,this.attributeRef=void 0,this.timespan=void 0,this.expanded=!1,this.updateBool=!1,this.users=[],this.selectedIndex=-1,this.previousConfig=void 0}connectedCallback(){const e=Object.create(null,{connectedCallback:{get:()=>super.connectedCallback}});return __awaiter(this,void 0,void 0,(function*(){yield this.loadUsers(),e.connectedCallback.call(this)}))}render(){return this.draw()}draw(){console.log("draw");const e=createRef(),t=[{value:"",label:""}],o=[{value:"global",label:"Range"},{value:"change",label:"Change"},{value:"forecast",label:"Forecast"}];if(this.users.map((e=>({value:e.id,label:e.username}))).forEach((e=>t.push(e))),-1==this.selectedIndex&&(this.selectedIndex=this.anomalyDetectionConfigObject.methods.length>0?0:-1),!this.anomalyDetectionConfigObject||!this.attributeRef||!this.anomalyDetectionConfigObject.methods)return html``;const i=this.attributeRef,n=e=>{e.stopPropagation(),showJsonEditor(`${i18next.t("anomalyDetection.configuration")}`,this.anomalyDetectionConfigObject,(e=>{this.updateConfigObject(e)}))},a=t=>__awaiter(this,void 0,void 0,(function*(){e.value&&t.methods[this.selectedIndex]&&(e.value.data=t.methods[this.selectedIndex])})),l=e=>{switch(e.type){case"change":return html`
|
|
12
|
+
<or-mwc-input style="padding-top: 10px;" required="true" type="number" .label="${i18next.t("anomalyDetection.deviationChange")}" .value="${e.deviation}" @or-mwc-input-changed="${e=>this.updateProperty(e,"deviation")}"></or-mwc-input>
|
|
13
|
+
<or-mwc-input style="padding-top: 10px;" required="true" type="text" .label="${i18next.t("anomalyDetection.minimumTimespan")}" .value="${e.timespan}" @or-mwc-input-changed="${e=>this.updateProperty(e,"timespan")}"></or-mwc-input>
|
|
14
|
+
`;case"global":return html`
|
|
15
|
+
<or-mwc-input style="padding-top: 10px;" required="true" type="number" .label="${i18next.t("anomalyDetection.deviationGlobal")}" .value="${e.deviation}" @or-mwc-input-changed="${e=>this.updateProperty(e,"deviation")}"></or-mwc-input>
|
|
16
|
+
<or-mwc-input style="padding-top: 10px;" required="true" type="text" .label="${i18next.t("anomalyDetection.minimumTimespan")}" .value="${e.timespan}" @or-mwc-input-changed="${e=>this.updateProperty(e,"timespan")}"></or-mwc-input>
|
|
17
|
+
`;case"forecast":return html`
|
|
18
|
+
<or-mwc-input style="padding-top: 10px;" required="true" type="number" .label="${i18next.t("anomalyDetection.deviationForecast")}" .value="${e.deviation}" @or-mwc-input-changed="${e=>this.updateProperty(e,"deviation")}"></or-mwc-input>
|
|
19
|
+
`;default:return html`
|
|
20
|
+
|
|
21
|
+
`}};return window.setTimeout((()=>a(this.anomalyDetectionConfigObject)),0),html`
|
|
22
|
+
<div class="test">
|
|
23
|
+
<or-collapsible-panel style="width: 100%" .onChange="${e=>{this.expanded=e,e&&(this.updateBool=!this.updateBool)}}">
|
|
24
|
+
<div slot="header" style="width: 80%">
|
|
25
|
+
<span>
|
|
26
|
+
${i18next.t("anomalyDetection.")}
|
|
27
|
+
</span>
|
|
28
|
+
</div>
|
|
29
|
+
<div slot="header-description" style="display: flex; flex-direction: row-reverse; width: 100%">
|
|
30
|
+
<or-mwc-input type="button" outlined .label="${i18next.t("json")}" icon="pencil" @click="${e=>{e.stopPropagation()}}" @or-mwc-input-changed="${e=>n(e)}"></or-mwc-input>
|
|
31
|
+
</div>
|
|
32
|
+
|
|
33
|
+
<div class="test" slot="content">
|
|
34
|
+
<div style="display: flex; padding: 0 16pt; margin-left: 10pt">
|
|
35
|
+
${this.anomalyDetectionConfigObject.methods.map((e=>{var t,o;const i=null===(t=this.anomalyDetectionConfigObject.methods)||void 0===t?void 0:t.indexOf(null===(o=this.anomalyDetectionConfigObject.methods)||void 0===o?void 0:o.find((t=>t===e)));return html`
|
|
36
|
+
<div .style="z-index: 10; margin:0 2pt; border-top-right-radius:4pt; border-top-left-radius:4pt; border-color:lightgray; border-style:solid; border-width:thin; ${i===this.selectedIndex?"border-bottom-color: white;":"border-bottom-style: none;"}">
|
|
37
|
+
<or-mwc-input type="button" .label="${e.name}" @or-mwc-input-changed="${()=>{this.selectedIndex=i,this.updateGraph()}}" ></or-mwc-input>
|
|
38
|
+
</div>
|
|
39
|
+
`}))}
|
|
40
|
+
<or-mwc-input type="button" label="${i18next.t("anomalyDetection.addMethod")}" icon="plus" @or-mwc-input-changed="${()=>{this.addMethod()}}" ></or-mwc-input>
|
|
41
|
+
</div >
|
|
42
|
+
${-1==this.selectedIndex?html`
|
|
43
|
+
<p style="padding-left:16pt ">${i18next.t("anomalyDetection.noMethodsCreated")}</p>
|
|
44
|
+
`:html`
|
|
45
|
+
<div style="margin: 16pt; padding: 16pt; margin-top: -1px; border-style: solid; border-color: lightgray; border-width: thin; border-radius: 4pt;">
|
|
46
|
+
<div style="display: flex; justify-content: space-between; width: 100%">
|
|
47
|
+
<div class="item" style="justify-content: left">
|
|
48
|
+
<or-mwc-input .label="${i18next.t("name")}" type="text" .value="${this.anomalyDetectionConfigObject.methods[this.selectedIndex].name}" @or-mwc-input-changed="${e=>this.updateProperty(e,"name")}"></or-mwc-input>
|
|
49
|
+
</div>
|
|
50
|
+
|
|
51
|
+
<div class="item" style="justify-content: right">
|
|
52
|
+
<or-mwc-input .style="visibility: ${-1==this.selectedIndex?"hidden":"visible"};" type="button" icon="close-circle" @or-mwc-input-changed="${()=>{this.removeMethod(this.selectedIndex)}}" ></or-mwc-input>
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
<div .style="visibility: ${-1==this.selectedIndex?"hidden":"visible"};" class="test" slot="content" >
|
|
56
|
+
<div style="display: flex; justify-content: space-between; flex-direction: row;">
|
|
57
|
+
<div style="width: 45%">
|
|
58
|
+
<p>${i18next.t("anomalyDetection.detectionMethod")}</p>
|
|
59
|
+
${(e=>html`
|
|
60
|
+
<div style="display: flex; flex-direction: column;">
|
|
61
|
+
<or-mwc-input type="checkbox" .label="${i18next.t("active")}" .value="${e.onOff}" @or-mwc-input-changed="${e=>this.updateProperty(e,"onOff")}"></or-mwc-input>
|
|
62
|
+
<or-mwc-input style="padding-top: 10px;" required="true" type="select" .label="${i18next.t("type")}" .options="${o.map((e=>e.label))||void 0}"
|
|
63
|
+
.value="${e.type?o.filter((e=>e.value===this.anomalyDetectionConfigObject.methods[this.selectedIndex].type)).map((e=>e.label))[0]:""}"
|
|
64
|
+
@or-mwc-input-changed="${e=>{e.detail.value=o.filter((t=>t.label===e.detail.value)).map((e=>e.value))[0],this.updateProperty(e,"type")}}"></or-mwc-input>
|
|
65
|
+
${l(e)}
|
|
66
|
+
<or-mwc-input type="button" style="padding-top: 10px;" outlined icon="test-tube" .label="${i18next.t("anomalyDetection.testMethod")}"
|
|
67
|
+
@or-mwc-input-changed="${()=>this.updateGraph()}" ></or-mwc-input>
|
|
68
|
+
</div>
|
|
69
|
+
|
|
70
|
+
`)(this.anomalyDetectionConfigObject.methods[this.selectedIndex])}
|
|
71
|
+
</div>
|
|
72
|
+
<div style="width: 45%; display: flex; flex-direction: column;">
|
|
73
|
+
<p>${i18next.t("alarm.")}</p>
|
|
74
|
+
${this.anomalyDetectionConfigObject.methods.map((e=>{var o,i,n,a,l,r;if((null===(o=this.anomalyDetectionConfigObject.methods)||void 0===o?void 0:o.indexOf(null===(i=this.anomalyDetectionConfigObject.methods)||void 0===i?void 0:i.find((t=>t===e))))===this.selectedIndex)return html`
|
|
75
|
+
<or-mwc-input .readonly="${!e.onOff}" type="checkbox" .label="${i18next.t("active")}" .value="${!!e.onOff&&e.alarmOnOff}" @or-mwc-input-changed="${e=>this.updateProperty(e,"alarmOnOff")}"></or-mwc-input>
|
|
76
|
+
<or-mwc-input .required="${e.alarmOnOff}" style="padding-top: 10px;" .value="${(null===(n=e.alarm)||void 0===n?void 0:n.severity)?null===(a=e.alarm)||void 0===a?void 0:a.severity:""}" type="select" .options="${["LOW","MEDIUM","HIGH"]}" label="${i18next.t("alarm.severity")}" @or-mwc-input-changed="${e=>this.updateProperty(e,"alarm.severity")}"></or-mwc-input>
|
|
77
|
+
<or-mwc-input style="padding-top: 10px;" .label="${i18next.t("alarm.assignee")}" placeholder=" " type="select"
|
|
78
|
+
.options="${t.map((e=>e.label))||void 0}"
|
|
79
|
+
.value="${e.alarm.assigneeId?t.filter((e=>e.value===this.anomalyDetectionConfigObject.methods[this.selectedIndex].alarm.assigneeId)).map((e=>e.label))[0]:""}"
|
|
80
|
+
@or-mwc-input-changed="${e=>{e.detail.value=t.filter((t=>t.label===e.detail.value)).map((e=>e.value))[0],this.updateProperty(e,"alarm.assigneeId")}}"></or-mwc-input>
|
|
81
|
+
<or-mwc-input style="padding-top: 10px;" .value="${(null===(l=e.alarm)||void 0===l?void 0:l.content)?null===(r=e.alarm)||void 0===r?void 0:r.content:""}" type="textarea" label="${i18next.t("alarm.content")}" @or-mwc-input-changed="${e=>this.updateProperty(e,"alarm.content")}"></or-mwc-input>
|
|
82
|
+
`}))}
|
|
83
|
+
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
<or-anomaly-config-chart style="display: flex; width: auto;"
|
|
87
|
+
.timePresetKey="${this.updateBool}"
|
|
88
|
+
.panelName="${this.selectedIndex}"
|
|
89
|
+
.anomalyConfig="${this.anomalyDetectionConfigObject?this.anomalyDetectionConfigObject.methods[this.selectedIndex]:void 0}" .attributeRef="${i}"
|
|
90
|
+
.canRefresh="${this.expanded}">
|
|
91
|
+
</or-anomaly-config-chart>
|
|
92
|
+
</div>
|
|
93
|
+
</div>
|
|
94
|
+
`}
|
|
95
|
+
</div>
|
|
96
|
+
</or-collapsible-panel>
|
|
97
|
+
</div>
|
|
98
|
+
`}addMethod(){if(this.anomalyDetectionConfigObject){this.anomalyDetectionConfigObject;const e=this.anomalyDetectionConfigObject.methods?this.anomalyDetectionConfigObject.methods.length:0;let t;t={name:"Method "+(this.anomalyDetectionConfigObject.methods.length+1),type:"global",onOff:!0,deviation:10,minimumDatapoints:2,timespan:"PT20M",alarm:{content:"%ASSET_NAME%\n%ATTRIBUTE_NAME%\n%METHOD_TYPE%",assigneeId:void 0},alarmOnOff:!1},this.anomalyDetectionConfigObject.methods[e]=t,this.selectedIndex=e,this.updateGraph()}}removeMethod(e){var t;this.anomalyDetectionConfigObject&&(null===(t=this.anomalyDetectionConfigObject.methods)||void 0===t||t.splice(e,1),this.selectedIndex--,this.updateGraph())}updateProperty(e,t){if(this.anomalyDetectionConfigObject&&this.anomalyDetectionConfigObject.methods){let o=JSON.parse(JSON.stringify(this.anomalyDetectionConfigObject.methods[this.selectedIndex]));t.includes("alarm.")?(o.alarm[t],e.detail.value,o.alarm[t.split("alarm.")[1]]=e.detail.value):(o[t],e.detail.value,o[t]=e.detail.value),this.updateData(o)}}updateGraph(){null!=this.previousConfig?(this.previousConfig.name=this.anomalyDetectionConfigObject.methods[this.selectedIndex].name,this.previousConfig.alarm=this.anomalyDetectionConfigObject.methods[this.selectedIndex].alarm,this.previousConfig.alarmOnOff=this.anomalyDetectionConfigObject.methods[this.selectedIndex].alarmOnOff,this.previousConfig.onOff=this.anomalyDetectionConfigObject.methods[this.selectedIndex].onOff,Util.objectsEqual(this.previousConfig,this.anomalyDetectionConfigObject.methods[this.selectedIndex])||(this.updateBool=!this.updateBool)):this.updateBool=!this.updateBool,this.previousConfig=JSON.parse(JSON.stringify(this.anomalyDetectionConfigObject.methods[this.selectedIndex]))}updateData(e){if(e){let t=JSON.parse(JSON.stringify(this.anomalyDetectionConfigObject));t.methods[this.selectedIndex]=e,this.updateConfigObject(t)}}updateConfigObject(e){let t=!0;if(e&&e.methods&&e.methods[0]){let o=1;e.methods.forEach((i=>{for(let n=o;n<e.methods.length;n++)i.name===e.methods[n].name&&(t=!1);o++,i.type&&i.deviation&&void 0!==i.onOff&&void 0!==i.alarmOnOff&&i.alarm&&(!i.alarmOnOff||i.alarm.severity)&&i.name&&""!==i.name||(t=!1),i.alarm.realm=manager.getRealm(),("global"===i.type||"change"===i.type)&&(this.testValid(i.minimumDatapoints,i.timespan)||(t=!1))})),Util.objectsEqual(e,this.anomalyDetectionConfigObject)||(this.anomalyDetectionConfigObject=e,this.onChange&&this.onChange({data:this.anomalyDetectionConfigObject,errors:[]},t))}}testValid(e,t){return!(!t||""===t||!/^P(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(\d+H)?(\d+M)?(\d+S)?)?$/.test(t)||(!e||e<1)&&(e=2,1))}loadUsers(){return __awaiter(this,void 0,void 0,(function*(){const e=yield manager.rest.api.UserResource.query({realmPredicate:{name:manager.displayRealm}});200===e.status&&(this.users=e.data.filter((e=>e.enabled&&!e.serviceAccount)))}))}};__decorate([property({type:Object})],OrAnomalyConfigInput.prototype,"anomalyDetectionConfigObject",void 0),__decorate([property({type:Object})],OrAnomalyConfigInput.prototype,"attributeRef",void 0),__decorate([property({type:Object})],OrAnomalyConfigInput.prototype,"datapointQuery",void 0),__decorate([property({type:Number})],OrAnomalyConfigInput.prototype,"timespan",void 0),__decorate([property({type:Boolean})],OrAnomalyConfigInput.prototype,"expanded",void 0),__decorate([property({type:Boolean})],OrAnomalyConfigInput.prototype,"updateBool",void 0),__decorate([property()],OrAnomalyConfigInput.prototype,"users",void 0),__decorate([property({type:Object})],OrAnomalyConfigInput.prototype,"template",void 0),__decorate([property({type:Number})],OrAnomalyConfigInput.prototype,"selectedIndex",void 0),__decorate([property({type:Number})],OrAnomalyConfigInput.prototype,"previousConfig",void 0),__decorate([property({type:String,attribute:!1})],OrAnomalyConfigInput.prototype,"onChange",void 0),OrAnomalyConfigInput=__decorate([customElement("or-anomaly-config-input")],OrAnomalyConfigInput);export{OrAnomalyConfigInput};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"or-anoma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|
4
4
|
"description": "OpenRemote attribute input",
|
|
5
5
|
"main": "dist/umd/index.bundle.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"author": "OpenRemote",
|
|
17
17
|
"license": "AGPL-3.0-or-later",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@openremote/core": "1.2.
|
|
20
|
-
"@openremote/or-components": "1.2.
|
|
21
|
-
"@openremote/or-json-forms": "1.2.
|
|
22
|
-
"@openremote/or-map": "1.2.
|
|
23
|
-
"@openremote/or-mwc-components": "1.2.
|
|
24
|
-
"@openremote/or-translate": "1.2.
|
|
19
|
+
"@openremote/core": "1.2.3",
|
|
20
|
+
"@openremote/or-components": "1.2.3",
|
|
21
|
+
"@openremote/or-json-forms": "1.2.3",
|
|
22
|
+
"@openremote/or-map": "1.2.3",
|
|
23
|
+
"@openremote/or-mwc-components": "1.2.3",
|
|
24
|
+
"@openremote/or-translate": "1.2.3",
|
|
25
25
|
"lit": "^2.0.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@openremote/util": "1.2.
|
|
28
|
+
"@openremote/util": "1.2.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|