iobroker.vis-2-widgets-collection 2.0.2 → 2.0.4

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.
Files changed (40) hide show
  1. package/README.md +8 -0
  2. package/io-package.json +27 -27
  3. package/package.json +1 -1
  4. package/widgets/vis-2-widgets-collection/assets/Button-BK3gDuCC.js +677 -0
  5. package/widgets/vis-2-widgets-collection/assets/ButtonGroupCollectionWidget-Bjl7COzs.js +687 -0
  6. package/widgets/vis-2-widgets-collection/assets/CheckboxCollectionWidget-8WjweMs2.js +440 -0
  7. package/widgets/vis-2-widgets-collection/assets/Close-APpa6HX8.js +18 -0
  8. package/widgets/vis-2-widgets-collection/assets/DialogCollectionWidget-o_rzKqrW.js +485 -0
  9. package/widgets/vis-2-widgets-collection/assets/FormControlLabel-CHae4jKA.js +207 -0
  10. package/widgets/vis-2-widgets-collection/assets/GaugeCollectionWidget-C7OFMKbW.js +2860 -0
  11. package/widgets/vis-2-widgets-collection/assets/Light2CollectionWidget-C_bjOKZG.js +2733 -0
  12. package/widgets/vis-2-widgets-collection/assets/RadioGroupCollectionWidget-dntcZhrq.js +538 -0
  13. package/widgets/vis-2-widgets-collection/assets/SafeImg-DHsE-xU3.js +29 -0
  14. package/widgets/vis-2-widgets-collection/assets/SelectCollectionWidget-Dh93X-tG.js +2545 -0
  15. package/widgets/vis-2-widgets-collection/assets/Stack-Dzb7Q6ZE.js +132 -0
  16. package/widgets/vis-2-widgets-collection/assets/StateCollectionWidget-Cp6J4wqx.js +1610 -0
  17. package/widgets/vis-2-widgets-collection/assets/SwitchBase-C4gssu33.js +204 -0
  18. package/widgets/vis-2-widgets-collection/assets/SwitchCollectionWidget-2KPRtnA9.js +572 -0
  19. package/widgets/vis-2-widgets-collection/assets/_commonjsHelpers-Cpj98o6Y.js +8 -0
  20. package/widgets/vis-2-widgets-collection/assets/commonFields-Dc3dYGx-.js +20628 -0
  21. package/widgets/vis-2-widgets-collection/assets/formControlState-Dq1zat_P.js +6 -0
  22. package/widgets/vis-2-widgets-collection/assets/hostInit-D6momM_S.js +9 -0
  23. package/widgets/vis-2-widgets-collection/assets/index-B5Qt9EMX.js +18 -0
  24. package/widgets/vis-2-widgets-collection/assets/index-BEpFHtMA.js +249 -0
  25. package/widgets/vis-2-widgets-collection/assets/index-DMBzzD-N.js +6098 -0
  26. package/widgets/vis-2-widgets-collection/assets/listItemTextClasses-DQeLHf2R.js +120 -0
  27. package/widgets/vis-2-widgets-collection/assets/preload-helper-PPVm8Dsz.js +36 -0
  28. package/widgets/vis-2-widgets-collection/assets/translations-DXoq3Ras.js +9 -0
  29. package/widgets/vis-2-widgets-collection/assets/useFormControl--TM4wVzV.js +20 -0
  30. package/widgets/vis-2-widgets-collection/assets/useHtmlValue-Dcwl_hqT.js +27 -0
  31. package/widgets/vis-2-widgets-collection/assets/useOidValue-DGq_wsMY.js +35 -0
  32. package/widgets/vis-2-widgets-collection/assets/virtualExposes-B50cAOvG.js +118 -0
  33. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js +45 -0
  34. package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js +12 -0
  35. package/widgets/vis-2-widgets-collection/img/prev-collection-checkbox.png +0 -0
  36. package/widgets/vis-2-widgets-collection/img/prev-collection-dialog.png +0 -0
  37. package/widgets/vis-2-widgets-collection/img/prev-collection-gauge.png +0 -0
  38. package/widgets/vis-2-widgets-collection/img/prev-collection-light.png +0 -0
  39. package/widgets/vis-2-widgets-collection/img/prev-collection-radio-group.png +0 -0
  40. package/widgets/vis-2-widgets-collection/img/prev-collection-select.png +0 -0
@@ -0,0 +1,204 @@
1
+ import { v as H, __tla as __tla_0 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
2
+ import { g as J, a as K, a6 as Q, b as C, s as F, j as b, i as V, e as X, n as Y, r as Z, __tla as __tla_1 } from "./commonFields-Dc3dYGx-.js";
3
+ import { u as ee, __tla as __tla_2 } from "./useFormControl--TM4wVzV.js";
4
+ let le;
5
+ let __tla = Promise.all([
6
+ (() => {
7
+ try {
8
+ return __tla_0;
9
+ } catch {
10
+ }
11
+ })(),
12
+ (() => {
13
+ try {
14
+ return __tla_1;
15
+ } catch {
16
+ }
17
+ })(),
18
+ (() => {
19
+ try {
20
+ return __tla_2;
21
+ } catch {
22
+ }
23
+ })()
24
+ ]).then(async () => {
25
+ function oe(t) {
26
+ return J("PrivateSwitchBase", t);
27
+ }
28
+ K("PrivateSwitchBase", [
29
+ "root",
30
+ "checked",
31
+ "disabled",
32
+ "input",
33
+ "edgeStart",
34
+ "edgeEnd"
35
+ ]);
36
+ let te, se, ae;
37
+ te = (t) => {
38
+ const { classes: s, checked: l, disabled: d, edge: n } = t, c = {
39
+ root: [
40
+ "root",
41
+ l && "checked",
42
+ d && "disabled",
43
+ n && `edge${V(n)}`
44
+ ],
45
+ input: [
46
+ "input"
47
+ ]
48
+ };
49
+ return X(c, oe, s);
50
+ };
51
+ se = F(Y, {
52
+ name: "MuiSwitchBase"
53
+ })({
54
+ padding: 9,
55
+ borderRadius: "50%",
56
+ variants: [
57
+ {
58
+ props: {
59
+ edge: "start",
60
+ size: "small"
61
+ },
62
+ style: {
63
+ marginLeft: -3
64
+ }
65
+ },
66
+ {
67
+ props: ({ edge: t, ownerState: s }) => t === "start" && s.size !== "small",
68
+ style: {
69
+ marginLeft: -12
70
+ }
71
+ },
72
+ {
73
+ props: {
74
+ edge: "end",
75
+ size: "small"
76
+ },
77
+ style: {
78
+ marginRight: -3
79
+ }
80
+ },
81
+ {
82
+ props: ({ edge: t, ownerState: s }) => t === "end" && s.size !== "small",
83
+ style: {
84
+ marginRight: -12
85
+ }
86
+ }
87
+ ]
88
+ });
89
+ ae = F("input", {
90
+ name: "MuiSwitchBase",
91
+ shouldForwardProp: Z
92
+ })({
93
+ cursor: "inherit",
94
+ position: "absolute",
95
+ opacity: 0,
96
+ width: "100%",
97
+ height: "100%",
98
+ top: 0,
99
+ left: 0,
100
+ margin: 0,
101
+ padding: 0,
102
+ zIndex: 1
103
+ });
104
+ le = H.forwardRef(function(s, l) {
105
+ const { autoFocus: d, checked: n, checkedIcon: c, defaultChecked: u, disabled: k, disableFocusRipple: h = false, edge: y = false, icon: x, id: R, inputProps: _, inputRef: I, name: z, onBlur: m, onChange: f, onFocus: g, readOnly: v, required: j = false, tabIndex: U, type: i, value: S, slots: E = {}, slotProps: L = {}, ...M } = s, [w, N] = Q({
106
+ controlled: n,
107
+ default: !!u,
108
+ name: "SwitchBase",
109
+ state: "checked"
110
+ }), a = ee(), T = (e) => {
111
+ g && g(e), a && a.onFocus && a.onFocus(e);
112
+ }, q = (e) => {
113
+ m && m(e), a && a.onBlur && a.onBlur(e);
114
+ }, O = (e) => {
115
+ if (e.nativeEvent.defaultPrevented) return;
116
+ const o = e.target.checked;
117
+ N(o), f && f(e, o);
118
+ };
119
+ let r = k;
120
+ a && typeof r > "u" && (r = a.disabled);
121
+ const W = i === "checkbox" || i === "radio", p = {
122
+ ...s,
123
+ checked: w,
124
+ disabled: r,
125
+ disableFocusRipple: h,
126
+ edge: y
127
+ }, B = te(p), P = {
128
+ slots: E,
129
+ slotProps: {
130
+ input: _,
131
+ ...L
132
+ }
133
+ }, [$, A] = C("root", {
134
+ ref: l,
135
+ elementType: se,
136
+ className: B.root,
137
+ shouldForwardComponentProp: true,
138
+ externalForwardedProps: {
139
+ ...P,
140
+ component: "span",
141
+ ...M
142
+ },
143
+ getSlotProps: (e) => ({
144
+ ...e,
145
+ onFocus: (o) => {
146
+ var _a;
147
+ (_a = e.onFocus) == null ? void 0 : _a.call(e, o), T(o);
148
+ },
149
+ onBlur: (o) => {
150
+ var _a;
151
+ (_a = e.onBlur) == null ? void 0 : _a.call(e, o), q(o);
152
+ }
153
+ }),
154
+ ownerState: p,
155
+ additionalProps: {
156
+ centerRipple: true,
157
+ focusRipple: !h,
158
+ disabled: r,
159
+ role: void 0,
160
+ tabIndex: null
161
+ }
162
+ }), [D, G] = C("input", {
163
+ ref: I,
164
+ elementType: ae,
165
+ className: B.input,
166
+ externalForwardedProps: P,
167
+ getSlotProps: (e) => ({
168
+ onChange: (o) => {
169
+ var _a;
170
+ (_a = e.onChange) == null ? void 0 : _a.call(e, o), O(o);
171
+ }
172
+ }),
173
+ ownerState: p,
174
+ additionalProps: {
175
+ autoFocus: d,
176
+ checked: n,
177
+ defaultChecked: u,
178
+ disabled: r,
179
+ id: W ? R : void 0,
180
+ name: z,
181
+ readOnly: v,
182
+ required: j,
183
+ tabIndex: U,
184
+ type: i,
185
+ ...i === "checkbox" && S === void 0 ? {} : {
186
+ value: S
187
+ }
188
+ }
189
+ });
190
+ return b.jsxs($, {
191
+ ...A,
192
+ children: [
193
+ b.jsx(D, {
194
+ ...G
195
+ }),
196
+ w ? c : x
197
+ ]
198
+ });
199
+ });
200
+ });
201
+ export {
202
+ le as S,
203
+ __tla
204
+ };