@c8y/ngx-components 1023.22.2 → 1023.22.6
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/fesm2022/c8y-ngx-components-protocol-opcua-mappings.mjs +2 -2
- package/fesm2022/c8y-ngx-components-protocol-opcua-mappings.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-protocol-opcua.mjs +1 -1
- package/fesm2022/c8y-ngx-components-protocol-opcua.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +18 -6
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/index.d.ts.map +1 -1
- package/locales/de.po +7 -4
- package/locales/es.po +5 -2
- package/locales/fr.po +5 -2
- package/locales/ja_JP.po +5 -2
- package/locales/ko.po +5 -2
- package/locales/locales.pot +1 -1
- package/locales/nl.po +5 -2
- package/locales/pl.po +5 -2
- package/locales/pt_BR.po +5 -2
- package/locales/zh_CN.po +5 -2
- package/locales/zh_TW.po +5 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { gettext } from '@c8y/ngx-components/gettext';
|
|
2
1
|
import { BaseObjectMapping, MeasurementObjectMapping, EventObjectMapping, AlarmObjectMapping, ALARM_SEVERITY } from '@c8y/ngx-components/device-protocol-object-mappings';
|
|
2
|
+
import { gettext } from '@c8y/ngx-components/gettext';
|
|
3
3
|
|
|
4
4
|
class OpcuaCustomActionObjectMapping extends BaseObjectMapping {
|
|
5
5
|
constructor() {
|
|
@@ -69,7 +69,7 @@ class OpcuaCustomActionObjectMapping extends BaseObjectMapping {
|
|
|
69
69
|
label: gettext('Body template'),
|
|
70
70
|
smallFormGroup: true,
|
|
71
71
|
required: true,
|
|
72
|
-
description: gettext('The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`.')
|
|
72
|
+
description: gettext('The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${receivedTimestampInMs}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`.')
|
|
73
73
|
},
|
|
74
74
|
className: 'col-md-6'
|
|
75
75
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-protocol-opcua-mappings.mjs","sources":["../../protocol-opcua/mappings/custom-action-mapping.ts","../../protocol-opcua/mappings/default-mappings.ts","../../protocol-opcua/mappings/c8y-ngx-components-protocol-opcua-mappings.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-protocol-opcua-mappings.mjs","sources":["../../protocol-opcua/mappings/custom-action-mapping.ts","../../protocol-opcua/mappings/default-mappings.ts","../../protocol-opcua/mappings/c8y-ngx-components-protocol-opcua-mappings.ts"],"sourcesContent":["import { BaseObjectMapping } from '@c8y/ngx-components/device-protocol-object-mappings';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nexport class OpcuaCustomActionObjectMapping extends BaseObjectMapping {\n constructor() {\n super({\n icon: 'bell',\n label: gettext('Custom action'),\n formlyFieldConfig: {\n key: 'customAction',\n fieldGroup: [\n {\n type: 'array',\n key: 'headers',\n props: {\n label: gettext('headers'),\n addText: gettext('Add Header'),\n required: true\n },\n className: 'formly-group-array-cols d-block min-height-fit',\n fieldArray: {\n fieldGroup: [\n {\n key: 'key',\n type: 'string',\n focus: true,\n props: {\n placeholder: 'Authorization',\n label: gettext('Key'),\n required: true,\n smallFormGroup: true\n },\n wrappers: ['c8y-form-field']\n },\n {\n key: 'value',\n type: 'string',\n props: {\n placeholder: 'Basic <credentials>',\n label: gettext('Value'),\n required: true,\n smallFormGroup: true\n }\n }\n ]\n }\n },\n {\n className: 'row',\n wrappers: ['c8y-legend-wrapper'],\n props: {\n label: gettext('Action')\n },\n fieldGroup: [\n {\n type: 'string',\n key: 'endpoint',\n props: {\n label: gettext('Endpoint'),\n smallFormGroup: true,\n required: true\n },\n className: 'col-md-6 p-0'\n },\n {\n type: 'textarea',\n key: 'bodyTemplate',\n props: {\n label: gettext('Body template'),\n smallFormGroup: true,\n required: true,\n description: gettext(\n 'The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${receivedTimestampInMs}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`.'\n )\n },\n className: 'col-md-6'\n }\n ]\n }\n ]\n }\n });\n }\n}\n","import { gettext } from '@c8y/ngx-components/gettext';\nimport {\n AlarmObjectMapping,\n ALARM_SEVERITY,\n EventObjectMapping,\n MeasurementObjectMapping\n} from '@c8y/ngx-components/device-protocol-object-mappings';\n\nexport class OpcuaMeasurementObjectMapping extends MeasurementObjectMapping {\n constructor(protected smallFormGroup = true) {\n super(null, 'measurementCreation', smallFormGroup);\n }\n}\n\nexport class OpcuaEventObjectMapping extends EventObjectMapping {\n constructor(protected smallFormGroup = true) {\n super(null, 'eventCreation', smallFormGroup, undefined, [\n {\n key: 'type',\n type: 'string',\n props: {\n label: gettext('Type'),\n required: true,\n smallFormGroup\n },\n className: 'col-md-3 col-sm-6'\n },\n {\n key: 'text',\n type: 'string',\n props: {\n label: gettext('Text'),\n required: true,\n smallFormGroup\n },\n className: 'col-md-3 col-sm-6'\n }\n ]);\n }\n}\n\nexport class OpcuaAlarmObjectMapping extends AlarmObjectMapping {\n constructor(protected smallFormGroup = true) {\n super(null, 'alarmCreation', smallFormGroup, undefined, [\n {\n key: 'severity',\n type: 'select',\n props: {\n label: gettext('Severity'),\n options: [...Object.values(ALARM_SEVERITY).map(value => ({ label: value, value }))],\n required: true,\n smallFormGroup\n },\n className: 'col-md-3 col-sm-6'\n },\n {\n key: 'type',\n type: 'string',\n props: {\n label: gettext('Type'),\n smallFormGroup,\n required: true\n },\n className: 'col-md-3 col-sm-6'\n },\n {\n key: 'text',\n type: 'string',\n props: {\n label: gettext('Text'),\n smallFormGroup,\n required: true\n },\n className: 'col-md-3 col-sm-6'\n }\n ]);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAGM,MAAO,8BAA+B,SAAQ,iBAAiB,CAAA;AACnE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,CAAC;AACJ,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,KAAK,EAAE,OAAO,CAAC,eAAe,CAAC;AAC/B,YAAA,iBAAiB,EAAE;AACjB,gBAAA,GAAG,EAAE,cAAc;AACnB,gBAAA,UAAU,EAAE;AACV,oBAAA;AACE,wBAAA,IAAI,EAAE,OAAO;AACb,wBAAA,GAAG,EAAE,SAAS;AACd,wBAAA,KAAK,EAAE;AACL,4BAAA,KAAK,EAAE,OAAO,CAAC,SAAS,CAAC;AACzB,4BAAA,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC;AAC9B,4BAAA,QAAQ,EAAE;AACX,yBAAA;AACD,wBAAA,SAAS,EAAE,gDAAgD;AAC3D,wBAAA,UAAU,EAAE;AACV,4BAAA,UAAU,EAAE;AACV,gCAAA;AACE,oCAAA,GAAG,EAAE,KAAK;AACV,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,KAAK,EAAE,IAAI;AACX,oCAAA,KAAK,EAAE;AACL,wCAAA,WAAW,EAAE,eAAe;AAC5B,wCAAA,KAAK,EAAE,OAAO,CAAC,KAAK,CAAC;AACrB,wCAAA,QAAQ,EAAE,IAAI;AACd,wCAAA,cAAc,EAAE;AACjB,qCAAA;oCACD,QAAQ,EAAE,CAAC,gBAAgB;AAC5B,iCAAA;AACD,gCAAA;AACE,oCAAA,GAAG,EAAE,OAAO;AACZ,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,KAAK,EAAE;AACL,wCAAA,WAAW,EAAE,qBAAqB;AAClC,wCAAA,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC;AACvB,wC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AAA,QAAQ,EAAE;AACX,iBAAA;AACD,gBAAA,SAAS,EAAE;AACZ,aAAA;AACD,YAAA;AACE,gBAAA,GAAG,EAAE,MAAM;AACX,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,KAAK,EAAE;AACL,oBAAA,KAAK,EAAE,OAAO,CAAC,MAAM,CAAC;oBACtB,cAAc;AACd,oBAAA,QAAQ,EAAE;AACX,iBAAA;AACD,gBAAA,SAAS,EAAE;AACZ;AACF,SAAA,CAAC;QAjCkB,IAAA,CAAA,cAAc,GAAd,cAAc;IAkCpC;AACD;;AC7ED;;AAEG;;;;"}
|
|
@@ -1231,7 +1231,7 @@ class OpcuaCustomActionObjectMapping extends BaseObjectMapping {
|
|
|
1231
1231
|
label: gettext('Body template'),
|
|
1232
1232
|
smallFormGroup: true,
|
|
1233
1233
|
required: true,
|
|
1234
|
-
description: gettext('The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`.')
|
|
1234
|
+
description: gettext('The following placeholders are available: ${value}`KEEP_ORIGINAL`, ${receivedTimestampInMs}`KEEP_ORIGINAL`, ${serverId}`KEEP_ORIGINAL`, ${nodeId}`KEEP_ORIGINAL`, ${deviceId}`KEEP_ORIGINAL`.')
|
|
1235
1235
|
},
|
|
1236
1236
|
className: 'col-md-6'
|
|
1237
1237
|
}
|