@iobroker/adapter-react-v5 4.1.0 → 4.2.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/Components/ColorPicker.d.ts +8 -8
- package/Components/FileBrowser.d.ts +24 -24
- package/Components/FileViewer.d.ts +12 -12
- package/Components/Icon.d.ts +7 -7
- package/Components/Icon.js +1 -1
- package/Components/Icon.js.map +1 -1
- package/Components/IconPicker.d.ts +10 -10
- package/Components/IconSelector.d.ts +7 -7
- package/Components/Image.d.ts +4 -4
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigCertCollection.js +2 -2
- package/Components/JsonConfigComponent/ConfigCertCollection.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCertificates.js +2 -2
- package/Components/JsonConfigComponent/ConfigCertificates.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +7 -7
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +10 -10
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +23 -23
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +1 -1
- package/Components/JsonConfigComponent/ConfigPort.js +1 -1
- package/Components/JsonConfigComponent/ConfigPort.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSendto.js +2 -2
- package/Components/JsonConfigComponent/ConfigSendto.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigSetState.js +2 -2
- package/Components/JsonConfigComponent/ConfigSetState.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigTable.js +2 -2
- package/Components/JsonConfigComponent/ConfigTable.js.map +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.d.ts +2 -2
- package/Components/JsonConfigComponent/ConfigUUID.js +1 -1
- package/Components/JsonConfigComponent/ConfigUUID.js.map +1 -1
- package/Components/Loader.d.ts +2 -2
- package/Components/Loaders/PT.d.ts +2 -2
- package/Components/Loaders/Vendor.d.ts +2 -2
- package/Components/Logo.d.ts +7 -7
- package/Components/ObjectBrowser.d.ts +52 -52
- package/Components/ObjectBrowser.js +22 -25
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/SaveCloseButtons.d.ts +10 -10
- package/Components/SelectWithIcon.js +1 -1
- package/Components/SelectWithIcon.js.map +1 -1
- package/Components/TabContainer.d.ts +2 -2
- package/Components/TabContent.d.ts +1 -1
- package/Components/TextWithIcon.js.map +1 -1
- package/Components/TreeTable.js +1 -1
- package/Components/TreeTable.js.map +1 -1
- package/Components/UploadImage.js +2 -2
- package/Components/UploadImage.js.map +1 -1
- package/Components/Utils.js +8 -6
- package/Components/Utils.js.map +1 -1
- package/Dialogs/Confirm.js +1 -1
- package/Dialogs/Confirm.js.map +1 -1
- package/Dialogs/Error.d.ts +5 -5
- package/Dialogs/Message.d.ts +6 -6
- package/Dialogs/SelectFile.d.ts +28 -28
- package/Dialogs/SelectID.d.ts +27 -27
- package/Dialogs/TextInput.d.ts +11 -11
- package/GenericApp.d.ts +10 -9
- package/GenericApp.js +16 -13
- package/GenericApp.js.map +1 -1
- package/LegacyConnection.d.ts +13 -7
- package/LegacyConnection.js +181 -161
- package/LegacyConnection.js.map +1 -1
- package/README.md +10 -3
- package/icons/IconAdapter.d.ts +4 -4
- package/icons/IconAlias.d.ts +4 -4
- package/icons/IconChannel.d.ts +4 -4
- package/icons/IconClearFilter.d.ts +4 -4
- package/icons/IconClosed.d.ts +4 -4
- package/icons/IconCopy.d.ts +4 -4
- package/icons/IconDevice.d.ts +4 -4
- package/icons/IconDocument.d.ts +4 -4
- package/icons/IconDocumentReadOnly.d.ts +4 -4
- package/icons/IconExpert.d.ts +4 -4
- package/icons/IconFx.d.ts +4 -4
- package/icons/IconInstance.d.ts +4 -4
- package/icons/IconLogout.d.ts +4 -4
- package/icons/IconNoIcon.d.ts +4 -4
- package/icons/IconOpen.d.ts +4 -4
- package/icons/IconState.d.ts +4 -4
- package/package.json +10 -10
|
@@ -45,7 +45,7 @@ var ConfigUUID = /*#__PURE__*/function (_ConfigGeneric) {
|
|
|
45
45
|
case 3:
|
|
46
46
|
uuidObj = _context.sent;
|
|
47
47
|
this.setState({
|
|
48
|
-
uuid: (uuidObj === null || uuidObj === void 0
|
|
48
|
+
uuid: (uuidObj === null || uuidObj === void 0 || (_uuidObj$native = uuidObj["native"]) === null || _uuidObj$native === void 0 ? void 0 : _uuidObj$native.uuid) || 'unknown'
|
|
49
49
|
});
|
|
50
50
|
case 5:
|
|
51
51
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigUUID.js","names":["_react","_interopRequireDefault","require","_propTypes","_TextField","_IconButton","_ContentCopy","_i18n","_Utils","_ConfigGeneric2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ConfigUUID","_ConfigGeneric","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","_uuidObj$native","uuidObj","wrap","_callee$","_context","prev","next","_get2","props","socket","getObject","sent","setState","uuid","stop","componentDidMount","renderItem","error","disabled","_this","createElement","variant","fullWidth","inputProps","readOnly","InputProps","endAdornment","onClick","Utils","copyToClipboard","state","window","alert","I18n","t","label","getText","schema","helperText","renderHelp","help","helpLink","noTranslation","ConfigGeneric","propTypes","PropTypes","object","isRequired","_default","exports"],"sources":["JsonConfigComponent/ConfigUUID.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport TextField from '@mui/material/TextField';\nimport IconButton from '@mui/material/IconButton';\n\nimport IconCopy from '@mui/icons-material/ContentCopy';\n\nimport I18n from './wrapper/i18n';\nimport Utils from './wrapper/Components/Utils';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nclass ConfigUUID extends ConfigGeneric {\n async componentDidMount() {\n super.componentDidMount();\n\n const uuidObj = await this.props.socket.getObject('system.meta.uuid');\n this.setState( { uuid: uuidObj?.native?.uuid || 'unknown'});\n }\n\n renderItem(error, disabled) {\n return <TextField\n variant=\"standard\"\n fullWidth\n error={!!error}\n disabled={!!disabled}\n inputProps={{\n readOnly: true,\n }}\n InputProps={{\n endAdornment: <IconButton onClick={() => {\n Utils.copyToClipboard(this.state.uuid);\n window.alert(I18n.t('ra_Copied %s', this.state.uuid));\n }}>\n <IconCopy />\n </IconButton>\n }}\n value={this.state.uuid || ''}\n label={this.getText(this.props.schema.label) || I18n.t('ra_Serial number (UUID)')}\n helperText={this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n />;\n }\n}\n\nConfigUUID.propTypes = {\n socket: PropTypes.object.isRequired,\n schema: PropTypes.object,\n};\n\nexport default ConfigUUID;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,KAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,MAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,eAAA,GAAAR,sBAAA,CAAAC,OAAA;AAA4C,SAAAQ,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAA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RequireDefault","require","_propTypes","_TextField","_IconButton","_ContentCopy","_i18n","_Utils","_ConfigGeneric2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ConfigUUID","_ConfigGeneric","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","_uuidObj$native","uuidObj","wrap","_callee$","_context","prev","next","_get2","props","socket","getObject","sent","setState","uuid","stop","componentDidMount","renderItem","error","disabled","_this","createElement","variant","fullWidth","inputProps","readOnly","InputProps","endAdornment","onClick","Utils","copyToClipboard","state","window","alert","I18n","t","label","getText","schema","helperText","renderHelp","help","helpLink","noTranslation","ConfigGeneric","propTypes","PropTypes","object","isRequired","_default","exports"],"sources":["JsonConfigComponent/ConfigUUID.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport TextField from '@mui/material/TextField';\nimport IconButton from '@mui/material/IconButton';\n\nimport IconCopy from '@mui/icons-material/ContentCopy';\n\nimport I18n from './wrapper/i18n';\nimport Utils from './wrapper/Components/Utils';\n\nimport ConfigGeneric from './ConfigGeneric';\n\nclass ConfigUUID extends ConfigGeneric {\n async componentDidMount() {\n super.componentDidMount();\n\n const uuidObj = await this.props.socket.getObject('system.meta.uuid');\n this.setState( { uuid: uuidObj?.native?.uuid || 'unknown'});\n }\n\n renderItem(error, disabled) {\n return <TextField\n variant=\"standard\"\n fullWidth\n error={!!error}\n disabled={!!disabled}\n inputProps={{\n readOnly: true,\n }}\n InputProps={{\n endAdornment: <IconButton onClick={() => {\n Utils.copyToClipboard(this.state.uuid);\n window.alert(I18n.t('ra_Copied %s', this.state.uuid));\n }}>\n <IconCopy />\n </IconButton>\n }}\n value={this.state.uuid || ''}\n label={this.getText(this.props.schema.label) || I18n.t('ra_Serial number (UUID)')}\n helperText={this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation)}\n />;\n }\n}\n\nConfigUUID.propTypes = {\n socket: PropTypes.object.isRequired,\n schema: PropTypes.object,\n};\n\nexport default ConfigUUID;\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,WAAA,GAAAJ,sBAAA,CAAAC,OAAA;AAEA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,KAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,MAAA,GAAAP,sBAAA,CAAAC,OAAA;AAEA,IAAAO,eAAA,GAAAR,sBAAA,CAAAC,OAAA;AAA4C,SAAAQ,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA;AAAA,IAEtCC,UAAU,0BAAAC,cAAA;EAAA,IAAAC,UAAA,aAAAF,UAAA,EAAAC,cAAA;EAAA,IAAAE,MAAA,GAAAzB,YA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Component<LoaderProps, any, any> {
|
|
|
29
29
|
}
|
|
30
30
|
declare namespace Loader {
|
|
31
31
|
namespace propTypes {
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
let size: PropTypes.Requireable<number>;
|
|
33
|
+
let themeType: PropTypes.Requireable<string>;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
import React from 'react';
|
|
@@ -33,8 +33,8 @@ declare class LoaderPT extends React.Component<LoaderPTProps, any, any> {
|
|
|
33
33
|
}
|
|
34
34
|
declare namespace LoaderPT {
|
|
35
35
|
namespace propTypes {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
let size: PropTypes.Requireable<number>;
|
|
37
|
+
let themeType: PropTypes.Requireable<string>;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
import React from 'react';
|
|
@@ -33,8 +33,8 @@ declare class LoaderVendor extends React.Component<LoaderVendorProps, any, any>
|
|
|
33
33
|
}
|
|
34
34
|
declare namespace LoaderVendor {
|
|
35
35
|
namespace propTypes {
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
let size: PropTypes.Requireable<number>;
|
|
37
|
+
let themeType: PropTypes.Requireable<string>;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
import React from 'react';
|
package/Components/Logo.d.ts
CHANGED
|
@@ -46,13 +46,13 @@ declare class Logo extends React.Component<LogoProps, any, any> {
|
|
|
46
46
|
}
|
|
47
47
|
declare namespace Logo {
|
|
48
48
|
namespace propTypes {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
let common: PropTypes.Validator<object>;
|
|
50
|
+
let className: PropTypes.Requireable<string>;
|
|
51
|
+
let style: PropTypes.Requireable<object>;
|
|
52
|
+
let native: PropTypes.Validator<object>;
|
|
53
|
+
let instance: PropTypes.Validator<number>;
|
|
54
|
+
let onError: PropTypes.Validator<(...args: any[]) => any>;
|
|
55
|
+
let onLoad: PropTypes.Validator<(...args: any[]) => any>;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
import React from 'react';
|
|
@@ -221,7 +221,7 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
221
221
|
id: string;
|
|
222
222
|
};
|
|
223
223
|
children: never[];
|
|
224
|
-
}, _partyId?: string | undefined): any;
|
|
224
|
+
} | null | undefined, _partyId?: string | undefined): any;
|
|
225
225
|
/**
|
|
226
226
|
* Called when a state changes.
|
|
227
227
|
* @param {string} id
|
|
@@ -565,68 +565,68 @@ declare class ObjectBrowser extends React.Component<import("./types").ObjectBrow
|
|
|
565
565
|
}
|
|
566
566
|
declare namespace ObjectBrowser {
|
|
567
567
|
namespace defaultProps {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
568
|
+
let objectAddBoolean: boolean;
|
|
569
|
+
let objectEditBoolean: boolean;
|
|
570
|
+
let objectStatesView: boolean;
|
|
571
|
+
let objectImportExport: boolean;
|
|
572
|
+
let objectEditOfAccessControl: boolean;
|
|
573
573
|
function modalNewObject(): void;
|
|
574
574
|
function modalEditOfAccessControl(): void;
|
|
575
575
|
}
|
|
576
576
|
namespace propTypes {
|
|
577
|
-
export
|
|
578
|
-
export
|
|
579
|
-
export
|
|
580
|
-
export
|
|
581
|
-
export
|
|
582
|
-
export
|
|
583
|
-
export
|
|
584
|
-
export
|
|
585
|
-
export
|
|
586
|
-
export
|
|
587
|
-
export
|
|
588
|
-
export
|
|
589
|
-
export
|
|
590
|
-
export
|
|
591
|
-
export
|
|
592
|
-
export
|
|
593
|
-
export
|
|
594
|
-
export
|
|
595
|
-
export
|
|
596
|
-
export
|
|
597
|
-
export
|
|
598
|
-
export
|
|
599
|
-
export
|
|
600
|
-
|
|
577
|
+
export let dialogName: PropTypes.Requireable<string>;
|
|
578
|
+
export let classes: PropTypes.Requireable<object>;
|
|
579
|
+
export let defaultFilters: PropTypes.Requireable<object>;
|
|
580
|
+
export let selected: PropTypes.Requireable<NonNullable<string | any[]>>;
|
|
581
|
+
export let onSelect: PropTypes.Requireable<(...args: any[]) => any>;
|
|
582
|
+
export let onFilterChanged: PropTypes.Requireable<(...args: any[]) => any>;
|
|
583
|
+
export let socket: PropTypes.Requireable<object>;
|
|
584
|
+
export let showExpertButton: PropTypes.Requireable<boolean>;
|
|
585
|
+
export let expertMode: PropTypes.Requireable<boolean>;
|
|
586
|
+
export let imagePrefix: PropTypes.Requireable<string>;
|
|
587
|
+
export let themeName: PropTypes.Requireable<string>;
|
|
588
|
+
export let themeType: PropTypes.Requireable<string>;
|
|
589
|
+
export let theme: PropTypes.Requireable<object>;
|
|
590
|
+
export let t: PropTypes.Requireable<(...args: any[]) => any>;
|
|
591
|
+
export let lang: PropTypes.Validator<string>;
|
|
592
|
+
export let multiSelect: PropTypes.Requireable<boolean>;
|
|
593
|
+
export let notEditable: PropTypes.Requireable<boolean>;
|
|
594
|
+
export let foldersFirst: PropTypes.Requireable<boolean>;
|
|
595
|
+
export let disableColumnSelector: PropTypes.Requireable<boolean>;
|
|
596
|
+
export let isFloatComma: PropTypes.Requireable<boolean>;
|
|
597
|
+
export let dateFormat: PropTypes.Requireable<string>;
|
|
598
|
+
export let levelPadding: PropTypes.Requireable<number>;
|
|
599
|
+
export let objectCustomDialog: PropTypes.Requireable<object>;
|
|
600
|
+
let objectAddBoolean_1: PropTypes.Requireable<boolean>;
|
|
601
601
|
export { objectAddBoolean_1 as objectAddBoolean };
|
|
602
|
-
|
|
602
|
+
let objectEditBoolean_1: PropTypes.Requireable<boolean>;
|
|
603
603
|
export { objectEditBoolean_1 as objectEditBoolean };
|
|
604
|
-
|
|
604
|
+
let objectStatesView_1: PropTypes.Requireable<boolean>;
|
|
605
605
|
export { objectStatesView_1 as objectStatesView };
|
|
606
|
-
|
|
606
|
+
let objectImportExport_1: PropTypes.Requireable<boolean>;
|
|
607
607
|
export { objectImportExport_1 as objectImportExport };
|
|
608
|
-
|
|
608
|
+
let objectEditOfAccessControl_1: PropTypes.Requireable<boolean>;
|
|
609
609
|
export { objectEditOfAccessControl_1 as objectEditOfAccessControl };
|
|
610
|
-
|
|
610
|
+
let modalNewObject_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
611
611
|
export { modalNewObject_1 as modalNewObject };
|
|
612
|
-
|
|
612
|
+
let modalEditOfAccessControl_1: PropTypes.Requireable<(...args: any[]) => any>;
|
|
613
613
|
export { modalEditOfAccessControl_1 as modalEditOfAccessControl };
|
|
614
|
-
export
|
|
615
|
-
export
|
|
616
|
-
export
|
|
617
|
-
export
|
|
618
|
-
export
|
|
619
|
-
export
|
|
620
|
-
export
|
|
621
|
-
export
|
|
622
|
-
export
|
|
623
|
-
export
|
|
624
|
-
export
|
|
625
|
-
export
|
|
626
|
-
export
|
|
627
|
-
export
|
|
628
|
-
export
|
|
629
|
-
export
|
|
614
|
+
export let onObjectDelete: PropTypes.Requireable<(...args: any[]) => any>;
|
|
615
|
+
export let customFilter: PropTypes.Requireable<object>;
|
|
616
|
+
export let objectBrowserValue: PropTypes.Requireable<object>;
|
|
617
|
+
export let objectBrowserEditObject: PropTypes.Requireable<object>;
|
|
618
|
+
export let objectBrowserEditRole: PropTypes.Requireable<object>;
|
|
619
|
+
export let objectBrowserViewFile: PropTypes.Requireable<(...args: any[]) => any>;
|
|
620
|
+
export let router: PropTypes.Requireable<object>;
|
|
621
|
+
export let types: PropTypes.Requireable<any[]>;
|
|
622
|
+
export let columns: PropTypes.Requireable<any[]>;
|
|
623
|
+
export let root: PropTypes.Requireable<string>;
|
|
624
|
+
export let objectsWorker: PropTypes.Requireable<object>;
|
|
625
|
+
export let filterFunc: PropTypes.Requireable<(...args: any[]) => any>;
|
|
626
|
+
export let dragSettings: PropTypes.Requireable<object>;
|
|
627
|
+
export let DragWrapper: PropTypes.Requireable<(...args: any[]) => any>;
|
|
628
|
+
export let dragEnabled: PropTypes.Requireable<boolean>;
|
|
629
|
+
export let useDrag: PropTypes.Requireable<(...args: any[]) => any>;
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
import React from 'react';
|
|
@@ -1122,11 +1122,11 @@ function getSystemIcon(objects, id, k, imagePrefix) {
|
|
|
1122
1122
|
return icon || null;
|
|
1123
1123
|
}
|
|
1124
1124
|
function getObjectTooltip(data, lang) {
|
|
1125
|
-
var _data$obj2
|
|
1125
|
+
var _data$obj2;
|
|
1126
1126
|
if (!data) {
|
|
1127
1127
|
return null;
|
|
1128
1128
|
}
|
|
1129
|
-
if ((_data$obj2 = data.obj) !== null && _data$obj2 !== void 0 && (_data$obj2
|
|
1129
|
+
if ((_data$obj2 = data.obj) !== null && _data$obj2 !== void 0 && (_data$obj2 = _data$obj2.common) !== null && _data$obj2 !== void 0 && _data$obj2.desc) {
|
|
1130
1130
|
var tooltip = '';
|
|
1131
1131
|
if ((0, _typeof2["default"])(data.obj.common.desc) === 'object') {
|
|
1132
1132
|
tooltip = data.obj.common.desc[lang] || data.obj.common.desc.en;
|
|
@@ -1320,9 +1320,9 @@ function buildTree(objects, options) {
|
|
|
1320
1320
|
if (_ret === "continue") continue;
|
|
1321
1321
|
}
|
|
1322
1322
|
info.roomEnums.sort(function (a, b) {
|
|
1323
|
-
var _objects$a, _objects$
|
|
1324
|
-
var aName = getName(((_objects$a = objects[a]) === null || _objects$a === void 0
|
|
1325
|
-
var bName = getName(((_objects$b = objects[b]) === null || _objects$b === void 0
|
|
1323
|
+
var _objects$a, _objects$b;
|
|
1324
|
+
var aName = getName(((_objects$a = objects[a]) === null || _objects$a === void 0 || (_objects$a = _objects$a.common) === null || _objects$a === void 0 ? void 0 : _objects$a.name) || a.split('.').pop());
|
|
1325
|
+
var bName = getName(((_objects$b = objects[b]) === null || _objects$b === void 0 || (_objects$b = _objects$b.common) === null || _objects$b === void 0 ? void 0 : _objects$b.name) || b.split('.').pop());
|
|
1326
1326
|
if (aName > bName) {
|
|
1327
1327
|
return 1;
|
|
1328
1328
|
}
|
|
@@ -1332,9 +1332,9 @@ function buildTree(objects, options) {
|
|
|
1332
1332
|
return 0;
|
|
1333
1333
|
});
|
|
1334
1334
|
info.funcEnums.sort(function (a, b) {
|
|
1335
|
-
var _objects$a2, _objects$
|
|
1336
|
-
var aName = getName(((_objects$a2 = objects[a]) === null || _objects$a2 === void 0
|
|
1337
|
-
var bName = getName(((_objects$b2 = objects[b]) === null || _objects$b2 === void 0
|
|
1335
|
+
var _objects$a2, _objects$b2;
|
|
1336
|
+
var aName = getName(((_objects$a2 = objects[a]) === null || _objects$a2 === void 0 || (_objects$a2 = _objects$a2.common) === null || _objects$a2 === void 0 ? void 0 : _objects$a2.name) || a.split('.').pop());
|
|
1337
|
+
var bName = getName(((_objects$b2 = objects[b]) === null || _objects$b2 === void 0 || (_objects$b2 = _objects$b2.common) === null || _objects$b2 === void 0 ? void 0 : _objects$b2.name) || b.split('.').pop());
|
|
1338
1338
|
if (aName > bName) {
|
|
1339
1339
|
return 1;
|
|
1340
1340
|
}
|
|
@@ -1887,8 +1887,8 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
1887
1887
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "getEnumsForId", function (id) {
|
|
1888
1888
|
var result = [];
|
|
1889
1889
|
_this.info.enums.forEach(function (_id) {
|
|
1890
|
-
var _this$objects$_id
|
|
1891
|
-
if ((_this$objects$_id = _this.objects[_id]) !== null && _this$objects$_id !== void 0 && (_this$objects$_id
|
|
1890
|
+
var _this$objects$_id;
|
|
1891
|
+
if ((_this$objects$_id = _this.objects[_id]) !== null && _this$objects$_id !== void 0 && (_this$objects$_id = _this$objects$_id.common) !== null && _this$objects$_id !== void 0 && (_this$objects$_id = _this$objects$_id.members) !== null && _this$objects$_id !== void 0 && _this$objects$_id.includes(id)) {
|
|
1892
1892
|
var en = {
|
|
1893
1893
|
_id: _this.objects[_id]._id,
|
|
1894
1894
|
common: JSON.parse(JSON.stringify(_this.objects[_id].common)),
|
|
@@ -1912,7 +1912,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
1912
1912
|
*/
|
|
1913
1913
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_createAllEnums", /*#__PURE__*/function () {
|
|
1914
1914
|
var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(enums, objId) {
|
|
1915
|
-
var e, _enObj$common,
|
|
1915
|
+
var e, _enObj$common, id, _enObj, enObj;
|
|
1916
1916
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
1917
1917
|
while (1) switch (_context.prev = _context.next) {
|
|
1918
1918
|
case 0:
|
|
@@ -1949,7 +1949,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
1949
1949
|
_context.next = 21;
|
|
1950
1950
|
break;
|
|
1951
1951
|
case 14:
|
|
1952
|
-
if ((_enObj$common = enObj.common) !== null && _enObj$common !== void 0 && (_enObj$common
|
|
1952
|
+
if ((_enObj$common = enObj.common) !== null && _enObj$common !== void 0 && (_enObj$common = _enObj$common.members) !== null && _enObj$common !== void 0 && _enObj$common.includes(objId)) {
|
|
1953
1953
|
_context.next = 21;
|
|
1954
1954
|
break;
|
|
1955
1955
|
}
|
|
@@ -3448,8 +3448,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3448
3448
|
key: "getFilterInput",
|
|
3449
3449
|
value: function getFilterInput(name) {
|
|
3450
3450
|
var _this17 = this,
|
|
3451
|
-
_this$filterRefs$name
|
|
3452
|
-
_this$filterRefs$name2;
|
|
3451
|
+
_this$filterRefs$name;
|
|
3453
3452
|
return /*#__PURE__*/_react["default"].createElement(_FormControl["default"], {
|
|
3454
3453
|
className: _Utils["default"].clsx(this.props.classes.headerCellInput, this.props.classes.filterInput),
|
|
3455
3454
|
key: "".concat(name, "_").concat(this.state.filterKey)
|
|
@@ -3471,7 +3470,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3471
3470
|
}, 400);
|
|
3472
3471
|
},
|
|
3473
3472
|
autoComplete: "off"
|
|
3474
|
-
}), (_this$filterRefs$name = this.filterRefs[name]) !== null && _this$filterRefs$name !== void 0 && (_this$filterRefs$
|
|
3473
|
+
}), (_this$filterRefs$name = this.filterRefs[name]) !== null && _this$filterRefs$name !== void 0 && (_this$filterRefs$name = _this$filterRefs$name.current) !== null && _this$filterRefs$name !== void 0 && _this$filterRefs$name.firstChild.value ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
3475
3474
|
style: {
|
|
3476
3475
|
position: 'absolute',
|
|
3477
3476
|
right: 0
|
|
@@ -3494,9 +3493,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3494
3493
|
key: "getFilterSelect",
|
|
3495
3494
|
value: function getFilterSelect(name, values) {
|
|
3496
3495
|
var _this18 = this,
|
|
3497
|
-
_this$filterRefs$
|
|
3498
|
-
_this$filterRefs$name4,
|
|
3499
|
-
_this$filterRefs$name5;
|
|
3496
|
+
_this$filterRefs$name2;
|
|
3500
3497
|
var hasIcons = !!values.find(function (item) {
|
|
3501
3498
|
return item.icon;
|
|
3502
3499
|
});
|
|
@@ -3545,7 +3542,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3545
3542
|
}, icon || (hasIcons ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
3546
3543
|
className: "itemIcon"
|
|
3547
3544
|
}) : null), _name);
|
|
3548
|
-
})), (_this$filterRefs$
|
|
3545
|
+
})), (_this$filterRefs$name2 = this.filterRefs[name]) !== null && _this$filterRefs$name2 !== void 0 && (_this$filterRefs$name2 = _this$filterRefs$name2.current) !== null && _this$filterRefs$name2 !== void 0 && (_this$filterRefs$name2 = _this$filterRefs$name2.childNodes[1]) !== null && _this$filterRefs$name2 !== void 0 && _this$filterRefs$name2.value ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
3549
3546
|
className: _Utils["default"].clsx(this.props.classes.selectClearButton)
|
|
3550
3547
|
}, /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
3551
3548
|
size: "small",
|
|
@@ -3581,12 +3578,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3581
3578
|
value: function getFilterSelectRoom() {
|
|
3582
3579
|
var _this19 = this;
|
|
3583
3580
|
var rooms = this.info.roomEnums.map(function (id) {
|
|
3584
|
-
var _this19$objects$id, _this19$objects$
|
|
3581
|
+
var _this19$objects$id, _this19$objects$id2;
|
|
3585
3582
|
return {
|
|
3586
|
-
name: getName(((_this19$objects$id = _this19.objects[id]) === null || _this19$objects$id === void 0
|
|
3583
|
+
name: getName(((_this19$objects$id = _this19.objects[id]) === null || _this19$objects$id === void 0 || (_this19$objects$id = _this19$objects$id.common) === null || _this19$objects$id === void 0 ? void 0 : _this19$objects$id.name) || id.split('.').pop()),
|
|
3587
3584
|
value: id,
|
|
3588
3585
|
icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
3589
|
-
src: ((_this19$objects$id2 = _this19.objects[id]) === null || _this19$objects$id2 === void 0
|
|
3586
|
+
src: ((_this19$objects$id2 = _this19.objects[id]) === null || _this19$objects$id2 === void 0 || (_this19$objects$id2 = _this19$objects$id2.common) === null || _this19$objects$id2 === void 0 ? void 0 : _this19$objects$id2.icon) || '',
|
|
3590
3587
|
className: _this19.props.classes.selectIcon
|
|
3591
3588
|
})
|
|
3592
3589
|
};
|
|
@@ -3602,12 +3599,12 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
3602
3599
|
value: function getFilterSelectFunction() {
|
|
3603
3600
|
var _this20 = this;
|
|
3604
3601
|
var func = this.info.funcEnums.map(function (id) {
|
|
3605
|
-
var _this20$objects$id
|
|
3602
|
+
var _this20$objects$id;
|
|
3606
3603
|
return {
|
|
3607
3604
|
name: getName(_this20.objects[id] && _this20.objects[id].common && _this20.objects[id].common.name || id.split('.').pop()),
|
|
3608
3605
|
value: id,
|
|
3609
3606
|
icon: /*#__PURE__*/_react["default"].createElement(_Icon["default"], {
|
|
3610
|
-
src: ((_this20$objects$id = _this20.objects[id]) === null || _this20$objects$id === void 0
|
|
3607
|
+
src: ((_this20$objects$id = _this20.objects[id]) === null || _this20$objects$id === void 0 || (_this20$objects$id = _this20$objects$id.common) === null || _this20$objects$id === void 0 ? void 0 : _this20$objects$id.icon) || '',
|
|
3611
3608
|
className: _this20.props.classes.selectIcon
|
|
3612
3609
|
})
|
|
3613
3610
|
};
|
|
@@ -4925,7 +4922,7 @@ var ObjectBrowser = /*#__PURE__*/function (_Component) {
|
|
|
4925
4922
|
obj.user && newValueTitle.push("".concat(this.texts.objectChangedBy, " ").concat(obj.user.replace(/^system\.user\./, '')));
|
|
4926
4923
|
obj.ts && newValueTitle.push("".concat(this.texts.objectChangedByUser, " ").concat(_Utils["default"].formatDate(new Date(obj.ts), this.props.dateFormat)));
|
|
4927
4924
|
}
|
|
4928
|
-
var readWriteAlias = (0, _typeof2["default"])(common === null || common === void 0
|
|
4925
|
+
var readWriteAlias = (0, _typeof2["default"])(common === null || common === void 0 || (_common$alias = common.alias) === null || _common$alias === void 0 ? void 0 : _common$alias.id) === 'object';
|
|
4929
4926
|
var alias = id.startsWith('alias.') && common !== null && common !== void 0 && (_common$alias2 = common.alias) !== null && _common$alias2 !== void 0 && _common$alias2.id ? readWriteAlias ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
4930
4927
|
className: classes.cellIdAliasReadWriteDiv
|
|
4931
4928
|
}, common.alias.id.read ? /*#__PURE__*/_react["default"].createElement("div", {
|