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.
- package/README.md +8 -0
- package/io-package.json +27 -27
- package/package.json +1 -1
- package/widgets/vis-2-widgets-collection/assets/Button-BK3gDuCC.js +677 -0
- package/widgets/vis-2-widgets-collection/assets/ButtonGroupCollectionWidget-Bjl7COzs.js +687 -0
- package/widgets/vis-2-widgets-collection/assets/CheckboxCollectionWidget-8WjweMs2.js +440 -0
- package/widgets/vis-2-widgets-collection/assets/Close-APpa6HX8.js +18 -0
- package/widgets/vis-2-widgets-collection/assets/DialogCollectionWidget-o_rzKqrW.js +485 -0
- package/widgets/vis-2-widgets-collection/assets/FormControlLabel-CHae4jKA.js +207 -0
- package/widgets/vis-2-widgets-collection/assets/GaugeCollectionWidget-C7OFMKbW.js +2860 -0
- package/widgets/vis-2-widgets-collection/assets/Light2CollectionWidget-C_bjOKZG.js +2733 -0
- package/widgets/vis-2-widgets-collection/assets/RadioGroupCollectionWidget-dntcZhrq.js +538 -0
- package/widgets/vis-2-widgets-collection/assets/SafeImg-DHsE-xU3.js +29 -0
- package/widgets/vis-2-widgets-collection/assets/SelectCollectionWidget-Dh93X-tG.js +2545 -0
- package/widgets/vis-2-widgets-collection/assets/Stack-Dzb7Q6ZE.js +132 -0
- package/widgets/vis-2-widgets-collection/assets/StateCollectionWidget-Cp6J4wqx.js +1610 -0
- package/widgets/vis-2-widgets-collection/assets/SwitchBase-C4gssu33.js +204 -0
- package/widgets/vis-2-widgets-collection/assets/SwitchCollectionWidget-2KPRtnA9.js +572 -0
- package/widgets/vis-2-widgets-collection/assets/_commonjsHelpers-Cpj98o6Y.js +8 -0
- package/widgets/vis-2-widgets-collection/assets/commonFields-Dc3dYGx-.js +20628 -0
- package/widgets/vis-2-widgets-collection/assets/formControlState-Dq1zat_P.js +6 -0
- package/widgets/vis-2-widgets-collection/assets/hostInit-D6momM_S.js +9 -0
- package/widgets/vis-2-widgets-collection/assets/index-B5Qt9EMX.js +18 -0
- package/widgets/vis-2-widgets-collection/assets/index-BEpFHtMA.js +249 -0
- package/widgets/vis-2-widgets-collection/assets/index-DMBzzD-N.js +6098 -0
- package/widgets/vis-2-widgets-collection/assets/listItemTextClasses-DQeLHf2R.js +120 -0
- package/widgets/vis-2-widgets-collection/assets/preload-helper-PPVm8Dsz.js +36 -0
- package/widgets/vis-2-widgets-collection/assets/translations-DXoq3Ras.js +9 -0
- package/widgets/vis-2-widgets-collection/assets/useFormControl--TM4wVzV.js +20 -0
- package/widgets/vis-2-widgets-collection/assets/useHtmlValue-Dcwl_hqT.js +27 -0
- package/widgets/vis-2-widgets-collection/assets/useOidValue-DGq_wsMY.js +35 -0
- package/widgets/vis-2-widgets-collection/assets/virtualExposes-B50cAOvG.js +118 -0
- package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js +45 -0
- package/widgets/vis-2-widgets-collection/assets/vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js +12 -0
- package/widgets/vis-2-widgets-collection/img/prev-collection-checkbox.png +0 -0
- package/widgets/vis-2-widgets-collection/img/prev-collection-dialog.png +0 -0
- package/widgets/vis-2-widgets-collection/img/prev-collection-gauge.png +0 -0
- package/widgets/vis-2-widgets-collection/img/prev-collection-light.png +0 -0
- package/widgets/vis-2-widgets-collection/img/prev-collection-radio-group.png +0 -0
- package/widgets/vis-2-widgets-collection/img/prev-collection-select.png +0 -0
|
@@ -0,0 +1,440 @@
|
|
|
1
|
+
import { c as y, j as a, a as N, g as V, u as W, b as B, U as R, d as H, s as $, i as h, e as G, r as E, m as U, o as w, O as k, C as M, q as J, x as Z, y as Q, v as Y, A as X, E as q, w as j, T as K, z as P, G as ee, H as A, J as te, K as oe, L as ae, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
|
|
2
|
+
import { v as m, __tla as __tla_1 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
|
|
3
|
+
import { u as ie, __tla as __tla_2 } from "./useHtmlValue-Dcwl_hqT.js";
|
|
4
|
+
import { F as le, __tla as __tla_3 } from "./FormControlLabel-CHae4jKA.js";
|
|
5
|
+
import { S as ne, __tla as __tla_4 } from "./SwitchBase-C4gssu33.js";
|
|
6
|
+
import "./_commonjsHelpers-Cpj98o6Y.js";
|
|
7
|
+
import "./vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js";
|
|
8
|
+
import "./formControlState-Dq1zat_P.js";
|
|
9
|
+
import { __tla as __tla_5 } from "./useFormControl--TM4wVzV.js";
|
|
10
|
+
let O;
|
|
11
|
+
let __tla = Promise.all([
|
|
12
|
+
(() => {
|
|
13
|
+
try {
|
|
14
|
+
return __tla_0;
|
|
15
|
+
} catch {
|
|
16
|
+
}
|
|
17
|
+
})(),
|
|
18
|
+
(() => {
|
|
19
|
+
try {
|
|
20
|
+
return __tla_1;
|
|
21
|
+
} catch {
|
|
22
|
+
}
|
|
23
|
+
})(),
|
|
24
|
+
(() => {
|
|
25
|
+
try {
|
|
26
|
+
return __tla_2;
|
|
27
|
+
} catch {
|
|
28
|
+
}
|
|
29
|
+
})(),
|
|
30
|
+
(() => {
|
|
31
|
+
try {
|
|
32
|
+
return __tla_3;
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
})(),
|
|
36
|
+
(() => {
|
|
37
|
+
try {
|
|
38
|
+
return __tla_4;
|
|
39
|
+
} catch {
|
|
40
|
+
}
|
|
41
|
+
})(),
|
|
42
|
+
(() => {
|
|
43
|
+
try {
|
|
44
|
+
return __tla_5;
|
|
45
|
+
} catch {
|
|
46
|
+
}
|
|
47
|
+
})()
|
|
48
|
+
]).then(async () => {
|
|
49
|
+
const se = y(a.jsx("path", {
|
|
50
|
+
d: "M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"
|
|
51
|
+
}), "CheckBoxOutlineBlank"), ce = y(a.jsx("path", {
|
|
52
|
+
d: "M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"
|
|
53
|
+
}), "CheckBox"), re = y(a.jsx("path", {
|
|
54
|
+
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"
|
|
55
|
+
}), "IndeterminateCheckBox");
|
|
56
|
+
function de(e) {
|
|
57
|
+
return V("MuiCheckbox", e);
|
|
58
|
+
}
|
|
59
|
+
const b = N("MuiCheckbox", [
|
|
60
|
+
"root",
|
|
61
|
+
"checked",
|
|
62
|
+
"disabled",
|
|
63
|
+
"indeterminate",
|
|
64
|
+
"colorPrimary",
|
|
65
|
+
"colorSecondary",
|
|
66
|
+
"sizeSmall",
|
|
67
|
+
"sizeMedium"
|
|
68
|
+
]), pe = (e) => {
|
|
69
|
+
const { classes: t, indeterminate: i, color: n, size: s } = e, c = {
|
|
70
|
+
root: [
|
|
71
|
+
"root",
|
|
72
|
+
i && "indeterminate",
|
|
73
|
+
`color${h(n)}`,
|
|
74
|
+
`size${h(s)}`
|
|
75
|
+
]
|
|
76
|
+
}, o = G(c, de, t);
|
|
77
|
+
return {
|
|
78
|
+
...t,
|
|
79
|
+
...o
|
|
80
|
+
};
|
|
81
|
+
}, me = $(ne, {
|
|
82
|
+
shouldForwardProp: (e) => E(e) || e === "classes",
|
|
83
|
+
name: "MuiCheckbox",
|
|
84
|
+
slot: "Root",
|
|
85
|
+
overridesResolver: (e, t) => {
|
|
86
|
+
const { ownerState: i } = e;
|
|
87
|
+
return [
|
|
88
|
+
t.root,
|
|
89
|
+
i.indeterminate && t.indeterminate,
|
|
90
|
+
t[`size${h(i.size)}`],
|
|
91
|
+
i.color !== "default" && t[`color${h(i.color)}`]
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
})(U(({ theme: e }) => ({
|
|
95
|
+
color: (e.vars || e).palette.text.secondary,
|
|
96
|
+
variants: [
|
|
97
|
+
{
|
|
98
|
+
props: {
|
|
99
|
+
color: "default",
|
|
100
|
+
disableRipple: false
|
|
101
|
+
},
|
|
102
|
+
style: {
|
|
103
|
+
"&:hover": {
|
|
104
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})` : w(e.palette.action.active, e.palette.action.hoverOpacity)
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
...Object.entries(e.palette).filter(k()).map(([t]) => ({
|
|
109
|
+
props: {
|
|
110
|
+
color: t,
|
|
111
|
+
disableRipple: false
|
|
112
|
+
},
|
|
113
|
+
style: {
|
|
114
|
+
"&:hover": {
|
|
115
|
+
backgroundColor: e.vars ? `rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})` : w(e.palette[t].main, e.palette.action.hoverOpacity)
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
})),
|
|
119
|
+
...Object.entries(e.palette).filter(k()).map(([t]) => ({
|
|
120
|
+
props: {
|
|
121
|
+
color: t
|
|
122
|
+
},
|
|
123
|
+
style: {
|
|
124
|
+
[`&.${b.checked}, &.${b.indeterminate}`]: {
|
|
125
|
+
color: (e.vars || e).palette[t].main
|
|
126
|
+
},
|
|
127
|
+
[`&.${b.disabled}`]: {
|
|
128
|
+
color: (e.vars || e).palette.action.disabled
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
})),
|
|
132
|
+
{
|
|
133
|
+
props: {
|
|
134
|
+
disableRipple: false
|
|
135
|
+
},
|
|
136
|
+
style: {
|
|
137
|
+
"&:hover": {
|
|
138
|
+
"@media (hover: none)": {
|
|
139
|
+
backgroundColor: "transparent"
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}))), he = a.jsx(ce, {}), ue = a.jsx(se, {}), xe = a.jsx(re, {}), be = m.forwardRef(function(t, i) {
|
|
146
|
+
const n = W({
|
|
147
|
+
props: t,
|
|
148
|
+
name: "MuiCheckbox"
|
|
149
|
+
}), { checkedIcon: s = he, color: c = "primary", icon: o = ue, indeterminate: l = false, indeterminateIcon: d = xe, inputProps: v, size: r = "medium", disableRipple: p = false, className: L, slots: C = {}, slotProps: g = {}, ..._ } = n, I = l ? d : o, S = l ? d : s, u = {
|
|
150
|
+
...n,
|
|
151
|
+
disableRipple: p,
|
|
152
|
+
color: c,
|
|
153
|
+
indeterminate: l,
|
|
154
|
+
size: r
|
|
155
|
+
}, f = pe(u), x = g.input ?? v, [T, F] = B("root", {
|
|
156
|
+
ref: i,
|
|
157
|
+
elementType: me,
|
|
158
|
+
className: H(f.root, L),
|
|
159
|
+
shouldForwardComponentProp: true,
|
|
160
|
+
externalForwardedProps: {
|
|
161
|
+
slots: C,
|
|
162
|
+
slotProps: g,
|
|
163
|
+
..._
|
|
164
|
+
},
|
|
165
|
+
ownerState: u,
|
|
166
|
+
additionalProps: {
|
|
167
|
+
type: "checkbox",
|
|
168
|
+
icon: m.cloneElement(I, {
|
|
169
|
+
fontSize: I.props.fontSize ?? r
|
|
170
|
+
}),
|
|
171
|
+
checkedIcon: m.cloneElement(S, {
|
|
172
|
+
fontSize: S.props.fontSize ?? r
|
|
173
|
+
}),
|
|
174
|
+
disableRipple: p,
|
|
175
|
+
slots: C,
|
|
176
|
+
slotProps: {
|
|
177
|
+
input: R(typeof x == "function" ? x(u) : x, {
|
|
178
|
+
"data-indeterminate": l
|
|
179
|
+
})
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
return a.jsx(T, {
|
|
184
|
+
...F,
|
|
185
|
+
classes: f
|
|
186
|
+
});
|
|
187
|
+
}), ye = () => [
|
|
188
|
+
{
|
|
189
|
+
type: "custom",
|
|
190
|
+
component: () => a.jsx(M, {
|
|
191
|
+
dividerText: "label"
|
|
192
|
+
})
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
name: "withoutLabel",
|
|
196
|
+
label: "without_label",
|
|
197
|
+
type: "checkbox",
|
|
198
|
+
default: false
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
name: "checkboxLabelPlacement",
|
|
202
|
+
label: "checkbox_label_placement",
|
|
203
|
+
type: "select",
|
|
204
|
+
options: [
|
|
205
|
+
{
|
|
206
|
+
value: "top",
|
|
207
|
+
label: "checkbox_top"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
value: "bottom",
|
|
211
|
+
label: "checkbox_bottom"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
value: "start",
|
|
215
|
+
label: "checkbox_start"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
value: "end",
|
|
219
|
+
label: "checkbox_end"
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
default: "end",
|
|
223
|
+
hidden: "data.withoutLabel"
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
type: "custom",
|
|
227
|
+
component: () => a.jsx(M, {})
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
name: "onlyDisplay",
|
|
231
|
+
type: "checkbox",
|
|
232
|
+
label: "only_display",
|
|
233
|
+
disabled: (e) => !e.write,
|
|
234
|
+
default: false,
|
|
235
|
+
hidden: (e) => !e.write
|
|
236
|
+
}
|
|
237
|
+
], z = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xOSAzSDVhMiAyIDAgMCAwLTIgMnYxNGEyIDIgMCAwIDAgMiAyaDE0YTIgMiAwIDAgMCAyLTJWNWEyIDIgMCAwIDAtMi0yem0tOSAxNGwtNS01bDEuNDEtMS40MUwxMCAxNC4xN2w3LjU5LTcuNTlMMTkgOGwtOSA5eiIvPjwvc3ZnPg==", D = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJjdXJyZW50Q29sb3IiIGQ9Ik0xOSA1djE0SDVWNWgxNG0wLTJINWMtMS4xIDAtMiAuOS0yIDJ2MTRjMCAxLjEuOSAyIDIgMmgxNGMxLjEgMCAyLS45IDItMlY1YzAtMS4xLS45LTItMi0yeiIvPjwvc3ZnPg==";
|
|
238
|
+
function ve() {
|
|
239
|
+
const e = m.useContext(J), { widget: t, theme: i } = e, n = t.data.oidObject, { textStyles: s, fontStyles: c } = Z(t.style), { data: o } = Q("oid"), { value: l, updateValue: d } = Y("oid"), r = (n == null ? void 0 : n.type) === "boolean", p = ie(l, t, o);
|
|
240
|
+
return a.jsxs(X, {
|
|
241
|
+
isValidType: r,
|
|
242
|
+
data: o,
|
|
243
|
+
oidValue: l,
|
|
244
|
+
children: [
|
|
245
|
+
a.jsx(q, {
|
|
246
|
+
data: o,
|
|
247
|
+
widget: t
|
|
248
|
+
}),
|
|
249
|
+
a.jsx(j, {
|
|
250
|
+
sx: {
|
|
251
|
+
width: "100%",
|
|
252
|
+
height: "100%",
|
|
253
|
+
display: "flex",
|
|
254
|
+
justifyContent: "center",
|
|
255
|
+
alignItems: "center"
|
|
256
|
+
},
|
|
257
|
+
children: l !== void 0 && a.jsx(le, {
|
|
258
|
+
labelPlacement: t.data.checkboxLabelPlacement,
|
|
259
|
+
sx: {
|
|
260
|
+
width: "100%",
|
|
261
|
+
height: "100%",
|
|
262
|
+
display: "flex",
|
|
263
|
+
"&.MuiFormControlLabel-labelPlacementStart": {
|
|
264
|
+
m: 0
|
|
265
|
+
},
|
|
266
|
+
"&.MuiFormControlLabel-labelPlacementEnd": {
|
|
267
|
+
m: 0
|
|
268
|
+
},
|
|
269
|
+
"&.MuiFormControlLabel-labelPlacementTop": {
|
|
270
|
+
m: 0
|
|
271
|
+
},
|
|
272
|
+
"&.MuiFormControlLabel-labelPlacementBottom": {
|
|
273
|
+
m: 0
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
control: a.jsx(be, {
|
|
277
|
+
disabled: t.data.onlyDisplay,
|
|
278
|
+
disableRipple: true,
|
|
279
|
+
checked: !!l,
|
|
280
|
+
onChange: () => d(!l),
|
|
281
|
+
checkedIcon: a.jsx("img", {
|
|
282
|
+
alt: "",
|
|
283
|
+
src: o.iconActive || z,
|
|
284
|
+
style: {
|
|
285
|
+
width: typeof o.iconSizeOnly == "number" && `calc(100% * ${o.iconSizeOnly} / 100)` || "100%",
|
|
286
|
+
height: typeof o.iconSizeOnly == "number" && `calc(100% * ${o.iconSizeOnly} / 100)` || "100%",
|
|
287
|
+
objectFit: "contain",
|
|
288
|
+
...P(o.iconActive || z, o.iconColorActive || o.iconColor || i.palette.primary.main)
|
|
289
|
+
}
|
|
290
|
+
}),
|
|
291
|
+
icon: a.jsx("img", {
|
|
292
|
+
alt: "",
|
|
293
|
+
src: o.iconActive || D,
|
|
294
|
+
style: {
|
|
295
|
+
width: typeof o.iconSizeOnly == "number" && `calc(100% * ${o.iconSizeOnly} / 100)` || "100%",
|
|
296
|
+
height: typeof o.iconSizeOnly == "number" && `calc(100% * ${o.iconSizeOnly} / 100)` || "100%",
|
|
297
|
+
objectFit: "contain",
|
|
298
|
+
...P(o.iconActive || D, o.iconColorActive || o.iconColor || i.palette.primary.main)
|
|
299
|
+
}
|
|
300
|
+
}),
|
|
301
|
+
sx: {
|
|
302
|
+
width: "100%",
|
|
303
|
+
height: "100%",
|
|
304
|
+
flexGrow: 1,
|
|
305
|
+
p: 0,
|
|
306
|
+
"& .MuiSvgIcon-root": {
|
|
307
|
+
width: "100%",
|
|
308
|
+
height: "100%"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}),
|
|
312
|
+
label: !t.data.withoutLabel && a.jsx(K, {
|
|
313
|
+
component: j,
|
|
314
|
+
variant: "body2",
|
|
315
|
+
sx: {
|
|
316
|
+
...c,
|
|
317
|
+
...s,
|
|
318
|
+
fontSize: o.valueSizeActive || o.valueSize,
|
|
319
|
+
textAlign: "center",
|
|
320
|
+
bgcolor: "transparent",
|
|
321
|
+
color: o.textColorActive || o.textColor,
|
|
322
|
+
textTransform: "none",
|
|
323
|
+
px: 1,
|
|
324
|
+
pl: 0,
|
|
325
|
+
pr: 2,
|
|
326
|
+
width: "100%",
|
|
327
|
+
height: "100%",
|
|
328
|
+
flexGrow: 1,
|
|
329
|
+
display: "flex",
|
|
330
|
+
alignItems: "center",
|
|
331
|
+
justifyContent: "flex-start",
|
|
332
|
+
overflowWrap: "break-word",
|
|
333
|
+
wordBreak: "break-word",
|
|
334
|
+
whiteSpace: "normal",
|
|
335
|
+
hyphens: "auto",
|
|
336
|
+
"& > div": {
|
|
337
|
+
textAlign: "left",
|
|
338
|
+
display: "inline-block"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
dangerouslySetInnerHTML: {
|
|
342
|
+
__html: `<div style="text-align: center; display: inline-block; width: 100%;">${p || ""}</div>`
|
|
343
|
+
}
|
|
344
|
+
})
|
|
345
|
+
})
|
|
346
|
+
})
|
|
347
|
+
]
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
O = class extends ee {
|
|
351
|
+
static getWidgetInfo() {
|
|
352
|
+
return {
|
|
353
|
+
id: "tplCheckboxCollectionWidget",
|
|
354
|
+
visSet: "vis-2-widgets-collection",
|
|
355
|
+
visSetLabel: "widgets_collection",
|
|
356
|
+
visName: "CheckboxCollectionWidget",
|
|
357
|
+
visWidgetLabel: "checkbox_collection_widget",
|
|
358
|
+
visOrder: 1,
|
|
359
|
+
visAttrs: [
|
|
360
|
+
{
|
|
361
|
+
name: "common",
|
|
362
|
+
fields: [
|
|
363
|
+
...A()
|
|
364
|
+
]
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
name: "checkbox",
|
|
368
|
+
label: "group_checkbox",
|
|
369
|
+
fields: [
|
|
370
|
+
...te([
|
|
371
|
+
"boolean"
|
|
372
|
+
]),
|
|
373
|
+
...oe(),
|
|
374
|
+
...ye()
|
|
375
|
+
]
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "values",
|
|
379
|
+
label: "values",
|
|
380
|
+
indexFrom: 1,
|
|
381
|
+
indexTo: "values_count",
|
|
382
|
+
fields: [
|
|
383
|
+
...A({
|
|
384
|
+
groupName: "",
|
|
385
|
+
allFields: false
|
|
386
|
+
})
|
|
387
|
+
]
|
|
388
|
+
}
|
|
389
|
+
],
|
|
390
|
+
visDefaultStyle: {
|
|
391
|
+
width: "100%",
|
|
392
|
+
height: "100px",
|
|
393
|
+
position: "relative"
|
|
394
|
+
},
|
|
395
|
+
visPrev: "widgets/vis-2-widgets-collection/img/prev-collection-checkbox.png"
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
getWidgetInfo() {
|
|
399
|
+
return O.getWidgetInfo();
|
|
400
|
+
}
|
|
401
|
+
propertiesUpdate() {
|
|
402
|
+
}
|
|
403
|
+
onRxDataChanged() {
|
|
404
|
+
this.propertiesUpdate();
|
|
405
|
+
}
|
|
406
|
+
onRxStyleChanged() {
|
|
407
|
+
}
|
|
408
|
+
onStateUpdated(t, i) {
|
|
409
|
+
}
|
|
410
|
+
componentDidMount() {
|
|
411
|
+
super.componentDidMount(), this.propertiesUpdate();
|
|
412
|
+
}
|
|
413
|
+
renderWidgetBody(t) {
|
|
414
|
+
super.renderWidgetBody(t);
|
|
415
|
+
const i = {
|
|
416
|
+
id: t.id,
|
|
417
|
+
refService: t.refService,
|
|
418
|
+
style: t.style,
|
|
419
|
+
widget: {
|
|
420
|
+
data: this.state.rxData,
|
|
421
|
+
style: this.state.rxStyle
|
|
422
|
+
},
|
|
423
|
+
setValue: this.setValue,
|
|
424
|
+
setState: this.setState.bind(this),
|
|
425
|
+
values: this.state.values,
|
|
426
|
+
isSignalVisible: this.isSignalVisible.bind(this),
|
|
427
|
+
getPropertyValue: this.getPropertyValue.bind(this),
|
|
428
|
+
mode: this.props.context.themeType,
|
|
429
|
+
socket: this.props.context.socket,
|
|
430
|
+
theme: this.props.context.theme,
|
|
431
|
+
wrappedContent: this.wrappedCollectionContent
|
|
432
|
+
};
|
|
433
|
+
return t.widget.data.noCard || t.widget.usedInWidget ? this.wrappedCollectionContent = false : this.wrappedCollectionContent = true, ae(this.wrapContent(a.jsx(ve, {})), i);
|
|
434
|
+
}
|
|
435
|
+
};
|
|
436
|
+
});
|
|
437
|
+
export {
|
|
438
|
+
__tla,
|
|
439
|
+
O as default
|
|
440
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c as o, j as s, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
|
|
2
|
+
let e;
|
|
3
|
+
let __tla = Promise.all([
|
|
4
|
+
(() => {
|
|
5
|
+
try {
|
|
6
|
+
return __tla_0;
|
|
7
|
+
} catch {
|
|
8
|
+
}
|
|
9
|
+
})()
|
|
10
|
+
]).then(async () => {
|
|
11
|
+
e = o(s.jsx("path", {
|
|
12
|
+
d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"
|
|
13
|
+
}), "Close");
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
e as C,
|
|
17
|
+
__tla
|
|
18
|
+
};
|