@openremote/or-components 1.4.0 → 1.5.0-snapshot.20250422083638
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.
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
1
|
+
import { LitElement, TemplateResult } from "lit";
|
|
2
2
|
export declare class OrCollapsiblePanel extends LitElement {
|
|
3
3
|
static get styles(): import("lit").CSSResult[];
|
|
4
|
+
lazycontent: Promise<TemplateResult>;
|
|
4
5
|
expanded: boolean;
|
|
5
6
|
expandable: boolean;
|
|
6
7
|
protected headerElem: HTMLDivElement;
|
|
7
8
|
protected _onHeaderClicked(ev: MouseEvent): void;
|
|
8
|
-
render():
|
|
9
|
+
render(): TemplateResult<1>;
|
|
9
10
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var __decorate=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};import{css,html,LitElement,unsafeCSS}from"lit";import{customElement,property,query}from"lit/decorators.js";import{DefaultColor5}from"@openremote/core";const style=css`
|
|
1
|
+
var __decorate=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,i,o);else for(var l=e.length-1;l>=0;l--)(r=e[l])&&(a=(n<3?r(a):n>3?r(t,i,a):r(t,i))||a);return n>3&&a&&Object.defineProperty(t,i,a),a};import{css,html,LitElement,unsafeCSS}from"lit";import{customElement,property,query}from"lit/decorators.js";import{i18next}from"@openremote/or-translate";import{DefaultColor5}from"@openremote/core";import{until}from"lit/directives/until.js";const style=css`
|
|
2
2
|
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
@@ -90,6 +90,6 @@ var __decorate=this&&this.__decorate||function(e,t,i,o){var r,n=arguments.length
|
|
|
90
90
|
</span>
|
|
91
91
|
</div>
|
|
92
92
|
<div id="content" class="${this.expandable&&this.expanded?"expanded":""}">
|
|
93
|
-
|
|
93
|
+
${this.lazycontent?this.expanded&&until(this.lazycontent,html`${i18next.t("loading")}`):html`<slot name="content"></slot>`}
|
|
94
94
|
</div>
|
|
95
|
-
`}};__decorate([property({type:Boolean})],OrCollapsiblePanel.prototype,"expanded",void 0),__decorate([property({type:Boolean})],OrCollapsiblePanel.prototype,"expandable",void 0),__decorate([query("#header")],OrCollapsiblePanel.prototype,"headerElem",void 0),OrCollapsiblePanel=__decorate([customElement("or-collapsible-panel")],OrCollapsiblePanel);export{OrCollapsiblePanel};
|
|
95
|
+
`}};__decorate([property({type:Promise})],OrCollapsiblePanel.prototype,"lazycontent",void 0),__decorate([property({type:Boolean})],OrCollapsiblePanel.prototype,"expanded",void 0),__decorate([property({type:Boolean})],OrCollapsiblePanel.prototype,"expandable",void 0),__decorate([query("#header")],OrCollapsiblePanel.prototype,"headerElem",void 0),OrCollapsiblePanel=__decorate([customElement("or-collapsible-panel")],OrCollapsiblePanel);export{OrCollapsiblePanel};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"or-collapsible-panel.js","sourceRoot":"","sources":["../src/or-collapsible-panel.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"or-collapsible-panel.js","sourceRoot":"","sources":["../src/or-collapsible-panel.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,UAAU,EAAkB,SA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AAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,cAAc,CAAC,CAAC,CAAC,EAAE;;;;;;uCAM9E,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE;kBACvE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAA,GAAG,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA,8BAA8B;;SAExI,CAAC;IACN,CAAC;CACJ,CAAA;AA9BG;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,CAAA,OAAuB,CAAA,EAAC,CAAC;uDACJ;AAEtC;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;oDACA;AAE1B;IADC,QAAQ,CAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;sDACC;AAEjB;IADT,KAAK,CAAC,SAAS,CAAC;sDACqB;AAf7B,kBAAkB;IAD9B,aAAa,CAAC,sBAAsB,CAAC;GACzB,kBAAkB,CAuC9B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0-snapshot.20250422083638",
|
|
4
4
|
"description": "OpenRemote basic UI components",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./*": "./lib/*.js"
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"license": "AGPL-3.0-or-later",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@material/elevation": "^9.0.0",
|
|
23
|
-
"@openremote/core": "1.
|
|
23
|
+
"@openremote/core": "1.5.0-snapshot.20250422083638",
|
|
24
24
|
"lit": "^2.0.2",
|
|
25
25
|
"simplebar": "^5.3.6"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@openremote/util": "1.
|
|
28
|
+
"@openremote/util": "1.5.0-snapshot.20250422083638"
|
|
29
29
|
},
|
|
30
30
|
"publishConfig": {
|
|
31
31
|
"access": "public"
|