@openremote/or-attribute-picker 1.6.0 → 1.6.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/custom-elements.json +140 -806
- package/dist/umd/index.js +9 -8
- package/dist/umd/index.orbundle.js +63 -62
- package/lib/assettype-attribute-picker.d.ts +3 -5
- package/lib/assettype-attribute-picker.js +2 -2
- package/lib/assettype-attribute-picker.js.map +1 -1
- package/lib/index.d.ts +3 -12
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
|
@@ -7,13 +7,13 @@ import "./assettype-list";
|
|
|
7
7
|
* Custom Event that is dispatched upon closing the dialog.
|
|
8
8
|
* Contains a map that is keyed by {@link AssetDescriptor.name}, with an array of {@link AttributeDescriptor}s of the selected attributes.
|
|
9
9
|
*/
|
|
10
|
-
export declare class
|
|
10
|
+
export declare class OrAssetTypeAttributePickerPickedEvent extends AttributePickerPickedEvent {
|
|
11
11
|
static readonly NAME = "or-asset-type-attribute-picker-picked";
|
|
12
12
|
constructor(attrDescriptors: Map<string, AttributeDescriptor[]>);
|
|
13
13
|
}
|
|
14
14
|
declare global {
|
|
15
15
|
export interface HTMLElementEventMap {
|
|
16
|
-
[
|
|
16
|
+
[OrAssetTypeAttributePickerPickedEvent.NAME]: OrAssetTypeAttributePickerPickedEvent;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
/**
|
|
@@ -21,10 +21,8 @@ declare global {
|
|
|
21
21
|
*
|
|
22
22
|
* @attribute {object} assetTypeFilter -Callback method for consumers to filter the asset type list shown. Returning true will make the asset type visible, returning false hides it.
|
|
23
23
|
* @attribute {object} attributeFilter - Callback method for consumers to filter the attribute list shown. Returning true will make the attribute visible, returning false hides it.
|
|
24
|
-
*
|
|
25
|
-
* @remarks TODO: In the future this should be a separate component named "or-assettype-attribute-picker"
|
|
26
24
|
*/
|
|
27
|
-
export declare class
|
|
25
|
+
export declare class OrAssetTypeAttributePicker extends AttributePicker {
|
|
28
26
|
assetTypeFilter?: (descriptor: AssetDescriptor) => boolean;
|
|
29
27
|
attributeFilter?: (descriptor: AttributeDescriptor) => boolean;
|
|
30
28
|
selectedAttributes: Map<string, AttributeDescriptor[]>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate||function(t,e,s,i){var r,o=arguments.length,l=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(l=(o<3?r(l):o>3?r(e,s,l):r(e,s))||l);return o>3&&l&&Object.defineProperty(e,s,l),l};import{property,state}from"lit/decorators.js";import{AttributePicker,AttributePickerPickedEvent}from"./attribute-picker";import{html,unsafeCSS}from"lit";import{DefaultColor5,Util}from"@openremote/core";import{when}from"lit/directives/when.js";import{until}from"lit/directives/until.js";import{AssetModelUtil}from"@openremote/model";import{InputType}from"@openremote/or-mwc-components/or-mwc-input";import"./assettype-list";export class
|
|
1
|
+
var __decorate=this&&this.__decorate||function(t,e,s,i){var r,o=arguments.length,l=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,s,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(l=(o<3?r(l):o>3?r(e,s,l):r(e,s))||l);return o>3&&l&&Object.defineProperty(e,s,l),l};import{customElement,property,state}from"lit/decorators.js";import{AttributePicker,AttributePickerPickedEvent}from"./attribute-picker";import{html,unsafeCSS}from"lit";import{DefaultColor5,Util}from"@openremote/core";import{when}from"lit/directives/when.js";import{until}from"lit/directives/until.js";import{AssetModelUtil}from"@openremote/model";import{InputType}from"@openremote/or-mwc-components/or-mwc-input";import"./assettype-list";export class OrAssetTypeAttributePickerPickedEvent extends AttributePickerPickedEvent{constructor(t){super(OrAssetTypeAttributePickerPickedEvent.NAME,{bubbles:!0,composed:!0,detail:t})}}OrAssetTypeAttributePickerPickedEvent.NAME="or-asset-type-attribute-picker-picked";let OrAssetTypeAttributePicker=class extends AttributePicker{constructor(){super(...arguments),this.selectedAttributes=new Map}setSelectedAttributes(t){return this.selectedAttributes=t,this}willUpdate(t){if(this._loadedAssetTypes||(this._loadedAssetTypes=this._loadAssetTypes()),t.has("_selectedAssetType")){const t=this._getAssetDescriptorByName(this._selectedAssetType);t&&(this._loadedAttributeTypes=this._loadAttributeTypes(t))}return this._updateDialogContent(),this._updateDialogActions(),super.willUpdate(t)}_loadAssetTypes(){let t=AssetModelUtil.getAssetDescriptors();return void 0!==this.assetTypeFilter&&(t=t.filter(this.assetTypeFilter)),this._loadedAssetTypes=t,t||[]}_loadAttributeTypes(t){let e=AssetModelUtil.getAssetTypeInfo(t).attributeDescriptors;return void 0!==this.attributeFilter&&(e=null==e?void 0:e.filter(this.attributeFilter)),this.showOnlyDatapointAttrs&&(e=null==e?void 0:e.filter((t=>{var e;return null===(e=t.meta)||void 0===e?void 0:e.storeDataPoints}))),this.showOnlyRuleStateAttrs&&(e=null==e?void 0:e.filter((t=>{var e;return null===(e=t.meta)||void 0===e?void 0:e.ruleState}))),this._loadedAttributeTypes=e||[],e||[]}_setDialogContent(){var t;const e=this._loadedAssetTypes||this._loadAssetTypes(),s=this.selectedAttributes?Array.from(this.selectedAttributes.keys()):void 0,i=this._getAssetTypeDescriptors(e,e.filter((t=>!s||s.includes(t.name)))),r=this._getAssetDescriptorByName(this._selectedAssetType),o=null===(t=this._loadedAttributeTypes||(r?this._loadAttributeTypes(r):void 0))||void 0===t?void 0:t.sort(Util.sortByString((t=>t.name)));this.content=()=>html`
|
|
2
2
|
<div class="row" style="display: flex;height: 600px;width: 800px;border-top: 1px solid ${unsafeCSS(DefaultColor5)};">
|
|
3
3
|
<div class="col" style="width: 320px;overflow: auto;border-right: 1px solid ${unsafeCSS(DefaultColor5)};">
|
|
4
4
|
<asset-type-list .listItems="${i}" style="--or-icon-fill: #000000;" @or-mwc-list-changed="${t=>{1===t.detail.length&&this._onAssetTypeItemClick(t.detail[0])}}"
|
|
@@ -21,4 +21,4 @@ var __decorate=this&&this.__decorate||function(t,e,s,i){var r,o=arguments.length
|
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
`}_setDialogActions(){this.actions=[{actionName:"cancel",content:"cancel"},{actionName:"add",content:html`
|
|
24
|
-
<or-mwc-input id="add-btn" class="button" label="add" .type="${InputType.BUTTON}"></or-mwc-input>`,action:()=>{this.addBtn.disabled||this.dispatchEvent(new
|
|
24
|
+
<or-mwc-input id="add-btn" class="button" label="add" .type="${InputType.BUTTON}"></or-mwc-input>`,action:()=>{this.addBtn.disabled||this.dispatchEvent(new OrAssetTypeAttributePickerPickedEvent(this.selectedAttributes))}}]}_onAssetTypeItemClick(t){this._selectedAssetType=t.data.name}_onAttributesSelect(t){var e;this._selectedAssetType?this._loadedAttributeTypes?this.selectedAttributes.set(this._selectedAssetType,null===(e=this._loadedAttributeTypes)||void 0===e?void 0:e.filter((e=>t.includes(e.name)))):console.warn("Could not select attribute, since the attribute list seems to be empty?"):console.warn("Could not select attribute, since no asset type seemed to be selected.")}_getAssetTypeDescriptors(t,e,s){const i=null==t?void 0:t.map((t=>({styleMap:{"--or-icon-fill":t.colour?"#"+t.colour:"unset"},icon:t.icon,trailingIcon:(null==e?void 0:e.includes(t))?"cloud-upload-outline":void 0,text:Util.getAssetTypeLabel(t),value:t.name,data:t}))).sort(((t,e)=>("agent"===t.data.descriptorType?0:1)-("agent"===e.data.descriptorType?0:1)||t.text.localeCompare(e.text)));return s&&(null==i||i.splice(0,0,s)),i}_getAssetDescriptorByName(t){var e;return t?null===(e=this._loadedAssetTypes)||void 0===e?void 0:e.find((e=>e.name===t)):void 0}};__decorate([property()],OrAssetTypeAttributePicker.prototype,"assetTypeFilter",void 0),__decorate([property()],OrAssetTypeAttributePicker.prototype,"attributeFilter",void 0),__decorate([state()],OrAssetTypeAttributePicker.prototype,"_selectedAssetType",void 0),__decorate([state()],OrAssetTypeAttributePicker.prototype,"_loadedAttributeTypes",void 0),__decorate([state()],OrAssetTypeAttributePicker.prototype,"_loadedAssetTypes",void 0),OrAssetTypeAttributePicker=__decorate([customElement("or-assettype-attribute-picker")],OrAssetTypeAttributePicker);export{OrAssetTypeAttributePicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assettype-attribute-picker.js","sourceRoot":"","sources":["../src/assettype-attribute-picker.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"assettype-attribute-picker.js","sourceRoot":"","sources":["../src/assettype-attribute-picker.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,eAAe,EAAE,0BAA0B,EAAC,MAAM,oBAAoB,CAAC;AAC/E,OAAO,EAAiB,IAAI,EAAE,SAAS,EAAC,MAAM,KAAK,CAAC;AACpD,OAAO,EAAC,aAAa,EAAE,IAAI,EAAC,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAC,IAAI,EAAC,MAAM,wBAAwB,CAAC;AAC5C,OAAO,EAAC,KAAK,EAAC,MAAM,yBAAyB,CAAC;AAE9C,OAAO,EAAkB,cAAc,EAAyD,MAAM,mBAAmB,CAAC;AAC1H,OAAO,EAAC,SAAS,EAAC,MAAM,4CAA4C,CAAC;AACrE,OAAO,kBAAkB,CAAC;AAE1B;;;GAGG;AACH,MAAM,OAAO,qCAAsC,SAAQ,0BAA0B;IAIjF,YAAY,eAAmD;QAC3D,KAAK,CAAC,qCAAqC,CAAC,IAAI,EAAE;YAC9C,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,eAAe;SAC1B,CAAC,CAAC;IACP,CAAC;;AARsB,0CAAI,GAAG,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CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAK,CAAC,aAAa,CAAC,CAAC,CAAC,IAAK,CAAC,CAAC,CAAC;QAE/I,IAAI,aAAa,EAAE,CAAC;YAChB,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,aAAa,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAGD;;OAEG;IACO,yBAAyB,CAAC,IAAa;;QAC7C,OAAO,IAAI,CAAC,CAAC,CAAC,MAAA,IAAI,CAAC,iBAAiB,0CAAE,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACnF,CAAC;CACJ,CAAA;AA7MU;IADN,QAAQ,EAAE;mEACuD;AAG3D;IADN,QAAQ,EAAE;mEAC2D;AAK5D;IADT,KAAK,EAAE;sEAC8B;AAG5B;IADT,KAAK,EAAE;yEACgD;AAG9C;IADT,KAAK,EAAE;qEACwC;AAjBvC,0BAA0B;IADtC,aAAa,CAAC,+BAA+B,CAAC;GAClC,0BAA0B,CAgNtC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OrAssetAttributePicker, OrAssetAttributePickerPickedEvent } from "./asset-attribute-picker";
|
|
2
|
-
import { AssetTypeAttributePickerPickedEvent, AssetTypeAttributePicker } from "./assettype-attribute-picker";
|
|
3
2
|
/**
|
|
4
3
|
* {@link CustomEvent} that triggers once attributes have been selected, and the user closes the dialog.
|
|
5
|
-
* @deprecated Replaced this class with an abstract {@link OrAssetAttributePickerPickedEvent}, that is inherited by other classes like {@link OrAssetAttributePicker} and {@link
|
|
4
|
+
* @deprecated Replaced this class with an abstract {@link OrAssetAttributePickerPickedEvent}, that is inherited by other classes like {@link OrAssetAttributePicker} and {@link OrAssetTypeAttributePicker}.
|
|
6
5
|
*/
|
|
7
6
|
export declare class OrAttributePickerPickedEvent extends OrAssetAttributePickerPickedEvent {
|
|
8
7
|
}
|
|
@@ -12,13 +11,5 @@ export declare class OrAttributePickerPickedEvent extends OrAssetAttributePicker
|
|
|
12
11
|
*/
|
|
13
12
|
export declare class OrAttributePicker extends OrAssetAttributePicker {
|
|
14
13
|
}
|
|
15
|
-
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
export declare class OrAssetTypeAttributePickerPickedEvent extends AssetTypeAttributePickerPickedEvent {
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* TODO: Remove this, and export the ./assettype-attribute-picker file
|
|
22
|
-
*/
|
|
23
|
-
export declare class OrAssetTypeAttributePicker extends AssetTypeAttributePicker {
|
|
24
|
-
}
|
|
14
|
+
export * from "./asset-attribute-picker";
|
|
15
|
+
export * from "./assettype-attribute-picker";
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate||function(e,
|
|
1
|
+
var __decorate=this&&this.__decorate||function(t,e,r,i){var c,o=arguments.length,s=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,i);else for(var u=t.length-1;u>=0;u--)(c=t[u])&&(s=(o<3?c(s):o>3?c(e,r,s):c(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s};import{customElement}from"lit/decorators.js";import{OrAssetAttributePicker,OrAssetAttributePickerPickedEvent}from"./asset-attribute-picker";export class OrAttributePickerPickedEvent extends OrAssetAttributePickerPickedEvent{}let OrAttributePicker=class extends OrAssetAttributePicker{};OrAttributePicker=__decorate([customElement("or-attribute-picker")],OrAttributePicker);export{OrAttributePicker};export*from"./asset-attribute-picker";export*from"./assettype-attribute-picker";
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,sBAAsB,EAAE,iCAAiC,EAAC,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAC,sBAAsB,EAAE,iCAAiC,EAAC,MAAM,0BAA0B,CAAC;AAEnG;;;GAGG;AACH,MAAM,OAAO,4BAA6B,SAAQ,iCAAiC;CAElF;AAED;;;GAGG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,sBAAsB;CAC5D,CAAA;AADY,iBAAiB;IAD7B,aAAa,CAAC,qBAAqB,CAAC;GACxB,iBAAiB,CAC7B;;AAED,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-attribute-picker",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "OpenRemote attribute picker dialog",
|
|
5
5
|
"customElements": "custom-elements.json",
|
|
6
6
|
"main": "dist/umd/index.bundle.js",
|
|
@@ -11,21 +11,21 @@
|
|
|
11
11
|
},
|
|
12
12
|
"types": "lib/index.d.ts",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"analyze": "npx cem analyze --config ../custom-elements-manifest.config.
|
|
14
|
+
"analyze": "npx cem analyze --config ../custom-elements-manifest.config.mjs",
|
|
15
15
|
"test": "echo \"No tests\" && exit 0",
|
|
16
16
|
"prepack": "npx webpack"
|
|
17
17
|
},
|
|
18
18
|
"author": "OpenRemote",
|
|
19
19
|
"license": "AGPL-3.0-or-later",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@openremote/core": "1.6.
|
|
22
|
-
"@openremote/or-asset-tree": "1.6.
|
|
23
|
-
"@openremote/or-mwc-components": "1.6.
|
|
24
|
-
"@openremote/or-translate": "1.6.
|
|
21
|
+
"@openremote/core": "1.6.3",
|
|
22
|
+
"@openremote/or-asset-tree": "1.6.3",
|
|
23
|
+
"@openremote/or-mwc-components": "1.6.3",
|
|
24
|
+
"@openremote/or-translate": "1.6.3",
|
|
25
25
|
"lit": "^2.0.2"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@openremote/util": "1.6.
|
|
28
|
+
"@openremote/util": "1.6.3"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|