@openremote/or-dashboard-builder 1.2.0-snapshot.20241002115554 → 1.2.0-snapshot.20241015132104
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 +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.orbundle.js +4 -4
- package/package.json +6 -6
- package/tsconfig.tsbuildinfo +1 -1
package/README.md
CHANGED
|
@@ -74,7 +74,7 @@ and your custom config should extend on `WidgetConfig`<br />
|
|
|
74
74
|
### Example of a custom Widget
|
|
75
75
|
|
|
76
76
|
Here is a code example of how to create custom widgets.<br />
|
|
77
|
-
Feel free to copy, put it in
|
|
77
|
+
Feel free to copy, put it in separate files, and adjust it to your needs.<br />
|
|
78
78
|
Looking into our existing widgets also helps understanding the codebase.
|
|
79
79
|
|
|
80
80
|
```typescript
|
package/dist/umd/index.js
CHANGED
|
@@ -366,7 +366,7 @@
|
|
|
366
366
|
${this.icon?$`<or-icon class="mdc-icon-button__icon" aria-hidden="true" icon="${this.icon}"></or-icon>`:""}
|
|
367
367
|
${this.iconOn?$`<or-icon class="mdc-icon-button__icon mdc-icon-button__icon--on" aria-hidden="true" icon="${this.iconOn}"></or-icon>`:""}
|
|
368
368
|
</button>
|
|
369
|
-
`;case lr.BUTTON:case lr.BUTTON_MOMENTARY:{const t=t=>{this.disabled&&t.stopPropagation(),n&&this.dispatchEvent(new sr(!0,null))},e=t=>{this.disabled&&t.stopPropagation(),n
|
|
369
|
+
`;case lr.BUTTON:case lr.BUTTON_MOMENTARY:{const t=t=>{this.disabled&&t.stopPropagation(),n&&this.dispatchEvent(new sr(!0,null))},e=t=>{this.disabled&&t.stopPropagation(),n&&this.dispatchEvent(new sr(!1,!0))},i=t=>{this.disabled&&t.stopPropagation(),n||this.dispatchEvent(new sr(!0,null))},n=this.type===lr.BUTTON_MOMENTARY,r=!this.action&&!this.label;let a={"mdc-icon-button":r,"mdc-fab":!r&&this.action,"mdc-fab--extended":!r&&this.action&&!!this.label,"mdc-fab--mini":!r&&this.action&&(this.compact||this.comfortable),"mdc-button":!r&&!this.action,"mdc-button--raised":!r&&!this.action&&this.raised,"mdc-button--unelevated":!r&&!this.action&&this.unElevated,"mdc-button--outlined":!r&&!this.action&&this.outlined,"mdc-button--rounded":!r&&!this.action&&this.rounded,"mdc-button--fullwidth":this.fullWidth};return $`
|
|
370
370
|
<button id="component" class="${Vt(a)}"
|
|
371
371
|
?readonly="${this.readonly}"
|
|
372
372
|
?disabled="${this.disabled}"
|