iobroker.vis2-materialdesign 0.1.0
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/LICENSE +22 -0
- package/README.md +198 -0
- package/admin/admin.d.ts +93 -0
- package/admin/i18n/de.json +985 -0
- package/admin/i18n/en.json +985 -0
- package/admin/i18n/es.json +985 -0
- package/admin/i18n/fr.json +985 -0
- package/admin/i18n/it.json +985 -0
- package/admin/i18n/nl.json +985 -0
- package/admin/i18n/pl.json +985 -0
- package/admin/i18n/pt.json +985 -0
- package/admin/i18n/ru.json +985 -0
- package/admin/i18n/uk.json +985 -0
- package/admin/i18n/zh-cn.json +985 -0
- package/admin/img/info-big.png +0 -0
- package/admin/index_m.html +456 -0
- package/admin/index_m.js +1018 -0
- package/admin/lib/clipboard-polyfill.promise.js +16 -0
- package/admin/lib/colors.json +1304 -0
- package/admin/lib/colorsDark.json +1304 -0
- package/admin/lib/defaultcolors.json +22 -0
- package/admin/lib/defaultcolorsDark.json +22 -0
- package/admin/lib/defaultfontSizes.json +14 -0
- package/admin/lib/defaultfonts.json +14 -0
- package/admin/lib/fontSizes.json +380 -0
- package/admin/lib/fonts.json +386 -0
- package/admin/lib/monolith.min.css +1 -0
- package/admin/lib/pickr.min.js +5 -0
- package/admin/materialdesign-widgets-click-sound.mp3 +0 -0
- package/admin/style.css +31 -0
- package/admin/tsconfig.json +9 -0
- package/admin/vis-materialdesign.png +0 -0
- package/admin/vis-materialdesign_16_9.png +0 -0
- package/admin/words.js +11949 -0
- package/io-package.json +184 -0
- package/package.json +71 -0
- package/widgets/materialdesign/css/widgets.css +7174 -0
- package/widgets/materialdesign/css/widgets.min.css +1 -0
- package/widgets/materialdesign/img/IoBroker_Logo.png +0 -0
- package/widgets/materialdesign/img/bar_chart.png +0 -0
- package/widgets/materialdesign/img/calendar.png +0 -0
- package/widgets/materialdesign/img/pie_chart.png +0 -0
- package/widgets/materialdesign/img/prev_alerts.png +0 -0
- package/widgets/materialdesign/img/prev_autocomplete.png +0 -0
- package/widgets/materialdesign/img/prev_color_schemes.png +0 -0
- package/widgets/materialdesign/img/prev_dialog_view.png +0 -0
- package/widgets/materialdesign/img/prev_grid_views.png +0 -0
- package/widgets/materialdesign/img/prev_icon.png +0 -0
- package/widgets/materialdesign/img/prev_iconlist.png +0 -0
- package/widgets/materialdesign/img/prev_input.png +0 -0
- package/widgets/materialdesign/img/prev_json_chart.png +0 -0
- package/widgets/materialdesign/img/prev_line_history_chart.png +0 -0
- package/widgets/materialdesign/img/prev_list.png +0 -0
- package/widgets/materialdesign/img/prev_masonry_views.png +0 -0
- package/widgets/materialdesign/img/prev_select_bool.png +0 -0
- package/widgets/materialdesign/img/prev_select_value.png +0 -0
- package/widgets/materialdesign/img/prev_table.png +0 -0
- package/widgets/materialdesign/img/prev_top_app_bar_nav_drawer.png +0 -0
- package/widgets/materialdesign/img/prev_version.png +0 -0
- package/widgets/materialdesign/img/preview.jpg +0 -0
- package/widgets/materialdesign/js/materialdesign.js +56 -0
- package/widgets/materialdesign/js/widgets/materialdesign.00.helper.js +1229 -0
- package/widgets/materialdesign/js/widgets/materialdesign.00.vue.helper.js +710 -0
- package/widgets/materialdesign/js/widgets/materialdesign.alerts.js +177 -0
- package/widgets/materialdesign/js/widgets/materialdesign.autocomplete.js +263 -0
- package/widgets/materialdesign/js/widgets/materialdesign.button.js +1617 -0
- package/widgets/materialdesign/js/widgets/materialdesign.calendar.js +472 -0
- package/widgets/materialdesign/js/widgets/materialdesign.card.js +276 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.bar.js +389 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.helper.js +494 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.json.js +621 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.line.js +552 -0
- package/widgets/materialdesign/js/widgets/materialdesign.chart.pie.js +380 -0
- package/widgets/materialdesign/js/widgets/materialdesign.checkbox.js +281 -0
- package/widgets/materialdesign/js/widgets/materialdesign.colorschemes.js +129 -0
- package/widgets/materialdesign/js/widgets/materialdesign.dialog.js +384 -0
- package/widgets/materialdesign/js/widgets/materialdesign.iconList.js +873 -0
- package/widgets/materialdesign/js/widgets/materialdesign.list.js +503 -0
- package/widgets/materialdesign/js/widgets/materialdesign.materialdesignicons.js +7055 -0
- package/widgets/materialdesign/js/widgets/materialdesign.progress.js +413 -0
- package/widgets/materialdesign/js/widgets/materialdesign.roundslider.js +267 -0
- package/widgets/materialdesign/js/widgets/materialdesign.select.js +243 -0
- package/widgets/materialdesign/js/widgets/materialdesign.slider.js +363 -0
- package/widgets/materialdesign/js/widgets/materialdesign.switch.js +284 -0
- package/widgets/materialdesign/js/widgets/materialdesign.table.js +688 -0
- package/widgets/materialdesign/js/widgets/materialdesign.textfield.js +260 -0
- package/widgets/materialdesign/js/widgets/materialdesign.topappbarnav.js +747 -0
- package/widgets/materialdesign/js/widgets/materialdesign.value.js +369 -0
- package/widgets/materialdesign/js/widgets/materialdesign.views.js +827 -0
- package/widgets/materialdesign/js/widgets/materialdesign.viseditor.js +1088 -0
- package/widgets/materialdesign/js/widgets.min.js +1 -0
- package/widgets/materialdesign/lib/Chart.css +47 -0
- package/widgets/materialdesign/lib/Chart.js +16151 -0
- package/widgets/materialdesign/lib/VueTheMask.umd.js +556 -0
- package/widgets/materialdesign/lib/chartjs-plugin-datalabels.js +1385 -0
- package/widgets/materialdesign/lib/chroma.js +3225 -0
- package/widgets/materialdesign/lib/fonts/material-design-icons/materialdesignicons-webfont.ttf +0 -0
- package/widgets/materialdesign/lib/fonts/material-design-icons/materialdesignicons.css +27457 -0
- package/widgets/materialdesign/lib/fonts/material-design-icons/materialdesignicons.min.css +1 -0
- package/widgets/materialdesign/lib/fonts/material-icons/MaterialIcons-Regular.ttf +0 -0
- package/widgets/materialdesign/lib/fonts/material-icons/material-icons.css +31 -0
- package/widgets/materialdesign/lib/he.js +345 -0
- package/widgets/materialdesign/lib/jquery.initialize.js +156 -0
- package/widgets/materialdesign/lib/jquery.knob.js +820 -0
- package/widgets/materialdesign/lib/jquery.mobile-events.js +940 -0
- package/widgets/materialdesign/lib/material-components-web.css +10011 -0
- package/widgets/materialdesign/lib/material-components-web.js +22651 -0
- package/widgets/materialdesign/lib/math.js +41 -0
- package/widgets/materialdesign/lib/moment-duration-format.js +1737 -0
- package/widgets/materialdesign/lib/myUnderscore.js +1695 -0
- package/widgets/materialdesign/lib/raw/moment-with-locales.min.js +28 -0
- package/widgets/materialdesign/lib/raw/round-slider.js +271 -0
- package/widgets/materialdesign/lib/raw/sentry/bundle.min.js +3 -0
- package/widgets/materialdesign/lib/raw/sentry/captureconsole.min.js +2 -0
- package/widgets/materialdesign/lib/raw/sentry/dedupe.min.js +2 -0
- package/widgets/materialdesign/lib/svg-inject.js +697 -0
- package/widgets/materialdesign/lib/vue.js +11965 -0
- package/widgets/materialdesign/lib/vuetify.js +43729 -0
- package/widgets/materialdesign/lib.min.css +1 -0
- package/widgets/materialdesign/lib.min.js +6285 -0
- package/widgets/materialdesign.html +1063 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonAdition-BOasvewn.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonAditionVertical-CfxLrjtz.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonLink-DFOHalVe.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonLinkVertical-bLBc2Zj6.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonNavigation-loocTeHA.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonNavigationVertical-wKivh3mz.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonState-DyuzNIZY.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonStateMulti-D9YVumU3.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonStateMultiVertical-J7SUuXNA.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonStateVertical-EhVri-Bj.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonToggle-CLxaT9SA.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtonToggleVertical-4zI4T-cI.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignButtons-BHDA55zY.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignCheckbox-Dwl43BB6.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIcon-07Jl1QSv.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonAdition-DkyLUAuu.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonLink-CFh_41FT.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonNavigation-CLvhcORZ.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonSlider-TfUJKNib.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonState-Con_l2iN.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonStateMulti-DuakGd7h.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignIconButtonToggle-B3Yxo-Ii.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignSwitch-BPSYRrDe.js +1 -0
- package/widgets/vis2-materialdesign/assets/MaterialDesignValue-D5sJ-iyi.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf-localSharedImportMap___mfe_internal__vis2MaterialDesignWidgets-BFI0756z.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf___mfe_internal__vis2MaterialDesignWidgets__loadShare__react__loadShare__.js-4V-ZaKyJ.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf___mfe_internal__vis2MaterialDesignWidgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-Eu2aWCKd.js +1 -0
- package/widgets/vis2-materialdesign/assets/_virtual_mf___mfe_internal__vis2MaterialDesignWidgets__loadShare__react_mf_2_dom__loadShare__.js-D3wyrTEe.js +8 -0
- package/widgets/vis2-materialdesign/assets/hostInit-CP4jqDxy.js +1 -0
- package/widgets/vis2-materialdesign/assets/index-jMDUG1V1.js +1 -0
- package/widgets/vis2-materialdesign/assets/mf-entry-bootstrap-0-5bdbe7bd.js +35 -0
- package/widgets/vis2-materialdesign/assets/rolldown-runtime-CNC7AqOf.js +1 -0
- package/widgets/vis2-materialdesign/assets/translations-CYT3A7CQ.js +1 -0
- package/widgets/vis2-materialdesign/assets/virtualExposes-BFTZrXtp.js +1 -0
- package/widgets/vis2-materialdesign/assets/virtual_mf-REMOTE_ENTRY_ID___mfe_internal__vis2MaterialDesignWidgets__customWidgets_js-BOvf1QCd.js +4 -0
- package/widgets/vis2-materialdesign/assets/virtual_mf-exposes-ssr___mfe_internal__vis2MaterialDesignWidgets__customWidgets_js-vY7qHvFF.js +2 -0
- package/widgets/vis2-materialdesign/assets/virtual_mf-exposes___mfe_internal__vis2MaterialDesignWidgets__customWidgets_js-C28iDRsy.js +2 -0
- package/widgets/vis2-materialdesign/assets/vite-preload-helper-DuG8C5Si.js +1 -0
- package/widgets/vis2-materialdesign/assets/widgetUtils-D_-xivaB.js +1 -0
- package/widgets/vis2-materialdesign/customWidgets.js +1 -0
- package/widgets/vis2-materialdesign/customWidgets.ssr.js +1 -0
- package/widgets/vis2-materialdesign/materialdesign-widgets-click-sound.mp3 +0 -0
- package/widgets/vis2-materialdesign/mf-stats.json +1 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 typhosj <typhosj@gmx.de>
|
|
4
|
+
Copyright (c) 2021 Scrounger <scrounger@gmx.net>
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+

|
|
2
|
+
<!-- omit in toc -->
|
|
3
|
+
# ioBroker.vis2-materialdesign
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
[](https://www.npmjs.com/package/iobroker.vis2-materialdesign)
|
|
7
|
+
[](https://www.npmjs.com/package/ioBroker.vis2-materialdesign)
|
|
8
|
+
[](https://www.npmjs.com/package/ioBroker.vis2-materialdesign)
|
|
9
|
+
|
|
10
|
+
[](https://nodei.co/npm/iobroker.vis2-materialdesign/)
|
|
11
|
+
|
|
12
|
+
<!-- omit in toc -->
|
|
13
|
+
## Material Design Widgets for ioBroker VIS 2
|
|
14
|
+
ioBroker VIS 2 Material Design widgets based on [Google's material design guidelines](https://material.io/design/).
|
|
15
|
+
|
|
16
|
+
This adapter is maintained by typhosj. The widgets are based on the original
|
|
17
|
+
VIS Material Design widget work by Scrounger.
|
|
18
|
+
|
|
19
|
+
<br>
|
|
20
|
+
|
|
21
|
+
<!-- omit in toc -->
|
|
22
|
+
## Table of Content
|
|
23
|
+
- [General](#general)
|
|
24
|
+
- [Adapter settings](#adapter-settings)
|
|
25
|
+
- [Widget documentation](#widget-documentation)
|
|
26
|
+
- [Informations](#informations)
|
|
27
|
+
- [Changelog](#changelog)
|
|
28
|
+
- [License](#license)
|
|
29
|
+
|
|
30
|
+
## General
|
|
31
|
+
|
|
32
|
+
### Author and attribution
|
|
33
|
+
|
|
34
|
+
Author and maintainer: typhosj <typhosj@gmx.de>
|
|
35
|
+
|
|
36
|
+
The widgets are based on the original VIS Material Design widget work by
|
|
37
|
+
Scrounger <scrounger@gmx.net>.
|
|
38
|
+
|
|
39
|
+
### Online Example Project
|
|
40
|
+
provided by [iobroker.click](https://iobroker.click/index.html), thanks to bluefox and iobroker.
|
|
41
|
+
|
|
42
|
+
* <a href="https://iobroker.click/vis/index.html?Material%20Design%20Widgets" target="_blank">VIS Runtime</a> (<a href="http://iobroker.click:8082/vis/index.html?Material%20Design%20Widgets" target="_blank">alternativ</a>)
|
|
43
|
+
* <a href="https://iobroker.click/vis/edit.html?Material%20Design%20Widgets" target="_blank">VIS Editor</a> (<a href="http://iobroker.click:8082/vis/edit.html?Material%20Design%20Widgets" target="_blank">alternativ</a>)
|
|
44
|
+
|
|
45
|
+
These links point to the original VIS project. Native VIS 2 surfaces must be
|
|
46
|
+
rebuilt manually.
|
|
47
|
+
|
|
48
|
+
### Practical examples
|
|
49
|
+
* [Weather View](https://forum.iobroker.net/topic/32232/material-design-widgets-wetter-view)
|
|
50
|
+
* [Skript Status](https://forum.iobroker.net/topic/30662/material-design-widgets-skript-status)
|
|
51
|
+
* [Adapter Status](https://forum.iobroker.net/topic/30661/material-design-widgets-adapter-status)
|
|
52
|
+
* [UniFi Netzwerk Status](https://github.com/typhosj/ioBroker.vis2-materialdesign/tree/master/examples/UnifiNetworkState)
|
|
53
|
+
|
|
54
|
+
### Questions and answers about the widgets
|
|
55
|
+
If you have questions about the individual widgets, then first look at the topics of the individual widgets
|
|
56
|
+
|
|
57
|
+
* [German threads](https://forum.iobroker.net/search?term=Material%20Design%20Widgets%3A&in=titles&matchWords=all&by%5B%5D=Scrounger&categories%5B%5D=7&sortBy=topic.title&sortDirection=desc&showAs=topics)
|
|
58
|
+
|
|
59
|
+
### Supported Browser
|
|
60
|
+
I officially support the last two versions of every major browser. Specifically, i test on the following browsers:
|
|
61
|
+
* Firefox on Windows and Linux
|
|
62
|
+
* Chrome on Android, Windows, and Linux
|
|
63
|
+
|
|
64
|
+
### Supported Browser for vibrate on mobil devices function
|
|
65
|
+
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/vibrate
|
|
66
|
+
|
|
67
|
+
### ioBroker VIS App
|
|
68
|
+
latest version needs to be implemented by the app, see https://github.com/ioBroker/ioBroker.vis.cordova.
|
|
69
|
+
I do not use the app and do not test on it either
|
|
70
|
+
|
|
71
|
+
## Adapter settings
|
|
72
|
+
|
|
73
|
+
Starting with version 0.4.0 there is a settings page for the adapter. You can find it under Instances in the user interface of the admin adapter
|
|
74
|
+
|
|
75
|
+
### General
|
|
76
|
+

|
|
77
|
+
|
|
78
|
+
| setting | description |
|
|
79
|
+
| ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
80
|
+
| Documentation | Links to documentation to help you configure the widgets |
|
|
81
|
+
| Generate global script | Create a global script for the [Javascript Script Engine](https://github.com/ioBroker/ioBroker.javascript) with all theme data points. This allows to use colors, fonts and font sizes comfortably in scripts. |
|
|
82
|
+
| Sentry | use Sentry libraries to automatically report exceptions and code errors anonymously to the developers. For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! |
|
|
83
|
+
|
|
84
|
+
### Theme Editor
|
|
85
|
+
|
|
86
|
+
With the help of the Theme Editor you can centrally set colors, fonts and font sizes for all widgets via the adapter settings. For each widget datapoints (see screenshot below) are created with the set values. This makes it also possible to use these settings in other widgets (not Material Design Widgets) via bindings.
|
|
87
|
+
|
|
88
|
+
#### Datapoint structure
|
|
89
|
+
|
|
90
|
+

|
|
91
|
+
|
|
92
|
+
#### Theme Settings
|
|
93
|
+
|
|
94
|
+

|
|
95
|
+
|
|
96
|
+
Every settings page for colors, colors dark, font and font sizes look likes show in the screenshot above.
|
|
97
|
+
|
|
98
|
+
Standard colors / fonts /font sizes can be defined in the upper area. These standard colors / fonts /font sizes can then be assigned to the individual widgets using the buttons in the table. If you change the default colors / fonts /font sizes, it will also change for all widgets that use this colors / fonts /font sizes.
|
|
99
|
+
Additionally, it is possible to assign your own colors / fonts /font sizes to the widgets, independent of the standard colors.
|
|
100
|
+
|
|
101
|
+
For colors there are two themes - light theme and dark theme. With the datapoint `vis-materialdesign.0.colors.darkTheme` you can switch between the two themes. For example this datapoint can be used in a script to switch between lights and dark colors on sunrise and sunset.
|
|
102
|
+
|
|
103
|
+
#### VIS Editor (Restore / update old Widgets)
|
|
104
|
+
|
|
105
|
+

|
|
106
|
+
|
|
107
|
+
In the VIS Editor you will find a button `use theme` for each widget. With this button you can reset the widgets to the use of the themes. That means if you have changed colors, fonts or font sizes, you can reset them with this button.
|
|
108
|
+
|
|
109
|
+
With the help of this button it is also possible to update your widgets from versions before 0.4.0 to use the themes.
|
|
110
|
+
|
|
111
|
+
#### Change Datapoint Binding for Material Design Widgets
|
|
112
|
+
|
|
113
|
+

|
|
114
|
+
|
|
115
|
+
If you would like to change the using of others colors that are defined for other widgets, you can copy the datapoint binding by pressing the button with the material design icon. Just paste this in any color, fonts or font sizes field of a material design widget. For example a color "state binding" looks like `#mdwTheme:vis-materialdesign.0.colors.card.background`
|
|
116
|
+
|
|
117
|
+
#### Use Binding for non Material Design Widgets
|
|
118
|
+
|
|
119
|
+

|
|
120
|
+
|
|
121
|
+
In the adapter settings you can copy the binding command to the clipboard by clicking on the button with iobroker icon. This binding can then be used by copy and paste even for non Material Design Widgets. For example a color binding looks like `{mode:vis-materialdesign.0.colors.darkTheme;light:vis-materialdesign.0.colors.light.card.background;dark:vis-materialdesign.0.colors.dark.card.background; mode === "true" ? dark : light}`
|
|
122
|
+
|
|
123
|
+
## Widget documentation
|
|
124
|
+
|
|
125
|
+
Detailed widget documentation was moved to separate files:
|
|
126
|
+
|
|
127
|
+
- [Material Design Icons and Images](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/material-design-icons-and-images.md)
|
|
128
|
+
- [Buttons](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/buttons.md)
|
|
129
|
+
- [Buttons Vertical](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/buttons-vertical.md)
|
|
130
|
+
- [Icon Buttons](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/icon-buttons.md)
|
|
131
|
+
- [Checkbox](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/checkbox.md)
|
|
132
|
+
- [Switch](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/switch.md)
|
|
133
|
+
- [Value](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/value.md)
|
|
134
|
+
- [HTML Card](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/html-card.md)
|
|
135
|
+
- [List](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/list.md)
|
|
136
|
+
- [IconList](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/iconlist.md)
|
|
137
|
+
- [Progress](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/progress.md)
|
|
138
|
+
- [Progress Circular](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/progress-circular.md)
|
|
139
|
+
- [Slider](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/slider.md)
|
|
140
|
+
- [Slider Round](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/slider-round.md)
|
|
141
|
+
- [Input](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/input.md)
|
|
142
|
+
- [Top App Bar](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/top-app-bar.md)
|
|
143
|
+
- [Charts](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/charts.md)
|
|
144
|
+
- [Table](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/table.md)
|
|
145
|
+
- [Responsive Layout](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/responsive-layout.md)
|
|
146
|
+
- [Alerts](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/alerts.md)
|
|
147
|
+
- [Calendar](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/calendar.md)
|
|
148
|
+
- [Dialog](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/dialog.md)
|
|
149
|
+
- [HTML Widgets](https://github.com/typhosj/ioBroker.vis2-materialdesign/blob/master/doc/en/widgets/html-widgets.md)
|
|
150
|
+
|
|
151
|
+
Full index: [doc/en/widgets/README.md](https://github.com/typhosj/ioBroker.vis2-materialdesign/tree/master/doc/en/widgets)
|
|
152
|
+
|
|
153
|
+
## Informations
|
|
154
|
+
|
|
155
|
+
### used libraries
|
|
156
|
+
The adapter uses the following libraries:
|
|
157
|
+
* [Google material components for the web](https://github.com/material-components/material-components-web)
|
|
158
|
+
* [Vuetify](https://github.com/vuetifyjs/vuetify)
|
|
159
|
+
* [chartjs](https://www.chartjs.org/)
|
|
160
|
+
* [round-slider from thomasloven](https://github.com/thomasloven/round-slider)
|
|
161
|
+
* [Material Design Icons](https://materialdesignicons.com/)
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
## Changelog
|
|
165
|
+
### 0.1.0 (2026-07-09)
|
|
166
|
+
* (typhosj) Initial native VIS 2 port of the Material Design button widgets
|
|
167
|
+
* (typhosj) Added one-to-one VIS 2 button variants for navigation, link, state, multi-state, addition, toggle, vertical buttons, icon buttons, and icon button slider
|
|
168
|
+
* (typhosj) Added VIS 2 editor previews using the original Material Design icon glyphs
|
|
169
|
+
* (typhosj) Ported button state writes, delayed multi-state writes, toggle and push-button behavior, lock overlay, click sound, vibration feedback, image/icon handling, and SVG color behavior
|
|
170
|
+
* Based on the original VIS Material Design widgets version 0.5.9 by Scrounger
|
|
171
|
+
|
|
172
|
+
<!-- omit in toc -->
|
|
173
|
+
## License
|
|
174
|
+
MIT License
|
|
175
|
+
|
|
176
|
+
Copyright (c) 2026 typhosj <typhosj@gmx.de>
|
|
177
|
+
Copyright (c) 2021 Scrounger <scrounger@gmx.net>
|
|
178
|
+
|
|
179
|
+
The widgets are based on the original VIS Material Design widget work by
|
|
180
|
+
Scrounger <scrounger@gmx.net>.
|
|
181
|
+
|
|
182
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
183
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
184
|
+
in the Software without restriction, including without limitation the rights
|
|
185
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
186
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
187
|
+
furnished to do so, subject to the following conditions:
|
|
188
|
+
|
|
189
|
+
The above copyright notice and this permission notice shall be included in all
|
|
190
|
+
copies or substantial portions of the Software.
|
|
191
|
+
|
|
192
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
193
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
194
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
195
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
196
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
197
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
198
|
+
SOFTWARE.
|
package/admin/admin.d.ts
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
declare let systemDictionary: Record<string, Record<string, string>>;
|
|
2
|
+
|
|
3
|
+
declare let load: (settings: Record<string, unknown>, onChange: (hasChanges: boolean) => void) => void;
|
|
4
|
+
declare let save: (callback: (settings: Record<string, unknown>) => void) => void;
|
|
5
|
+
|
|
6
|
+
// make load and save exist on the window object
|
|
7
|
+
interface Window {
|
|
8
|
+
load: typeof load;
|
|
9
|
+
save: typeof save;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare const instance: number;
|
|
13
|
+
declare const adapter: string;
|
|
14
|
+
/** Translates text */
|
|
15
|
+
declare function _(text: string): string;
|
|
16
|
+
declare const socket: ioBrokerSocket;
|
|
17
|
+
declare function sendTo(
|
|
18
|
+
instance: any | null,
|
|
19
|
+
command: string,
|
|
20
|
+
message: any,
|
|
21
|
+
callback: (result: SendToResult) => void | Promise<void>,
|
|
22
|
+
): void;
|
|
23
|
+
|
|
24
|
+
interface SendToResult {
|
|
25
|
+
error?: string | Error;
|
|
26
|
+
result?: any;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// tslint:disable-next-line:class-name
|
|
30
|
+
interface ioBrokerSocket {
|
|
31
|
+
emit(
|
|
32
|
+
command: 'subscribeObjects',
|
|
33
|
+
pattern: string,
|
|
34
|
+
callback?: (err?: string) => void | Promise<void>,
|
|
35
|
+
): void;
|
|
36
|
+
emit(
|
|
37
|
+
command: 'subscribeStates',
|
|
38
|
+
pattern: string,
|
|
39
|
+
callback?: (err?: string) => void | Promise<void>,
|
|
40
|
+
): void;
|
|
41
|
+
emit(
|
|
42
|
+
command: 'unsubscribeObjects',
|
|
43
|
+
pattern: string,
|
|
44
|
+
callback?: (err?: string) => void | Promise<void>,
|
|
45
|
+
): void;
|
|
46
|
+
emit(
|
|
47
|
+
command: 'unsubscribeStates',
|
|
48
|
+
pattern: string,
|
|
49
|
+
callback?: (err?: string) => void | Promise<void>,
|
|
50
|
+
): void;
|
|
51
|
+
|
|
52
|
+
emit(
|
|
53
|
+
event: 'getObjectView',
|
|
54
|
+
view: 'system',
|
|
55
|
+
type: 'device',
|
|
56
|
+
options: ioBroker.GetObjectViewParams,
|
|
57
|
+
callback: (
|
|
58
|
+
err: string | undefined,
|
|
59
|
+
result?: any,
|
|
60
|
+
) => void | Promise<void>,
|
|
61
|
+
): void;
|
|
62
|
+
emit(
|
|
63
|
+
event: 'getStates',
|
|
64
|
+
callback: (
|
|
65
|
+
err: string | undefined,
|
|
66
|
+
result?: Record<string, any>,
|
|
67
|
+
) => void,
|
|
68
|
+
): void;
|
|
69
|
+
emit(
|
|
70
|
+
event: 'getState',
|
|
71
|
+
id: string,
|
|
72
|
+
callback: (err: string | undefined, result?: ioBroker.State) => void,
|
|
73
|
+
): void;
|
|
74
|
+
emit(
|
|
75
|
+
event: 'setState',
|
|
76
|
+
id: string,
|
|
77
|
+
state: unknown,
|
|
78
|
+
callback: (err: string | undefined, result?: any) => void,
|
|
79
|
+
): void;
|
|
80
|
+
|
|
81
|
+
on(event: 'objectChange', handler: ioBroker.ObjectChangeHandler): void;
|
|
82
|
+
on(event: 'stateChange', handler: ioBroker.StateChangeHandler): void;
|
|
83
|
+
removeEventHandler(
|
|
84
|
+
event: 'objectChange',
|
|
85
|
+
handler: ioBroker.ObjectChangeHandler,
|
|
86
|
+
): void;
|
|
87
|
+
removeEventHandler(
|
|
88
|
+
event: 'stateChange',
|
|
89
|
+
handler: ioBroker.StateChangeHandler,
|
|
90
|
+
): void;
|
|
91
|
+
|
|
92
|
+
// TODO: other events
|
|
93
|
+
}
|