@zwave-js/cc 15.17.0 → 15.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/cc/ConfigurationCC.js +8 -1
- package/build/cjs/cc/ConfigurationCC.js.map +2 -2
- package/build/cjs/cc/EntryControlCC.js +0 -3
- package/build/cjs/cc/EntryControlCC.js.map +2 -2
- package/build/cjs/cc/SoundSwitchCC._validateArgs.js +1 -1
- package/build/cjs/cc/SoundSwitchCC._validateArgs.js.map +1 -1
- package/build/cjs/cc/SoundSwitchCC.d.ts +7 -3
- package/build/cjs/cc/SoundSwitchCC.js +12 -8
- package/build/cjs/cc/SoundSwitchCC.js.map +2 -2
- package/build/cjs/cc/UserCodeCC.d.ts +1 -1
- package/build/cjs/cc/UserCodeCC.js +78 -33
- package/build/cjs/cc/UserCodeCC.js.map +2 -2
- package/build/cjs/cc/index.js +546 -66
- package/build/cjs/cc/index.js.map +2 -2
- package/build/cjs/lib/API.d.ts +2 -2
- package/build/cjs/lib/API.js.map +2 -2
- package/build/cjs/lib/utils.d.ts +7 -1
- package/build/cjs/lib/utils.js +21 -17
- package/build/cjs/lib/utils.js.map +2 -2
- package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
- package/build/esm/cc/ConfigurationCC.js +10 -1
- package/build/esm/cc/ConfigurationCC.js.map +1 -1
- package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
- package/build/esm/cc/EntryControlCC.js +1 -3
- package/build/esm/cc/EntryControlCC.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC._validateArgs.js +1 -1
- package/build/esm/cc/SoundSwitchCC._validateArgs.js.map +1 -1
- package/build/esm/cc/SoundSwitchCC.d.ts +7 -3
- package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
- package/build/esm/cc/SoundSwitchCC.js +12 -8
- package/build/esm/cc/SoundSwitchCC.js.map +1 -1
- package/build/esm/cc/UserCodeCC.d.ts +1 -1
- package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
- package/build/esm/cc/UserCodeCC.js +111 -41
- package/build/esm/cc/UserCodeCC.js.map +1 -1
- package/build/esm/cc/index.d.ts.map +1 -1
- package/build/esm/cc/index.js +546 -527
- package/build/esm/cc/index.js.map +1 -1
- package/build/esm/lib/API.d.ts +2 -2
- package/build/esm/lib/API.d.ts.map +1 -1
- package/build/esm/lib/API.js.map +1 -1
- package/build/esm/lib/utils.d.ts +7 -1
- package/build/esm/lib/utils.d.ts.map +1 -1
- package/build/esm/lib/utils.js +25 -21
- package/build/esm/lib/utils.js.map +1 -1
- package/package.json +9 -9
|
@@ -1053,6 +1053,9 @@ alters capabilities: ${!!properties.altersCapabilities}`;
|
|
|
1053
1053
|
}
|
|
1054
1054
|
this.setValue(ctx, import_CCValues_generated.ConfigurationCCValues.isParamInformationFromConfig, false);
|
|
1055
1055
|
for (const [param, info] of config.entries()) {
|
|
1056
|
+
if (info.hidden) {
|
|
1057
|
+
continue;
|
|
1058
|
+
}
|
|
1056
1059
|
const paramInfo = (0, import_core.stripUndefined)({
|
|
1057
1060
|
// TODO: Make this smarter! (0...1 ==> boolean)
|
|
1058
1061
|
type: "number",
|
|
@@ -1149,6 +1152,10 @@ let ConfigurationCCReport = (() => {
|
|
|
1149
1152
|
persistValues(ctx) {
|
|
1150
1153
|
if (!super.persistValues(ctx))
|
|
1151
1154
|
return false;
|
|
1155
|
+
const paramInfo = getParamInformationFromConfigFile(ctx, this.nodeId, this.endpointIndex);
|
|
1156
|
+
if (paramInfo?.get({ parameter: this.parameter })?.hidden) {
|
|
1157
|
+
return true;
|
|
1158
|
+
}
|
|
1152
1159
|
const ccVersion = (0, import_CommandClass.getEffectiveCCVersion)(ctx, this);
|
|
1153
1160
|
const partialParams = this.getPartialParamInfos(ctx, this.parameter);
|
|
1154
1161
|
let cachedValueFormat;
|
|
@@ -2158,7 +2165,7 @@ let ConfigurationCCPropertiesGet = (() => {
|
|
|
2158
2165
|
return ConfigurationCCPropertiesGet2 = _classThis;
|
|
2159
2166
|
})();
|
|
2160
2167
|
let ConfigurationCCDefaultReset = (() => {
|
|
2161
|
-
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ConfigurationCommand.DefaultReset)];
|
|
2168
|
+
let _classDecorators = [(0, import_CommandClassDecorators.CCCommand)(import_Types.ConfigurationCommand.DefaultReset), (0, import_CommandClassDecorators.useSupervision)()];
|
|
2162
2169
|
let _classDescriptor;
|
|
2163
2170
|
let _classExtraInitializers = [];
|
|
2164
2171
|
let _classThis;
|