@camstack/addon-provider-homematic 1.2.209 → 1.2.211
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/CHANGELOG.md +13 -0
- package/dist/.bundle-modules.json +11 -6
- package/dist/_stub.js +2837 -1972
- package/dist/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-B8JEAJoX.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-D5at7Q9l.mjs} +4 -4
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BHT2wfZN.mjs +26 -0
- package/dist/addon-provider-homematic.css +1 -1
- package/dist/addon.js +790 -241
- package/dist/addon.mjs +790 -241
- package/dist/{hostInit-dkdwmlIf.mjs → hostInit-UNRy49MK.mjs} +3 -3
- package/dist/remoteEntry.js +1 -1
- package/dist/{virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-D2zDM5LH.mjs → virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-BSgPYGJt.mjs} +1 -1
- package/dist/widgets/_stub.js +229 -48
- package/dist/widgets/{_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-CR6dsJ2l.mjs → _virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_widgets-CTToHFHm.mjs} +2 -2
- package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BxH-K-yr.mjs +26 -0
- package/dist/widgets/{hostInit-C1PiC4_E.mjs → hostInit-D-2FhaC8.mjs} +2 -2
- package/dist/widgets/remoteEntry.js +1 -1
- package/package.json +3 -3
- package/dist/_virtual_mf___mfe_internal__addon_provider_homematic_page__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DUSr1RDG.mjs +0 -26
- package/dist/widgets/_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-DkWTmjd2.mjs +0 -26
|
@@ -45,7 +45,7 @@ async function r() {
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"@camstack/types": {
|
|
48
|
-
version: "1.2.
|
|
48
|
+
version: "1.2.617",
|
|
49
49
|
scope: "default",
|
|
50
50
|
shareConfig: {
|
|
51
51
|
singleton: !0,
|
|
@@ -81,11 +81,11 @@ async function r() {
|
|
|
81
81
|
}
|
|
82
82
|
},
|
|
83
83
|
"@camstack/ui-library": {
|
|
84
|
-
version: "1.2.
|
|
84
|
+
version: "1.2.487",
|
|
85
85
|
scope: "default",
|
|
86
86
|
shareConfig: {
|
|
87
87
|
singleton: !0,
|
|
88
|
-
requiredVersion: ">=1.2.
|
|
88
|
+
requiredVersion: ">=1.2.487",
|
|
89
89
|
import: !1
|
|
90
90
|
}
|
|
91
91
|
},
|
package/dist/remoteEntry.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-
|
|
1
|
+
import { n as e, t } from "./virtual_mf-REMOTE_ENTRY_ID___mfe_internal__addon_provider_homematic_page__remoteEntry_js-BSgPYGJt.mjs";
|
|
2
2
|
export { t as get, e as init };
|
|
@@ -2753,7 +2753,7 @@ async function rr(e) {
|
|
|
2753
2753
|
}
|
|
2754
2754
|
}
|
|
2755
2755
|
async function ir() {
|
|
2756
|
-
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-
|
|
2756
|
+
return tr ||= rr(() => import("./_virtual_mf-localSharedImportMap___mfe_internal__addon_provider_homematic_page-D5at7Q9l.mjs")).catch((e) => {
|
|
2757
2757
|
throw tr = void 0, e;
|
|
2758
2758
|
}), tr;
|
|
2759
2759
|
}
|
package/dist/widgets/_stub.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-
|
|
1
|
+
import { a as e, c as t, d as n, f as r, i, l as a, n as o, o as s, p as c, r as l, s as u, t as d, u as f } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare___mf_0_camstack_mf_1_ui_mf_2_library__loadShare__.js-BxH-K-yr.mjs";
|
|
2
2
|
import { a as p, i as m, n as h, o as ee, r as g, s as _, t as v } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare__react__loadShare__.js-Cz6ebdBh.mjs";
|
|
3
3
|
import { n as y, t as b } from "./_virtual_mf___mfe_internal__addon_provider_homematic_widgets__loadShare__react_mf_1_jsx_mf_2_runtime__loadShare__.js-B8RWlLTT.mjs";
|
|
4
4
|
//#region ../../node_modules/zod/v4/core/core.js
|
|
@@ -3684,9 +3684,28 @@ Z.extend({
|
|
|
3684
3684
|
deviceId: K().int().optional(),
|
|
3685
3685
|
confirmed: Q
|
|
3686
3686
|
});
|
|
3687
|
+
var as = Y({
|
|
3688
|
+
code: W(),
|
|
3689
|
+
label: W(),
|
|
3690
|
+
severity: X(["error", "warning"])
|
|
3691
|
+
});
|
|
3692
|
+
Y({
|
|
3693
|
+
faults: J(Y({
|
|
3694
|
+
address: W(),
|
|
3695
|
+
name: W().nullable(),
|
|
3696
|
+
deviceId: K().int().nullable(),
|
|
3697
|
+
severity: X(["error", "warning"]),
|
|
3698
|
+
code: W(),
|
|
3699
|
+
label: W(),
|
|
3700
|
+
since: K().nullable(),
|
|
3701
|
+
faults: J(as)
|
|
3702
|
+
})),
|
|
3703
|
+
unreported: J(W()),
|
|
3704
|
+
gatewayFaults: J(as).nullable().default(null)
|
|
3705
|
+
});
|
|
3687
3706
|
//#endregion
|
|
3688
3707
|
//#region src/i18n/index.ts
|
|
3689
|
-
var { useT: $, Trans:
|
|
3708
|
+
var { useT: $, Trans: os, translate: ss } = d("provider-homematic", {
|
|
3690
3709
|
en: {
|
|
3691
3710
|
common: { loading: "Loading…" },
|
|
3692
3711
|
write: { failedTitle: "The CCU refused the change" },
|
|
@@ -3735,7 +3754,22 @@ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
|
|
|
3735
3754
|
ack: "Acknowledge",
|
|
3736
3755
|
ackTitle: "Acknowledge service message",
|
|
3737
3756
|
ackMessage: "Acknowledge {{type}} for {{name}} on the CCU? The message disappears from the CCU as well.",
|
|
3738
|
-
ackConfirm: "Acknowledge"
|
|
3757
|
+
ackConfirm: "Acknowledge",
|
|
3758
|
+
faultsTitle: "Active faults",
|
|
3759
|
+
faultsUnavailable: "Active faults unavailable",
|
|
3760
|
+
noFaults: "No active faults",
|
|
3761
|
+
colSeverity: "Severity",
|
|
3762
|
+
colFault: "Fault",
|
|
3763
|
+
colSince: "Since",
|
|
3764
|
+
severityError: "Error",
|
|
3765
|
+
severityWarning: "Warning",
|
|
3766
|
+
faultsMore: "+{{count}} more",
|
|
3767
|
+
gatewayLabel: "CCU gateway",
|
|
3768
|
+
gatewayFaults: "Gateway faults",
|
|
3769
|
+
gatewayUnknown: "The gateway status is not known yet.",
|
|
3770
|
+
openDevice: "Open device",
|
|
3771
|
+
faultsUnreported_one: "{{count}} device has not reported its service flags yet, so its state is unknown",
|
|
3772
|
+
faultsUnreported_other: "{{count}} devices have not reported their service flags yet, so their state is unknown"
|
|
3739
3773
|
},
|
|
3740
3774
|
devices: {
|
|
3741
3775
|
colDevice: "Device",
|
|
@@ -3793,7 +3827,12 @@ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
|
|
|
3793
3827
|
renameAction: "Rename on the CCU",
|
|
3794
3828
|
buttonEventsSaving: "Saving…",
|
|
3795
3829
|
buttonEventsSaved: "Saved",
|
|
3796
|
-
openDevicePage: "Open device page"
|
|
3830
|
+
openDevicePage: "Open device page",
|
|
3831
|
+
colEvents: "Events",
|
|
3832
|
+
eventsOk: "Events: ok",
|
|
3833
|
+
eventsMissing: "Events: no program",
|
|
3834
|
+
eventsInactive: "Events: program off",
|
|
3835
|
+
eventsUnknown: "Events: unknown"
|
|
3797
3836
|
},
|
|
3798
3837
|
heating: {
|
|
3799
3838
|
loadFailed: "Could not read the heating setup",
|
|
@@ -4051,6 +4090,67 @@ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
|
|
|
4051
4090
|
minutesAgo: "{{count}} min ago",
|
|
4052
4091
|
hoursAgo: "{{count}} h ago",
|
|
4053
4092
|
daysAgo: "{{count}} d ago"
|
|
4093
|
+
},
|
|
4094
|
+
detail: {
|
|
4095
|
+
back: "Back to devices",
|
|
4096
|
+
notFound: "Device {{address}} is not on this CCU.",
|
|
4097
|
+
notFoundTitle: "Device not found",
|
|
4098
|
+
identityTitle: "Identity",
|
|
4099
|
+
fieldName: "Name",
|
|
4100
|
+
fieldAddress: "Address",
|
|
4101
|
+
fieldType: "Type",
|
|
4102
|
+
fieldFirmware: "Firmware",
|
|
4103
|
+
fieldInterface: "Interface",
|
|
4104
|
+
fieldRooms: "Room",
|
|
4105
|
+
fieldFunctions: "Function",
|
|
4106
|
+
camstackDevice: "CamStack device",
|
|
4107
|
+
notAdopted: "Not adopted in CamStack",
|
|
4108
|
+
stateTitle: "Live state",
|
|
4109
|
+
stateUnavailable: "Live values unavailable",
|
|
4110
|
+
fieldSignal: "Signal",
|
|
4111
|
+
fieldDuty: "Duty cycle",
|
|
4112
|
+
fieldUnreach: "Unreachable",
|
|
4113
|
+
fieldBattery: "Low battery",
|
|
4114
|
+
fieldConfigPending: "Config pending",
|
|
4115
|
+
yes: "Yes",
|
|
4116
|
+
no: "No",
|
|
4117
|
+
unknown: "Unknown",
|
|
4118
|
+
colChannel: "Channel",
|
|
4119
|
+
colParameter: "Parameter",
|
|
4120
|
+
colValue: "Value",
|
|
4121
|
+
noValues: "This device has no readable values",
|
|
4122
|
+
eventsTitle: "Button events",
|
|
4123
|
+
eventsHint: "A button sends its presses outside the CCU only while an active CCU program references its key.",
|
|
4124
|
+
colKey: "Key",
|
|
4125
|
+
colCentral: "Central link",
|
|
4126
|
+
colProgram: "Event program",
|
|
4127
|
+
programNone: "No program references this key",
|
|
4128
|
+
programInactive: "Only disabled: {{names}}",
|
|
4129
|
+
programsUnavailable: "The programs could not be read",
|
|
4130
|
+
createProgram: "Create event program",
|
|
4131
|
+
createProgramTitle: "Create the event program",
|
|
4132
|
+
createProgramMessage: "Create a CCU program that references the keys of {{name}} so the CCU sends their presses.",
|
|
4133
|
+
createProgramConfirm: "Create program",
|
|
4134
|
+
createProgramUnavailable: "A program can only be created for an HmIP button.",
|
|
4135
|
+
manageCentral: "Central link",
|
|
4136
|
+
pressShort: "Short press",
|
|
4137
|
+
pressLong: "Long press",
|
|
4138
|
+
configTitle: "Configuration",
|
|
4139
|
+
configHint: "MASTER parameters of each channel, as stored on the device.",
|
|
4140
|
+
configOpen: "Edit configuration",
|
|
4141
|
+
groupsTitle: "Heating groups",
|
|
4142
|
+
groupsNone: "Not a member of any group",
|
|
4143
|
+
groupsUnavailable: "Groups unavailable",
|
|
4144
|
+
linksTitle: "Direct links",
|
|
4145
|
+
linksNone: "No direct links",
|
|
4146
|
+
linksUnavailable: "Direct links unavailable",
|
|
4147
|
+
colSender: "Sender",
|
|
4148
|
+
colReceiver: "Receiver",
|
|
4149
|
+
faultsTitle: "Faults and service messages",
|
|
4150
|
+
faultsNone: "No active faults or service messages",
|
|
4151
|
+
faultsUnavailable: "Faults unavailable",
|
|
4152
|
+
messagesUnavailable: "Service messages unavailable",
|
|
4153
|
+
faultsUnreported: "The CCU has not reported this device's service flags yet"
|
|
4054
4154
|
}
|
|
4055
4155
|
},
|
|
4056
4156
|
it: {
|
|
@@ -4101,7 +4201,22 @@ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
|
|
|
4101
4201
|
ack: "Conferma",
|
|
4102
4202
|
ackTitle: "Conferma messaggio di servizio",
|
|
4103
4203
|
ackMessage: "Confermare {{type}} per {{name}} sulla CCU? Il messaggio sparisce anche dalla CCU.",
|
|
4104
|
-
ackConfirm: "Conferma"
|
|
4204
|
+
ackConfirm: "Conferma",
|
|
4205
|
+
faultsTitle: "Guasti attivi",
|
|
4206
|
+
faultsUnavailable: "Guasti attivi non disponibili",
|
|
4207
|
+
noFaults: "Nessun guasto attivo",
|
|
4208
|
+
colSeverity: "Gravità",
|
|
4209
|
+
colFault: "Guasto",
|
|
4210
|
+
colSince: "Da",
|
|
4211
|
+
severityError: "Errore",
|
|
4212
|
+
severityWarning: "Avviso",
|
|
4213
|
+
faultsMore: "+{{count}} altri",
|
|
4214
|
+
gatewayLabel: "Gateway CCU",
|
|
4215
|
+
gatewayFaults: "Guasti del gateway",
|
|
4216
|
+
gatewayUnknown: "Lo stato del gateway non è ancora noto.",
|
|
4217
|
+
openDevice: "Apri dispositivo",
|
|
4218
|
+
faultsUnreported_one: "{{count}} dispositivo non ha ancora riportato i flag di servizio, quindi il suo stato è sconosciuto",
|
|
4219
|
+
faultsUnreported_other: "{{count}} dispositivi non hanno ancora riportato i flag di servizio, quindi il loro stato è sconosciuto"
|
|
4105
4220
|
},
|
|
4106
4221
|
devices: {
|
|
4107
4222
|
colDevice: "Dispositivo",
|
|
@@ -4159,7 +4274,12 @@ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
|
|
|
4159
4274
|
renameAction: "Rinomina sulla CCU",
|
|
4160
4275
|
buttonEventsSaving: "Salvataggio…",
|
|
4161
4276
|
buttonEventsSaved: "Salvato",
|
|
4162
|
-
openDevicePage: "Apri la pagina del dispositivo"
|
|
4277
|
+
openDevicePage: "Apri la pagina del dispositivo",
|
|
4278
|
+
colEvents: "Eventi",
|
|
4279
|
+
eventsOk: "Eventi: ok",
|
|
4280
|
+
eventsMissing: "Eventi: nessun programma",
|
|
4281
|
+
eventsInactive: "Eventi: programma spento",
|
|
4282
|
+
eventsUnknown: "Eventi: sconosciuto"
|
|
4163
4283
|
},
|
|
4164
4284
|
heating: {
|
|
4165
4285
|
loadFailed: "Impossibile leggere il riscaldamento",
|
|
@@ -4417,12 +4537,73 @@ var { useT: $, Trans: as, translate: os } = d("provider-homematic", {
|
|
|
4417
4537
|
minutesAgo: "{{count}} min fa",
|
|
4418
4538
|
hoursAgo: "{{count}} h fa",
|
|
4419
4539
|
daysAgo: "{{count}} g fa"
|
|
4540
|
+
},
|
|
4541
|
+
detail: {
|
|
4542
|
+
back: "Torna ai dispositivi",
|
|
4543
|
+
notFound: "Il dispositivo {{address}} non è su questa CCU.",
|
|
4544
|
+
notFoundTitle: "Dispositivo non trovato",
|
|
4545
|
+
identityTitle: "Identità",
|
|
4546
|
+
fieldName: "Nome",
|
|
4547
|
+
fieldAddress: "Indirizzo",
|
|
4548
|
+
fieldType: "Tipo",
|
|
4549
|
+
fieldFirmware: "Firmware",
|
|
4550
|
+
fieldInterface: "Interfaccia",
|
|
4551
|
+
fieldRooms: "Stanza",
|
|
4552
|
+
fieldFunctions: "Funzione",
|
|
4553
|
+
camstackDevice: "Dispositivo CamStack",
|
|
4554
|
+
notAdopted: "Non adottato in CamStack",
|
|
4555
|
+
stateTitle: "Stato attuale",
|
|
4556
|
+
stateUnavailable: "Valori attuali non disponibili",
|
|
4557
|
+
fieldSignal: "Segnale",
|
|
4558
|
+
fieldDuty: "Duty cycle",
|
|
4559
|
+
fieldUnreach: "Non raggiungibile",
|
|
4560
|
+
fieldBattery: "Batteria scarica",
|
|
4561
|
+
fieldConfigPending: "Configurazione in attesa",
|
|
4562
|
+
yes: "Sì",
|
|
4563
|
+
no: "No",
|
|
4564
|
+
unknown: "Sconosciuto",
|
|
4565
|
+
colChannel: "Canale",
|
|
4566
|
+
colParameter: "Parametro",
|
|
4567
|
+
colValue: "Valore",
|
|
4568
|
+
noValues: "Il dispositivo non ha valori leggibili",
|
|
4569
|
+
eventsTitle: "Eventi dei tasti",
|
|
4570
|
+
eventsHint: "Un tasto invia le pressioni fuori dalla CCU solo mentre un programma attivo della CCU ne fa riferimento.",
|
|
4571
|
+
colKey: "Tasto",
|
|
4572
|
+
colCentral: "Collegamento centrale",
|
|
4573
|
+
colProgram: "Programma eventi",
|
|
4574
|
+
programNone: "Nessun programma fa riferimento a questo tasto",
|
|
4575
|
+
programInactive: "Solo disattivati: {{names}}",
|
|
4576
|
+
programsUnavailable: "Impossibile leggere i programmi",
|
|
4577
|
+
createProgram: "Crea programma eventi",
|
|
4578
|
+
createProgramTitle: "Crea il programma eventi",
|
|
4579
|
+
createProgramMessage: "Crea sulla CCU un programma che fa riferimento ai tasti di {{name}} così che la CCU ne invii le pressioni.",
|
|
4580
|
+
createProgramConfirm: "Crea programma",
|
|
4581
|
+
createProgramUnavailable: "Un programma si può creare solo per un tasto HmIP.",
|
|
4582
|
+
manageCentral: "Collegamento centrale",
|
|
4583
|
+
pressShort: "Pressione breve",
|
|
4584
|
+
pressLong: "Pressione lunga",
|
|
4585
|
+
configTitle: "Configurazione",
|
|
4586
|
+
configHint: "Parametri MASTER di ogni canale, come memorizzati nel dispositivo.",
|
|
4587
|
+
configOpen: "Modifica configurazione",
|
|
4588
|
+
groupsTitle: "Gruppi di riscaldamento",
|
|
4589
|
+
groupsNone: "Non appartiene ad alcun gruppo",
|
|
4590
|
+
groupsUnavailable: "Gruppi non disponibili",
|
|
4591
|
+
linksTitle: "Collegamenti diretti",
|
|
4592
|
+
linksNone: "Nessun collegamento diretto",
|
|
4593
|
+
linksUnavailable: "Collegamenti diretti non disponibili",
|
|
4594
|
+
colSender: "Mittente",
|
|
4595
|
+
colReceiver: "Destinatario",
|
|
4596
|
+
faultsTitle: "Guasti e messaggi di servizio",
|
|
4597
|
+
faultsNone: "Nessun guasto o messaggio di servizio attivo",
|
|
4598
|
+
faultsUnavailable: "Guasti non disponibili",
|
|
4599
|
+
messagesUnavailable: "Messaggi di servizio non disponibili",
|
|
4600
|
+
faultsUnreported: "La CCU non ha ancora riportato i flag di servizio di questo dispositivo"
|
|
4420
4601
|
}
|
|
4421
4602
|
}
|
|
4422
4603
|
});
|
|
4423
4604
|
//#endregion
|
|
4424
4605
|
//#region src/ui/ParamField.tsx
|
|
4425
|
-
function
|
|
4606
|
+
function cs(e, t) {
|
|
4426
4607
|
if (typeof t == "boolean") return t;
|
|
4427
4608
|
if (e.type === "INTEGER" || e.type === "FLOAT") {
|
|
4428
4609
|
if (t.trim() === "") return;
|
|
@@ -4431,7 +4612,7 @@ function ss(e, t) {
|
|
|
4431
4612
|
}
|
|
4432
4613
|
return t;
|
|
4433
4614
|
}
|
|
4434
|
-
function
|
|
4615
|
+
function ls(e) {
|
|
4435
4616
|
let { param: n, edit: i, onEdit: s } = e, { t: c } = $(), l = n.unit === null ? n.parameter : `${n.parameter} (${n.unit})`, u = n.min !== null && n.max !== null ? c("config.range", {
|
|
4436
4617
|
min: n.min,
|
|
4437
4618
|
max: n.max
|
|
@@ -4481,10 +4662,10 @@ function cs(e) {
|
|
|
4481
4662
|
}
|
|
4482
4663
|
//#endregion
|
|
4483
4664
|
//#region src/ui/ccu-client.ts
|
|
4484
|
-
var
|
|
4485
|
-
async function
|
|
4665
|
+
var us = "provider-homematic";
|
|
4666
|
+
async function ds(e, t, n, r) {
|
|
4486
4667
|
let i = await e.addons.custom.mutate({
|
|
4487
|
-
addonId:
|
|
4668
|
+
addonId: us,
|
|
4488
4669
|
action: t,
|
|
4489
4670
|
input: n
|
|
4490
4671
|
});
|
|
@@ -4492,7 +4673,7 @@ async function us(e, t, n, r) {
|
|
|
4492
4673
|
}
|
|
4493
4674
|
//#endregion
|
|
4494
4675
|
//#region src/ui/use-ccu-data.ts
|
|
4495
|
-
function
|
|
4676
|
+
function fs(e, t, n, r, i = {}) {
|
|
4496
4677
|
let [a, o] = _(void 0), [s, c] = _(null), [l, u] = _(n !== null), [d, f] = _(0), p = ee(0), h = JSON.stringify(n), v = i.pollMs;
|
|
4497
4678
|
return m(() => {
|
|
4498
4679
|
if (n === null) {
|
|
@@ -4500,7 +4681,7 @@ function ds(e, t, n, r, i = {}) {
|
|
|
4500
4681
|
return;
|
|
4501
4682
|
}
|
|
4502
4683
|
let i = ++p.current, a, s = (l) => {
|
|
4503
|
-
l && u(!0),
|
|
4684
|
+
l && u(!0), ds(e, t, n, r).then((e) => {
|
|
4504
4685
|
p.current === i && (o(e), c(null), u(!1), v !== void 0 && (a = setTimeout(() => s(!1), v)));
|
|
4505
4686
|
}, (e) => {
|
|
4506
4687
|
p.current === i && (c(e instanceof Error ? e.message : String(e)), u(!1), v !== void 0 && (a = setTimeout(() => s(!1), v)));
|
|
@@ -4525,7 +4706,7 @@ function ds(e, t, n, r, i = {}) {
|
|
|
4525
4706
|
}
|
|
4526
4707
|
//#endregion
|
|
4527
4708
|
//#region src/ui/use-ccu-write.ts
|
|
4528
|
-
function
|
|
4709
|
+
function ps(e) {
|
|
4529
4710
|
let t = i(), n = l(), { t: r } = $();
|
|
4530
4711
|
return g(async (i) => {
|
|
4531
4712
|
if (!await t({
|
|
@@ -4535,7 +4716,7 @@ function fs(e) {
|
|
|
4535
4716
|
variant: i.variant ?? "default"
|
|
4536
4717
|
})) return null;
|
|
4537
4718
|
try {
|
|
4538
|
-
return await
|
|
4719
|
+
return await ds(e, i.action, {
|
|
4539
4720
|
...i.input,
|
|
4540
4721
|
confirmed: !0
|
|
4541
4722
|
}, i.schema);
|
|
@@ -4555,8 +4736,8 @@ function fs(e) {
|
|
|
4555
4736
|
}
|
|
4556
4737
|
//#endregion
|
|
4557
4738
|
//#region src/ui/ChannelConfigDialog.tsx
|
|
4558
|
-
function
|
|
4559
|
-
let { trpc: n, integrationId: i, device: a, onClose: o } = e, { t: s } = $(), l =
|
|
4739
|
+
function ms(e) {
|
|
4740
|
+
let { trpc: n, integrationId: i, device: a, onClose: o } = e, { t: s } = $(), l = ps(n), d = fs(n, "getCcuDeviceConfig", p(() => ({
|
|
4560
4741
|
integrationId: i,
|
|
4561
4742
|
address: a.address
|
|
4562
4743
|
}), [i, a.address]), Wo), [m, h] = _(null), [ee, g] = _({}), [v, x] = _(!1), S = d.data?.channels ?? [], C = S.find((e) => e.channel === m) ?? S[0], te = p(() => {
|
|
@@ -4564,7 +4745,7 @@ function ps(e) {
|
|
|
4564
4745
|
for (let t of C?.params ?? []) {
|
|
4565
4746
|
let n = ee[`${C?.channel}/${t.parameter}`];
|
|
4566
4747
|
if (n === void 0) continue;
|
|
4567
|
-
let r =
|
|
4748
|
+
let r = cs(t, n);
|
|
4568
4749
|
r !== void 0 && r !== t.value && (e[t.parameter] = r);
|
|
4569
4750
|
}
|
|
4570
4751
|
return e;
|
|
@@ -4633,7 +4814,7 @@ function ps(e) {
|
|
|
4633
4814
|
className: "text-xs text-danger",
|
|
4634
4815
|
children: s("config.valuesUnreadable", { error: C.error })
|
|
4635
4816
|
}),
|
|
4636
|
-
C.params.map((e) => /* @__PURE__ */ b(
|
|
4817
|
+
C.params.map((e) => /* @__PURE__ */ b(ls, {
|
|
4637
4818
|
param: e,
|
|
4638
4819
|
edit: ee[`${C.channel}/${e.parameter}`],
|
|
4639
4820
|
onEdit: (t) => g((n) => ({
|
|
@@ -4651,28 +4832,28 @@ function ps(e) {
|
|
|
4651
4832
|
}
|
|
4652
4833
|
//#endregion
|
|
4653
4834
|
//#region src/ui/value-format.ts
|
|
4654
|
-
function
|
|
4835
|
+
function hs(e) {
|
|
4655
4836
|
return e.type !== "ENUM" || e.valueList === null || typeof e.value != "number" ? e : {
|
|
4656
4837
|
...e,
|
|
4657
4838
|
value: e.valueList[e.value] ?? null
|
|
4658
4839
|
};
|
|
4659
4840
|
}
|
|
4660
|
-
function
|
|
4841
|
+
function gs(e, t) {
|
|
4661
4842
|
if (e.type === "ENUM" && e.valueList !== null && typeof t == "string") {
|
|
4662
4843
|
let n = e.valueList.indexOf(t);
|
|
4663
4844
|
return n < 0 ? void 0 : n;
|
|
4664
4845
|
}
|
|
4665
|
-
return
|
|
4846
|
+
return cs(e, t);
|
|
4666
4847
|
}
|
|
4667
|
-
function
|
|
4848
|
+
function _s(e) {
|
|
4668
4849
|
if (!e.readable || e.value === null || typeof e.value == "boolean") return null;
|
|
4669
|
-
let t =
|
|
4850
|
+
let t = hs(e).value;
|
|
4670
4851
|
return t === null ? null : e.unit === null || e.unit === "" ? String(t) : `${String(t)} ${e.unit}`;
|
|
4671
4852
|
}
|
|
4672
4853
|
//#endregion
|
|
4673
4854
|
//#region src/ui/SetValueDialog.tsx
|
|
4674
|
-
function
|
|
4675
|
-
let { param: t, channelLabel: n, onClose: r, onSet: i } = e, { t: a } = $(), [o, s] = _(void 0), [l, u] = _(!1), d = o === void 0 ? void 0 :
|
|
4855
|
+
function vs(e) {
|
|
4856
|
+
let { param: t, channelLabel: n, onClose: r, onSet: i } = e, { t: a } = $(), [o, s] = _(void 0), [l, u] = _(!1), d = o === void 0 ? void 0 : gs(t, o), p = async () => {
|
|
4676
4857
|
if (d !== void 0) {
|
|
4677
4858
|
u(!0);
|
|
4678
4859
|
try {
|
|
@@ -4697,8 +4878,8 @@ function _s(e) {
|
|
|
4697
4878
|
disabled: d === void 0 || l,
|
|
4698
4879
|
children: a("panel.set")
|
|
4699
4880
|
}),
|
|
4700
|
-
children: /* @__PURE__ */ b(
|
|
4701
|
-
param:
|
|
4881
|
+
children: /* @__PURE__ */ b(ls, {
|
|
4882
|
+
param: hs(t),
|
|
4702
4883
|
edit: o,
|
|
4703
4884
|
onEdit: s
|
|
4704
4885
|
})
|
|
@@ -4706,10 +4887,10 @@ function _s(e) {
|
|
|
4706
4887
|
}
|
|
4707
4888
|
//#endregion
|
|
4708
4889
|
//#region src/ui/DevicePanel.tsx
|
|
4709
|
-
function
|
|
4890
|
+
function ys(e) {
|
|
4710
4891
|
return e.name ?? `${e.type ?? e.address} · ${e.index}`;
|
|
4711
4892
|
}
|
|
4712
|
-
function
|
|
4893
|
+
function bs(e) {
|
|
4713
4894
|
let { diagnostics: t, firmware: r } = e.state, { t: i } = $(), a = (e) => e === null ? "—" : String(e);
|
|
4714
4895
|
return /* @__PURE__ */ y("div", {
|
|
4715
4896
|
className: "flex flex-wrap items-center gap-2",
|
|
@@ -4744,12 +4925,12 @@ function ys(e) {
|
|
|
4744
4925
|
]
|
|
4745
4926
|
});
|
|
4746
4927
|
}
|
|
4747
|
-
function
|
|
4748
|
-
let { trpc: r, integrationId: i, address: a, deviceId: o } = t, { t: s } = $(), l =
|
|
4928
|
+
function xs(t) {
|
|
4929
|
+
let { trpc: r, integrationId: i, address: a, deviceId: o } = t, { t: s } = $(), l = fs(r, "getCcuDeviceState", p(() => ({
|
|
4749
4930
|
integrationId: i,
|
|
4750
4931
|
address: a
|
|
4751
|
-
}), [i, a]), is), d =
|
|
4752
|
-
let r = t.type === "ACTION", a =
|
|
4932
|
+
}), [i, a]), is), d = ps(r), [f, m] = _({ kind: "closed" }), h = async (e, t, n) => {
|
|
4933
|
+
let r = t.type === "ACTION", a = hs({
|
|
4753
4934
|
...t,
|
|
4754
4935
|
value: n
|
|
4755
4936
|
}).value;
|
|
@@ -4766,10 +4947,10 @@ function bs(t) {
|
|
|
4766
4947
|
title: s("panel.writeTitle"),
|
|
4767
4948
|
message: r ? s("panel.pressMessage", {
|
|
4768
4949
|
parameter: t.parameter,
|
|
4769
|
-
channel:
|
|
4950
|
+
channel: ys(e)
|
|
4770
4951
|
}) : s("panel.writeMessage", {
|
|
4771
4952
|
parameter: t.parameter,
|
|
4772
|
-
channel:
|
|
4953
|
+
channel: ys(e),
|
|
4773
4954
|
value: String(a)
|
|
4774
4955
|
}),
|
|
4775
4956
|
confirmLabel: s("panel.writeConfirm"),
|
|
@@ -4810,7 +4991,7 @@ function bs(t) {
|
|
|
4810
4991
|
children: e.value ? s("panel.yes") : s("panel.no")
|
|
4811
4992
|
}) : /* @__PURE__ */ b("span", {
|
|
4812
4993
|
className: "text-sm text-foreground",
|
|
4813
|
-
children:
|
|
4994
|
+
children: _s(e) ?? "—"
|
|
4814
4995
|
}), v = (e) => [
|
|
4815
4996
|
{
|
|
4816
4997
|
key: "parameter",
|
|
@@ -4873,13 +5054,13 @@ function bs(t) {
|
|
|
4873
5054
|
})]
|
|
4874
5055
|
})]
|
|
4875
5056
|
}),
|
|
4876
|
-
/* @__PURE__ */ b(
|
|
5057
|
+
/* @__PURE__ */ b(bs, { state: x }),
|
|
4877
5058
|
x.channels.filter((e) => e.values.length > 0).map((t) => /* @__PURE__ */ y("div", {
|
|
4878
5059
|
className: "flex flex-col gap-1",
|
|
4879
5060
|
children: [/* @__PURE__ */ y("span", {
|
|
4880
5061
|
className: "text-xs font-medium text-foreground-muted",
|
|
4881
5062
|
children: [
|
|
4882
|
-
t.index === 0 ? s("panel.maintenance") :
|
|
5063
|
+
t.index === 0 ? s("panel.maintenance") : ys(t),
|
|
4883
5064
|
" ·",
|
|
4884
5065
|
" ",
|
|
4885
5066
|
t.address
|
|
@@ -4892,7 +5073,7 @@ function bs(t) {
|
|
|
4892
5073
|
emptyMessage: s("panel.none")
|
|
4893
5074
|
})]
|
|
4894
5075
|
}, t.address)),
|
|
4895
|
-
f.kind === "configure" && /* @__PURE__ */ b(
|
|
5076
|
+
f.kind === "configure" && /* @__PURE__ */ b(ms, {
|
|
4896
5077
|
trpc: r,
|
|
4897
5078
|
integrationId: i,
|
|
4898
5079
|
device: {
|
|
@@ -4901,9 +5082,9 @@ function bs(t) {
|
|
|
4901
5082
|
},
|
|
4902
5083
|
onClose: () => m({ kind: "closed" })
|
|
4903
5084
|
}),
|
|
4904
|
-
f.kind === "set" && /* @__PURE__ */ b(
|
|
5085
|
+
f.kind === "set" && /* @__PURE__ */ b(vs, {
|
|
4905
5086
|
param: f.param,
|
|
4906
|
-
channelLabel:
|
|
5087
|
+
channelLabel: ys(f.channel),
|
|
4907
5088
|
onClose: () => m({ kind: "closed" }),
|
|
4908
5089
|
onSet: async (e) => {
|
|
4909
5090
|
await h(f.channel, f.param, e) && m({ kind: "closed" });
|
|
@@ -4914,13 +5095,13 @@ function bs(t) {
|
|
|
4914
5095
|
}
|
|
4915
5096
|
//#endregion
|
|
4916
5097
|
//#region src/widgets/DevicePanelWidget.tsx
|
|
4917
|
-
var
|
|
5098
|
+
var Ss = Y({
|
|
4918
5099
|
integrationId: W().min(1),
|
|
4919
5100
|
address: W().min(1)
|
|
4920
5101
|
});
|
|
4921
|
-
function
|
|
4922
|
-
let t = s(), { t: n } = $(), r =
|
|
4923
|
-
return r.success ? /* @__PURE__ */ b(
|
|
5102
|
+
function Cs(e) {
|
|
5103
|
+
let t = s(), { t: n } = $(), r = Ss.safeParse(e.config ?? {});
|
|
5104
|
+
return r.success ? /* @__PURE__ */ b(xs, {
|
|
4924
5105
|
trpc: t,
|
|
4925
5106
|
integrationId: r.data.integrationId,
|
|
4926
5107
|
address: r.data.address,
|
|
@@ -4932,6 +5113,6 @@ function Ss(e) {
|
|
|
4932
5113
|
}
|
|
4933
5114
|
//#endregion
|
|
4934
5115
|
//#region src/widgets/index.tsx
|
|
4935
|
-
var
|
|
5116
|
+
var ws = { "device-panel": Cs };
|
|
4936
5117
|
//#endregion
|
|
4937
|
-
export {
|
|
5118
|
+
export { ws as default };
|
|
@@ -18,7 +18,7 @@ var e = {
|
|
|
18
18
|
},
|
|
19
19
|
"@camstack/types": {
|
|
20
20
|
name: "@camstack/types",
|
|
21
|
-
version: "1.2.
|
|
21
|
+
version: "1.2.617",
|
|
22
22
|
scope: ["default"],
|
|
23
23
|
loaded: !1,
|
|
24
24
|
from: "addon_provider_homematic_widgets",
|
|
@@ -33,7 +33,7 @@ var e = {
|
|
|
33
33
|
},
|
|
34
34
|
"@camstack/ui-library": {
|
|
35
35
|
name: "@camstack/ui-library",
|
|
36
|
-
version: "1.2.
|
|
36
|
+
version: "1.2.487",
|
|
37
37
|
scope: ["default"],
|
|
38
38
|
loaded: !1,
|
|
39
39
|
from: "addon_provider_homematic_widgets",
|