iobroker.vis-2-widgets-collection 2.0.3 → 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 +4 -0
- package/io-package.json +14 -14
- 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,1610 @@
|
|
|
1
|
+
import { c as je, j as a, g as F, a as V, u as B, b as $, s as j, d as R, e as N, m as q, f as De, P as ee, F as te, h as Re, i as H, M as Te, B as Me, T as z, k as Ae, l as re, n as $e, r as Le, o as K, p as oe, t as se, C as ae, q as ie, v as le, w as U, S as Be, I as Ne, D as We, x as Fe, y as Ve, z as _e, A as Oe, E as Ue, G as Ge, H as ne, J as ze, K as He, L as Ee, __tla as __tla_0 } from "./commonFields-Dc3dYGx-.js";
|
|
2
|
+
import { v as i, __tla as __tla_1 } from "./vis2CollectionWidget__loadShare__react__loadShare__-L1bZe9z4.js";
|
|
3
|
+
import { C as Ye, __tla as __tla_2 } from "./Close-APpa6HX8.js";
|
|
4
|
+
import { L as W, g as qe, l as J, a as Xe, __tla as __tla_3 } from "./listItemTextClasses-DQeLHf2R.js";
|
|
5
|
+
import { S as Ke, __tla as __tla_4 } from "./Stack-Dzb7Q6ZE.js";
|
|
6
|
+
import { u as Je, __tla as __tla_5 } from "./useHtmlValue-Dcwl_hqT.js";
|
|
7
|
+
import { B as Qe, __tla as __tla_6 } from "./Button-BK3gDuCC.js";
|
|
8
|
+
import "./_commonjsHelpers-Cpj98o6Y.js";
|
|
9
|
+
import "./vis2CollectionWidget__mf_v__runtimeInit__mf_v__-Cugi9Gwb.js";
|
|
10
|
+
let pe;
|
|
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
|
+
(() => {
|
|
49
|
+
try {
|
|
50
|
+
return __tla_6;
|
|
51
|
+
} catch {
|
|
52
|
+
}
|
|
53
|
+
})()
|
|
54
|
+
]).then(async () => {
|
|
55
|
+
function Ze(t, e) {
|
|
56
|
+
var _a, _b, _c;
|
|
57
|
+
return i.isValidElement(t) && e.indexOf(t.type.muiName ?? ((_c = (_b = (_a = t.type) == null ? void 0 : _a._payload) == null ? void 0 : _b.value) == null ? void 0 : _c.muiName)) !== -1;
|
|
58
|
+
}
|
|
59
|
+
const et = je(a.jsx("path", {
|
|
60
|
+
d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"
|
|
61
|
+
}), "Person");
|
|
62
|
+
function tt(t) {
|
|
63
|
+
return F("MuiAvatar", t);
|
|
64
|
+
}
|
|
65
|
+
V("MuiAvatar", [
|
|
66
|
+
"root",
|
|
67
|
+
"colorDefault",
|
|
68
|
+
"circular",
|
|
69
|
+
"rounded",
|
|
70
|
+
"square",
|
|
71
|
+
"img",
|
|
72
|
+
"fallback"
|
|
73
|
+
]);
|
|
74
|
+
const ot = (t) => {
|
|
75
|
+
const { classes: e, variant: o, colorDefault: n } = t;
|
|
76
|
+
return N({
|
|
77
|
+
root: [
|
|
78
|
+
"root",
|
|
79
|
+
o,
|
|
80
|
+
n && "colorDefault"
|
|
81
|
+
],
|
|
82
|
+
img: [
|
|
83
|
+
"img"
|
|
84
|
+
],
|
|
85
|
+
fallback: [
|
|
86
|
+
"fallback"
|
|
87
|
+
]
|
|
88
|
+
}, tt, e);
|
|
89
|
+
}, st = j("div", {
|
|
90
|
+
name: "MuiAvatar",
|
|
91
|
+
slot: "Root",
|
|
92
|
+
overridesResolver: (t, e) => {
|
|
93
|
+
const { ownerState: o } = t;
|
|
94
|
+
return [
|
|
95
|
+
e.root,
|
|
96
|
+
e[o.variant],
|
|
97
|
+
o.colorDefault && e.colorDefault
|
|
98
|
+
];
|
|
99
|
+
}
|
|
100
|
+
})(q(({ theme: t }) => ({
|
|
101
|
+
position: "relative",
|
|
102
|
+
display: "flex",
|
|
103
|
+
alignItems: "center",
|
|
104
|
+
justifyContent: "center",
|
|
105
|
+
flexShrink: 0,
|
|
106
|
+
width: 40,
|
|
107
|
+
height: 40,
|
|
108
|
+
fontFamily: t.typography.fontFamily,
|
|
109
|
+
fontSize: t.typography.pxToRem(20),
|
|
110
|
+
lineHeight: 1,
|
|
111
|
+
borderRadius: "50%",
|
|
112
|
+
overflow: "hidden",
|
|
113
|
+
userSelect: "none",
|
|
114
|
+
variants: [
|
|
115
|
+
{
|
|
116
|
+
props: {
|
|
117
|
+
variant: "rounded"
|
|
118
|
+
},
|
|
119
|
+
style: {
|
|
120
|
+
borderRadius: (t.vars || t).shape.borderRadius
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
props: {
|
|
125
|
+
variant: "square"
|
|
126
|
+
},
|
|
127
|
+
style: {
|
|
128
|
+
borderRadius: 0
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
props: {
|
|
133
|
+
colorDefault: true
|
|
134
|
+
},
|
|
135
|
+
style: {
|
|
136
|
+
color: (t.vars || t).palette.background.default,
|
|
137
|
+
...t.vars ? {
|
|
138
|
+
backgroundColor: t.vars.palette.Avatar.defaultBg
|
|
139
|
+
} : {
|
|
140
|
+
backgroundColor: t.palette.grey[400],
|
|
141
|
+
...t.applyStyles("dark", {
|
|
142
|
+
backgroundColor: t.palette.grey[600]
|
|
143
|
+
})
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
]
|
|
148
|
+
}))), at = j("img", {
|
|
149
|
+
name: "MuiAvatar",
|
|
150
|
+
slot: "Img",
|
|
151
|
+
overridesResolver: (t, e) => e.img
|
|
152
|
+
})({
|
|
153
|
+
width: "100%",
|
|
154
|
+
height: "100%",
|
|
155
|
+
textAlign: "center",
|
|
156
|
+
objectFit: "cover",
|
|
157
|
+
color: "transparent",
|
|
158
|
+
textIndent: 1e4
|
|
159
|
+
}), nt = j(et, {
|
|
160
|
+
name: "MuiAvatar",
|
|
161
|
+
slot: "Fallback",
|
|
162
|
+
overridesResolver: (t, e) => e.fallback
|
|
163
|
+
})({
|
|
164
|
+
width: "75%",
|
|
165
|
+
height: "75%"
|
|
166
|
+
});
|
|
167
|
+
function rt({ crossOrigin: t, referrerPolicy: e, src: o, srcSet: n }) {
|
|
168
|
+
const [l, s] = i.useState(false);
|
|
169
|
+
return i.useEffect(() => {
|
|
170
|
+
if (!o && !n) return;
|
|
171
|
+
s(false);
|
|
172
|
+
let c = true;
|
|
173
|
+
const r = new Image();
|
|
174
|
+
return r.onload = () => {
|
|
175
|
+
c && s("loaded");
|
|
176
|
+
}, r.onerror = () => {
|
|
177
|
+
c && s("error");
|
|
178
|
+
}, r.crossOrigin = t, r.referrerPolicy = e, r.src = o, n && (r.srcset = n), () => {
|
|
179
|
+
c = false;
|
|
180
|
+
};
|
|
181
|
+
}, [
|
|
182
|
+
t,
|
|
183
|
+
e,
|
|
184
|
+
o,
|
|
185
|
+
n
|
|
186
|
+
]), l;
|
|
187
|
+
}
|
|
188
|
+
const it = i.forwardRef(function(e, o) {
|
|
189
|
+
const n = B({
|
|
190
|
+
props: e,
|
|
191
|
+
name: "MuiAvatar"
|
|
192
|
+
}), { alt: l, children: s, className: c, component: r = "div", slots: d = {}, slotProps: v = {}, imgProps: k, sizes: C, src: y, srcSet: x, variant: S = "circular", ...P } = n;
|
|
193
|
+
let m = null;
|
|
194
|
+
const u = {
|
|
195
|
+
...n,
|
|
196
|
+
component: r,
|
|
197
|
+
variant: S
|
|
198
|
+
}, w = rt({
|
|
199
|
+
...k,
|
|
200
|
+
...typeof v.img == "function" ? v.img(u) : v.img,
|
|
201
|
+
src: y,
|
|
202
|
+
srcSet: x
|
|
203
|
+
}), b = y || x, f = b && w !== "error";
|
|
204
|
+
u.colorDefault = !f, delete u.ownerState;
|
|
205
|
+
const p = ot(u), [g, h] = $("img", {
|
|
206
|
+
className: p.img,
|
|
207
|
+
elementType: at,
|
|
208
|
+
externalForwardedProps: {
|
|
209
|
+
slots: d,
|
|
210
|
+
slotProps: {
|
|
211
|
+
img: {
|
|
212
|
+
...k,
|
|
213
|
+
...v.img
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
additionalProps: {
|
|
218
|
+
alt: l,
|
|
219
|
+
src: y,
|
|
220
|
+
srcSet: x,
|
|
221
|
+
sizes: C
|
|
222
|
+
},
|
|
223
|
+
ownerState: u
|
|
224
|
+
});
|
|
225
|
+
return f ? m = a.jsx(g, {
|
|
226
|
+
...h
|
|
227
|
+
}) : s || s === 0 ? m = s : b && l ? m = l[0] : m = a.jsx(nt, {
|
|
228
|
+
ownerState: u,
|
|
229
|
+
className: p.fallback
|
|
230
|
+
}), a.jsx(st, {
|
|
231
|
+
as: r,
|
|
232
|
+
className: R(p.root, c),
|
|
233
|
+
ref: o,
|
|
234
|
+
...P,
|
|
235
|
+
ownerState: u,
|
|
236
|
+
children: m
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
function lt(t) {
|
|
240
|
+
return F("MuiDialog", t);
|
|
241
|
+
}
|
|
242
|
+
const Z = V("MuiDialog", [
|
|
243
|
+
"root",
|
|
244
|
+
"scrollPaper",
|
|
245
|
+
"scrollBody",
|
|
246
|
+
"container",
|
|
247
|
+
"paper",
|
|
248
|
+
"paperScrollPaper",
|
|
249
|
+
"paperScrollBody",
|
|
250
|
+
"paperWidthFalse",
|
|
251
|
+
"paperWidthXs",
|
|
252
|
+
"paperWidthSm",
|
|
253
|
+
"paperWidthMd",
|
|
254
|
+
"paperWidthLg",
|
|
255
|
+
"paperWidthXl",
|
|
256
|
+
"paperFullWidth",
|
|
257
|
+
"paperFullScreen"
|
|
258
|
+
]), ce = i.createContext({}), ct = j(Me, {
|
|
259
|
+
name: "MuiDialog",
|
|
260
|
+
slot: "Backdrop",
|
|
261
|
+
overrides: (t, e) => e.backdrop
|
|
262
|
+
})({
|
|
263
|
+
zIndex: -1
|
|
264
|
+
}), dt = (t) => {
|
|
265
|
+
const { classes: e, scroll: o, maxWidth: n, fullWidth: l, fullScreen: s } = t, c = {
|
|
266
|
+
root: [
|
|
267
|
+
"root"
|
|
268
|
+
],
|
|
269
|
+
container: [
|
|
270
|
+
"container",
|
|
271
|
+
`scroll${H(o)}`
|
|
272
|
+
],
|
|
273
|
+
paper: [
|
|
274
|
+
"paper",
|
|
275
|
+
`paperScroll${H(o)}`,
|
|
276
|
+
`paperWidth${H(String(n))}`,
|
|
277
|
+
l && "paperFullWidth",
|
|
278
|
+
s && "paperFullScreen"
|
|
279
|
+
]
|
|
280
|
+
};
|
|
281
|
+
return N(c, lt, e);
|
|
282
|
+
}, pt = j(Te, {
|
|
283
|
+
name: "MuiDialog",
|
|
284
|
+
slot: "Root",
|
|
285
|
+
overridesResolver: (t, e) => e.root
|
|
286
|
+
})({
|
|
287
|
+
"@media print": {
|
|
288
|
+
position: "absolute !important"
|
|
289
|
+
}
|
|
290
|
+
}), ut = j("div", {
|
|
291
|
+
name: "MuiDialog",
|
|
292
|
+
slot: "Container",
|
|
293
|
+
overridesResolver: (t, e) => {
|
|
294
|
+
const { ownerState: o } = t;
|
|
295
|
+
return [
|
|
296
|
+
e.container,
|
|
297
|
+
e[`scroll${H(o.scroll)}`]
|
|
298
|
+
];
|
|
299
|
+
}
|
|
300
|
+
})({
|
|
301
|
+
height: "100%",
|
|
302
|
+
"@media print": {
|
|
303
|
+
height: "auto"
|
|
304
|
+
},
|
|
305
|
+
outline: 0,
|
|
306
|
+
variants: [
|
|
307
|
+
{
|
|
308
|
+
props: {
|
|
309
|
+
scroll: "paper"
|
|
310
|
+
},
|
|
311
|
+
style: {
|
|
312
|
+
display: "flex",
|
|
313
|
+
justifyContent: "center",
|
|
314
|
+
alignItems: "center"
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
props: {
|
|
319
|
+
scroll: "body"
|
|
320
|
+
},
|
|
321
|
+
style: {
|
|
322
|
+
overflowY: "auto",
|
|
323
|
+
overflowX: "hidden",
|
|
324
|
+
textAlign: "center",
|
|
325
|
+
"&::after": {
|
|
326
|
+
content: '""',
|
|
327
|
+
display: "inline-block",
|
|
328
|
+
verticalAlign: "middle",
|
|
329
|
+
height: "100%",
|
|
330
|
+
width: "0"
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
]
|
|
335
|
+
}), mt = j(ee, {
|
|
336
|
+
name: "MuiDialog",
|
|
337
|
+
slot: "Paper",
|
|
338
|
+
overridesResolver: (t, e) => {
|
|
339
|
+
const { ownerState: o } = t;
|
|
340
|
+
return [
|
|
341
|
+
e.paper,
|
|
342
|
+
e[`scrollPaper${H(o.scroll)}`],
|
|
343
|
+
e[`paperWidth${H(String(o.maxWidth))}`],
|
|
344
|
+
o.fullWidth && e.paperFullWidth,
|
|
345
|
+
o.fullScreen && e.paperFullScreen
|
|
346
|
+
];
|
|
347
|
+
}
|
|
348
|
+
})(q(({ theme: t }) => ({
|
|
349
|
+
margin: 32,
|
|
350
|
+
position: "relative",
|
|
351
|
+
overflowY: "auto",
|
|
352
|
+
"@media print": {
|
|
353
|
+
overflowY: "visible",
|
|
354
|
+
boxShadow: "none"
|
|
355
|
+
},
|
|
356
|
+
variants: [
|
|
357
|
+
{
|
|
358
|
+
props: {
|
|
359
|
+
scroll: "paper"
|
|
360
|
+
},
|
|
361
|
+
style: {
|
|
362
|
+
display: "flex",
|
|
363
|
+
flexDirection: "column",
|
|
364
|
+
maxHeight: "calc(100% - 64px)"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
props: {
|
|
369
|
+
scroll: "body"
|
|
370
|
+
},
|
|
371
|
+
style: {
|
|
372
|
+
display: "inline-block",
|
|
373
|
+
verticalAlign: "middle",
|
|
374
|
+
textAlign: "initial"
|
|
375
|
+
}
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
props: ({ ownerState: e }) => !e.maxWidth,
|
|
379
|
+
style: {
|
|
380
|
+
maxWidth: "calc(100% - 64px)"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
props: {
|
|
385
|
+
maxWidth: "xs"
|
|
386
|
+
},
|
|
387
|
+
style: {
|
|
388
|
+
maxWidth: t.breakpoints.unit === "px" ? Math.max(t.breakpoints.values.xs, 444) : `max(${t.breakpoints.values.xs}${t.breakpoints.unit}, 444px)`,
|
|
389
|
+
[`&.${Z.paperScrollBody}`]: {
|
|
390
|
+
[t.breakpoints.down(Math.max(t.breakpoints.values.xs, 444) + 64)]: {
|
|
391
|
+
maxWidth: "calc(100% - 64px)"
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
},
|
|
396
|
+
...Object.keys(t.breakpoints.values).filter((e) => e !== "xs").map((e) => ({
|
|
397
|
+
props: {
|
|
398
|
+
maxWidth: e
|
|
399
|
+
},
|
|
400
|
+
style: {
|
|
401
|
+
maxWidth: `${t.breakpoints.values[e]}${t.breakpoints.unit}`,
|
|
402
|
+
[`&.${Z.paperScrollBody}`]: {
|
|
403
|
+
[t.breakpoints.down(t.breakpoints.values[e] + 64)]: {
|
|
404
|
+
maxWidth: "calc(100% - 64px)"
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
})),
|
|
409
|
+
{
|
|
410
|
+
props: ({ ownerState: e }) => e.fullWidth,
|
|
411
|
+
style: {
|
|
412
|
+
width: "calc(100% - 64px)"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
{
|
|
416
|
+
props: ({ ownerState: e }) => e.fullScreen,
|
|
417
|
+
style: {
|
|
418
|
+
margin: 0,
|
|
419
|
+
width: "100%",
|
|
420
|
+
maxWidth: "100%",
|
|
421
|
+
height: "100%",
|
|
422
|
+
maxHeight: "none",
|
|
423
|
+
borderRadius: 0,
|
|
424
|
+
[`&.${Z.paperScrollBody}`]: {
|
|
425
|
+
margin: 0,
|
|
426
|
+
maxWidth: "100%"
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
]
|
|
431
|
+
}))), gt = i.forwardRef(function(e, o) {
|
|
432
|
+
const n = B({
|
|
433
|
+
props: e,
|
|
434
|
+
name: "MuiDialog"
|
|
435
|
+
}), l = De(), s = {
|
|
436
|
+
enter: l.transitions.duration.enteringScreen,
|
|
437
|
+
exit: l.transitions.duration.leavingScreen
|
|
438
|
+
}, { "aria-describedby": c, "aria-labelledby": r, "aria-modal": d = true, BackdropComponent: v, BackdropProps: k, children: C, className: y, disableEscapeKeyDown: x = false, fullScreen: S = false, fullWidth: P = false, maxWidth: m = "sm", onBackdropClick: u, onClick: w, onClose: b, open: f, PaperComponent: p = ee, PaperProps: g = {}, scroll: h = "paper", slots: I = {}, slotProps: M = {}, TransitionComponent: L = te, transitionDuration: E = s, TransitionProps: X, ..._ } = n, D = {
|
|
439
|
+
...n,
|
|
440
|
+
disableEscapeKeyDown: x,
|
|
441
|
+
fullScreen: S,
|
|
442
|
+
fullWidth: P,
|
|
443
|
+
maxWidth: m,
|
|
444
|
+
scroll: h
|
|
445
|
+
}, A = dt(D), T = i.useRef(), ue = (O) => {
|
|
446
|
+
T.current = O.target === O.currentTarget;
|
|
447
|
+
}, me = (O) => {
|
|
448
|
+
w && w(O), T.current && (T.current = null, u && u(O), b && b(O, "backdropClick"));
|
|
449
|
+
}, Q = Re(r), ge = i.useMemo(() => ({
|
|
450
|
+
titleId: Q
|
|
451
|
+
}), [
|
|
452
|
+
Q
|
|
453
|
+
]), ve = {
|
|
454
|
+
transition: L,
|
|
455
|
+
...I
|
|
456
|
+
}, ye = {
|
|
457
|
+
transition: X,
|
|
458
|
+
paper: g,
|
|
459
|
+
backdrop: k,
|
|
460
|
+
...M
|
|
461
|
+
}, Y = {
|
|
462
|
+
slots: ve,
|
|
463
|
+
slotProps: ye
|
|
464
|
+
}, [fe, xe] = $("root", {
|
|
465
|
+
elementType: pt,
|
|
466
|
+
shouldForwardComponentProp: true,
|
|
467
|
+
externalForwardedProps: Y,
|
|
468
|
+
ownerState: D,
|
|
469
|
+
className: R(A.root, y),
|
|
470
|
+
ref: o
|
|
471
|
+
}), [be, he] = $("backdrop", {
|
|
472
|
+
elementType: ct,
|
|
473
|
+
shouldForwardComponentProp: true,
|
|
474
|
+
externalForwardedProps: Y,
|
|
475
|
+
ownerState: D
|
|
476
|
+
}), [Ce, Se] = $("paper", {
|
|
477
|
+
elementType: mt,
|
|
478
|
+
shouldForwardComponentProp: true,
|
|
479
|
+
externalForwardedProps: Y,
|
|
480
|
+
ownerState: D,
|
|
481
|
+
className: R(A.paper, g.className)
|
|
482
|
+
}), [ke, we] = $("container", {
|
|
483
|
+
elementType: ut,
|
|
484
|
+
externalForwardedProps: Y,
|
|
485
|
+
ownerState: D,
|
|
486
|
+
className: R(A.container)
|
|
487
|
+
}), [Ie, Pe] = $("transition", {
|
|
488
|
+
elementType: te,
|
|
489
|
+
externalForwardedProps: Y,
|
|
490
|
+
ownerState: D,
|
|
491
|
+
additionalProps: {
|
|
492
|
+
appear: true,
|
|
493
|
+
in: f,
|
|
494
|
+
timeout: E,
|
|
495
|
+
role: "presentation"
|
|
496
|
+
}
|
|
497
|
+
});
|
|
498
|
+
return a.jsx(fe, {
|
|
499
|
+
closeAfterTransition: true,
|
|
500
|
+
slots: {
|
|
501
|
+
backdrop: be
|
|
502
|
+
},
|
|
503
|
+
slotProps: {
|
|
504
|
+
backdrop: {
|
|
505
|
+
transitionDuration: E,
|
|
506
|
+
as: v,
|
|
507
|
+
...he
|
|
508
|
+
}
|
|
509
|
+
},
|
|
510
|
+
disableEscapeKeyDown: x,
|
|
511
|
+
onClose: b,
|
|
512
|
+
open: f,
|
|
513
|
+
onClick: me,
|
|
514
|
+
...xe,
|
|
515
|
+
..._,
|
|
516
|
+
children: a.jsx(Ie, {
|
|
517
|
+
...Pe,
|
|
518
|
+
children: a.jsx(ke, {
|
|
519
|
+
onMouseDown: ue,
|
|
520
|
+
...we,
|
|
521
|
+
children: a.jsx(Ce, {
|
|
522
|
+
as: p,
|
|
523
|
+
elevation: 24,
|
|
524
|
+
role: "dialog",
|
|
525
|
+
"aria-describedby": c,
|
|
526
|
+
"aria-labelledby": Q,
|
|
527
|
+
"aria-modal": d,
|
|
528
|
+
...Se,
|
|
529
|
+
children: a.jsx(ce.Provider, {
|
|
530
|
+
value: ge,
|
|
531
|
+
children: C
|
|
532
|
+
})
|
|
533
|
+
})
|
|
534
|
+
})
|
|
535
|
+
})
|
|
536
|
+
});
|
|
537
|
+
});
|
|
538
|
+
function vt(t) {
|
|
539
|
+
return F("MuiDialogContent", t);
|
|
540
|
+
}
|
|
541
|
+
V("MuiDialogContent", [
|
|
542
|
+
"root",
|
|
543
|
+
"dividers"
|
|
544
|
+
]);
|
|
545
|
+
function yt(t) {
|
|
546
|
+
return F("MuiDialogTitle", t);
|
|
547
|
+
}
|
|
548
|
+
const ft = V("MuiDialogTitle", [
|
|
549
|
+
"root"
|
|
550
|
+
]), xt = (t) => {
|
|
551
|
+
const { classes: e, dividers: o } = t;
|
|
552
|
+
return N({
|
|
553
|
+
root: [
|
|
554
|
+
"root",
|
|
555
|
+
o && "dividers"
|
|
556
|
+
]
|
|
557
|
+
}, vt, e);
|
|
558
|
+
}, bt = j("div", {
|
|
559
|
+
name: "MuiDialogContent",
|
|
560
|
+
slot: "Root",
|
|
561
|
+
overridesResolver: (t, e) => {
|
|
562
|
+
const { ownerState: o } = t;
|
|
563
|
+
return [
|
|
564
|
+
e.root,
|
|
565
|
+
o.dividers && e.dividers
|
|
566
|
+
];
|
|
567
|
+
}
|
|
568
|
+
})(q(({ theme: t }) => ({
|
|
569
|
+
flex: "1 1 auto",
|
|
570
|
+
WebkitOverflowScrolling: "touch",
|
|
571
|
+
overflowY: "auto",
|
|
572
|
+
padding: "20px 24px",
|
|
573
|
+
variants: [
|
|
574
|
+
{
|
|
575
|
+
props: ({ ownerState: e }) => e.dividers,
|
|
576
|
+
style: {
|
|
577
|
+
padding: "16px 24px",
|
|
578
|
+
borderTop: `1px solid ${(t.vars || t).palette.divider}`,
|
|
579
|
+
borderBottom: `1px solid ${(t.vars || t).palette.divider}`
|
|
580
|
+
}
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
props: ({ ownerState: e }) => !e.dividers,
|
|
584
|
+
style: {
|
|
585
|
+
[`.${ft.root} + &`]: {
|
|
586
|
+
paddingTop: 0
|
|
587
|
+
}
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
]
|
|
591
|
+
}))), ht = i.forwardRef(function(e, o) {
|
|
592
|
+
const n = B({
|
|
593
|
+
props: e,
|
|
594
|
+
name: "MuiDialogContent"
|
|
595
|
+
}), { className: l, dividers: s = false, ...c } = n, r = {
|
|
596
|
+
...n,
|
|
597
|
+
dividers: s
|
|
598
|
+
}, d = xt(r);
|
|
599
|
+
return a.jsx(bt, {
|
|
600
|
+
className: R(d.root, l),
|
|
601
|
+
ownerState: r,
|
|
602
|
+
ref: o,
|
|
603
|
+
...c
|
|
604
|
+
});
|
|
605
|
+
}), Ct = (t) => {
|
|
606
|
+
const { classes: e } = t;
|
|
607
|
+
return N({
|
|
608
|
+
root: [
|
|
609
|
+
"root"
|
|
610
|
+
]
|
|
611
|
+
}, yt, e);
|
|
612
|
+
}, St = j(z, {
|
|
613
|
+
name: "MuiDialogTitle",
|
|
614
|
+
slot: "Root",
|
|
615
|
+
overridesResolver: (t, e) => e.root
|
|
616
|
+
})({
|
|
617
|
+
padding: "16px 24px",
|
|
618
|
+
flex: "0 0 auto"
|
|
619
|
+
}), kt = i.forwardRef(function(e, o) {
|
|
620
|
+
const n = B({
|
|
621
|
+
props: e,
|
|
622
|
+
name: "MuiDialogTitle"
|
|
623
|
+
}), { className: l, id: s, ...c } = n, r = n, d = Ct(r), { titleId: v = s } = i.useContext(ce);
|
|
624
|
+
return a.jsx(St, {
|
|
625
|
+
component: "h2",
|
|
626
|
+
className: R(d.root, l),
|
|
627
|
+
ownerState: r,
|
|
628
|
+
ref: o,
|
|
629
|
+
variant: "h6",
|
|
630
|
+
id: s ?? v,
|
|
631
|
+
...c
|
|
632
|
+
});
|
|
633
|
+
});
|
|
634
|
+
function wt(t) {
|
|
635
|
+
return F("MuiListItem", t);
|
|
636
|
+
}
|
|
637
|
+
V("MuiListItem", [
|
|
638
|
+
"root",
|
|
639
|
+
"container",
|
|
640
|
+
"dense",
|
|
641
|
+
"alignItemsFlexStart",
|
|
642
|
+
"divider",
|
|
643
|
+
"gutters",
|
|
644
|
+
"padding",
|
|
645
|
+
"secondaryAction"
|
|
646
|
+
]);
|
|
647
|
+
function It(t) {
|
|
648
|
+
return F("MuiListItemButton", t);
|
|
649
|
+
}
|
|
650
|
+
const G = V("MuiListItemButton", [
|
|
651
|
+
"root",
|
|
652
|
+
"focusVisible",
|
|
653
|
+
"dense",
|
|
654
|
+
"alignItemsFlexStart",
|
|
655
|
+
"disabled",
|
|
656
|
+
"divider",
|
|
657
|
+
"gutters",
|
|
658
|
+
"selected"
|
|
659
|
+
]), Pt = (t, e) => {
|
|
660
|
+
const { ownerState: o } = t;
|
|
661
|
+
return [
|
|
662
|
+
e.root,
|
|
663
|
+
o.dense && e.dense,
|
|
664
|
+
o.alignItems === "flex-start" && e.alignItemsFlexStart,
|
|
665
|
+
o.divider && e.divider,
|
|
666
|
+
!o.disableGutters && e.gutters
|
|
667
|
+
];
|
|
668
|
+
}, jt = (t) => {
|
|
669
|
+
const { alignItems: e, classes: o, dense: n, disabled: l, disableGutters: s, divider: c, selected: r } = t, v = N({
|
|
670
|
+
root: [
|
|
671
|
+
"root",
|
|
672
|
+
n && "dense",
|
|
673
|
+
!s && "gutters",
|
|
674
|
+
c && "divider",
|
|
675
|
+
l && "disabled",
|
|
676
|
+
e === "flex-start" && "alignItemsFlexStart",
|
|
677
|
+
r && "selected"
|
|
678
|
+
]
|
|
679
|
+
}, It, o);
|
|
680
|
+
return {
|
|
681
|
+
...o,
|
|
682
|
+
...v
|
|
683
|
+
};
|
|
684
|
+
}, Dt = j($e, {
|
|
685
|
+
shouldForwardProp: (t) => Le(t) || t === "classes",
|
|
686
|
+
name: "MuiListItemButton",
|
|
687
|
+
slot: "Root",
|
|
688
|
+
overridesResolver: Pt
|
|
689
|
+
})(q(({ theme: t }) => ({
|
|
690
|
+
display: "flex",
|
|
691
|
+
flexGrow: 1,
|
|
692
|
+
justifyContent: "flex-start",
|
|
693
|
+
alignItems: "center",
|
|
694
|
+
position: "relative",
|
|
695
|
+
textDecoration: "none",
|
|
696
|
+
minWidth: 0,
|
|
697
|
+
boxSizing: "border-box",
|
|
698
|
+
textAlign: "left",
|
|
699
|
+
paddingTop: 8,
|
|
700
|
+
paddingBottom: 8,
|
|
701
|
+
transition: t.transitions.create("background-color", {
|
|
702
|
+
duration: t.transitions.duration.shortest
|
|
703
|
+
}),
|
|
704
|
+
"&:hover": {
|
|
705
|
+
textDecoration: "none",
|
|
706
|
+
backgroundColor: (t.vars || t).palette.action.hover,
|
|
707
|
+
"@media (hover: none)": {
|
|
708
|
+
backgroundColor: "transparent"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
[`&.${G.selected}`]: {
|
|
712
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : K(t.palette.primary.main, t.palette.action.selectedOpacity),
|
|
713
|
+
[`&.${G.focusVisible}`]: {
|
|
714
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))` : K(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.focusOpacity)
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
[`&.${G.selected}:hover`]: {
|
|
718
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))` : K(t.palette.primary.main, t.palette.action.selectedOpacity + t.palette.action.hoverOpacity),
|
|
719
|
+
"@media (hover: none)": {
|
|
720
|
+
backgroundColor: t.vars ? `rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})` : K(t.palette.primary.main, t.palette.action.selectedOpacity)
|
|
721
|
+
}
|
|
722
|
+
},
|
|
723
|
+
[`&.${G.focusVisible}`]: {
|
|
724
|
+
backgroundColor: (t.vars || t).palette.action.focus
|
|
725
|
+
},
|
|
726
|
+
[`&.${G.disabled}`]: {
|
|
727
|
+
opacity: (t.vars || t).palette.action.disabledOpacity
|
|
728
|
+
},
|
|
729
|
+
variants: [
|
|
730
|
+
{
|
|
731
|
+
props: ({ ownerState: e }) => e.divider,
|
|
732
|
+
style: {
|
|
733
|
+
borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
|
|
734
|
+
backgroundClip: "padding-box"
|
|
735
|
+
}
|
|
736
|
+
},
|
|
737
|
+
{
|
|
738
|
+
props: {
|
|
739
|
+
alignItems: "flex-start"
|
|
740
|
+
},
|
|
741
|
+
style: {
|
|
742
|
+
alignItems: "flex-start"
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
props: ({ ownerState: e }) => !e.disableGutters,
|
|
747
|
+
style: {
|
|
748
|
+
paddingLeft: 16,
|
|
749
|
+
paddingRight: 16
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
props: ({ ownerState: e }) => e.dense,
|
|
754
|
+
style: {
|
|
755
|
+
paddingTop: 4,
|
|
756
|
+
paddingBottom: 4
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
]
|
|
760
|
+
}))), Rt = i.forwardRef(function(e, o) {
|
|
761
|
+
const n = B({
|
|
762
|
+
props: e,
|
|
763
|
+
name: "MuiListItemButton"
|
|
764
|
+
}), { alignItems: l = "center", autoFocus: s = false, component: c = "div", children: r, dense: d = false, disableGutters: v = false, divider: k = false, focusVisibleClassName: C, selected: y = false, className: x, ...S } = n, P = i.useContext(W), m = i.useMemo(() => ({
|
|
765
|
+
dense: d || P.dense || false,
|
|
766
|
+
alignItems: l,
|
|
767
|
+
disableGutters: v
|
|
768
|
+
}), [
|
|
769
|
+
l,
|
|
770
|
+
P.dense,
|
|
771
|
+
d,
|
|
772
|
+
v
|
|
773
|
+
]), u = i.useRef(null);
|
|
774
|
+
Ae(() => {
|
|
775
|
+
s && u.current && u.current.focus();
|
|
776
|
+
}, [
|
|
777
|
+
s
|
|
778
|
+
]);
|
|
779
|
+
const w = {
|
|
780
|
+
...n,
|
|
781
|
+
alignItems: l,
|
|
782
|
+
dense: m.dense,
|
|
783
|
+
disableGutters: v,
|
|
784
|
+
divider: k,
|
|
785
|
+
selected: y
|
|
786
|
+
}, b = jt(w), f = re(u, o);
|
|
787
|
+
return a.jsx(W.Provider, {
|
|
788
|
+
value: m,
|
|
789
|
+
children: a.jsx(Dt, {
|
|
790
|
+
ref: f,
|
|
791
|
+
href: S.href || S.to,
|
|
792
|
+
component: (S.href || S.to) && c === "div" ? "button" : c,
|
|
793
|
+
focusVisibleClassName: R(b.focusVisible, C),
|
|
794
|
+
ownerState: w,
|
|
795
|
+
className: R(b.root, x),
|
|
796
|
+
...S,
|
|
797
|
+
classes: b,
|
|
798
|
+
children: r
|
|
799
|
+
})
|
|
800
|
+
});
|
|
801
|
+
});
|
|
802
|
+
function Tt(t) {
|
|
803
|
+
return F("MuiListItemSecondaryAction", t);
|
|
804
|
+
}
|
|
805
|
+
V("MuiListItemSecondaryAction", [
|
|
806
|
+
"root",
|
|
807
|
+
"disableGutters"
|
|
808
|
+
]);
|
|
809
|
+
const Mt = (t) => {
|
|
810
|
+
const { disableGutters: e, classes: o } = t;
|
|
811
|
+
return N({
|
|
812
|
+
root: [
|
|
813
|
+
"root",
|
|
814
|
+
e && "disableGutters"
|
|
815
|
+
]
|
|
816
|
+
}, Tt, o);
|
|
817
|
+
}, At = j("div", {
|
|
818
|
+
name: "MuiListItemSecondaryAction",
|
|
819
|
+
slot: "Root",
|
|
820
|
+
overridesResolver: (t, e) => {
|
|
821
|
+
const { ownerState: o } = t;
|
|
822
|
+
return [
|
|
823
|
+
e.root,
|
|
824
|
+
o.disableGutters && e.disableGutters
|
|
825
|
+
];
|
|
826
|
+
}
|
|
827
|
+
})({
|
|
828
|
+
position: "absolute",
|
|
829
|
+
right: 16,
|
|
830
|
+
top: "50%",
|
|
831
|
+
transform: "translateY(-50%)",
|
|
832
|
+
variants: [
|
|
833
|
+
{
|
|
834
|
+
props: ({ ownerState: t }) => t.disableGutters,
|
|
835
|
+
style: {
|
|
836
|
+
right: 0
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
]
|
|
840
|
+
}), de = i.forwardRef(function(e, o) {
|
|
841
|
+
const n = B({
|
|
842
|
+
props: e,
|
|
843
|
+
name: "MuiListItemSecondaryAction"
|
|
844
|
+
}), { className: l, ...s } = n, c = i.useContext(W), r = {
|
|
845
|
+
...n,
|
|
846
|
+
disableGutters: c.disableGutters
|
|
847
|
+
}, d = Mt(r);
|
|
848
|
+
return a.jsx(At, {
|
|
849
|
+
className: R(d.root, l),
|
|
850
|
+
ownerState: r,
|
|
851
|
+
ref: o,
|
|
852
|
+
...s
|
|
853
|
+
});
|
|
854
|
+
});
|
|
855
|
+
de.muiName = "ListItemSecondaryAction";
|
|
856
|
+
const $t = (t, e) => {
|
|
857
|
+
const { ownerState: o } = t;
|
|
858
|
+
return [
|
|
859
|
+
e.root,
|
|
860
|
+
o.dense && e.dense,
|
|
861
|
+
o.alignItems === "flex-start" && e.alignItemsFlexStart,
|
|
862
|
+
o.divider && e.divider,
|
|
863
|
+
!o.disableGutters && e.gutters,
|
|
864
|
+
!o.disablePadding && e.padding,
|
|
865
|
+
o.hasSecondaryAction && e.secondaryAction
|
|
866
|
+
];
|
|
867
|
+
}, Lt = (t) => {
|
|
868
|
+
const { alignItems: e, classes: o, dense: n, disableGutters: l, disablePadding: s, divider: c, hasSecondaryAction: r } = t;
|
|
869
|
+
return N({
|
|
870
|
+
root: [
|
|
871
|
+
"root",
|
|
872
|
+
n && "dense",
|
|
873
|
+
!l && "gutters",
|
|
874
|
+
!s && "padding",
|
|
875
|
+
c && "divider",
|
|
876
|
+
e === "flex-start" && "alignItemsFlexStart",
|
|
877
|
+
r && "secondaryAction"
|
|
878
|
+
],
|
|
879
|
+
container: [
|
|
880
|
+
"container"
|
|
881
|
+
]
|
|
882
|
+
}, wt, o);
|
|
883
|
+
}, Bt = j("div", {
|
|
884
|
+
name: "MuiListItem",
|
|
885
|
+
slot: "Root",
|
|
886
|
+
overridesResolver: $t
|
|
887
|
+
})(q(({ theme: t }) => ({
|
|
888
|
+
display: "flex",
|
|
889
|
+
justifyContent: "flex-start",
|
|
890
|
+
alignItems: "center",
|
|
891
|
+
position: "relative",
|
|
892
|
+
textDecoration: "none",
|
|
893
|
+
width: "100%",
|
|
894
|
+
boxSizing: "border-box",
|
|
895
|
+
textAlign: "left",
|
|
896
|
+
variants: [
|
|
897
|
+
{
|
|
898
|
+
props: ({ ownerState: e }) => !e.disablePadding,
|
|
899
|
+
style: {
|
|
900
|
+
paddingTop: 8,
|
|
901
|
+
paddingBottom: 8
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
props: ({ ownerState: e }) => !e.disablePadding && e.dense,
|
|
906
|
+
style: {
|
|
907
|
+
paddingTop: 4,
|
|
908
|
+
paddingBottom: 4
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
props: ({ ownerState: e }) => !e.disablePadding && !e.disableGutters,
|
|
913
|
+
style: {
|
|
914
|
+
paddingLeft: 16,
|
|
915
|
+
paddingRight: 16
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
props: ({ ownerState: e }) => !e.disablePadding && !!e.secondaryAction,
|
|
920
|
+
style: {
|
|
921
|
+
paddingRight: 48
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
{
|
|
925
|
+
props: ({ ownerState: e }) => !!e.secondaryAction,
|
|
926
|
+
style: {
|
|
927
|
+
[`& > .${G.root}`]: {
|
|
928
|
+
paddingRight: 48
|
|
929
|
+
}
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
props: {
|
|
934
|
+
alignItems: "flex-start"
|
|
935
|
+
},
|
|
936
|
+
style: {
|
|
937
|
+
alignItems: "flex-start"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
props: ({ ownerState: e }) => e.divider,
|
|
942
|
+
style: {
|
|
943
|
+
borderBottom: `1px solid ${(t.vars || t).palette.divider}`,
|
|
944
|
+
backgroundClip: "padding-box"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
props: ({ ownerState: e }) => e.button,
|
|
949
|
+
style: {
|
|
950
|
+
transition: t.transitions.create("background-color", {
|
|
951
|
+
duration: t.transitions.duration.shortest
|
|
952
|
+
}),
|
|
953
|
+
"&:hover": {
|
|
954
|
+
textDecoration: "none",
|
|
955
|
+
backgroundColor: (t.vars || t).palette.action.hover,
|
|
956
|
+
"@media (hover: none)": {
|
|
957
|
+
backgroundColor: "transparent"
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
{
|
|
963
|
+
props: ({ ownerState: e }) => e.hasSecondaryAction,
|
|
964
|
+
style: {
|
|
965
|
+
paddingRight: 48
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
]
|
|
969
|
+
}))), Nt = j("li", {
|
|
970
|
+
name: "MuiListItem",
|
|
971
|
+
slot: "Container",
|
|
972
|
+
overridesResolver: (t, e) => e.container
|
|
973
|
+
})({
|
|
974
|
+
position: "relative"
|
|
975
|
+
}), Wt = i.forwardRef(function(e, o) {
|
|
976
|
+
const n = B({
|
|
977
|
+
props: e,
|
|
978
|
+
name: "MuiListItem"
|
|
979
|
+
}), { alignItems: l = "center", children: s, className: c, component: r, components: d = {}, componentsProps: v = {}, ContainerComponent: k = "li", ContainerProps: { className: C, ...y } = {}, dense: x = false, disableGutters: S = false, disablePadding: P = false, divider: m = false, secondaryAction: u, slotProps: w = {}, slots: b = {}, ...f } = n, p = i.useContext(W), g = i.useMemo(() => ({
|
|
980
|
+
dense: x || p.dense || false,
|
|
981
|
+
alignItems: l,
|
|
982
|
+
disableGutters: S
|
|
983
|
+
}), [
|
|
984
|
+
l,
|
|
985
|
+
p.dense,
|
|
986
|
+
x,
|
|
987
|
+
S
|
|
988
|
+
]), h = i.useRef(null), I = i.Children.toArray(s), M = I.length && Ze(I[I.length - 1], [
|
|
989
|
+
"ListItemSecondaryAction"
|
|
990
|
+
]), L = {
|
|
991
|
+
...n,
|
|
992
|
+
alignItems: l,
|
|
993
|
+
dense: g.dense,
|
|
994
|
+
disableGutters: S,
|
|
995
|
+
disablePadding: P,
|
|
996
|
+
divider: m,
|
|
997
|
+
hasSecondaryAction: M
|
|
998
|
+
}, E = Lt(L), X = re(h, o), _ = b.root || d.Root || Bt, D = w.root || v.root || {}, A = {
|
|
999
|
+
className: R(E.root, D.className, c),
|
|
1000
|
+
...f
|
|
1001
|
+
};
|
|
1002
|
+
let T = r || "li";
|
|
1003
|
+
return M ? (T = !A.component && !r ? "div" : T, k === "li" && (T === "li" ? T = "div" : A.component === "li" && (A.component = "div")), a.jsx(W.Provider, {
|
|
1004
|
+
value: g,
|
|
1005
|
+
children: a.jsxs(Nt, {
|
|
1006
|
+
as: k,
|
|
1007
|
+
className: R(E.container, C),
|
|
1008
|
+
ref: X,
|
|
1009
|
+
ownerState: L,
|
|
1010
|
+
...y,
|
|
1011
|
+
children: [
|
|
1012
|
+
a.jsx(_, {
|
|
1013
|
+
...D,
|
|
1014
|
+
...!oe(_) && {
|
|
1015
|
+
as: T,
|
|
1016
|
+
ownerState: {
|
|
1017
|
+
...L,
|
|
1018
|
+
...D.ownerState
|
|
1019
|
+
}
|
|
1020
|
+
},
|
|
1021
|
+
...A,
|
|
1022
|
+
children: I
|
|
1023
|
+
}),
|
|
1024
|
+
I.pop()
|
|
1025
|
+
]
|
|
1026
|
+
})
|
|
1027
|
+
})) : a.jsx(W.Provider, {
|
|
1028
|
+
value: g,
|
|
1029
|
+
children: a.jsxs(_, {
|
|
1030
|
+
...D,
|
|
1031
|
+
as: T,
|
|
1032
|
+
ref: X,
|
|
1033
|
+
...!oe(_) && {
|
|
1034
|
+
ownerState: {
|
|
1035
|
+
...L,
|
|
1036
|
+
...D.ownerState
|
|
1037
|
+
}
|
|
1038
|
+
},
|
|
1039
|
+
...A,
|
|
1040
|
+
children: [
|
|
1041
|
+
I,
|
|
1042
|
+
u && a.jsx(de, {
|
|
1043
|
+
children: u
|
|
1044
|
+
})
|
|
1045
|
+
]
|
|
1046
|
+
})
|
|
1047
|
+
});
|
|
1048
|
+
}), Ft = (t) => {
|
|
1049
|
+
const { classes: e, inset: o, primary: n, secondary: l, dense: s } = t;
|
|
1050
|
+
return N({
|
|
1051
|
+
root: [
|
|
1052
|
+
"root",
|
|
1053
|
+
o && "inset",
|
|
1054
|
+
s && "dense",
|
|
1055
|
+
n && l && "multiline"
|
|
1056
|
+
],
|
|
1057
|
+
primary: [
|
|
1058
|
+
"primary"
|
|
1059
|
+
],
|
|
1060
|
+
secondary: [
|
|
1061
|
+
"secondary"
|
|
1062
|
+
]
|
|
1063
|
+
}, qe, e);
|
|
1064
|
+
}, Vt = j("div", {
|
|
1065
|
+
name: "MuiListItemText",
|
|
1066
|
+
slot: "Root",
|
|
1067
|
+
overridesResolver: (t, e) => {
|
|
1068
|
+
const { ownerState: o } = t;
|
|
1069
|
+
return [
|
|
1070
|
+
{
|
|
1071
|
+
[`& .${J.primary}`]: e.primary
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
[`& .${J.secondary}`]: e.secondary
|
|
1075
|
+
},
|
|
1076
|
+
e.root,
|
|
1077
|
+
o.inset && e.inset,
|
|
1078
|
+
o.primary && o.secondary && e.multiline,
|
|
1079
|
+
o.dense && e.dense
|
|
1080
|
+
];
|
|
1081
|
+
}
|
|
1082
|
+
})({
|
|
1083
|
+
flex: "1 1 auto",
|
|
1084
|
+
minWidth: 0,
|
|
1085
|
+
marginTop: 4,
|
|
1086
|
+
marginBottom: 4,
|
|
1087
|
+
[`.${se.root}:where(& .${J.primary})`]: {
|
|
1088
|
+
display: "block"
|
|
1089
|
+
},
|
|
1090
|
+
[`.${se.root}:where(& .${J.secondary})`]: {
|
|
1091
|
+
display: "block"
|
|
1092
|
+
},
|
|
1093
|
+
variants: [
|
|
1094
|
+
{
|
|
1095
|
+
props: ({ ownerState: t }) => t.primary && t.secondary,
|
|
1096
|
+
style: {
|
|
1097
|
+
marginTop: 6,
|
|
1098
|
+
marginBottom: 6
|
|
1099
|
+
}
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
props: ({ ownerState: t }) => t.inset,
|
|
1103
|
+
style: {
|
|
1104
|
+
paddingLeft: 56
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
]
|
|
1108
|
+
}), _t = i.forwardRef(function(e, o) {
|
|
1109
|
+
const n = B({
|
|
1110
|
+
props: e,
|
|
1111
|
+
name: "MuiListItemText"
|
|
1112
|
+
}), { children: l, className: s, disableTypography: c = false, inset: r = false, primary: d, primaryTypographyProps: v, secondary: k, secondaryTypographyProps: C, slots: y = {}, slotProps: x = {}, ...S } = n, { dense: P } = i.useContext(W);
|
|
1113
|
+
let m = d ?? l, u = k;
|
|
1114
|
+
const w = {
|
|
1115
|
+
...n,
|
|
1116
|
+
disableTypography: c,
|
|
1117
|
+
inset: r,
|
|
1118
|
+
primary: !!m,
|
|
1119
|
+
secondary: !!u,
|
|
1120
|
+
dense: P
|
|
1121
|
+
}, b = Ft(w), f = {
|
|
1122
|
+
slots: y,
|
|
1123
|
+
slotProps: {
|
|
1124
|
+
primary: v,
|
|
1125
|
+
secondary: C,
|
|
1126
|
+
...x
|
|
1127
|
+
}
|
|
1128
|
+
}, [p, g] = $("root", {
|
|
1129
|
+
className: R(b.root, s),
|
|
1130
|
+
elementType: Vt,
|
|
1131
|
+
externalForwardedProps: {
|
|
1132
|
+
...f,
|
|
1133
|
+
...S
|
|
1134
|
+
},
|
|
1135
|
+
ownerState: w,
|
|
1136
|
+
ref: o
|
|
1137
|
+
}), [h, I] = $("primary", {
|
|
1138
|
+
className: b.primary,
|
|
1139
|
+
elementType: z,
|
|
1140
|
+
externalForwardedProps: f,
|
|
1141
|
+
ownerState: w
|
|
1142
|
+
}), [M, L] = $("secondary", {
|
|
1143
|
+
className: b.secondary,
|
|
1144
|
+
elementType: z,
|
|
1145
|
+
externalForwardedProps: f,
|
|
1146
|
+
ownerState: w
|
|
1147
|
+
});
|
|
1148
|
+
return m != null && m.type !== z && !c && (m = a.jsx(h, {
|
|
1149
|
+
variant: P ? "body2" : "body1",
|
|
1150
|
+
component: (I == null ? void 0 : I.variant) ? void 0 : "span",
|
|
1151
|
+
...I,
|
|
1152
|
+
children: m
|
|
1153
|
+
})), u != null && u.type !== z && !c && (u = a.jsx(M, {
|
|
1154
|
+
variant: "body2",
|
|
1155
|
+
color: "textSecondary",
|
|
1156
|
+
...L,
|
|
1157
|
+
children: u
|
|
1158
|
+
})), a.jsxs(p, {
|
|
1159
|
+
...g,
|
|
1160
|
+
children: [
|
|
1161
|
+
m,
|
|
1162
|
+
u
|
|
1163
|
+
]
|
|
1164
|
+
});
|
|
1165
|
+
}), Ot = () => [
|
|
1166
|
+
{
|
|
1167
|
+
type: "custom",
|
|
1168
|
+
component: () => a.jsx(ae, {})
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
name: "onlyStates",
|
|
1172
|
+
type: "checkbox",
|
|
1173
|
+
label: "only_states",
|
|
1174
|
+
default: false,
|
|
1175
|
+
hidden: "!data.values_count"
|
|
1176
|
+
},
|
|
1177
|
+
{
|
|
1178
|
+
name: "statePushButton",
|
|
1179
|
+
type: "checkbox",
|
|
1180
|
+
label: "state_push_button",
|
|
1181
|
+
default: false,
|
|
1182
|
+
hidden: (t, e) => !t.onlyStates || Number(t.values_count) !== 2,
|
|
1183
|
+
tooltip: "state_push_button_tooltip"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
type: "custom",
|
|
1187
|
+
component: () => a.jsx(ae, {}),
|
|
1188
|
+
hidden: "!data.values_count"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
name: "onlyDisplay",
|
|
1192
|
+
type: "checkbox",
|
|
1193
|
+
label: "only_display",
|
|
1194
|
+
disabled: (t, e) => !t.write,
|
|
1195
|
+
default: false,
|
|
1196
|
+
hidden: (t, e) => !t.write
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
name: "noIcon",
|
|
1200
|
+
type: "checkbox",
|
|
1201
|
+
label: "no_icon"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
name: "noValue",
|
|
1205
|
+
type: "checkbox",
|
|
1206
|
+
label: "no_value"
|
|
1207
|
+
}
|
|
1208
|
+
], Ut = ({ widgetStates: t, data: e, open: o, closeHandler: n }) => {
|
|
1209
|
+
const { widget: l, getPropertyValue: s } = i.useContext(ie), c = l.data.oidObject, r = l.data.onlyStates, [d, v] = i.useState(() => {
|
|
1210
|
+
const p = s("oid");
|
|
1211
|
+
return typeof p == "number" ? p : 0;
|
|
1212
|
+
}), { updateValue: k } = le("oid"), C = i.useMemo(() => {
|
|
1213
|
+
const p = c == null ? void 0 : c.commonStates, g = c == null ? void 0 : c.type, h = c == null ? void 0 : c.name, I = c == null ? void 0 : c.minValue, M = c == null ? void 0 : c.maxValue;
|
|
1214
|
+
return {
|
|
1215
|
+
commonStates: p,
|
|
1216
|
+
oidType: g,
|
|
1217
|
+
oidName: h,
|
|
1218
|
+
minValue: I,
|
|
1219
|
+
maxValue: M
|
|
1220
|
+
};
|
|
1221
|
+
}, [
|
|
1222
|
+
c
|
|
1223
|
+
]), y = i.useCallback((p) => {
|
|
1224
|
+
k(p);
|
|
1225
|
+
}, [
|
|
1226
|
+
k
|
|
1227
|
+
]), x = i.useCallback((p, g) => {
|
|
1228
|
+
const h = Array.isArray(g) ? g[0] : g;
|
|
1229
|
+
v(h), y(h);
|
|
1230
|
+
}, [
|
|
1231
|
+
y
|
|
1232
|
+
]), S = i.useCallback((p, g) => {
|
|
1233
|
+
(g === "backdropClick" || g === "escapeKeyDown") && n();
|
|
1234
|
+
}, [
|
|
1235
|
+
n
|
|
1236
|
+
]), P = i.useCallback(() => {
|
|
1237
|
+
n();
|
|
1238
|
+
}, [
|
|
1239
|
+
n
|
|
1240
|
+
]), m = i.useCallback((p) => (g) => {
|
|
1241
|
+
g.preventDefault();
|
|
1242
|
+
const h = Number(p);
|
|
1243
|
+
isNaN(h) || v(h), y(p);
|
|
1244
|
+
}, [
|
|
1245
|
+
y
|
|
1246
|
+
]), u = i.useMemo(() => {
|
|
1247
|
+
const { oidType: p, commonStates: g, minValue: h, maxValue: I } = C;
|
|
1248
|
+
return p === "number" && !r && h !== void 0 && I !== void 0 ? a.jsx(U, {
|
|
1249
|
+
sx: {
|
|
1250
|
+
px: 3
|
|
1251
|
+
},
|
|
1252
|
+
children: a.jsx(Be, {
|
|
1253
|
+
sx: {
|
|
1254
|
+
pb: g ? 4 : 3
|
|
1255
|
+
},
|
|
1256
|
+
size: "small",
|
|
1257
|
+
min: h,
|
|
1258
|
+
max: I,
|
|
1259
|
+
marks: [
|
|
1260
|
+
{
|
|
1261
|
+
value: h,
|
|
1262
|
+
label: String(h)
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
value: I,
|
|
1266
|
+
label: String(I)
|
|
1267
|
+
}
|
|
1268
|
+
],
|
|
1269
|
+
valueLabelDisplay: "auto",
|
|
1270
|
+
value: d,
|
|
1271
|
+
onChange: x
|
|
1272
|
+
})
|
|
1273
|
+
}) : null;
|
|
1274
|
+
}, [
|
|
1275
|
+
C,
|
|
1276
|
+
r,
|
|
1277
|
+
d,
|
|
1278
|
+
x
|
|
1279
|
+
]), w = i.useMemo(() => !t || !Object.keys(t).length ? null : a.jsx(Xe, {
|
|
1280
|
+
children: Object.entries(t).map(([p, g]) => a.jsx(Wt, {
|
|
1281
|
+
disablePadding: true,
|
|
1282
|
+
children: a.jsx(Rt, {
|
|
1283
|
+
onClick: m(p),
|
|
1284
|
+
children: a.jsx(_t, {
|
|
1285
|
+
primaryTypographyProps: {
|
|
1286
|
+
variant: "body2"
|
|
1287
|
+
},
|
|
1288
|
+
primary: String(g)
|
|
1289
|
+
})
|
|
1290
|
+
})
|
|
1291
|
+
}, p))
|
|
1292
|
+
}), [
|
|
1293
|
+
t,
|
|
1294
|
+
m
|
|
1295
|
+
]), b = i.useMemo(() => e.header || C.oidName || "Change Value", [
|
|
1296
|
+
e.header,
|
|
1297
|
+
C.oidName
|
|
1298
|
+
]), f = i.useMemo(() => t && Object.keys(t).length > 0, [
|
|
1299
|
+
t
|
|
1300
|
+
]);
|
|
1301
|
+
return a.jsxs(gt, {
|
|
1302
|
+
open: o,
|
|
1303
|
+
onClose: S,
|
|
1304
|
+
maxWidth: "xs",
|
|
1305
|
+
fullWidth: true,
|
|
1306
|
+
PaperProps: {
|
|
1307
|
+
sx: {
|
|
1308
|
+
bgcolor: e.backgroundColor,
|
|
1309
|
+
color: e.textColor
|
|
1310
|
+
}
|
|
1311
|
+
},
|
|
1312
|
+
children: [
|
|
1313
|
+
a.jsx(kt, {
|
|
1314
|
+
sx: {
|
|
1315
|
+
m: 0,
|
|
1316
|
+
p: 2
|
|
1317
|
+
},
|
|
1318
|
+
id: "customized-dialog-title",
|
|
1319
|
+
children: b
|
|
1320
|
+
}),
|
|
1321
|
+
a.jsx(Ne, {
|
|
1322
|
+
"aria-label": "close",
|
|
1323
|
+
onClick: P,
|
|
1324
|
+
sx: (p) => ({
|
|
1325
|
+
position: "absolute",
|
|
1326
|
+
right: 8,
|
|
1327
|
+
top: 8,
|
|
1328
|
+
color: p.palette.grey[500]
|
|
1329
|
+
}),
|
|
1330
|
+
children: a.jsx(Ye, {})
|
|
1331
|
+
}),
|
|
1332
|
+
a.jsx(ht, {
|
|
1333
|
+
sx: {
|
|
1334
|
+
overflow: "unset"
|
|
1335
|
+
},
|
|
1336
|
+
children: a.jsxs(Ke, {
|
|
1337
|
+
divider: f && a.jsx(We, {}),
|
|
1338
|
+
spacing: 0,
|
|
1339
|
+
component: ee,
|
|
1340
|
+
children: [
|
|
1341
|
+
u,
|
|
1342
|
+
w
|
|
1343
|
+
]
|
|
1344
|
+
})
|
|
1345
|
+
})
|
|
1346
|
+
]
|
|
1347
|
+
});
|
|
1348
|
+
};
|
|
1349
|
+
function Gt() {
|
|
1350
|
+
const t = i.useContext(ie), { widget: e } = t, o = e.data.oidObject, { textStyles: n, fontStyles: l } = Fe(e.style), { data: s, widgetStates: c } = Ve("oid"), { value: r, updateValue: d } = le("oid"), [v, k] = i.useState(false), C = o == null ? void 0 : o.type, y = e.data.onlyStates, x = Je(r, e, s), S = x != null ? String(x) : "", P = () => {
|
|
1351
|
+
const f = e.data.value1;
|
|
1352
|
+
y && Number(e.data.values_count) === 2 && e.data.statePushButton && f !== void 0 && setTimeout(() => d(f), 0);
|
|
1353
|
+
}, m = () => {
|
|
1354
|
+
const f = e.data.value2;
|
|
1355
|
+
y && Number(e.data.values_count) === 2 && e.data.statePushButton && f !== void 0 && setTimeout(() => d(f), 0);
|
|
1356
|
+
}, u = i.useCallback(() => {
|
|
1357
|
+
if (!y) {
|
|
1358
|
+
k(true);
|
|
1359
|
+
return;
|
|
1360
|
+
}
|
|
1361
|
+
switch (Number(e.data.values_count)) {
|
|
1362
|
+
case 1:
|
|
1363
|
+
e.data.value1 !== void 0 && d(e.data.value1);
|
|
1364
|
+
break;
|
|
1365
|
+
case 2:
|
|
1366
|
+
e.data.value1 !== void 0 && e.data.value2 !== void 0 && (!e.data.statePushButton && String(r) === String(e.data.value1) ? d(e.data.value2) : d(e.data.value1));
|
|
1367
|
+
break;
|
|
1368
|
+
default:
|
|
1369
|
+
k(true);
|
|
1370
|
+
break;
|
|
1371
|
+
}
|
|
1372
|
+
}, [
|
|
1373
|
+
r,
|
|
1374
|
+
y,
|
|
1375
|
+
e.data.values_count,
|
|
1376
|
+
e.data.statePushButton,
|
|
1377
|
+
e.data.value1,
|
|
1378
|
+
e.data.value2,
|
|
1379
|
+
d
|
|
1380
|
+
]), w = a.jsx(Qe, {
|
|
1381
|
+
disabled: e.data.onlyDisplay,
|
|
1382
|
+
onClick: u,
|
|
1383
|
+
onMouseDown: P,
|
|
1384
|
+
onMouseUp: m,
|
|
1385
|
+
onMouseOut: m,
|
|
1386
|
+
onTouchStart: P,
|
|
1387
|
+
onTouchEnd: m,
|
|
1388
|
+
sx: {
|
|
1389
|
+
width: "100%",
|
|
1390
|
+
height: "100%",
|
|
1391
|
+
color: s.iconColorActive || s.iconColor || s.textColorActive || s.textColor || "primary.main",
|
|
1392
|
+
"&:hover": {
|
|
1393
|
+
bgcolor: "transparent",
|
|
1394
|
+
filter: s.iconHoverActive && `brightness(${s.iconHoverActive})` || s.iconHover && `brightness(${s.iconHover})`
|
|
1395
|
+
}
|
|
1396
|
+
},
|
|
1397
|
+
children: a.jsxs(U, {
|
|
1398
|
+
sx: {
|
|
1399
|
+
width: "100%",
|
|
1400
|
+
height: "100%",
|
|
1401
|
+
display: "flex",
|
|
1402
|
+
justifyContent: "center",
|
|
1403
|
+
alignItems: "center"
|
|
1404
|
+
},
|
|
1405
|
+
children: [
|
|
1406
|
+
!e.data.noIcon && (s.iconActive || s.icon) && a.jsx(U, {
|
|
1407
|
+
sx: {
|
|
1408
|
+
display: "flex",
|
|
1409
|
+
justifyContent: "center",
|
|
1410
|
+
alignItems: "center",
|
|
1411
|
+
flexGrow: 1,
|
|
1412
|
+
width: "100%",
|
|
1413
|
+
height: "100%"
|
|
1414
|
+
},
|
|
1415
|
+
children: a.jsx(it, {
|
|
1416
|
+
variant: "square",
|
|
1417
|
+
src: s.iconActive || s.icon || void 0,
|
|
1418
|
+
imgProps: {
|
|
1419
|
+
style: {
|
|
1420
|
+
objectFit: "contain"
|
|
1421
|
+
}
|
|
1422
|
+
},
|
|
1423
|
+
sx: {
|
|
1424
|
+
overflow: "hidden",
|
|
1425
|
+
width: typeof s.iconSizeOnly == "number" && `calc(100% * ${s.iconSizeOnly} / 100)` || "100%",
|
|
1426
|
+
height: typeof s.iconSizeOnly == "number" && `calc(100% * ${s.iconSizeOnly} / 100)` || "100%",
|
|
1427
|
+
left: `calc(0px + ${s.iconXOffset})`,
|
|
1428
|
+
top: `calc(0px - ${s.iconYOffset})`,
|
|
1429
|
+
bgcolor: "transparent",
|
|
1430
|
+
..._e(s.iconActive || s.icon, s.iconColorActive || s.iconColor || "primary.main")
|
|
1431
|
+
}
|
|
1432
|
+
})
|
|
1433
|
+
}),
|
|
1434
|
+
!e.data.noValue && a.jsx(U, {
|
|
1435
|
+
sx: {
|
|
1436
|
+
display: "flex",
|
|
1437
|
+
justifyContent: "center",
|
|
1438
|
+
alignItems: "center",
|
|
1439
|
+
flexGrow: 1,
|
|
1440
|
+
width: "100%",
|
|
1441
|
+
height: "100%"
|
|
1442
|
+
},
|
|
1443
|
+
children: a.jsx(z, {
|
|
1444
|
+
component: U,
|
|
1445
|
+
variant: "body2",
|
|
1446
|
+
sx: {
|
|
1447
|
+
...l,
|
|
1448
|
+
...n,
|
|
1449
|
+
fontSize: s.valueSizeActive || s.valueSize,
|
|
1450
|
+
textAlign: "center",
|
|
1451
|
+
bgcolor: "transparent",
|
|
1452
|
+
color: s.textColorActive || s.textColor,
|
|
1453
|
+
textTransform: "none",
|
|
1454
|
+
px: 1,
|
|
1455
|
+
pl: 0,
|
|
1456
|
+
pr: 1,
|
|
1457
|
+
width: "100%",
|
|
1458
|
+
height: "100%",
|
|
1459
|
+
flexGrow: 1,
|
|
1460
|
+
display: "flex",
|
|
1461
|
+
alignItems: "center",
|
|
1462
|
+
justifyContent: "center",
|
|
1463
|
+
overflowWrap: "break-word",
|
|
1464
|
+
wordBreak: "break-word",
|
|
1465
|
+
whiteSpace: "normal",
|
|
1466
|
+
hyphens: "auto",
|
|
1467
|
+
"& > div": {
|
|
1468
|
+
textAlign: "left",
|
|
1469
|
+
display: "inline-block"
|
|
1470
|
+
}
|
|
1471
|
+
},
|
|
1472
|
+
dangerouslySetInnerHTML: {
|
|
1473
|
+
__html: `<div style="text-align: left; display: inline-block;">${S || ""}</div>`
|
|
1474
|
+
}
|
|
1475
|
+
})
|
|
1476
|
+
})
|
|
1477
|
+
]
|
|
1478
|
+
})
|
|
1479
|
+
}), b = C === "boolean" || C === "number" || C === "string" || C === "mixed";
|
|
1480
|
+
return a.jsxs(a.Fragment, {
|
|
1481
|
+
children: [
|
|
1482
|
+
v && a.jsx(Ut, {
|
|
1483
|
+
data: {
|
|
1484
|
+
sampleInterval: false,
|
|
1485
|
+
sampleIntervalValue: 200,
|
|
1486
|
+
delay: 100
|
|
1487
|
+
},
|
|
1488
|
+
widgetStates: c,
|
|
1489
|
+
open: v,
|
|
1490
|
+
closeHandler: () => k(false)
|
|
1491
|
+
}),
|
|
1492
|
+
a.jsxs(Oe, {
|
|
1493
|
+
isValidType: b,
|
|
1494
|
+
data: s,
|
|
1495
|
+
oidValue: r,
|
|
1496
|
+
children: [
|
|
1497
|
+
a.jsx(Ue, {
|
|
1498
|
+
data: s,
|
|
1499
|
+
widget: e
|
|
1500
|
+
}),
|
|
1501
|
+
a.jsx(U, {
|
|
1502
|
+
sx: {
|
|
1503
|
+
width: "100%",
|
|
1504
|
+
height: "100%",
|
|
1505
|
+
display: "flex",
|
|
1506
|
+
justifyContent: "center",
|
|
1507
|
+
alignItems: "center"
|
|
1508
|
+
},
|
|
1509
|
+
children: w
|
|
1510
|
+
})
|
|
1511
|
+
]
|
|
1512
|
+
})
|
|
1513
|
+
]
|
|
1514
|
+
});
|
|
1515
|
+
}
|
|
1516
|
+
pe = class extends Ge {
|
|
1517
|
+
static getWidgetInfo() {
|
|
1518
|
+
return {
|
|
1519
|
+
id: "tplStateCollectionWidget",
|
|
1520
|
+
visSet: "vis-2-widgets-collection",
|
|
1521
|
+
visSetLabel: "widgets_collection",
|
|
1522
|
+
visSetColor: "#0C0A43",
|
|
1523
|
+
visName: "StateCollectionWidget",
|
|
1524
|
+
visWidgetLabel: "state_collection_widget",
|
|
1525
|
+
visOrder: 3,
|
|
1526
|
+
visAttrs: [
|
|
1527
|
+
{
|
|
1528
|
+
name: "common",
|
|
1529
|
+
fields: [
|
|
1530
|
+
...ne()
|
|
1531
|
+
]
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
name: "button",
|
|
1535
|
+
label: "group_button",
|
|
1536
|
+
fields: [
|
|
1537
|
+
...ze([
|
|
1538
|
+
"string",
|
|
1539
|
+
"number",
|
|
1540
|
+
"boolean",
|
|
1541
|
+
"mixed"
|
|
1542
|
+
]),
|
|
1543
|
+
...He(),
|
|
1544
|
+
...Ot()
|
|
1545
|
+
]
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
name: "values",
|
|
1549
|
+
label: "values",
|
|
1550
|
+
indexFrom: 1,
|
|
1551
|
+
indexTo: "values_count",
|
|
1552
|
+
fields: [
|
|
1553
|
+
...ne({
|
|
1554
|
+
groupName: "",
|
|
1555
|
+
allFields: false
|
|
1556
|
+
})
|
|
1557
|
+
]
|
|
1558
|
+
}
|
|
1559
|
+
],
|
|
1560
|
+
visDefaultStyle: {
|
|
1561
|
+
width: "100%",
|
|
1562
|
+
height: "100px",
|
|
1563
|
+
position: "relative"
|
|
1564
|
+
},
|
|
1565
|
+
visPrev: "widgets/vis-2-widgets-collection/img/prev-collection-state.png"
|
|
1566
|
+
};
|
|
1567
|
+
}
|
|
1568
|
+
getWidgetInfo() {
|
|
1569
|
+
return pe.getWidgetInfo();
|
|
1570
|
+
}
|
|
1571
|
+
propertiesUpdate() {
|
|
1572
|
+
}
|
|
1573
|
+
onRxDataChanged() {
|
|
1574
|
+
this.propertiesUpdate();
|
|
1575
|
+
}
|
|
1576
|
+
onRxStyleChanged() {
|
|
1577
|
+
}
|
|
1578
|
+
onStateUpdated(e, o) {
|
|
1579
|
+
}
|
|
1580
|
+
componentDidMount() {
|
|
1581
|
+
super.componentDidMount(), this.propertiesUpdate();
|
|
1582
|
+
}
|
|
1583
|
+
renderWidgetBody(e) {
|
|
1584
|
+
super.renderWidgetBody(e);
|
|
1585
|
+
const o = {
|
|
1586
|
+
id: e.id,
|
|
1587
|
+
refService: e.refService,
|
|
1588
|
+
style: e.style,
|
|
1589
|
+
widget: {
|
|
1590
|
+
data: this.state.rxData,
|
|
1591
|
+
style: this.state.rxStyle
|
|
1592
|
+
},
|
|
1593
|
+
setValue: this.setValue,
|
|
1594
|
+
setState: this.setState.bind(this),
|
|
1595
|
+
values: this.state.values,
|
|
1596
|
+
isSignalVisible: this.isSignalVisible.bind(this),
|
|
1597
|
+
getPropertyValue: this.getPropertyValue.bind(this),
|
|
1598
|
+
mode: this.props.context.themeType,
|
|
1599
|
+
socket: this.props.context.socket,
|
|
1600
|
+
theme: this.props.context.theme,
|
|
1601
|
+
wrappedContent: this.wrappedCollectionContent
|
|
1602
|
+
};
|
|
1603
|
+
return e.widget.data.noCard || e.widget.usedInWidget ? this.wrappedCollectionContent = false : this.wrappedCollectionContent = true, Ee(this.wrapContent(a.jsx(Gt, {})), o);
|
|
1604
|
+
}
|
|
1605
|
+
};
|
|
1606
|
+
});
|
|
1607
|
+
export {
|
|
1608
|
+
__tla,
|
|
1609
|
+
pe as default
|
|
1610
|
+
};
|