@iobroker/adapter-react-v5 4.13.2 → 4.13.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/AdminConnection.js.map +1 -1
- package/Components/404.js +13 -13
- package/Components/ColorPicker.js +54 -54
- package/Components/ColorPicker.js.map +1 -1
- package/Components/ComplexCron.js.map +1 -1
- package/Components/FileBrowser.js +3 -3
- package/Components/FileViewer.js +9 -16
- package/Components/Loader.js +223 -223
- package/Components/Loaders/PT.css +108 -108
- package/Components/Loaders/PT.js +103 -103
- package/Components/Loaders/Vendor.css +13 -13
- package/Components/Loaders/Vendor.js +7 -7
- package/Components/ObjectBrowser.d.ts +2 -2
- package/Components/ObjectBrowser.js +359 -351
- package/Components/ObjectBrowser.js.map +1 -1
- package/Components/TabContent.d.ts +3 -7
- package/Components/TabContent.js +1 -3
- package/Components/TableResize.d.ts +20 -13
- package/Components/TableResize.js +244 -262
- package/Components/TreeTable.js +70 -70
- package/Components/TreeTable.js.map +1 -1
- package/Components/UploadImage.js +305 -305
- package/Components/loader.css +221 -221
- package/Components/types.d.ts +82 -82
- package/Components/withWidth.js +2 -2
- package/Components/withWidth.js.map +1 -1
- package/Connection.js.map +1 -1
- package/GenericApp.js +49 -49
- package/LICENSE +22 -22
- package/LegacyConnection.d.ts +4 -0
- package/LegacyConnection.js +14 -0
- package/Prompt.js +7 -7
- package/README.md +1105 -1101
- package/assets/devices/Alarm Systems.svg +18 -18
- package/assets/devices/Amplifier.svg +21 -21
- package/assets/devices/Awnings.svg +4 -4
- package/assets/devices/Battery Status.svg +4 -4
- package/assets/devices/Ceiling Spotlights.svg +15 -15
- package/assets/devices/Chandelier.svg +6 -6
- package/assets/devices/Climate.svg +11 -11
- package/assets/devices/Coffee Makers.svg +5 -5
- package/assets/devices/Cold Water.svg +31 -31
- package/assets/devices/Computer.svg +21 -21
- package/assets/devices/Consumption.svg +7 -7
- package/assets/devices/Curtains.svg +43 -43
- package/assets/devices/Dishwashers.svg +11 -11
- package/assets/devices/Doors.svg +5 -5
- package/assets/devices/Doorstep.svg +35 -35
- package/assets/devices/Dryer.svg +13 -13
- package/assets/devices/Fan.svg +20 -20
- package/assets/devices/Floor Lamps.svg +4 -4
- package/assets/devices/Garage Doors.svg +9 -9
- package/assets/devices/Gates.svg +32 -32
- package/assets/devices/Hairdryer.svg +23 -23
- package/assets/devices/Handle.svg +6 -6
- package/assets/devices/Hanging Lamps.svg +8 -8
- package/assets/devices/Heater.svg +44 -44
- package/assets/devices/Hoods.svg +11 -11
- package/assets/devices/Hot Water.svg +9 -9
- package/assets/devices/Humidity.svg +41 -41
- package/assets/devices/Iron.svg +4 -4
- package/assets/devices/Irrigation.svg +22 -22
- package/assets/devices/Led Strip.svg +30 -30
- package/assets/devices/Light.svg +29 -29
- package/assets/devices/Lightings.svg +46 -46
- package/assets/devices/Lock.svg +19 -19
- package/assets/devices/Louvre.svg +6 -6
- package/assets/devices/Mowing Machine.svg +8 -8
- package/assets/devices/Music.svg +12 -12
- package/assets/devices/Outdoor Blinds.svg +6 -6
- package/assets/devices/People.svg +19 -19
- package/assets/devices/Pool.svg +7 -7
- package/assets/devices/Power Consumption.svg +12 -12
- package/assets/devices/Printer.svg +9 -9
- package/assets/devices/Pump.svg +9 -9
- package/assets/devices/Receiver.svg +18 -18
- package/assets/devices/Sconces.svg +9 -9
- package/assets/devices/Security.svg +34 -34
- package/assets/devices/Shading.svg +4 -4
- package/assets/devices/Shutters.svg +10 -10
- package/assets/devices/SmokeDetector.svg +12 -12
- package/assets/devices/Sockets.svg +13 -13
- package/assets/devices/Speaker.svg +35 -35
- package/assets/devices/Stove.svg +11 -11
- package/assets/devices/Table Lamps.svg +11 -11
- package/assets/devices/Temperature Sensors.svg +28 -28
- package/assets/devices/Tv.svg +7 -7
- package/assets/devices/Vacuum Cleaner.svg +15 -15
- package/assets/devices/Ventilation.svg +12 -12
- package/assets/devices/Washing Machines.svg +15 -15
- package/assets/devices/Water Consumption.svg +5 -5
- package/assets/devices/Water Heater.svg +8 -8
- package/assets/devices/Water.svg +40 -40
- package/assets/devices/Weather.svg +28 -28
- package/assets/devices/Window.svg +7 -7
- package/assets/devices/list.json +993 -993
- package/assets/devices/names.txt +62 -62
- package/assets/devices/parseNames.js +34 -34
- package/assets/lamp_ceiling.svg +8 -8
- package/assets/lamp_table.svg +7 -7
- package/assets/no_icon.svg +9 -9
- package/assets/rooms/Anteroom.svg +52 -52
- package/assets/rooms/Attic.svg +21 -21
- package/assets/rooms/Balcony.svg +12 -12
- package/assets/rooms/Barn.svg +5 -5
- package/assets/rooms/Basement.svg +4 -4
- package/assets/rooms/Bathroom.svg +38 -38
- package/assets/rooms/Bedroom.svg +5 -5
- package/assets/rooms/Boiler Room.svg +12 -12
- package/assets/rooms/Carport.svg +17 -17
- package/assets/rooms/Cellar.svg +89 -89
- package/assets/rooms/Chamber.svg +9 -9
- package/assets/rooms/Corridor.svg +52 -52
- package/assets/rooms/Dining Area.svg +37 -37
- package/assets/rooms/Dining Room.svg +37 -37
- package/assets/rooms/Dining.svg +37 -37
- package/assets/rooms/Dressing Room.svg +4 -4
- package/assets/rooms/Driveway.svg +14 -14
- package/assets/rooms/Entrance.svg +44 -44
- package/assets/rooms/Equipment Room.svg +14 -14
- package/assets/rooms/Front Yard.svg +64 -64
- package/assets/rooms/Gallery.svg +13 -13
- package/assets/rooms/Garage.svg +20 -20
- package/assets/rooms/Garden.svg +12 -12
- package/assets/rooms/Ground Floor.svg +95 -95
- package/assets/rooms/Guest Bathroom.svg +32 -32
- package/assets/rooms/Guest Room.svg +5 -5
- package/assets/rooms/Gym.svg +4 -4
- package/assets/rooms/Hall.svg +19 -19
- package/assets/rooms/Home Theater.svg +7 -7
- package/assets/rooms/Kitchen.svg +17 -17
- package/assets/rooms/Laundry Room.svg +11 -11
- package/assets/rooms/Living Area.svg +10 -10
- package/assets/rooms/Living Room.svg +10 -10
- package/assets/rooms/Locker Room.svg +16 -16
- package/assets/rooms/Nursery.svg +4 -4
- package/assets/rooms/Office.svg +8 -8
- package/assets/rooms/Outdoors.svg +7 -7
- package/assets/rooms/Playroom.svg +5 -5
- package/assets/rooms/Pool.svg +7 -7
- package/assets/rooms/Rear Wall.svg +30 -30
- package/assets/rooms/Second Floor.svg +95 -95
- package/assets/rooms/Shed.svg +16 -16
- package/assets/rooms/Sleeping Area.svg +22 -22
- package/assets/rooms/Stairway.svg +4 -4
- package/assets/rooms/Stairwell.svg +15 -15
- package/assets/rooms/Storeroom.svg +4 -4
- package/assets/rooms/Summer House.svg +27 -27
- package/assets/rooms/Swimming Pool.svg +21 -21
- package/assets/rooms/Terrace.svg +6 -6
- package/assets/rooms/Toilet.svg +10 -10
- package/assets/rooms/Upstairs.svg +5 -5
- package/assets/rooms/Wardrobe.svg +60 -60
- package/assets/rooms/Washroom.svg +19 -19
- package/assets/rooms/Wc.svg +10 -10
- package/assets/rooms/Windscreen.svg +60 -60
- package/assets/rooms/Workshop.svg +22 -22
- package/assets/rooms/Workspace.svg +8 -8
- package/assets/rooms/list.json +945 -945
- package/assets/rooms/names.txt +59 -59
- package/assets/rooms/parseNames.js +34 -34
- package/craco-module-federation.js +69 -69
- package/icons/IconAdapter.js.map +1 -1
- package/icons/IconAlias.js.map +1 -1
- package/icons/IconChannel.js.map +1 -1
- package/icons/IconClearFilter.js.map +1 -1
- package/icons/IconClosed.js.map +1 -1
- package/icons/IconCopy.js +8 -8
- package/icons/IconCopy.js.map +1 -1
- package/icons/IconDevice.js.map +1 -1
- package/icons/IconDocument.js.map +1 -1
- package/icons/IconDocumentReadOnly.js.map +1 -1
- package/icons/IconFx.js +1 -1
- package/icons/IconFx.js.map +1 -1
- package/icons/IconInstance.js.map +1 -1
- package/icons/IconLogout.js +9 -9
- package/icons/IconLogout.js.map +1 -1
- package/icons/IconNoIcon.js +8 -8
- package/icons/IconNoIcon.js.map +1 -1
- package/icons/IconOpen.js.map +1 -1
- package/icons/IconState.js.map +1 -1
- package/index.css +54 -54
- package/package.json +2 -2
- package/types.d.ts +94 -94
- package/Components/404.js.map +0 -1
- package/Components/CustomModal.js.map +0 -1
- package/Components/FileBrowser.js.map +0 -1
- package/Components/FileViewer.js.map +0 -1
- package/Components/Icon.js.map +0 -1
- package/Components/IconPicker.js.map +0 -1
- package/Components/IconSelector.js.map +0 -1
- package/Components/Image.js.map +0 -1
- package/Components/JsonConfigComponent/ChipInput.d.ts +0 -12
- package/Components/JsonConfigComponent/ChipInput.js +0 -763
- package/Components/JsonConfigComponent/ChipInput.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAccordion.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigAccordion.js +0 -348
- package/Components/JsonConfigComponent/ConfigAccordion.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAlive.d.ts +0 -10
- package/Components/JsonConfigComponent/ConfigAlive.js +0 -105
- package/Components/JsonConfigComponent/ConfigAlive.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAutocomplete.d.ts +0 -37
- package/Components/JsonConfigComponent/ConfigAutocomplete.js +0 -73
- package/Components/JsonConfigComponent/ConfigAutocomplete.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js +0 -131
- package/Components/JsonConfigComponent/ConfigAutocompleteSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCRON.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigCRON.js +0 -157
- package/Components/JsonConfigComponent/ConfigCRON.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCertCollection.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCertCollection.js +0 -128
- package/Components/JsonConfigComponent/ConfigCertCollection.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCertificateSelect.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js +0 -149
- package/Components/JsonConfigComponent/ConfigCertificateSelect.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCertificates.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCertificates.js +0 -284
- package/Components/JsonConfigComponent/ConfigCertificates.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCheckLicense.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigCheckLicense.js +0 -821
- package/Components/JsonConfigComponent/ConfigCheckLicense.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCheckbox.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigCheckbox.js +0 -40
- package/Components/JsonConfigComponent/ConfigCheckbox.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigChip.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigChip.js +0 -120
- package/Components/JsonConfigComponent/ConfigChip.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigColor.d.ts +0 -22
- package/Components/JsonConfigComponent/ConfigColor.js +0 -120
- package/Components/JsonConfigComponent/ConfigColor.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCoordinates.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigCoordinates.js +0 -265
- package/Components/JsonConfigComponent/ConfigCoordinates.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigCustom.d.ts +0 -26
- package/Components/JsonConfigComponent/ConfigCustom.js +0 -316
- package/Components/JsonConfigComponent/ConfigCustom.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigDatePicker.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigDatePicker.js +0 -91
- package/Components/JsonConfigComponent/ConfigDatePicker.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigDeviceManager.d.ts +0 -6
- package/Components/JsonConfigComponent/ConfigDeviceManager.js +0 -18
- package/Components/JsonConfigComponent/ConfigFile.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigFile.js +0 -228
- package/Components/JsonConfigComponent/ConfigFile.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigFileSelector.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigFileSelector.js +0 -625
- package/Components/JsonConfigComponent/ConfigFileSelector.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigFunc.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigFunc.js +0 -124
- package/Components/JsonConfigComponent/ConfigFunc.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigGeneric.d.ts +0 -95
- package/Components/JsonConfigComponent/ConfigGeneric.js +0 -646
- package/Components/JsonConfigComponent/ConfigIP.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigIP.js +0 -130
- package/Components/JsonConfigComponent/ConfigIP.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigImageSendTo.d.ts +0 -10
- package/Components/JsonConfigComponent/ConfigImageSendTo.js +0 -114
- package/Components/JsonConfigComponent/ConfigImageSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigImageUpload.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigImageUpload.js +0 -166
- package/Components/JsonConfigComponent/ConfigImageUpload.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigInstanceSelect.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js +0 -264
- package/Components/JsonConfigComponent/ConfigInstanceSelect.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigInterface.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigInterface.js +0 -146
- package/Components/JsonConfigComponent/ConfigInterface.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigJsonEditor.d.ts +0 -13
- package/Components/JsonConfigComponent/ConfigJsonEditor.js +0 -145
- package/Components/JsonConfigComponent/ConfigJsonEditor.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigLanguage.d.ts +0 -7
- package/Components/JsonConfigComponent/ConfigLanguage.js +0 -110
- package/Components/JsonConfigComponent/ConfigLanguage.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigLicense.d.ts +0 -24
- package/Components/JsonConfigComponent/ConfigLicense.js +0 -183
- package/Components/JsonConfigComponent/ConfigLicense.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigNumber.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigNumber.js +0 -117
- package/Components/JsonConfigComponent/ConfigObjectId.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigObjectId.js +0 -167
- package/Components/JsonConfigComponent/ConfigObjectId.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPanel.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigPanel.js +0 -396
- package/Components/JsonConfigComponent/ConfigPanel.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPassword.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigPassword.js +0 -193
- package/Components/JsonConfigComponent/ConfigPassword.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPattern.d.ts +0 -21
- package/Components/JsonConfigComponent/ConfigPattern.js +0 -65
- package/Components/JsonConfigComponent/ConfigPattern.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigPort.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigPort.js +0 -176
- package/Components/JsonConfigComponent/ConfigRoom.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigRoom.js +0 -124
- package/Components/JsonConfigComponent/ConfigRoom.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSelect.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigSelect.js +0 -159
- package/Components/JsonConfigComponent/ConfigSelect.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSelectSendTo.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js +0 -272
- package/Components/JsonConfigComponent/ConfigSelectSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSendto.d.ts +0 -24
- package/Components/JsonConfigComponent/ConfigSendto.js +0 -294
- package/Components/JsonConfigComponent/ConfigSendto.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSetState.d.ts +0 -18
- package/Components/JsonConfigComponent/ConfigSetState.js +0 -185
- package/Components/JsonConfigComponent/ConfigSetState.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigSlider.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigSlider.js +0 -119
- package/Components/JsonConfigComponent/ConfigSlider.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticDivider.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticDivider.js +0 -68
- package/Components/JsonConfigComponent/ConfigStaticDivider.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticHeader.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticHeader.js +0 -81
- package/Components/JsonConfigComponent/ConfigStaticHeader.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticImage.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticImage.js +0 -71
- package/Components/JsonConfigComponent/ConfigStaticImage.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigStaticText.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigStaticText.js +0 -88
- package/Components/JsonConfigComponent/ConfigStaticText.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTable.d.ts +0 -3
- package/Components/JsonConfigComponent/ConfigTable.js +0 -1064
- package/Components/JsonConfigComponent/ConfigTable.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTabs.d.ts +0 -34
- package/Components/JsonConfigComponent/ConfigTabs.js +0 -162
- package/Components/JsonConfigComponent/ConfigTabs.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigText.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigText.js +0 -226
- package/Components/JsonConfigComponent/ConfigText.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTextSendTo.d.ts +0 -10
- package/Components/JsonConfigComponent/ConfigTextSendTo.js +0 -129
- package/Components/JsonConfigComponent/ConfigTextSendTo.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTimePicker.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigTimePicker.js +0 -85
- package/Components/JsonConfigComponent/ConfigTimePicker.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigTopic.d.ts +0 -17
- package/Components/JsonConfigComponent/ConfigTopic.js +0 -110
- package/Components/JsonConfigComponent/ConfigTopic.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigUUID.d.ts +0 -15
- package/Components/JsonConfigComponent/ConfigUUID.js +0 -95
- package/Components/JsonConfigComponent/ConfigUUID.js.map +0 -1
- package/Components/JsonConfigComponent/ConfigUser.d.ts +0 -14
- package/Components/JsonConfigComponent/ConfigUser.js +0 -142
- package/Components/JsonConfigComponent/ConfigUser.js.map +0 -1
- package/Components/JsonConfigComponent/DeviceManager/Communication.d.ts +0 -63
- package/Components/JsonConfigComponent/DeviceManager/Communication.js +0 -268
- package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.d.ts +0 -11
- package/Components/JsonConfigComponent/DeviceManager/DeviceActionButton.js +0 -15
- package/Components/JsonConfigComponent/DeviceManager/DeviceCard.d.ts +0 -53
- package/Components/JsonConfigComponent/DeviceManager/DeviceCard.js +0 -340
- package/Components/JsonConfigComponent/DeviceManager/DeviceControl.d.ts +0 -45
- package/Components/JsonConfigComponent/DeviceManager/DeviceControl.js +0 -146
- package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.d.ts +0 -12
- package/Components/JsonConfigComponent/DeviceManager/DeviceImageUpload.js +0 -69
- package/Components/JsonConfigComponent/DeviceManager/DeviceList.d.ts +0 -51
- package/Components/JsonConfigComponent/DeviceManager/DeviceList.js +0 -226
- package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.d.ts +0 -13
- package/Components/JsonConfigComponent/DeviceManager/DeviceStatus.js +0 -111
- package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.d.ts +0 -7
- package/Components/JsonConfigComponent/DeviceManager/InstanceActionButton.js +0 -16
- package/Components/JsonConfigComponent/DeviceManager/JsonConfig.d.ts +0 -11
- package/Components/JsonConfigComponent/DeviceManager/JsonConfig.js +0 -94
- package/Components/JsonConfigComponent/DeviceManager/TooltipButton.d.ts +0 -10
- package/Components/JsonConfigComponent/DeviceManager/TooltipButton.js +0 -22
- package/Components/JsonConfigComponent/DeviceManager/Utils.d.ts +0 -12
- package/Components/JsonConfigComponent/DeviceManager/Utils.js +0 -158
- package/Components/JsonConfigComponent/DeviceManager/i18n/de.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/en.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/es.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/fr.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/i18n.d.ts +0 -26
- package/Components/JsonConfigComponent/DeviceManager/i18n/it.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/nl.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/pl.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/pt.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/ru.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/uk.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/i18n/zh-cn.json +0 -21
- package/Components/JsonConfigComponent/DeviceManager/index.d.ts +0 -2
- package/Components/JsonConfigComponent/DeviceManager/index.js +0 -10
- package/Components/JsonConfigComponent/DeviceManager/index.js.map +0 -1
- package/Components/JsonConfigComponent/Utils.d.ts +0 -9
- package/Components/JsonConfigComponent/Utils.js +0 -13
- package/Components/JsonConfigComponent/index.d.ts +0 -26
- package/Components/JsonConfigComponent/index.js +0 -520
- package/Components/JsonConfigComponent/index.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/AdminConnection.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/AdminConnection.js +0 -7
- package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/ColorPicker.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/Icon.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/Icon.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/Icon.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/TextWithIcon.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/UploadImage.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/UploadImage.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/UploadImage.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Components/Utils.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Components/Utils.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Components/Utils.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Confirm.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Cron.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Error.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Error.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Error.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/Message.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/Message.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/Message.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectFile.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.js +0 -10
- package/Components/JsonConfigComponent/wrapper/Dialogs/SelectID.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/i18n.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/i18n.js +0 -10
- package/Components/JsonConfigComponent/wrapper/i18n.js.map +0 -1
- package/Components/JsonConfigComponent/wrapper/icons/IconCopy.d.ts +0 -2
- package/Components/JsonConfigComponent/wrapper/icons/IconCopy.js +0 -10
- package/Components/JsonConfigComponent/wrapper/icons/IconCopy.js.map +0 -1
- package/Components/Loader.js.map +0 -1
- package/Components/Loaders/PT.js.map +0 -1
- package/Components/Loaders/Vendor.js.map +0 -1
- package/Components/Logo.js.map +0 -1
- package/Components/MDUtils.js.map +0 -1
- package/Components/Router.js.map +0 -1
- package/Components/SaveCloseButtons.js.map +0 -1
- package/Components/Schedule.js.map +0 -1
- package/Components/SelectWithIcon.js.map +0 -1
- package/Components/SimpleCron/cron2text.js.map +0 -1
- package/Components/SimpleCron/cronText.js.map +0 -1
- package/Components/SimpleCron/index.js.map +0 -1
- package/Components/SimpleCron/jquery.cron.locale.js.map +0 -1
- package/Components/TabContainer.js.map +0 -1
- package/Components/TabContent.js.map +0 -1
- package/Components/TabHeader.js.map +0 -1
- package/Components/TableResize.js.map +0 -1
- package/Components/TextWithIcon.js.map +0 -1
- package/Components/ToggleThemeMenu.js.map +0 -1
- package/Components/UploadImage.js.map +0 -1
- package/Components/Utils.js.map +0 -1
- package/Components/copy-to-clipboard.d.ts +0 -13
- package/Components/copy-to-clipboard.js +0 -156
- package/Components/copy-to-clipboard.js.map +0 -1
- package/Dialogs/ComplexCron.js.map +0 -1
- package/Dialogs/Confirm.js.map +0 -1
- package/Dialogs/Cron.js.map +0 -1
- package/Dialogs/Error.js.map +0 -1
- package/Dialogs/Message.js.map +0 -1
- package/Dialogs/SelectFile.js.map +0 -1
- package/Dialogs/SelectID.js.map +0 -1
- package/Dialogs/SimpleCron.js.map +0 -1
- package/Dialogs/TextInput.js.map +0 -1
- package/GenericApp.js.map +0 -1
- package/LegacyConnection.js.map +0 -1
- package/Prompt.js.map +0 -1
- package/Theme.js.map +0 -1
- package/i18n.js.map +0 -1
- package/icons/IconExpert.js.map +0 -1
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const react_1 = __importDefault(require("react"));
|
|
7
|
-
const styles_1 = require("@mui/styles");
|
|
8
|
-
const material_1 = require("@mui/material");
|
|
9
|
-
const i18n_1 = __importDefault(require("./wrapper/i18n"));
|
|
10
|
-
const ConfigGeneric_1 = __importDefault(require("./ConfigGeneric"));
|
|
11
|
-
const styles = () => ({
|
|
12
|
-
indeterminate: {
|
|
13
|
-
opacity: 0.5,
|
|
14
|
-
},
|
|
15
|
-
control: {
|
|
16
|
-
flexDirection: 'row',
|
|
17
|
-
width: '100%',
|
|
18
|
-
},
|
|
19
|
-
});
|
|
20
|
-
class ConfigNumber extends ConfigGeneric_1.default {
|
|
21
|
-
componentDidMount() {
|
|
22
|
-
super.componentDidMount();
|
|
23
|
-
let _value = ConfigGeneric_1.default.getValue(this.props.data, this.props.attr);
|
|
24
|
-
if (_value === null || _value === undefined) {
|
|
25
|
-
_value = '';
|
|
26
|
-
}
|
|
27
|
-
this.setState({ _value: _value.toString(), oldValue: _value.toString() });
|
|
28
|
-
// this.props.registerOnForceUpdate(this.props.attr, this.onUpdate);
|
|
29
|
-
}
|
|
30
|
-
static getDerivedStateFromProps(props, state) {
|
|
31
|
-
if ((props.schema.min !== undefined && props.schema.min < 0) ||
|
|
32
|
-
(props.schema.max !== undefined && props.schema.max < 0)) {
|
|
33
|
-
return null;
|
|
34
|
-
}
|
|
35
|
-
const _value = ConfigGeneric_1.default.getValue(props.data, props.attr);
|
|
36
|
-
if (_value === null ||
|
|
37
|
-
_value === undefined ||
|
|
38
|
-
state.oldValue === null ||
|
|
39
|
-
state.oldValue === undefined ||
|
|
40
|
-
(_value.toString() !== parseFloat(state._value).toString() &&
|
|
41
|
-
_value.toString() !== state.oldValue.toString())) {
|
|
42
|
-
return { _value };
|
|
43
|
-
}
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
checkValue(value) {
|
|
47
|
-
if (value === null || value === undefined) {
|
|
48
|
-
return null;
|
|
49
|
-
}
|
|
50
|
-
value = value.toString().trim();
|
|
51
|
-
const f = value === '' ? 0 : parseFloat(value);
|
|
52
|
-
if (value !== '' && Number.isNaN(f)) {
|
|
53
|
-
return 'ra_Not a number';
|
|
54
|
-
}
|
|
55
|
-
// eslint-disable-next-line no-restricted-properties
|
|
56
|
-
if (value !== '' && window.isFinite(f)) {
|
|
57
|
-
if (this.props.schema.min !== undefined && f < this.props.schema.min) {
|
|
58
|
-
return 'ra_Too small';
|
|
59
|
-
}
|
|
60
|
-
if (this.props.schema.max !== undefined && f > this.props.schema.max) {
|
|
61
|
-
return 'ra_Too big';
|
|
62
|
-
}
|
|
63
|
-
if (value === '' || value === '-' || Number.isNaN(f)) {
|
|
64
|
-
return 'ra_Not a number';
|
|
65
|
-
}
|
|
66
|
-
return null;
|
|
67
|
-
}
|
|
68
|
-
return 'ra_Not a number';
|
|
69
|
-
}
|
|
70
|
-
renderItem(error, disabled) {
|
|
71
|
-
const isIndeterminate = Array.isArray(this.state.value) || this.state.value === ConfigGeneric_1.default.DIFFERENT_VALUE;
|
|
72
|
-
if (this.state.oldValue !== null && this.state.oldValue !== undefined) {
|
|
73
|
-
this.updateTimeout && clearTimeout(this.updateTimeout);
|
|
74
|
-
this.updateTimeout = setTimeout(() => {
|
|
75
|
-
this.updateTimeout = undefined;
|
|
76
|
-
this.setState({ oldValue: null });
|
|
77
|
-
}, 30);
|
|
78
|
-
}
|
|
79
|
-
else if (this.updateTimeout) {
|
|
80
|
-
clearTimeout(this.updateTimeout);
|
|
81
|
-
this.updateTimeout = undefined;
|
|
82
|
-
}
|
|
83
|
-
if (isIndeterminate) {
|
|
84
|
-
const arr = [...this.state.value].map(item => ({ label: item.toString(), value: item }));
|
|
85
|
-
arr.unshift({ label: i18n_1.default.t(ConfigGeneric_1.default.DIFFERENT_LABEL), value: ConfigGeneric_1.default.DIFFERENT_VALUE });
|
|
86
|
-
return react_1.default.createElement(material_1.Autocomplete, { className: this.props.classes.indeterminate, fullWidth: true, value: arr[0],
|
|
87
|
-
// @ts-expect-error needs investigation if this really has no effect
|
|
88
|
-
getOptionSelected: (option, value) => option.label === value.label, onChange: (_, value) => this.onChange(this.props.attr, value === null || value === void 0 ? void 0 : value.value), options: arr, getOptionLabel: option => option.label, renderInput: params => (react_1.default.createElement(material_1.TextField, Object.assign({ variant: "standard" }, params, { inputProps: { readOnly: this.props.schema.readOnly || false }, error: !!error, placeholder: this.getText(this.props.schema.placeholder), label: this.getText(this.props.schema.label), helperText: this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation), disabled: !!disabled }))) });
|
|
89
|
-
}
|
|
90
|
-
if (!error && this.state._value !== null && this.state._value !== undefined && this.state._value) {
|
|
91
|
-
error = this.checkValue(this.state._value);
|
|
92
|
-
if (error) {
|
|
93
|
-
error = i18n_1.default.t(error);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
return react_1.default.createElement(material_1.FormControl, { variant: "standard", className: this.props.classes.control },
|
|
97
|
-
react_1.default.createElement(material_1.TextField, { variant: "standard", type: "number", fullWidth: true, inputProps: {
|
|
98
|
-
min: this.props.schema.min,
|
|
99
|
-
max: this.props.schema.max,
|
|
100
|
-
step: this.props.schema.step,
|
|
101
|
-
readOnly: this.props.schema.readOnly || false,
|
|
102
|
-
}, value: this.state._value === null || this.state._value === undefined ? '' : this.state._value, error: !!error, disabled: !!disabled, onChange: e => {
|
|
103
|
-
const _value = e.target.value; // value is always a string and it is validly formatted
|
|
104
|
-
const _error = this.checkValue(_value);
|
|
105
|
-
if (_error) {
|
|
106
|
-
this.onError(this.props.attr, i18n_1.default.t(_error));
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
this.onError(this.props.attr); // clear error
|
|
110
|
-
}
|
|
111
|
-
this.setState({ _value, oldValue: this.state._value }, () => this.onChange(this.props.attr, parseFloat(_value)));
|
|
112
|
-
}, placeholder: this.getText(this.props.schema.placeholder), label: this.getText(this.props.schema.label), helperText: error && typeof error === 'string'
|
|
113
|
-
? error
|
|
114
|
-
: this.renderHelp(this.props.schema.help, this.props.schema.helpLink, this.props.schema.noTranslation) }));
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
exports.default = (0, styles_1.withStyles)(styles)(ConfigNumber);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: React.JSXElementConstructor<Omit<Pick<import("./ConfigGeneric").ConfigGenericProps, "changed" | "classes" | "disabled" | "data" | "onChange" | "onError" | "common" | "instance" | "originalData" | "instanceObj" | "customObj" | "schema" | "attr" | "custom" | "forceUpdate" | "alive" | "systemConfig" | "socket" | "adapterName" | "themeType"> & Pick<PropTypes.InferProps<{
|
|
2
|
-
socket: PropTypes.Validator<object>;
|
|
3
|
-
themeType: PropTypes.Requireable<string>;
|
|
4
|
-
themeName: PropTypes.Requireable<string>;
|
|
5
|
-
style: PropTypes.Requireable<object>;
|
|
6
|
-
className: PropTypes.Requireable<string>;
|
|
7
|
-
data: PropTypes.Validator<object>;
|
|
8
|
-
schema: PropTypes.Requireable<object>;
|
|
9
|
-
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
10
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
11
|
-
dateFormat: PropTypes.Requireable<string>;
|
|
12
|
-
isFloatComma: PropTypes.Requireable<boolean>;
|
|
13
|
-
imagePrefix: PropTypes.Requireable<string>;
|
|
14
|
-
}>, "style" | "className" | "themeName" | "dateFormat" | "isFloatComma" | "imagePrefix"> & Pick<import("./ConfigGeneric").ConfigGenericProps, "changed" | "classes" | "disabled" | "common" | "instance" | "originalData" | "instanceObj" | "customObj" | "arrayIndex" | "globalData" | "registerOnForceUpdate" | "attr" | "custom" | "forceUpdate" | "alive" | "systemConfig" | "adapterName" | "commandRunning">, "classes"> & import("@mui/styles").StyledComponentProps<"flex" | "button" | "fullWidth"> & object>;
|
|
15
|
-
export default _default;
|
|
16
|
-
import PropTypes from 'prop-types';
|
|
17
|
-
import React from 'react';
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
9
|
-
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _get2 = _interopRequireDefault(require("@babel/runtime/helpers/get"));
|
|
13
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
|
-
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
|
-
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
16
|
-
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
18
|
-
var _styles = require("@mui/styles");
|
|
19
|
-
var _material = require("@mui/material");
|
|
20
|
-
var _SelectID = _interopRequireDefault(require("./wrapper/Dialogs/SelectID"));
|
|
21
|
-
var _ConfigGeneric2 = _interopRequireDefault(require("./ConfigGeneric"));
|
|
22
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
23
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
var styles = function styles() {
|
|
25
|
-
return {
|
|
26
|
-
fullWidth: {
|
|
27
|
-
width: '100%'
|
|
28
|
-
},
|
|
29
|
-
flex: {
|
|
30
|
-
display: 'flex'
|
|
31
|
-
},
|
|
32
|
-
button: {
|
|
33
|
-
height: 48,
|
|
34
|
-
marginLeft: 4,
|
|
35
|
-
minWidth: 48
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
var ConfigObjectId = /*#__PURE__*/function (_ConfigGeneric) {
|
|
40
|
-
(0, _inherits2["default"])(ConfigObjectId, _ConfigGeneric);
|
|
41
|
-
var _super = _createSuper(ConfigObjectId);
|
|
42
|
-
function ConfigObjectId() {
|
|
43
|
-
(0, _classCallCheck2["default"])(this, ConfigObjectId);
|
|
44
|
-
return _super.apply(this, arguments);
|
|
45
|
-
}
|
|
46
|
-
(0, _createClass2["default"])(ConfigObjectId, [{
|
|
47
|
-
key: "componentDidMount",
|
|
48
|
-
value: function () {
|
|
49
|
-
var _componentDidMount = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
50
|
-
var _this$props, data, attr, value;
|
|
51
|
-
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
52
|
-
while (1) switch (_context.prev = _context.next) {
|
|
53
|
-
case 0:
|
|
54
|
-
(0, _get2["default"])((0, _getPrototypeOf2["default"])(ConfigObjectId.prototype), "componentDidMount", this).call(this);
|
|
55
|
-
_this$props = this.props, data = _this$props.data, attr = _this$props.attr;
|
|
56
|
-
value = _ConfigGeneric2["default"].getValue(data, attr) || '';
|
|
57
|
-
this.setState({
|
|
58
|
-
value: value,
|
|
59
|
-
initialized: true
|
|
60
|
-
});
|
|
61
|
-
case 4:
|
|
62
|
-
case "end":
|
|
63
|
-
return _context.stop();
|
|
64
|
-
}
|
|
65
|
-
}, _callee, this);
|
|
66
|
-
}));
|
|
67
|
-
function componentDidMount() {
|
|
68
|
-
return _componentDidMount.apply(this, arguments);
|
|
69
|
-
}
|
|
70
|
-
return componentDidMount;
|
|
71
|
-
}()
|
|
72
|
-
}, {
|
|
73
|
-
key: "renderItem",
|
|
74
|
-
value: function renderItem(error, disabled /* , defaultValue */) {
|
|
75
|
-
var _this = this;
|
|
76
|
-
if (!this.state.initialized) {
|
|
77
|
-
return null;
|
|
78
|
-
}
|
|
79
|
-
var _this$props2 = this.props,
|
|
80
|
-
classes = _this$props2.classes,
|
|
81
|
-
schema = _this$props2.schema,
|
|
82
|
-
socket = _this$props2.socket,
|
|
83
|
-
attr = _this$props2.attr;
|
|
84
|
-
var _this$state = this.state,
|
|
85
|
-
value = _this$state.value,
|
|
86
|
-
showSelectId = _this$state.showSelectId;
|
|
87
|
-
return /*#__PURE__*/_react["default"].createElement(_material.FormControl, {
|
|
88
|
-
className: classes.fullWidth,
|
|
89
|
-
variant: "standard"
|
|
90
|
-
}, schema.label ? /*#__PURE__*/_react["default"].createElement(_material.InputLabel, {
|
|
91
|
-
shrink: true
|
|
92
|
-
}, this.getText(schema.label)) : null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
-
className: classes.flex
|
|
94
|
-
}, /*#__PURE__*/_react["default"].createElement(_material.TextField, {
|
|
95
|
-
variant: "standard",
|
|
96
|
-
fullWidth: true,
|
|
97
|
-
value: value,
|
|
98
|
-
error: !!error,
|
|
99
|
-
disabled: disabled,
|
|
100
|
-
placeholder: this.getText(schema.placeholder),
|
|
101
|
-
label: this.getText(schema.label),
|
|
102
|
-
helperText: this.renderHelp(schema.help, schema.helpLink, schema.noTranslation),
|
|
103
|
-
onChange: function onChange(e) {
|
|
104
|
-
var value_ = e.target.value;
|
|
105
|
-
_this.setState({
|
|
106
|
-
value: value_
|
|
107
|
-
}, function () {
|
|
108
|
-
return _this.onChange(attr, value_);
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}), /*#__PURE__*/_react["default"].createElement(_material.Button, {
|
|
112
|
-
color: "grey",
|
|
113
|
-
className: this.props.classes.button,
|
|
114
|
-
size: "small",
|
|
115
|
-
variant: "outlined",
|
|
116
|
-
onClick: function onClick() {
|
|
117
|
-
return _this.setState({
|
|
118
|
-
showSelectId: true
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
}, "...")), showSelectId ? /*#__PURE__*/_react["default"].createElement(_SelectID["default"], {
|
|
122
|
-
imagePrefix: this.props.imagePrefix === undefined ? '../..' : this.props.imagePrefix,
|
|
123
|
-
dateFormat: this.props.dateFormat,
|
|
124
|
-
isFloatComma: this.props.isFloatComma,
|
|
125
|
-
dialogName: "admin.".concat(this.props.adapterName),
|
|
126
|
-
themeType: this.props.themeType,
|
|
127
|
-
types: schema.types ? [schema.types] : undefined,
|
|
128
|
-
customFilter: schema.customFilter,
|
|
129
|
-
filters: schema.filters,
|
|
130
|
-
socket: socket,
|
|
131
|
-
statesOnly: schema.all === undefined ? true : schema.all,
|
|
132
|
-
selected: value,
|
|
133
|
-
root: schema.root,
|
|
134
|
-
onClose: function onClose() {
|
|
135
|
-
return _this.setState({
|
|
136
|
-
showSelectId: false
|
|
137
|
-
});
|
|
138
|
-
},
|
|
139
|
-
onOk: function onOk(value_) {
|
|
140
|
-
return _this.setState({
|
|
141
|
-
showSelectId: false,
|
|
142
|
-
value: value_
|
|
143
|
-
}, function () {
|
|
144
|
-
return _this.onChange(attr, value_);
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}) : null);
|
|
148
|
-
}
|
|
149
|
-
}]);
|
|
150
|
-
return ConfigObjectId;
|
|
151
|
-
}(_ConfigGeneric2["default"]);
|
|
152
|
-
ConfigObjectId.propTypes = {
|
|
153
|
-
socket: _propTypes["default"].object.isRequired,
|
|
154
|
-
themeType: _propTypes["default"].string,
|
|
155
|
-
themeName: _propTypes["default"].string,
|
|
156
|
-
style: _propTypes["default"].object,
|
|
157
|
-
className: _propTypes["default"].string,
|
|
158
|
-
data: _propTypes["default"].object.isRequired,
|
|
159
|
-
schema: _propTypes["default"].object,
|
|
160
|
-
onError: _propTypes["default"].func,
|
|
161
|
-
onChange: _propTypes["default"].func,
|
|
162
|
-
dateFormat: _propTypes["default"].string,
|
|
163
|
-
isFloatComma: _propTypes["default"].bool,
|
|
164
|
-
imagePrefix: _propTypes["default"].string
|
|
165
|
-
};
|
|
166
|
-
var _default = exports["default"] = (0, _styles.withStyles)(styles)(ConfigObjectId);
|
|
167
|
-
//# sourceMappingURL=ConfigObjectId.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConfigObjectId.js","names":["_react","_interopRequireDefault","require","_propTypes","_styles","_material","_SelectID","_ConfigGeneric2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","styles","fullWidth","width","flex","display","button","height","marginLeft","minWidth","ConfigObjectId","_ConfigGeneric","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_componentDidMount","_asyncToGenerator2","_regenerator","mark","_callee","_this$props","data","attr","wrap","_callee$","_context","prev","next","_get2","props","ConfigGeneric","getValue","setState","initialized","stop","componentDidMount","renderItem","error","disabled","_this","state","_this$props2","classes","schema","socket","_this$state","showSelectId","createElement","FormControl","className","variant","label","InputLabel","shrink","getText","TextField","placeholder","helperText","renderHelp","help","helpLink","noTranslation","onChange","value_","target","Button","color","size","onClick","imagePrefix","undefined","dateFormat","isFloatComma","dialogName","concat","adapterName","themeType","types","customFilter","filters","statesOnly","all","selected","root","onClose","onOk","propTypes","PropTypes","object","isRequired","string","themeName","style","onError","func","bool","_default","exports","withStyles"],"sources":["JsonConfigComponent/ConfigObjectId.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { withStyles } from '@mui/styles';\r\n\r\nimport {\r\n InputLabel,\r\n FormControl,\r\n Button,\r\n TextField,\r\n} from '@mui/material';\r\n\r\nimport DialogSelectID from './wrapper/Dialogs/SelectID';\r\n\r\nimport ConfigGeneric from './ConfigGeneric';\r\n\r\nconst styles = () => ({\r\n fullWidth: {\r\n width: '100%',\r\n },\r\n flex: {\r\n display: 'flex',\r\n },\r\n button: {\r\n height: 48,\r\n marginLeft: 4,\r\n minWidth: 48,\r\n },\r\n});\r\n\r\nclass ConfigObjectId extends ConfigGeneric {\r\n async componentDidMount() {\r\n super.componentDidMount();\r\n const { data, attr } = this.props;\r\n const value = ConfigGeneric.getValue(data, attr) || '';\r\n this.setState({ value, initialized: true });\r\n }\r\n\r\n renderItem(error, disabled /* , defaultValue */) {\r\n if (!this.state.initialized) {\r\n return null;\r\n }\r\n const {\r\n classes, schema, socket, attr,\r\n } = this.props;\r\n const { value, showSelectId } = this.state;\r\n\r\n return <FormControl className={classes.fullWidth} variant=\"standard\">\r\n {schema.label ? <InputLabel shrink>{this.getText(schema.label)}</InputLabel> : null}\r\n <div className={classes.flex}>\r\n <TextField\r\n variant=\"standard\"\r\n fullWidth\r\n value={value}\r\n error={!!error}\r\n disabled={disabled}\r\n placeholder={this.getText(schema.placeholder)}\r\n label={this.getText(schema.label)}\r\n helperText={this.renderHelp(schema.help, schema.helpLink, schema.noTranslation)}\r\n onChange={e => {\r\n const value_ = e.target.value;\r\n this.setState({ value: value_ }, () =>\r\n this.onChange(attr, value_));\r\n }}\r\n />\r\n <Button\r\n color=\"grey\"\r\n className={this.props.classes.button}\r\n size=\"small\"\r\n variant=\"outlined\"\r\n onClick={() => this.setState({ showSelectId: true })}\r\n >\r\n...\r\n </Button>\r\n </div>\r\n {showSelectId ? <DialogSelectID\r\n imagePrefix={this.props.imagePrefix === undefined ? '../..' : this.props.imagePrefix}\r\n dateFormat={this.props.dateFormat}\r\n isFloatComma={this.props.isFloatComma}\r\n dialogName={`admin.${this.props.adapterName}`}\r\n themeType={this.props.themeType}\r\n types={schema.types ? [schema.types] : undefined}\r\n customFilter={schema.customFilter}\r\n filters={schema.filters}\r\n socket={socket}\r\n statesOnly={schema.all === undefined ? true : schema.all}\r\n selected={value}\r\n root={schema.root}\r\n onClose={() => this.setState({ showSelectId: false })}\r\n onOk={value_ =>\r\n this.setState({ showSelectId: false, value: value_ }, () =>\r\n this.onChange(attr, value_))}\r\n /> : null}\r\n </FormControl>;\r\n }\r\n}\r\n\r\nConfigObjectId.propTypes = {\r\n socket: PropTypes.object.isRequired,\r\n themeType: PropTypes.string,\r\n themeName: PropTypes.string,\r\n style: PropTypes.object,\r\n className: PropTypes.string,\r\n data: PropTypes.object.isRequired,\r\n schema: PropTypes.object,\r\n onError: PropTypes.func,\r\n onChange: PropTypes.func,\r\n dateFormat: PropTypes.string,\r\n isFloatComma: PropTypes.bool,\r\n imagePrefix: PropTypes.string,\r\n};\r\n\r\nexport default withStyles(styles)(ConfigObjectId);\r\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,SAAA,GAAAH,OAAA;AAOA,IAAAI,SAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,e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