@openremote/or-attribute-input 1.2.0-snapshot.20240512154942
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/README.md +31 -0
- package/lib/agent-link-json-forms-renderer.d.ts +5 -0
- package/lib/agent-link-json-forms-renderer.js +12 -0
- package/lib/agent-link-json-forms-renderer.js.map +1 -0
- package/lib/index.d.ts +118 -0
- package/lib/index.js +108 -0
- package/lib/index.js.map +1 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @openremote/or-attribute-input \<or-attribute-input\>
|
|
2
|
+
[![NPM Version][npm-image]][npm-url]
|
|
3
|
+
[![Linux Build][travis-image]][travis-url]
|
|
4
|
+
[![Test Coverage][coveralls-image]][coveralls-url]
|
|
5
|
+
|
|
6
|
+
Web Component for displaying an input control.
|
|
7
|
+
|
|
8
|
+
## Install
|
|
9
|
+
```bash
|
|
10
|
+
npm i @openremote/or-attribute-input
|
|
11
|
+
yarn add @openremote/or-attribute-input
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
For a full list of properties, methods and options refer to the TypeDoc generated [documentation]().
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
## Supported Browsers
|
|
19
|
+
The last 2 versions of all modern browsers are supported, including Chrome, Safari, Opera, Firefox, Edge. In addition,
|
|
20
|
+
Internet Explorer 11 is also supported.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## License
|
|
24
|
+
[GNU AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)
|
|
25
|
+
|
|
26
|
+
[npm-image]: https://img.shields.io/npm/v/live-xxx.svg
|
|
27
|
+
[npm-url]: https://npmjs.org/package/@openremote/or-attribute-input
|
|
28
|
+
[travis-image]: https://img.shields.io/travis/live-js/live-xxx/master.svg
|
|
29
|
+
[travis-url]: https://travis-ci.org/live-js/live-xxx
|
|
30
|
+
[coveralls-image]: https://img.shields.io/coveralls/live-js/live-xxx/master.svg
|
|
31
|
+
[coveralls-url]: https://coveralls.io/r/live-js/live-xxx?branch=master
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Agent } from "@openremote/model";
|
|
2
|
+
import { JsonFormsRendererRegistryEntry } from "@openremote/or-json-forms";
|
|
3
|
+
import "@openremote/or-mwc-components/or-mwc-input";
|
|
4
|
+
export declare function loadAgents(): PromiseLike<Agent[]>;
|
|
5
|
+
export declare const agentIdRendererRegistryEntry: JsonFormsRendererRegistryEntry;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{rankWith,and,mapStateToControlProps,mapDispatchToControlProps,uiTypeIs,formatIs}from"@jsonforms/core";import manager,{OREvent}from"@openremote/core";import{getTemplateWrapper}from"@openremote/or-json-forms";import{InputType}from"@openremote/or-mwc-components/or-mwc-input";import{html}from"lit";import"@openremote/or-mwc-components/or-mwc-input";import{i18next}from"@openremote/or-translate";import{until}from"lit/directives/until.js";let agents,loadingPromise,subscribed=!1;const timeout=2e3;export function loadAgents(){return agents?Promise.resolve(agents):loadingPromise||(subscribed||(manager.addListener((e=>{e===OREvent.DISPLAY_REALM_CHANGED&&(agents=void 0,loadingPromise=void 0)})),manager.events.subscribeAssetEvents(void 0,!1,(e=>{e.asset&&e.asset.type.endsWith("Agent")&&(agents=void 0,loadingPromise=void 0)})),subscribed=!0),loadingPromise=manager.rest.api.AssetResource.queryAssets({realm:{name:manager.displayRealm},types:["Agent"],select:{attributes:[]}}).then((e=>e.data)).then((e=>(agents=e,e))),loadingPromise)}const agentIdTester=rankWith(6,and(uiTypeIs("Control"),formatIs("or-agent-id"))),agentIdRenderer=(e,t)=>{t=Object.assign(Object.assign(Object.assign({},t),mapStateToControlProps({jsonforms:Object.assign({},e)},t)),mapDispatchToControlProps(e.dispatch));const r=loadAgents().then((e=>{const r=e.map((e=>[e.id,e.name+" ("+e.id+")"]));return html`
|
|
2
|
+
<or-mwc-input .label="${i18next.t("agentId")}" required class="agent-id-picker" @or-mwc-input-changed="${r=>{return n=e.find((e=>e.id===r.detail.value)),void t.handleChange(t.path,n?n.id:void 0);var n}}" type="${InputType.SELECT}" .value="${t.data}" .placeholder="${i18next.t("selectAgent")}" .options="${r}"></or-mwc-input>
|
|
3
|
+
`})),n=html`
|
|
4
|
+
<style>
|
|
5
|
+
.agent-id-picker {
|
|
6
|
+
min-width: 300px;
|
|
7
|
+
max-width: 600px;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
</style>
|
|
11
|
+
${until(r,html`<or-mwc-input class="agent-id-picker" .type="${InputType.SELECT}"></or-mwc-input>`)}
|
|
12
|
+
`;return getTemplateWrapper(n,void 0)};export const agentIdRendererRegistryEntry={tester:agentIdTester,renderer:agentIdRenderer};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-link-json-forms-renderer.js","sourceRoot":"","sources":["../src/agent-link-json-forms-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,QAAQ,EACR,GAAG,EAEH,sBAAsB,EACtB,yBAAyB,EACzB,QAAQ,EACR,QAAQ,EACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,OAAO,EAAE,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAyB,kBAAkB,EAAkC,MAAM,2BAA2B,CAAC;AACtH,OAAO,EAAE,SAAS,EAAuB,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,4CAA4C,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAC;AAGhD;;;GAGG;AACH,IAAI,MAA2B,CAAC;AAChC,IAAI,cAA4C,CAAC;AACjD,IAAI,UAAU,GAAG,KAAK,CAAC;AACvB,MAAM,OAAO,GAAG,IAAI,CAAC;AAErB,MAAM,UAAU,UAAU;IAEtB,IAAI,M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AAK,CAAC,qBAAqB,EAAE,IAAI,CAAA,gDAAgD,SAAS,CAAC,MAAM,mBAAmB,CAAC;SACtH,CAAC;IAEN,OAAO,kBAAkB,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AACnD,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,4BAA4B,GAAmC;IACxE,MAAM,EAAE,aAAa;IACrB,QAAQ,EAAE,eAAe;CAC5B,CAAC"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { LitElement, PropertyValues, TemplateResult } from "lit";
|
|
2
|
+
import { Attribute, AttributeDescriptor, AttributeEvent, AttributeRef, SharedEvent, ValueDescriptor } from "@openremote/model";
|
|
3
|
+
import "@openremote/or-mwc-components/or-mwc-input";
|
|
4
|
+
import "@openremote/or-components/or-loading-wrapper";
|
|
5
|
+
import { InputType, ValueInputProvider, ValueInputProviderGenerator } from "@openremote/or-mwc-components/or-mwc-input";
|
|
6
|
+
import "@openremote/or-map";
|
|
7
|
+
import "@openremote/or-json-forms";
|
|
8
|
+
export declare class OrAttributeInputChangedEvent extends CustomEvent<OrAttributeInputChangedEventDetail> {
|
|
9
|
+
static readonly NAME = "or-attribute-input-changed";
|
|
10
|
+
constructor(value?: any, previousValue?: any);
|
|
11
|
+
}
|
|
12
|
+
export interface OrAttributeInputChangedEventDetail {
|
|
13
|
+
value?: any;
|
|
14
|
+
previousValue?: any;
|
|
15
|
+
}
|
|
16
|
+
declare global {
|
|
17
|
+
export interface HTMLElementEventMap {
|
|
18
|
+
[OrAttributeInputChangedEvent.NAME]: OrAttributeInputChangedEvent;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export declare function getAttributeInputWrapper(content: TemplateResult, value: any, loading: boolean, disabled: boolean, helperText: string | undefined, label: string | undefined, buttonIcon?: string, sendValue?: () => void, fullWidth?: boolean): TemplateResult;
|
|
22
|
+
export declare function getHelperText(sending: boolean, error: boolean, timestamp: number | undefined): string | undefined;
|
|
23
|
+
export declare const jsonFormsInputTemplateProvider: (fallback: ValueInputProvider) => ValueInputProviderGenerator;
|
|
24
|
+
declare const OrAttributeInput_base: (new (...args: any[]) => {
|
|
25
|
+
_connectRequested: boolean;
|
|
26
|
+
_subscriptionIds?: string[] | undefined;
|
|
27
|
+
_assetIds?: string[] | undefined;
|
|
28
|
+
_attributeRefs?: AttributeRef[] | undefined;
|
|
29
|
+
_status: import("@openremote/core").EventProviderStatus;
|
|
30
|
+
_statusCallback: (status: import("@openremote/core").EventProviderStatus) => void;
|
|
31
|
+
connectedCallback(): void;
|
|
32
|
+
disconnectedCallback(): void;
|
|
33
|
+
connectEvents(): void;
|
|
34
|
+
disconnectEvents(): void;
|
|
35
|
+
_doConnect(): Promise<void>;
|
|
36
|
+
readonly eventsConnected: boolean;
|
|
37
|
+
_onEventProviderStatusChanged(status: import("@openremote/core").EventProviderStatus): void;
|
|
38
|
+
_onEventsConnect(): void;
|
|
39
|
+
_onEventsDisconnect(): void;
|
|
40
|
+
_addEventSubscriptions(): Promise<void>;
|
|
41
|
+
_removeEventSubscriptions(): void;
|
|
42
|
+
_refreshEventSubscriptions(): void;
|
|
43
|
+
assetIds: string[] | undefined;
|
|
44
|
+
attributeRefs: AttributeRef[] | undefined;
|
|
45
|
+
_sendEvent(event: SharedEvent): void;
|
|
46
|
+
_sendEventWithReply<U extends SharedEvent, V extends SharedEvent>(event: import("@openremote/model").EventRequestResponseWrapper<U>): Promise<V>;
|
|
47
|
+
onEventsConnect(): void;
|
|
48
|
+
onEventsDisconnect(): void;
|
|
49
|
+
_onEvent(event: SharedEvent): void;
|
|
50
|
+
requestUpdate(name?: PropertyKey | undefined, oldValue?: unknown): void;
|
|
51
|
+
readonly isConnected: boolean;
|
|
52
|
+
}) & (new (...args: any[]) => {
|
|
53
|
+
_i18nextJustInitialized: boolean;
|
|
54
|
+
connectedCallback(): void;
|
|
55
|
+
disconnectedCallback(): void;
|
|
56
|
+
shouldUpdate(changedProps: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): any;
|
|
57
|
+
initCallback: (options: import("i18next").InitOptions) => void;
|
|
58
|
+
langChangedCallback: () => void;
|
|
59
|
+
readonly isConnected: boolean;
|
|
60
|
+
}) & typeof LitElement;
|
|
61
|
+
export declare class OrAttributeInput extends OrAttributeInput_base {
|
|
62
|
+
static get styles(): import("lit").CSSResult[];
|
|
63
|
+
attribute?: Attribute<any>;
|
|
64
|
+
assetId?: string;
|
|
65
|
+
attributeDescriptor?: AttributeDescriptor;
|
|
66
|
+
valueDescriptor?: ValueDescriptor;
|
|
67
|
+
assetType?: string;
|
|
68
|
+
label?: string;
|
|
69
|
+
disabled?: boolean;
|
|
70
|
+
readonly?: boolean;
|
|
71
|
+
required?: boolean;
|
|
72
|
+
value?: any;
|
|
73
|
+
inputType?: InputType;
|
|
74
|
+
hasHelperText?: boolean;
|
|
75
|
+
disableButton?: boolean;
|
|
76
|
+
disableSubscribe: boolean;
|
|
77
|
+
disableWrite: boolean;
|
|
78
|
+
compact: boolean;
|
|
79
|
+
comfortable: boolean;
|
|
80
|
+
resizeVertical: boolean;
|
|
81
|
+
fullWidth?: boolean;
|
|
82
|
+
rounded?: boolean;
|
|
83
|
+
outlined?: boolean;
|
|
84
|
+
protected _attributeEvent?: AttributeEvent;
|
|
85
|
+
protected _writeTimeoutHandler?: number;
|
|
86
|
+
customProvider?: ValueInputProviderGenerator;
|
|
87
|
+
writeTimeout?: number;
|
|
88
|
+
protected _requestFocus: boolean;
|
|
89
|
+
protected _newValue: any;
|
|
90
|
+
protected _templateProvider?: ValueInputProvider;
|
|
91
|
+
protected _sendError: boolean;
|
|
92
|
+
protected _attributeDescriptor?: AttributeDescriptor;
|
|
93
|
+
protected _valueDescriptor?: ValueDescriptor;
|
|
94
|
+
disconnectedCallback(): void;
|
|
95
|
+
shouldUpdate(_changedProperties: PropertyValues): boolean;
|
|
96
|
+
protected _updateSubscribedRefs(): void;
|
|
97
|
+
protected _getAttributeRef(): AttributeRef | undefined;
|
|
98
|
+
protected _updateDescriptors(): void;
|
|
99
|
+
protected _updateTemplate(): void;
|
|
100
|
+
getLabel(): string | undefined;
|
|
101
|
+
isReadonly(): boolean;
|
|
102
|
+
render(): TemplateResult;
|
|
103
|
+
protected updated(_changedProperties: PropertyValues): void;
|
|
104
|
+
protected get showButton(): boolean;
|
|
105
|
+
protected getValue(): any;
|
|
106
|
+
protected getTimestamp(): number | undefined;
|
|
107
|
+
/**
|
|
108
|
+
* This is called by asset-mixin
|
|
109
|
+
*/
|
|
110
|
+
_onEvent(event: SharedEvent): void;
|
|
111
|
+
checkValidity(): boolean;
|
|
112
|
+
protected _onAttributeValueChanged(oldValue: any, newValue: any, timestamp?: number): void;
|
|
113
|
+
protected _onInputValueChanged(value: any, updateImmediately: boolean): void;
|
|
114
|
+
protected _updateValue(): void;
|
|
115
|
+
protected _clearWriteTimeout(): void;
|
|
116
|
+
protected _onWriteTimeout(): void;
|
|
117
|
+
}
|
|
118
|
+
export {};
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
var __decorate=this&&this.__decorate||function(e,t,i,r){var n,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,r);else for(var s=e.length-1;s>=0;s--)(n=e[s])&&(o=(a<3?n(o):a>3?n(t,i,o):n(t,i))||o);return a>3&&o&&Object.defineProperty(t,i,o),o},__awaiter=this&&this.__awaiter||function(e,t,i,r){return new(i||(i=Promise))((function(n,a){function o(e){try{d(r.next(e))}catch(e){a(e)}}function s(e){try{d(r.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i((function(e){e(t)}))).then(o,s)}d((r=r.apply(e,t||[])).next())}))};import{css,html,LitElement}from"lit";import{customElement,property}from"lit/decorators.js";import{ifDefined}from"lit/directives/if-defined.js";import{until}from"lit/directives/until.js";import{createRef,ref}from"lit/directives/ref.js";import{i18next,translate}from"@openremote/or-translate";import{AssetModelUtil}from"@openremote/model";import manager,{subscribe,Util}from"@openremote/core";import"@openremote/or-mwc-components/or-mwc-input";import{progressCircular}from"@openremote/or-mwc-components/style";import"@openremote/or-components/or-loading-wrapper";import{getValueHolderInputTemplateProvider}from"@openremote/or-mwc-components/or-mwc-input";import"@openremote/or-map";import{geoJsonPointInputTemplateProvider}from"@openremote/or-map";import"@openremote/or-json-forms";import{StandardRenderers}from"@openremote/or-json-forms";import{agentIdRendererRegistryEntry,loadAgents}from"./agent-link-json-forms-renderer";export class OrAttributeInputChangedEvent extends CustomEvent{constructor(e,t){super(OrAttributeInputChangedEvent.NAME,{detail:{value:e,previousValue:t},bubbles:!0,composed:!0})}}OrAttributeInputChangedEvent.NAME="or-attribute-input-changed";export function getAttributeInputWrapper(e,t,i,r,n,a,o,s,d){return n&&(e=html`
|
|
2
|
+
<div id="wrapper-helper">
|
|
3
|
+
${a?html`<div id="wrapper-label">${a}</div>`:""}
|
|
4
|
+
<div id="wrapper-input">${e}</div>
|
|
5
|
+
<div id="helper-text">${n}</div>
|
|
6
|
+
</div>
|
|
7
|
+
`),o&&(e=html`
|
|
8
|
+
${e}
|
|
9
|
+
<or-mwc-input id="send-btn" icon="${o}" type="button" .disabled="${r||i}" @or-mwc-input-changed="${e=>{e.stopPropagation(),s&&s()}}"></or-mwc-input>
|
|
10
|
+
`),html`
|
|
11
|
+
<div id="wrapper" class="${o||d?"no-padding":"right-padding"}">
|
|
12
|
+
${e}
|
|
13
|
+
<div id="scrim" class="${ifDefined(i?void 0:"hidden")}"><progress class="pure-material-progress-circular"></progress></div>
|
|
14
|
+
</div>
|
|
15
|
+
`}export function getHelperText(e,t,i){return e?i18next.t("sending"):t?i18next.t("sendFailed"):i?i18next.t("updatedWithDate",{date:new Date(i)}):void 0}const jsonFormsAttributeRenderers=[...StandardRenderers,agentIdRendererRegistryEntry];export const jsonFormsInputTemplateProvider=e=>(t,i,r,n,a,o)=>{const s=!(!o||!o.disabled),d=!(!o||!o.readonly),p=o.label;if("agentLink"===n.name){const e={type:"Control",scope:"#"};let t;const i=createRef(),r=createRef();let n,o=[],l=!1;const u=e=>{if(!l)return;const t=e.data;if(t){const e=o.find((e=>e.id===t.id));if(e){const i=AssetModelUtil.getAssetDescriptor(e.type);i&&(t.type=i.agentLinkType)}}Util.objectsEqual(t,n)||(n=t,a({value:t}))},c=e=>__awaiter(void 0,void 0,void 0,(function*(){if(l||(n=e),l=!0,t||(t=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","title":"Agent Link","oneOf":[{"$ref":"#/definitions/SNMPAgentLink"},{"$ref":"#/definitions/HTTPAgentLink"},{"$ref":"#/definitions/DefaultAgentLink"},{"$ref":"#/definitions/ZWaveAgentLink"},{"$ref":"#/definitions/WebsocketAgentLink"},{"$ref":"#/definitions/StorageSimulatorAgentLink"},{"$ref":"#/definitions/MockAgentLink"},{"$ref":"#/definitions/BluetoothMeshAgentLink"},{"$ref":"#/definitions/MQTTAgentLink"},{"$ref":"#/definitions/KNXAgentLink"},{"$ref":"#/definitions/SimulatorAgentLink"},{"$ref":"#/definitions/VelbusAgentLink"}],"definitions":{"SNMPAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["SNMPAgentLink"],"default":"SNMPAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"oid":{"type":"string"}},"title":"SNMPAgentLink","required":["type","oid"]},"regex":{"type":"object","additionalProperties":true,"title":"Regex","properties":{"type":{"type":"string","enum":["regex"],"default":"regex"},"pattern":{"type":"string"},"matchGroup":{"type":"integer"},"matchIndex":{"type":"integer"}},"required":["type"]},"substring":{"type":"object","additionalProperties":true,"title":"Substring","properties":{"type":{"type":"string","enum":["substring"],"default":"substring"},"beginIndex":{"type":"integer"},"endIndex":{"type":"integer"}},"required":["type","beginIndex"]},"jsonPath":{"type":"object","additionalProperties":true,"title":"JSON Path","properties":{"type":{"type":"string","enum":["jsonPath"],"default":"jsonPath"},"path":{"type":"string"},"returnFirst":{"type":"boolean"},"returnLast":{"type":"boolean"}},"required":["type","path","returnFirst","returnLast"]},"PatternPropertiesSimpleKeyAnyType":{"type":"object","additionalProperties":true,"patternProperties":{"^[a-zA-Z][a-zA-Z0-9]*":{"type":["null","number","integer","boolean","string","array","object"]}},"properties":{}},"StringPredicate":{"type":"object","additionalProperties":true,"description":"Predicate for string values; will match based on configured options.","properties":{"predicateType":{"type":"string","enum":["string"],"default":"string"},"match":{"type":"string","enum":["EXACT","BEGIN","END","CONTAINS"]},"caseSensitive":{"type":"boolean"},"value":{"type":"string"},"negate":{"type":"boolean"}},"title":"string","required":["predicateType","caseSensitive","negate"]},"BooleanPredicate":{"type":"object","additionalProperties":true,"description":"Predicate for boolean values; will evaluate the value as a boolean and match against this predicates value, any value that is not a boolean will not match","properties":{"predicateType":{"type":"string","enum":["boolean"],"default":"boolean"},"value":{"type":"boolean"}},"title":"boolean","required":["predicateType","value"]},"DateTimePredicate":{"type":"object","additionalProperties":true,"description":"Predicate for date time values; provided values should be valid ISO 8601 datetime strings (e.g. yyyy-MM-dd\'T\'HH:mm:ssZ or yyyy-MM-dd\'T\'HH:mm:ss±HH:mm), offset and time are optional, if no offset information is supplied then UTC is assumed.","properties":{"predicateType":{"type":"string","enum":["datetime"],"default":"datetime"},"value":{"type":"string"},"rangeValue":{"type":"string"},"operator":{"type":"string","enum":["EQUALS","GREATER_THAN","GREATER_EQUALS","LESS_THAN","LESS_EQUALS","BETWEEN"]},"negate":{"type":"boolean"}},"title":"datetime","required":["predicateType","negate"]},"NumberPredicate":{"type":"object","additionalProperties":true,"description":"Predicate for number values; will match based on configured options.","properties":{"predicateType":{"type":"string","enum":["number"],"default":"number"},"value":{"type":"number"},"rangeValue":{"type":"number"},"operator":{"type":"string","enum":["EQUALS","GREATER_THAN","GREATER_EQUALS","LESS_THAN","LESS_EQUALS","BETWEEN"]},"negate":{"type":"boolean"}},"title":"number","required":["predicateType","negate"]},"RadialGeofencePredicate":{"type":"object","additionalProperties":true,"description":"Predicate for GEO JSON point values; will return true if the point is within the specified radius of the specified latitude and longitude unless negated.","title":"Radial geofence","properties":{"predicateType":{"type":"string","enum":["radial"],"default":"radial"},"radius":{"type":"integer"},"lat":{"type":"number"},"lng":{"type":"number"},"negated":{"type":"boolean"}},"required":["predicateType","radius","lat","lng","negated"]},"RectangularGeofencePredicate":{"type":"object","additionalProperties":true,"description":"Predicate for GEO JSON point values; will return true if the point is within the specified rectangle specified as latitude and longitude values of two corners unless negated.","title":"Rectangular geofence","properties":{"predicateType":{"type":"string","enum":["rect"],"default":"rect"},"latMin":{"type":"number"},"lngMin":{"type":"number"},"latMax":{"type":"number"},"lngMax":{"type":"number"},"negated":{"type":"boolean"}},"required":["predicateType","latMin","lngMin","latMax","lngMax","negated"]},"ArrayPredicate":{"type":"object","additionalProperties":true,"description":"Predicate for array values; will match based on configured options.","properties":{"predicateType":{"type":"string","enum":["array"],"default":"array"},"value":{"$ref":"#/definitions/AnyType"},"index":{"type":"integer"},"lengthEquals":{"type":"integer"},"lengthGreaterThan":{"type":"integer"},"lengthLessThan":{"type":"integer"},"negated":{"type":"boolean"}},"title":"array","required":["predicateType","negated"]},"AnyType":{"type":["null","number","integer","boolean","string","array","object"],"additionalProperties":true,"properties":{}},"ValueAnyPredicate":{"type":"object","additionalProperties":true,"description":"Predicate that matches any value including null.","title":"Any value","properties":{"predicateType":{"type":"string","enum":["value-any"],"default":"value-any"}},"required":["predicateType"]},"ValueEmptyPredicate":{"type":"object","additionalProperties":true,"description":"Predicate that matches any empty/null value; unless negated.","title":"Empty value","properties":{"predicateType":{"type":"string","enum":["value-empty"],"default":"value-empty"},"negate":{"type":"boolean"}},"required":["predicateType","negate"]},"CalendarEventPredicate":{"type":"object","additionalProperties":true,"description":"Predicate for calendar event values; will match based on whether the calendar event is active for the specified time.","title":"Calendar","properties":{"predicateType":{"type":"string","enum":["calendar-event"],"default":"calendar-event"},"timestamp":{"type":"integer","format":"utc-millisec"}},"required":["predicateType"]},"HTTPAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["HTTPAgentLink"],"default":"HTTPAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"headers":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"A JSON object of headers to be added to HTTP request; the key represents the name of the header and for each string value supplied a new header will be added with the key name and specified string value"},"queryParameters":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"A JSON object of query parameters to be added to HTTP request URL; the key represents the name of the query parameter and for each string value supplied a new query parameter will be added with the key name and specified string value (e.g. \'https://..../?test=1&test=2\')"},"pollingMillis":{"type":"integer","description":"Indicates that this HTTP request is used to update the linked attribute; this value indicates how frequently the HTTP request is made in order to update the linked attribute value"},"pagingMode":{"type":"boolean","description":"Indicates that the HTTP server supports pagination using the standard Link header mechanism"},"path":{"type":"string","description":"The URL path to append to the agents Base URL when making requests for this linked attribute"},"method":{"type":"string","enum":["GET","POST","PUT","DELETE","OPTIONS","PATCH"],"description":"The HTTP method to use when making requests for this linked attribute"},"contentType":{"type":"string","description":"The content type header value to use when making requests for this linked attribute (shortcut alternative to using headers parameter)"},"pollingAttribute":{"type":"string","description":"Allows the polled response to be written to another attribute with the specified name on the same asset as the linked attribute"},"messageConvertBinary":{"type":"boolean","description":"Indicates that the HTTP response is binary and should be converted to binary string representation"},"messageConvertHex":{"type":"boolean","description":"Indicates that the HTTP response is binary and should be converted to hexidecimal string representation"}},"title":"HTTPAgentLink","required":["type","messageConvertBinary","messageConvertHex"]},"DefaultAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["DefaultAgentLink"],"default":"DefaultAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"}},"title":"DefaultAgentLink","required":["type"]},"ZWaveAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["ZWaveAgentLink"],"default":"ZWaveAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"deviceNodeId":{"type":"integer"},"deviceEndpoint":{"type":"integer"},"deviceValue":{"type":"string"}},"title":"ZWaveAgentLink","required":["type"]},"WebsocketAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["WebsocketAgentLink"],"default":"WebsocketAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"websocketSubscriptions":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/websocket"},{"$ref":"#/definitions/http"}]}}},"title":"WebsocketAgentLink","required":["type"]},"websocket":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["websocket"],"default":"websocket"},"body":{"$ref":"#/definitions/AnyType"}},"title":"websocket","required":["type"]},"http":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["http"],"default":"http"},"body":{"$ref":"#/definitions/AnyType"},"method":{"type":"string","enum":["GET","PUT","POST"]},"contentType":{"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}},"uri":{"type":"string"}},"title":"http","required":["type"]},"StorageSimulatorAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["StorageSimulatorAgentLink"],"default":"StorageSimulatorAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"}},"title":"StorageSimulatorAgentLink","required":["type"]},"MockAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["MockAgentLink"],"default":"MockAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"requiredValue":{"type":"string"}},"title":"MockAgentLink","required":["type"]},"BluetoothMeshAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["BluetoothMeshAgentLink"],"default":"BluetoothMeshAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"appKeyIndex":{"type":"integer","minimum":0,"maximum":2147483647},"address":{"type":"string","pattern":"^([0-9A-Fa-f]{4})$"},"modelName":{"type":"string","pattern":"^.*\\\\S+.*$","minLength":1}},"title":"BluetoothMeshAgentLink","required":["type","appKeyIndex","modelName"]},"MQTTAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["MQTTAgentLink"],"default":"MQTTAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"subscriptionTopic":{"type":"string"},"publishTopic":{"type":"string"}},"title":"MQTTAgentLink","required":["type"]},"KNXAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["KNXAgentLink"],"default":"KNXAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"dpt":{"type":"string","pattern":"^\\\\d{1,3}\\\\.\\\\d{1,3}$"},"actionGroupAddress":{"type":"string","pattern":"^\\\\d{1,3}/\\\\d{1,3}/\\\\d{1,3}$"},"statusGroupAddress":{"type":"string","pattern":"^\\\\d{1,3}/\\\\d{1,3}/\\\\d{1,3}$"}},"title":"KNXAgentLink","required":["type","dpt"]},"SimulatorAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["SimulatorAgentLink"],"default":"SimulatorAgentLink"},"id":{"type":"string","format":"or-agent-id"},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"},"replayData":{"type":"array","items":{"$ref":"#/definitions/SimulatorReplayDatapoint"},"description":"Used to store 24h dataset of values that should be replayed (i.e. written to the linked attribute) in a continuous loop."}},"title":"SimulatorAgentLink","required":["type"]},"SimulatorReplayDatapoint":{"type":"object","additionalProperties":true,"properties":{"timestamp":{"type":"integer"},"value":{"type":["null","number","integer","boolean","array","object","string"]}},"title":"Data point","required":["timestamp", "value"]},"VelbusAgentLink":{"type":"object","additionalProperties":true,"properties":{"type":{"type":"string","enum":["VelbusAgentLink"],"default":"VelbusAgentLink"},"id":{"type":"string","format":"or-agent-id"},"deviceAddress":{"type":"integer","minimum":1,"maximum":255},"deviceValueLink":{"type":"string","pattern":"^.*\\\\S+.*$","minLength":1},"valueFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"Defines ValueFilters to apply to an incoming value before it is written to a protocol linked attribute; this is particularly useful for generic protocols. The message should pass through the filters in array order"},"valueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValueConverter":{"type":"object","patternProperties":{".+":{"type":["null","number","integer","boolean","string","array","object"]}}},"writeValue":{"type":"string","format":"or-multiline","description":"String to be used for attribute writes and can contain \'{$value}\' placeholders to allow the written value to be injected into the string or to even hardcode the value written to the protocol (particularly useful for executable attributes)"},"messageMatchPredicate":{"oneOf":[{"$ref":"#/definitions/StringPredicate"},{"$ref":"#/definitions/BooleanPredicate"},{"$ref":"#/definitions/DateTimePredicate"},{"$ref":"#/definitions/NumberPredicate"},{"$ref":"#/definitions/RadialGeofencePredicate"},{"$ref":"#/definitions/RectangularGeofencePredicate"},{"$ref":"#/definitions/ArrayPredicate"},{"$ref":"#/definitions/ValueAnyPredicate"},{"$ref":"#/definitions/ValueEmptyPredicate"},{"$ref":"#/definitions/CalendarEventPredicate"}],"description":"The predicate to apply to incoming messages to determine if the message is intended for the linked attribute; the value used in the predicate can be filtered using the message match filters. This must be defined to enable attributes to be updated by the linked agent."},"messageMatchFilters":{"type":"array","items":{"oneOf":[{"$ref":"#/definitions/regex"},{"$ref":"#/definitions/substring"},{"$ref":"#/definitions/jsonPath"}]},"description":"ValueFilters to apply to incoming messages prior to comparison with the messageMatchPredicate"},"updateOnWrite":{"type":"boolean","description":"Don\'t expect a response from the protocol just update the attribute immediately on write"}},"title":"VelbusAgentLink","required":["type","deviceAddress","deviceValueLink"]}}}')),o=yield loadAgents(),o){if(e&&(e.id?o.find((t=>t.id===e.id))||(console.warn("Agent link: linked agent could not be found"),e.id=""):e.id=""),i.value&&r.value){const n=i.value;n.schema=t,n.data=e,r.value.loading=!1}}else console.warn("Failed to load agents for agent link")}));return{templateFunction:(n,a,o,l,f,h)=>(n||(n={id:"",type:"DefaultAgentLink"}),window.setTimeout((()=>c(n)),0),html`
|
|
16
|
+
<style>
|
|
17
|
+
.disabled {
|
|
18
|
+
opacity: 0.5;
|
|
19
|
+
pointer-events: none;
|
|
20
|
+
}
|
|
21
|
+
or-loading-wrapper {
|
|
22
|
+
width: 100%;
|
|
23
|
+
}
|
|
24
|
+
</style>
|
|
25
|
+
<or-loading-wrapper ${ref(r)} .loading="${!0}">
|
|
26
|
+
<or-json-forms .renderers="${jsonFormsAttributeRenderers}" ${ref(i)}
|
|
27
|
+
.disabled="${s}" .readonly="${d}" .label="${p}"
|
|
28
|
+
.schema="${t}" label="Agent link" .uischema="${e}" .onChange="${u}"></or-json-forms>
|
|
29
|
+
</or-loading-wrapper>
|
|
30
|
+
`),supportsHelperText:!1,supportsLabel:!1,supportsSendButton:!1,validator:()=>!!i.value&&i.value.checkValidity()}}return e};const DEFAULT_TIMEOUT=5e3;let OrAttributeInput=class extends(subscribe(manager)(translate(i18next)(LitElement))){constructor(){super(...arguments),this.disableSubscribe=!1,this.disableWrite=!1,this.compact=!1,this.comfortable=!1,this.resizeVertical=!1,this.writeTimeout=5e3,this._requestFocus=!1,this._sendError=!1}static get styles(){return[progressCircular,css`
|
|
31
|
+
:host {
|
|
32
|
+
display: inline-block;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host(.force-btn-padding) #wrapper.no-padding {
|
|
36
|
+
/*padding-right: 52px;*/
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#wrapper or-mwc-input, #wrapper or-map {
|
|
40
|
+
width: 100%;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
#wrapper or-map {
|
|
44
|
+
min-height: 250px;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#wrapper .long-press-msg {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
#wrapper {
|
|
52
|
+
display: flex;
|
|
53
|
+
position: relative;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
#wrapper.right-padding {
|
|
57
|
+
padding-right: 52px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
#wrapper-helper {
|
|
61
|
+
display: flex;
|
|
62
|
+
flex: 1;
|
|
63
|
+
flex-direction: column;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
#wrapper-input {
|
|
67
|
+
flex: 1;
|
|
68
|
+
display: flex;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
#wrapper-label, #helper-text {
|
|
72
|
+
margin-left: 16px;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
/* Copy of mdc text field helper text styles */
|
|
76
|
+
#helper-text {
|
|
77
|
+
min-width: 255px;
|
|
78
|
+
color: rgba(0, 0, 0, 0.6);
|
|
79
|
+
font-family: Roboto, sans-serif;
|
|
80
|
+
-webkit-font-smoothing: antialiased;
|
|
81
|
+
font-size: 0.75rem;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
letter-spacing: 0.0333333em;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
#scrim {
|
|
87
|
+
position: absolute;
|
|
88
|
+
left: 0;
|
|
89
|
+
top: 0;
|
|
90
|
+
right: 0;
|
|
91
|
+
bottom: 0;
|
|
92
|
+
background: white;
|
|
93
|
+
opacity: 0.2;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#scrim.hidden {
|
|
100
|
+
display: none;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
#send-btn {
|
|
104
|
+
flex: 0;
|
|
105
|
+
margin-left: 4px;
|
|
106
|
+
margin-top: 4px;
|
|
107
|
+
}
|
|
108
|
+
`]}disconnectedCallback(){super.disconnectedCallback(),this._clearWriteTimeout()}shouldUpdate(e){const t=super.shouldUpdate(e);let i=!1,r=!1;if(e.has("disableSubscribe")&&(i=!0),(e.has("attributeDescriptor")||e.has("valueDescriptor")||e.has("assetType"))&&(r=!0),e.has("attribute")){const t=Object.assign({},e.get("attribute")),n=this.attribute;if(t&&n){const a=t.value,o=t.timestamp;if(t.value=n.value,t.timestamp=n.timestamp,Util.objectsEqual(t,n))if(Util.objectsEqual(a,n.value)&&o===n.timestamp){if(1===e.size)return!1}else this._onAttributeValueChanged(a,n.value,n.timestamp);else i=!0,r=!0}}return e.has("assetId")&&e.get("assetId")!==this.assetId&&(i=!0,r=!0),r&&this._updateDescriptors(),i&&this._updateSubscribedRefs(),this._templateProvider&&(e.has("disabled")||e.has("readonly")||e.has("required")||e.has("label"))&&this._updateTemplate(),t}_updateSubscribedRefs(){if(this._attributeEvent=void 0,this.disableSubscribe)this.attributeRefs=void 0;else{const e=this._getAttributeRef();this.attributeRefs=e?[e]:void 0}}_getAttributeRef(){if(this.assetId&&this.attribute)return{name:this.attribute.name,id:this.assetId}}_updateDescriptors(){if(this._valueDescriptor=void 0,this._attributeDescriptor=void 0,this.attributeDescriptor&&this.valueDescriptor)this._attributeDescriptor=this.attributeDescriptor,this._valueDescriptor=this.valueDescriptor;else{const e=this.attributeDescriptor||(this.attribute?this.attribute.name:void 0);if(e){const t=AssetModelUtil.getAttributeAndValueDescriptors(this.assetType,e,this.attribute);this._attributeDescriptor=t[0],this._valueDescriptor=this.valueDescriptor?this._valueDescriptor:t[1]}else this._attributeDescriptor=this.attributeDescriptor,this._valueDescriptor=this.valueDescriptor}this._updateTemplate()}_updateTemplate(){if(this._templateProvider=void 0,!this.assetType)return;const e=AssetModelUtil.resolveValueDescriptor(this.attribute,this._valueDescriptor||this._attributeDescriptor);if(!e)return;const t={readonly:this.isReadonly(),required:this.required,disabled:this.disabled,compact:this.compact,rounded:this.rounded,outlined:this.outlined,label:this.getLabel(),comfortable:this.comfortable,resizeVertical:this.resizeVertical,inputType:this.inputType},i=e=>{const t=e?e.value:void 0,i=e&&e.enterPressed||!this._templateProvider||!this.showButton||!this._templateProvider.supportsSendButton;this._onInputValueChanged(t,i)};if(this.customProvider)return void(this._templateProvider=this.customProvider?this.customProvider(this.assetType,this.attribute,this._attributeDescriptor,e,(e=>i(e)),t):void 0);if("GEO_JSONPoint"===e.name)return void(this._templateProvider=geoJsonPointInputTemplateProvider(this.assetType,this.attribute,this._attributeDescriptor,e,(e=>i(e)),t));const r=getValueHolderInputTemplateProvider(this.assetType,this.attribute,this._attributeDescriptor,e,(e=>i(e)),t);this._templateProvider=jsonFormsInputTemplateProvider(r)(this.assetType,this.attribute,this._attributeDescriptor,e,(e=>i(e)),t),this._templateProvider||(this._templateProvider=r)}getLabel(){let e;if(this.label)e=this.label;else if(""!==this.label&&null!==this.label){const t=AssetModelUtil.getAttributeAndValueDescriptors(this.assetType,this.attribute?this.attribute.name:void 0,this._attributeDescriptor);e=Util.getAttributeLabel(this.attribute,t[0],this.assetType,!0)}return e}isReadonly(){return manager.hasRole("write:attributes")?void 0!==this.readonly?this.readonly:Util.getMetaValue("readOnly",this.attribute,this._attributeDescriptor):(this.readonly=!manager.hasRole("write:attributes"),this.readonly)}render(){if(!this.assetType||!this._templateProvider)return html``;const e=this.attributeRefs&&!this._attributeEvent||!!this._writeTimeoutHandler;let t;const i=this.getValue(),r=this._requestFocus;this._requestFocus=!1;const n=this.hasHelperText?getHelperText(!!this._writeTimeoutHandler,this._sendError,this.getTimestamp()):void 0,a=this.showButton?this._writeTimeoutHandler?"send-clock":"send":this.disableButton?void 0:"";return t=this._templateProvider&&this._templateProvider.templateFunction?html`${until(this._templateProvider.templateFunction(i,r,e,!!this._writeTimeoutHandler,this._sendError,this._templateProvider.supportsHelperText?n:void 0),"")}`:html`<or-translate .value="attributeUnsupported"></or-translate>`,t=getAttributeInputWrapper(t,i,e,!!this.disabled,this._templateProvider.supportsHelperText?void 0:n,this._templateProvider.supportsLabel?void 0:this.getLabel(),this._templateProvider.supportsSendButton?a:void 0,(()=>this._updateValue()),this.fullWidth),t}updated(e){e.has("_writeTimeoutHandler")&&!this._writeTimeoutHandler&&(this._requestFocus=!0,this.requestUpdate())}get showButton(){return!(this.isReadonly()||this.disabled||this.disableButton||!this._getAttributeRef())&&!!this._templateProvider&&this._templateProvider.supportsSendButton}getValue(){return this._attributeEvent?this._attributeEvent.value:this.attribute?this.attribute.value:this.value}getTimestamp(){return this._attributeEvent?this._attributeEvent.timestamp:this.attribute?this.attribute.timestamp:void 0}_onEvent(e){if("attribute"!==e.eventType)return;const t=this.getValue();this._attributeEvent=e,this._onAttributeValueChanged(t,this._attributeEvent.value,e.timestamp)}checkValidity(){return!!this._templateProvider&&(!this._templateProvider.validator||this._templateProvider.validator())}_onAttributeValueChanged(e,t,i){this.attribute&&(this.attribute.value=t,this.attribute.timestamp=i),this._clearWriteTimeout(),this.value=t,this._sendError=!1,this.dispatchEvent(new OrAttributeInputChangedEvent(t,e))}_onInputValueChanged(e,t){this._newValue=e,t&&this._updateValue()}_updateValue(){if(this.readonly||this.isReadonly())return;if(this._writeTimeoutHandler)return;void 0===this._newValue&&(this._newValue=this.getValue());const e=this.getValue(),t=this._newValue;this._newValue=void 0;const i=this._getAttributeRef();i&&!this.disableWrite?(super._sendEvent({eventType:"attribute",ref:i,value:t}),this._writeTimeoutHandler=window.setTimeout((()=>this._onWriteTimeout()),this.writeTimeout)):(this.value=t,this.dispatchEvent(new OrAttributeInputChangedEvent(t,e)))}_clearWriteTimeout(){this._writeTimeoutHandler&&window.clearTimeout(this._writeTimeoutHandler),this._writeTimeoutHandler=void 0}_onWriteTimeout(){this._sendError=!0,this.showButton&&!this.hasHelperText||this.requestUpdate("value"),this._clearWriteTimeout()}};__decorate([property({type:Object,reflect:!1})],OrAttributeInput.prototype,"attribute",void 0),__decorate([property({type:String})],OrAttributeInput.prototype,"assetId",void 0),__decorate([property({type:Object})],OrAttributeInput.prototype,"attributeDescriptor",void 0),__decorate([property({type:Object})],OrAttributeInput.prototype,"valueDescriptor",void 0),__decorate([property({type:String})],OrAttributeInput.prototype,"assetType",void 0),__decorate([property({type:String})],OrAttributeInput.prototype,"label",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"disabled",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"readonly",void 0),__decorate([property({type:Boolean,attribute:!0})],OrAttributeInput.prototype,"required",void 0),__decorate([property()],OrAttributeInput.prototype,"value",void 0),__decorate([property()],OrAttributeInput.prototype,"inputType",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"hasHelperText",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"disableButton",void 0),__decorate([property({type:Boolean,attribute:!0})],OrAttributeInput.prototype,"disableSubscribe",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"disableWrite",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"compact",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"comfortable",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"resizeVertical",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"fullWidth",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"rounded",void 0),__decorate([property({type:Boolean})],OrAttributeInput.prototype,"outlined",void 0),__decorate([property()],OrAttributeInput.prototype,"_attributeEvent",void 0),__decorate([property()],OrAttributeInput.prototype,"_writeTimeoutHandler",void 0),OrAttributeInput=__decorate([customElement("or-attribute-input")],OrAttributeInput);export{OrAttributeInput};
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,OAAO,EAAC,GAAG,EAAE,IAAI,EAAE,UAAU,EAAiC,MAAM,KAAK,CAAC;AAC1E,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAQ,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,SAAS,EAAC,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAC,SAAS,EAAO,GAAG,EAAC,MAAM,uBAAuB,CAAC;AAC1D,OAAO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I,EAAE,OAAO,EAAC,CAAC;mDACC;AAGpB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;iDACD;AAGlB;IADN,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;kDACA;AAGhB;IADT,QAAQ,EAAE;yDACgC;AAGjC;IADT,QAAQ,EAAE;8DAC6B;AA1J/B,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CA+e5B"}
|
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@openremote/or-attribute-input",
|
|
3
|
+
"version": "1.2.0-snapshot.20240512154942",
|
|
4
|
+
"description": "OpenRemote attribute input",
|
|
5
|
+
"main": "dist/umd/index.bundle.js",
|
|
6
|
+
"module": "lib/index.js",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./lib/index.js",
|
|
9
|
+
"./*": "./lib/*.js"
|
|
10
|
+
},
|
|
11
|
+
"types": "lib/index.d.ts",
|
|
12
|
+
"scripts": {
|
|
13
|
+
"test": "echo \"No tests\" && exit 0",
|
|
14
|
+
"prepublishOnly": "npx webpack"
|
|
15
|
+
},
|
|
16
|
+
"author": "OpenRemote",
|
|
17
|
+
"license": "AGPL-3.0-or-later",
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@openremote/core": "1.2.0-snapshot.20240512154942",
|
|
20
|
+
"@openremote/or-components": "1.2.0-snapshot.20240512154942",
|
|
21
|
+
"@openremote/or-json-forms": "1.2.0-snapshot.20240512154942",
|
|
22
|
+
"@openremote/or-map": "1.2.0-snapshot.20240512154942",
|
|
23
|
+
"@openremote/or-mwc-components": "1.2.0-snapshot.20240512154942",
|
|
24
|
+
"@openremote/or-translate": "1.2.0-snapshot.20240512154942",
|
|
25
|
+
"lit": "^2.0.2"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@openremote/util": "1.2.0-snapshot.20240512154942"
|
|
29
|
+
},
|
|
30
|
+
"publishConfig": {
|
|
31
|
+
"access": "public"
|
|
32
|
+
}
|
|
33
|
+
}
|