@adcops/autocore-react 3.0.40 → 3.1.1
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/additional-docs/AutoCoreTagContext.md +441 -0
- package/dist/assets/BlocklyLogo.d.ts +1 -0
- package/dist/assets/BlocklyLogo.d.ts.map +1 -0
- package/dist/assets/Distance.d.ts +1 -0
- package/dist/assets/Distance.d.ts.map +1 -0
- package/dist/assets/JogLong.d.ts +1 -0
- package/dist/assets/JogLong.d.ts.map +1 -0
- package/dist/assets/JogMedium.d.ts +1 -0
- package/dist/assets/JogMedium.d.ts.map +1 -0
- package/dist/assets/JogShort.d.ts +1 -0
- package/dist/assets/JogShort.d.ts.map +1 -0
- package/dist/assets/PythonLogo.d.ts +1 -0
- package/dist/assets/PythonLogo.d.ts.map +1 -0
- package/dist/assets/Rotation3D.d.ts +1 -0
- package/dist/assets/Rotation3D.d.ts.map +1 -0
- package/dist/assets/RotationCcw.d.ts +1 -0
- package/dist/assets/RotationCcw.d.ts.map +1 -0
- package/dist/assets/RotationCcwA.d.ts +1 -0
- package/dist/assets/RotationCcwA.d.ts.map +1 -0
- package/dist/assets/RotationCcwB.d.ts +1 -0
- package/dist/assets/RotationCcwB.d.ts.map +1 -0
- package/dist/assets/RotationCcwC.d.ts +1 -0
- package/dist/assets/RotationCcwC.d.ts.map +1 -0
- package/dist/assets/RotationCw.d.ts +1 -0
- package/dist/assets/RotationCw.d.ts.map +1 -0
- package/dist/assets/RotationCwA.d.ts +1 -0
- package/dist/assets/RotationCwA.d.ts.map +1 -0
- package/dist/assets/RotationCwB.d.ts +1 -0
- package/dist/assets/RotationCwB.d.ts.map +1 -0
- package/dist/assets/RotationCwC.d.ts +1 -0
- package/dist/assets/RotationCwC.d.ts.map +1 -0
- package/dist/assets/Run.d.ts +1 -0
- package/dist/assets/Run.d.ts.map +1 -0
- package/dist/assets/Speed.d.ts +1 -0
- package/dist/assets/Speed.d.ts.map +1 -0
- package/dist/assets/SpeedFast.d.ts +1 -0
- package/dist/assets/SpeedFast.d.ts.map +1 -0
- package/dist/assets/SpeedMedium.d.ts +1 -0
- package/dist/assets/SpeedMedium.d.ts.map +1 -0
- package/dist/assets/SpeedNone.d.ts +1 -0
- package/dist/assets/SpeedNone.d.ts.map +1 -0
- package/dist/assets/SpeedSlow.d.ts +1 -0
- package/dist/assets/SpeedSlow.d.ts.map +1 -0
- package/dist/assets/Walk.d.ts +1 -0
- package/dist/assets/Walk.d.ts.map +1 -0
- package/dist/assets/index.d.ts +1 -0
- package/dist/assets/index.d.ts.map +1 -0
- package/dist/components/AutoCoreDevPanel.d.ts +144 -0
- package/dist/components/AutoCoreDevPanel.d.ts.map +1 -0
- package/dist/components/AutoCoreDevPanel.js +1 -0
- package/dist/components/BlocklyEditor.d.ts +1 -0
- package/dist/components/BlocklyEditor.d.ts.map +1 -0
- package/dist/components/BlocklyEditor.js +1 -1
- package/dist/components/CodeEditor.d.ts +2 -1
- package/dist/components/CodeEditor.d.ts.map +1 -0
- package/dist/components/CodeEditor.js +1 -1
- package/dist/components/FileList.d.ts +1 -0
- package/dist/components/FileList.d.ts.map +1 -0
- package/dist/components/FileList.js +1 -1
- package/dist/components/FileSelect.d.ts +1 -0
- package/dist/components/FileSelect.d.ts.map +1 -0
- package/dist/components/FileSelect.js +1 -1
- package/dist/components/FitText.d.ts +1 -0
- package/dist/components/FitText.d.ts.map +1 -0
- package/dist/components/FitText.js +1 -1
- package/dist/components/Indicator.d.ts +2 -1
- package/dist/components/Indicator.d.ts.map +1 -0
- package/dist/components/Indicator.js +1 -1
- package/dist/components/IndicatorButton.d.ts +2 -1
- package/dist/components/IndicatorButton.d.ts.map +1 -0
- package/dist/components/IndicatorButton.js +1 -1
- package/dist/components/IndicatorRect.d.ts +2 -1
- package/dist/components/IndicatorRect.d.ts.map +1 -0
- package/dist/components/JogPanel.d.ts +1 -0
- package/dist/components/JogPanel.d.ts.map +1 -0
- package/dist/components/Lamp.d.ts +2 -1
- package/dist/components/Lamp.d.ts.map +1 -0
- package/dist/components/Lamp.js +1 -1
- package/dist/components/Osk.d.ts +1 -0
- package/dist/components/Osk.d.ts.map +1 -0
- package/dist/components/Osk.js +1 -1
- package/dist/components/OskDialog.d.ts +1 -0
- package/dist/components/OskDialog.d.ts.map +1 -0
- package/dist/components/ProgressBarWithValue.d.ts +1 -0
- package/dist/components/ProgressBarWithValue.d.ts.map +1 -0
- package/dist/components/ProgressBarWithValue.js +1 -1
- package/dist/components/TextInput.d.ts +62 -103
- package/dist/components/TextInput.d.ts.map +1 -0
- package/dist/components/TextInput.js +1 -1
- package/dist/components/ToggleGroup.d.ts +2 -1
- package/dist/components/ToggleGroup.d.ts.map +1 -0
- package/dist/components/ToggleGroup.js +1 -1
- package/dist/components/ValueDisplay.d.ts +3 -2
- package/dist/components/ValueDisplay.d.ts.map +1 -0
- package/dist/components/ValueDisplay.js +1 -1
- package/dist/components/ValueIndicator.d.ts +2 -1
- package/dist/components/ValueIndicator.d.ts.map +1 -0
- package/dist/components/ValueIndicator.js +1 -1
- package/dist/components/ValueInput.d.ts +2 -1
- package/dist/components/ValueInput.d.ts.map +1 -0
- package/dist/components/ValueInput.js +1 -1
- package/dist/core/ActionMode.d.ts +1 -0
- package/dist/core/ActionMode.d.ts.map +1 -0
- package/dist/core/AutoCoreTagContext.d.ts +224 -0
- package/dist/core/AutoCoreTagContext.d.ts.map +1 -0
- package/dist/core/AutoCoreTagContext.js +1 -0
- package/dist/core/AutoCoreTagTypes.d.ts +162 -0
- package/dist/core/AutoCoreTagTypes.d.ts.map +1 -0
- package/dist/core/AutoCoreTagTypes.js +1 -0
- package/dist/core/EventEmitterContext.d.ts +295 -2
- package/dist/core/EventEmitterContext.d.ts.map +1 -0
- package/dist/core/EventEmitterContext.js +1 -1
- package/dist/core/IndicatorButtonState.d.ts +1 -0
- package/dist/core/IndicatorButtonState.d.ts.map +1 -0
- package/dist/core/IndicatorColor.d.ts +1 -0
- package/dist/core/IndicatorColor.d.ts.map +1 -0
- package/dist/core/MaskPatterns.d.ts +1 -0
- package/dist/core/MaskPatterns.d.ts.map +1 -0
- package/dist/core/NumerableTypes.d.ts +1 -0
- package/dist/core/NumerableTypes.d.ts.map +1 -0
- package/dist/core/NumerableTypes.js +1 -1
- package/dist/core/PositionContext.d.ts +1 -1
- package/dist/core/PositionContext.d.ts.map +1 -0
- package/dist/core/UniqueId.d.ts +1 -0
- package/dist/core/UniqueId.d.ts.map +1 -0
- package/dist/core/ValueSimulator.d.ts +2 -1
- package/dist/core/ValueSimulator.d.ts.map +1 -0
- package/dist/core/ValueSimulator.js +1 -1
- package/dist/core/hoc.d.ts +1 -0
- package/dist/core/hoc.d.ts.map +1 -0
- package/dist/core/hoc.js +1 -1
- package/dist/hooks/adsHooks.d.ts +1 -0
- package/dist/hooks/adsHooks.d.ts.map +1 -0
- package/dist/hooks/adsHooks.js +1 -1
- package/dist/hooks/commandHooks.d.ts +1 -0
- package/dist/hooks/commandHooks.d.ts.map +1 -0
- package/dist/hooks/commandHooks.js +1 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/useAutoCoreTag.d.ts +26 -0
- package/dist/hooks/useAutoCoreTag.d.ts.map +1 -0
- package/dist/hooks/useAutoCoreTag.js +1 -0
- package/dist/hooks/useScaledValue.d.ts +1 -0
- package/dist/hooks/useScaledValue.d.ts.map +1 -0
- package/dist/hooks/useScaledValue.js +1 -1
- package/dist/hub/CommandMessage.d.ts +1 -0
- package/dist/hub/CommandMessage.d.ts.map +1 -0
- package/dist/hub/HubBase.d.ts +3 -2
- package/dist/hub/HubBase.d.ts.map +1 -0
- package/dist/hub/HubSimulate.d.ts +2 -1
- package/dist/hub/HubSimulate.d.ts.map +1 -0
- package/dist/hub/HubSimulate.js +1 -1
- package/dist/hub/HubTauri.d.ts +2 -1
- package/dist/hub/HubTauri.d.ts.map +1 -0
- package/dist/hub/HubTauri.js +1 -1
- package/dist/hub/HubWebSocket.d.ts +2 -1
- package/dist/hub/HubWebSocket.d.ts.map +1 -0
- package/dist/hub/HubWebSocket.js +1 -1
- package/dist/hub/index.d.ts +2 -1
- package/dist/hub/index.d.ts.map +1 -0
- package/dist/hub/index.js +1 -1
- package/docs/.nojekyll +1 -0
- package/docs/assets/hierarchy.js +1 -0
- package/docs/assets/highlight.css +134 -0
- package/docs/assets/icons.js +18 -0
- package/docs/assets/icons.svg +1 -0
- package/docs/assets/main.js +60 -0
- package/docs/assets/navigation.js +1 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1633 -0
- package/docs/classes/components_CodeEditor.CodeEditor.html +108 -101
- package/docs/classes/components_Indicator.Indicator.html +122 -0
- package/docs/classes/components_IndicatorRect.IndicatorRect.html +121 -0
- package/docs/classes/components_JogPanel.JogPanel.html +104 -106
- package/docs/classes/components_Lamp.Lamp.html +96 -79
- package/docs/classes/components_OskDialog.OskDialog.html +125 -0
- package/docs/classes/components_TextInput.TextInput.html +99 -89
- package/docs/classes/components_ValueDisplay.ValueDisplay.html +148 -0
- package/docs/classes/components_ValueIndicator.ValueIndicator.html +98 -91
- package/docs/classes/core_ValueSimulator.ValueSimulator.html +51 -0
- package/docs/classes/hub_HubBase.HubBase.html +106 -0
- package/docs/classes/hub_HubSimulate.HubSimulate.html +75 -0
- package/docs/classes/hub_HubTauri.HubTauri.html +93 -0
- package/docs/classes/hub_HubWebSocket.HubWebSocket.html +75 -69
- package/docs/documents/core_AutoCoreTagContext.AutoCoreTagContext.html +148 -0
- package/docs/enums/components_JogPanel.JogDistanceAction.html +5 -5
- package/docs/enums/components_JogPanel.JogPanelAction.html +18 -18
- package/docs/enums/components_JogPanel.JogSpeedAction.html +5 -5
- package/docs/enums/core_ActionMode.ActionMode.html +6 -6
- package/docs/enums/core_IndicatorColor.IndicatorColor.html +22 -22
- package/docs/functions/assets.BlocklyLogo.html +1 -0
- package/docs/functions/assets.Distance.html +1 -0
- package/docs/functions/assets.JogLong.html +1 -0
- package/docs/functions/assets.JogMedium.html +1 -0
- package/docs/functions/assets.JogShort.html +1 -0
- package/docs/functions/assets.PythonLogo.html +1 -0
- package/docs/functions/assets.Rotation3D.html +1 -0
- package/docs/functions/assets.RotationCcw.html +1 -0
- package/docs/functions/assets.RotationCcwA.html +1 -0
- package/docs/functions/assets.RotationCcwB.html +1 -0
- package/docs/functions/assets.RotationCcwC.html +1 -0
- package/docs/functions/assets.RotationCw.html +1 -0
- package/docs/functions/assets.RotationCwA.html +1 -0
- package/docs/functions/assets.RotationCwB.html +1 -0
- package/docs/functions/assets.RotationCwC.html +1 -0
- package/docs/functions/assets.Run.html +1 -0
- package/docs/functions/assets.Speed.html +1 -0
- package/docs/functions/assets.SpeedFast.html +1 -0
- package/docs/functions/assets.SpeedMedium.html +1 -0
- package/docs/functions/assets.SpeedNone.html +1 -0
- package/docs/functions/assets.SpeedSlow.html +1 -0
- package/docs/functions/assets.Walk.html +1 -0
- package/docs/functions/components_BlocklyEditor.createCustomToolbox.html +5 -5
- package/docs/functions/core_UniqueId.UniqueId.html +9 -0
- package/docs/functions/core_hoc.hocAddSubscription.html +6 -0
- package/docs/functions/hooks_adsHooks.useAdsRegisterSymbols.html +16 -0
- package/docs/functions/hooks_adsHooks.useAdsTapValue.html +8 -0
- package/docs/functions/hooks_adsHooks.useAdsWriteScaledValue.html +18 -0
- package/docs/functions/hooks_adsHooks.useAdsWriteValue.html +9 -0
- package/docs/functions/hooks_commandHooks.useRegisterSymbols.html +16 -0
- package/docs/functions/hooks_commandHooks.useTapValue.html +10 -0
- package/docs/functions/hooks_commandHooks.useWriteScaledValue.html +18 -0
- package/docs/functions/hooks_commandHooks.useWriteValue.html +11 -0
- package/docs/functions/hooks_useAutoCoreTag.ts.makeAutoCoreTagHooks.html +12 -0
- package/docs/functions/hooks_useScaledValue.useScaledValue.html +18 -0
- package/docs/functions/hub.createHub.html +3 -0
- package/docs/hierarchy.html +1 -0
- package/docs/index.html +148 -0
- package/docs/interfaces/components_IndicatorButton.IndicatorButtonProps.html +654 -0
- package/docs/interfaces/components_IndicatorRect.IndicatorRectProps.html +37 -0
- package/docs/interfaces/components_JogPanel.JogPanelButtonDefinition.html +5 -5
- package/docs/interfaces/components_ToggleGroup.ToggleGroupProps.html +545 -519
- package/docs/interfaces/core_AutoCoreTagTypes.BaseContextValue.html +12 -0
- package/docs/interfaces/core_AutoCoreTagTypes.ScaleConfig.html +13 -0
- package/docs/interfaces/core_EventEmitterContext.Action.html +8 -0
- package/docs/interfaces/core_EventEmitterContext.EventEmitterContextType.html +33 -0
- package/docs/interfaces/core_EventEmitterContext.State.html +8 -0
- package/docs/interfaces/core_EventEmitterContext.Subscription.html +6 -0
- package/docs/interfaces/core_IndicatorButtonState.IndicatorButtonState.html +10 -10
- package/docs/interfaces/core_PositionContext.IPositionContext.html +17 -0
- package/docs/interfaces/hub_CommandMessage.CommandMessage.html +6 -6
- package/docs/interfaces/hub_CommandMessage.CommandMessageResult.html +4 -4
- package/docs/modules/assets.html +1 -23
- package/docs/modules/assets_BlocklyLogo.html +1 -2
- package/docs/modules/assets_Distance.html +1 -2
- package/docs/modules/assets_JogLong.html +1 -2
- package/docs/modules/assets_JogMedium.html +1 -2
- package/docs/modules/assets_JogShort.html +1 -2
- package/docs/modules/assets_PythonLogo.html +1 -2
- package/docs/modules/assets_Rotation3D.html +1 -2
- package/docs/modules/assets_RotationCcw.html +1 -2
- package/docs/modules/assets_RotationCcwA.html +1 -2
- package/docs/modules/assets_RotationCcwB.html +1 -2
- package/docs/modules/assets_RotationCcwC.html +1 -2
- package/docs/modules/assets_RotationCw.html +1 -2
- package/docs/modules/assets_RotationCwA.html +1 -2
- package/docs/modules/assets_RotationCwB.html +1 -2
- package/docs/modules/assets_RotationCwC.html +1 -2
- package/docs/modules/assets_Run.html +1 -2
- package/docs/modules/assets_Speed.html +1 -2
- package/docs/modules/assets_SpeedFast.html +1 -2
- package/docs/modules/assets_SpeedMedium.html +1 -2
- package/docs/modules/assets_SpeedNone.html +1 -2
- package/docs/modules/assets_SpeedSlow.html +1 -2
- package/docs/modules/assets_Walk.html +1 -2
- package/docs/modules/components_AutoCoreDevPanel.html +20 -0
- package/docs/modules/components_BlocklyEditor.html +1 -5
- package/docs/modules/components_CodeEditor.html +1 -3
- package/docs/modules/components_FileList.html +1 -3
- package/docs/modules/components_FileSelect.html +1 -0
- package/docs/modules/components_FitText.html +1 -3
- package/docs/modules/components_Indicator.html +1 -0
- package/docs/modules/components_IndicatorButton.html +1 -0
- package/docs/modules/components_IndicatorRect.html +1 -0
- package/docs/modules/components_JogPanel.html +1 -9
- package/docs/modules/components_Lamp.html +1 -4
- package/docs/modules/components_Osk.html +1 -0
- package/docs/modules/components_OskDialog.html +1 -0
- package/docs/modules/components_ProgressBarWithValue.html +1 -0
- package/docs/modules/components_TextInput.html +1 -2
- package/docs/modules/components_ToggleGroup.html +1 -6
- package/docs/modules/components_ValueDisplay.html +1 -0
- package/docs/modules/components_ValueIndicator.html +1 -4
- package/docs/modules/components_ValueInput.html +1 -2
- package/docs/modules/core_ActionMode.html +1 -2
- package/docs/modules/core_AutoCoreTagContext.html +11 -0
- package/docs/modules/core_AutoCoreTagTypes.html +1 -0
- package/docs/modules/core_EventEmitterContext.html +53 -0
- package/docs/modules/core_IndicatorButtonState.html +1 -2
- package/docs/modules/core_IndicatorColor.html +1 -2
- package/docs/modules/core_MaskPatterns.html +1 -0
- package/docs/modules/core_NumerableTypes.html +1 -0
- package/docs/modules/core_PositionContext.html +1 -0
- package/docs/modules/core_UniqueId.html +1 -0
- package/docs/modules/core_ValueSimulator.html +1 -0
- package/docs/modules/core_hoc.html +1 -0
- package/docs/modules/hooks.html +1 -0
- package/docs/modules/hooks_adsHooks.html +1 -0
- package/docs/modules/hooks_commandHooks.html +1 -0
- package/docs/modules/hooks_useAutoCoreTag.ts.html +52 -0
- package/docs/modules/hooks_useScaledValue.html +1 -0
- package/docs/modules/hub.html +1 -0
- package/docs/modules/hub_CommandMessage.html +1 -3
- package/docs/modules/hub_HubBase.html +1 -0
- package/docs/modules/hub_HubSimulate.html +1 -0
- package/docs/modules/hub_HubTauri.html +1 -0
- package/docs/modules/hub_HubWebSocket.html +1 -2
- package/docs/modules.html +23 -0
- package/docs/types/components_IndicatorButton.IndicatorButtonOptionsType.html +1 -1
- package/docs/types/core_AutoCoreTagTypes.ExtractByTag.html +2 -0
- package/docs/types/core_AutoCoreTagTypes.PrimitiveKind.html +1 -0
- package/docs/types/core_AutoCoreTagTypes.TagConfig.html +16 -0
- package/docs/types/core_AutoCoreTagTypes.TagValueMap.html +1 -0
- package/docs/types/core_AutoCoreTagTypes.TagValueOf.html +1 -0
- package/docs/types/core_EventEmitterContext.EmitterDispatchFunction.html +3 -0
- package/docs/types/core_EventEmitterContext.EmitterSubscribeFunction.html +3 -0
- package/docs/types/core_EventEmitterContext.EmitterUnsubscribeFunction.html +3 -0
- package/docs/types/core_NumerableTypes.NumerableFormatOptions.html +4 -0
- package/docs/types/core_hoc.HocAddSubscriptionProps.html +6 -0
- package/docs/variables/components_AutoCoreDevPanel.AutoCoreDevPanel.html +43 -0
- package/docs/variables/components_BlocklyEditor.BlocklyEditor.html +13 -0
- package/docs/variables/components_BlocklyEditor.StandardToolbox.html +1 -1
- package/docs/variables/components_FileList.FileList.html +23 -0
- package/docs/variables/components_FileSelect.FileSelect.html +1 -0
- package/docs/variables/components_FitText.FitText.html +4 -0
- package/docs/variables/components_IndicatorButton.IndicatorButton.html +1 -0
- package/docs/variables/components_JogPanel.DefaultLinearJogButtons.html +2 -2
- package/docs/variables/components_JogPanel.DefaultRotationJogButtons.html +2 -2
- package/docs/variables/components_Osk.Osk.html +1 -0
- package/docs/variables/components_ProgressBarWithValue.ProgressBarWithValue.html +1 -0
- package/docs/variables/components_ToggleGroup.ToggleGroup.html +1 -0
- package/docs/variables/components_ValueInput.ValueInput.html +4 -0
- package/docs/variables/core_AutoCoreTagContext.AutoCoreTagContext.html +1 -0
- package/docs/variables/core_AutoCoreTagContext.AutoCoreTagProvider.html +7 -0
- package/docs/variables/core_EventEmitterContext.EventEmitterContext.html +64 -0
- package/docs/variables/core_EventEmitterContext.EventEmitterProvider.html +10 -0
- package/docs/variables/core_MaskPatterns.PrimeReactMaskPatterns.html +14 -0
- package/docs/variables/core_MaskPatterns.RegExMaskPatterns.html +15 -0
- package/docs/variables/core_PositionContext.DimensionsContext.html +6 -0
- package/docs/variables/hooks_useScaledValue.kMillimeters2Inches.html +2 -0
- package/docs/variables/hooks_useScaledValue.kNewtons2Pounds.html +2 -0
- package/package.json +32 -27
- package/readme.md +193 -22
- package/src/components/AutoCoreDevPanel.tsx +411 -0
- package/src/components/CodeEditor.tsx +2 -2
- package/src/components/FileList.tsx +2 -2
- package/src/components/Indicator.tsx +2 -2
- package/src/components/IndicatorButton.tsx +2 -2
- package/src/components/IndicatorRect.tsx +2 -2
- package/src/components/Lamp.tsx +3 -3
- package/src/components/TextInput.tsx +159 -240
- package/src/components/ToggleGroup.tsx +3 -3
- package/src/components/ValueDisplay.tsx +4 -4
- package/src/components/ValueIndicator.tsx +2 -2
- package/src/components/ValueInput.tsx +2 -2
- package/src/core/AutoCoreTagContext.tsx +698 -0
- package/src/core/AutoCoreTagTypes.ts +202 -0
- package/src/core/EventEmitterContext.tsx +357 -43
- package/src/core/ValueSimulator.ts +2 -2
- package/src/hooks/useAutoCoreTag.ts +103 -0
- package/src/hub/HubBase.ts +3 -3
- package/src/hub/HubSimulate.ts +2 -2
- package/src/hub/HubTauri.ts +3 -3
- package/src/hub/HubWebSocket.ts +29 -32
- package/src/hub/index.ts +2 -2
- package/tsconfig.json +43 -28
- package/docs/classes/components_BlocklyEditor.BlocklyEditor.html +0 -124
- package/docs/classes/components_ValueInput.ValueInput.html +0 -113
- package/docs/functions/assets_BlocklyLogo.default.html +0 -1
- package/docs/functions/assets_Distance.default.html +0 -1
- package/docs/functions/assets_JogLong.default.html +0 -1
- package/docs/functions/assets_JogMedium.default.html +0 -1
- package/docs/functions/assets_JogShort.default.html +0 -1
- package/docs/functions/assets_PythonLogo.default.html +0 -1
- package/docs/functions/assets_Rotation3D.default.html +0 -1
- package/docs/functions/assets_RotationCcw.default.html +0 -1
- package/docs/functions/assets_RotationCcwA.default.html +0 -1
- package/docs/functions/assets_RotationCcwB.default.html +0 -1
- package/docs/functions/assets_RotationCcwC.default.html +0 -1
- package/docs/functions/assets_RotationCw.default.html +0 -1
- package/docs/functions/assets_RotationCwA.default.html +0 -1
- package/docs/functions/assets_RotationCwB.default.html +0 -1
- package/docs/functions/assets_RotationCwC.default.html +0 -1
- package/docs/functions/assets_Run.default.html +0 -1
- package/docs/functions/assets_Speed.default.html +0 -1
- package/docs/functions/assets_SpeedFast.default.html +0 -1
- package/docs/functions/assets_SpeedMedium.default.html +0 -1
- package/docs/functions/assets_SpeedNone.default.html +0 -1
- package/docs/functions/assets_SpeedSlow.default.html +0 -1
- package/docs/functions/assets_Walk.default.html +0 -1
- package/docs/functions/components_FileList.FileList.html +0 -21
- package/docs/functions/components_FitText.FitText.html +0 -8
- package/docs/functions/components_ToggleGroup.ToggleGroup.html +0 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp.. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-04-24 16:01:53
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified: 2025-
|
|
5
|
+
* Last Modified: 2025-09-05 14:53:22
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
@@ -21,7 +21,7 @@ import { Column } from 'primereact/column';
|
|
|
21
21
|
import { Toolbar } from 'primereact/toolbar';
|
|
22
22
|
import { Button } from 'primereact/button';
|
|
23
23
|
import { confirmPopup } from 'primereact/confirmpopup';
|
|
24
|
-
import { FileUpload, FileUploadHandlerEvent} from 'primereact/fileupload';
|
|
24
|
+
import { FileUpload, type FileUploadHandlerEvent} from 'primereact/fileupload';
|
|
25
25
|
|
|
26
26
|
import { EventEmitterContext } from '../core/EventEmitterContext';
|
|
27
27
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-16 14:39:41
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-05 14:52:12
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
import React, { Component } from 'react';
|
|
12
12
|
//import clsx from 'clsx';
|
|
13
|
-
import { EventEmitterContext, EventEmitterContextType } from '../core/EventEmitterContext';
|
|
13
|
+
import { EventEmitterContext, type EventEmitterContextType } from '../core/EventEmitterContext';
|
|
14
14
|
//import { IPositionContext } from '../core/PositionContext';
|
|
15
15
|
import {IndicatorColor} from "../core/IndicatorColor";
|
|
16
16
|
export {IndicatorColor}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React, { useCallback, useContext, useEffect, useState } from "react";
|
|
2
|
-
import { Button, ButtonProps } from "primereact/button";
|
|
2
|
+
import { Button, type ButtonProps } from "primereact/button";
|
|
3
3
|
import {
|
|
4
4
|
EventEmitterContext,
|
|
5
|
-
EventEmitterContextType,
|
|
5
|
+
type EventEmitterContextType,
|
|
6
6
|
} from "../core/EventEmitterContext";
|
|
7
7
|
import { IndicatorColor } from "../core/IndicatorColor";
|
|
8
8
|
export { IndicatorColor };
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
* Copyright (C) 2025 Automated Design Corp.. All Rights Reserved.
|
|
3
3
|
* Created Date: 2025-01-20 15:09:55
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified: 2025-
|
|
5
|
+
* Last Modified: 2025-09-05 14:51:58
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import { Component } from 'react';
|
|
11
|
-
import { EventEmitterContext, EventEmitterContextType } from '../core/EventEmitterContext';
|
|
11
|
+
import { EventEmitterContext, type EventEmitterContextType } from '../core/EventEmitterContext';
|
|
12
12
|
import { IndicatorColor } from "../core/IndicatorColor";
|
|
13
13
|
export { IndicatorColor };
|
|
14
14
|
|
package/src/components/Lamp.tsx
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-16 14:39:41
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-05 14:51:51
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
@@ -73,8 +73,8 @@
|
|
|
73
73
|
|
|
74
74
|
import React, { Component } from 'react';
|
|
75
75
|
import clsx from 'clsx';
|
|
76
|
-
import { EventEmitterContext, EventEmitterContextType } from '../core/EventEmitterContext';
|
|
77
|
-
import { IPositionContext } from '../core/PositionContext';
|
|
76
|
+
import { EventEmitterContext, type EventEmitterContextType } from '../core/EventEmitterContext';
|
|
77
|
+
import type { IPositionContext } from '../core/PositionContext';
|
|
78
78
|
import {IndicatorColor} from "../core/IndicatorColor";
|
|
79
79
|
export {IndicatorColor}
|
|
80
80
|
|
|
@@ -2,275 +2,194 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp.. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-03-20 13:05:42
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-09 15:32:12
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
import { InputText, InputTextProps } from 'primereact/inputtext';
|
|
10
|
+
import React, { useEffect, useMemo, useState } from "react";
|
|
11
|
+
import { InputText, type InputTextProps } from "primereact/inputtext";
|
|
14
12
|
import { Button } from "primereact/button";
|
|
13
|
+
import type { KeyFilterType } from "primereact/keyfilter";
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
// Props
|
|
16
|
+
interface TextInputProps extends Omit<InputTextProps, "prefix" | "value" | "onChange"> {
|
|
17
|
+
/** The label for the field (shown in an addon). */
|
|
18
|
+
label?: React.ReactNode;
|
|
18
19
|
|
|
19
|
-
/**
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
interface TextInputProps extends Omit<InputTextProps, "prefix"> {
|
|
20
|
+
/** Controlled value from parent. */
|
|
21
|
+
value?: string;
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
|
-
*
|
|
24
|
+
* PrimeReact key filter (lowercase) or RegExp.
|
|
25
|
+
* Examples: "pint" | "int" | "pnum" | "money" | "num" | "hex" | "email" | "alpha" | "alphanum"
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
keyfilter?: KeyFilterType;
|
|
28
28
|
|
|
29
|
+
/** Optional prefix addon before the input. */
|
|
30
|
+
prefix?: React.ReactNode;
|
|
29
31
|
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
*/
|
|
33
|
-
value : string | undefined;
|
|
32
|
+
/** Optional suffix addon after the input. */
|
|
33
|
+
suffix?: React.ReactNode;
|
|
34
34
|
|
|
35
|
+
/** Small, advisory text below the field. */
|
|
36
|
+
description?: React.ReactNode;
|
|
35
37
|
|
|
36
|
-
/**
|
|
37
|
-
|
|
38
|
-
* @type {RegExp | "pint" | "int" | "pnum" | "money" | "num" | "hex" | "email" | "alpha" | "alphanum"}
|
|
39
|
-
*/
|
|
40
|
-
keyFilter : KeyFilterType | undefined;
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* An optional prefix before the data entry field.
|
|
45
|
-
*/
|
|
46
|
-
prefix : React.ReactNode | undefined;
|
|
38
|
+
/** Disable entire control. */
|
|
39
|
+
disabled?: boolean;
|
|
47
40
|
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
*/
|
|
51
|
-
suffix : React.ReactNode | undefined;
|
|
41
|
+
/** Placeholder string. */
|
|
42
|
+
placeholder?: string;
|
|
52
43
|
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
*/
|
|
56
|
-
description : React.ReactNode | undefined;
|
|
44
|
+
/** Called when the user ACCEPTS a new value (Enter or ✔). */
|
|
45
|
+
onValueChanged?(newValue: string): void;
|
|
57
46
|
|
|
58
|
-
/**
|
|
59
|
-
|
|
60
|
-
*/
|
|
61
|
-
disabled : boolean | undefined;
|
|
62
|
-
|
|
63
|
-
/** Topic on which the value will be dispatched through the user interfave on successful data entry. */
|
|
64
|
-
dispatchTopic : string | undefined;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Placeholder string to display if the value is empty.
|
|
68
|
-
*/
|
|
69
|
-
placeholder : string | undefined;
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* The user has accepted a new value.
|
|
73
|
-
* @param newValue New value accepted by the user.
|
|
74
|
-
*/
|
|
75
|
-
onValueChanged?(newValue: string) : void;
|
|
76
|
-
/** Regular expression used to validate the value before it is broadcast */
|
|
77
|
-
validator : RegExp;
|
|
47
|
+
/** Regex validation used on accept (not on each keystroke). */
|
|
48
|
+
validator?: RegExp;
|
|
78
49
|
}
|
|
79
50
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
*/
|
|
83
|
-
interface TextInputState {
|
|
84
|
-
|
|
85
|
-
entryValue : string | undefined;
|
|
86
|
-
isValid : boolean;
|
|
87
|
-
editing : boolean;
|
|
51
|
+
function toStr(v?: string | null) {
|
|
52
|
+
return v ?? "";
|
|
88
53
|
}
|
|
89
54
|
|
|
90
|
-
|
|
91
55
|
/**
|
|
92
|
-
* A
|
|
93
|
-
*
|
|
94
|
-
*
|
|
56
|
+
* A styled text input field with support for labels, prefixes/suffixes,
|
|
57
|
+
* validation, key filters, and accept/reset actions.
|
|
58
|
+
*
|
|
59
|
+
* This component wraps PrimeReact's <InputText> in a p-inputgroup with
|
|
60
|
+
* optional ✔ and ✖ buttons for committing or cancelling edits.
|
|
61
|
+
*
|
|
62
|
+
* Features:
|
|
63
|
+
* - Label, prefix, and suffix addons for context
|
|
64
|
+
* - Optional `keyfilter` for keystroke-level restrictions (PrimeReact presets or RegExp)
|
|
65
|
+
* - Optional `validator` RegExp applied when accepting a value
|
|
66
|
+
* - Calls `onValueChanged(newValue)` only when the user accepts (Enter key or ✔ button)
|
|
67
|
+
* - Escape key or ✖ button reverts to the last accepted value
|
|
68
|
+
* - Controlled input: always provide a string `value` (defaults to `""`)
|
|
69
|
+
*
|
|
70
|
+
* ## Example
|
|
71
|
+
*
|
|
72
|
+
* ```tsx
|
|
73
|
+
* import { useState } from "react";
|
|
74
|
+
* import { TextInput } from "./TextInput";
|
|
75
|
+
*
|
|
76
|
+
* export function ExampleForm() {
|
|
77
|
+
* const [partNumber, setPartNumber] = useState("ADC-0001");
|
|
78
|
+
*
|
|
79
|
+
* return (
|
|
80
|
+
* <TextInput
|
|
81
|
+
* label="Part Number"
|
|
82
|
+
* value={partNumber}
|
|
83
|
+
* onValueChanged={setPartNumber}
|
|
84
|
+
* placeholder="Enter part number"
|
|
85
|
+
* keyfilter="alphanum"
|
|
86
|
+
* validator={/^[A-Z0-9-]+$/}
|
|
87
|
+
* description="Use only uppercase letters, digits, and dashes."
|
|
88
|
+
* prefix={<i className="pi pi-tag" />}
|
|
89
|
+
* />
|
|
90
|
+
* );
|
|
91
|
+
* }
|
|
92
|
+
* ```
|
|
95
93
|
*/
|
|
96
|
-
export
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
*/
|
|
131
|
-
constructor(props : TextInputProps) {
|
|
132
|
-
super(props);
|
|
133
|
-
this.state = {
|
|
134
|
-
entryValue : props.value,
|
|
135
|
-
isValid : props.value !== undefined ? this.validateValue(props.value) : false,
|
|
136
|
-
editing : false
|
|
137
|
-
};
|
|
94
|
+
export const TextInput: React.FC<TextInputProps> = (props) => {
|
|
95
|
+
const {
|
|
96
|
+
label,
|
|
97
|
+
value,
|
|
98
|
+
keyfilter, // <- keep lowercase for PrimeReact
|
|
99
|
+
prefix,
|
|
100
|
+
suffix,
|
|
101
|
+
description,
|
|
102
|
+
disabled = false,
|
|
103
|
+
placeholder,
|
|
104
|
+
onValueChanged,
|
|
105
|
+
validator,
|
|
106
|
+
// DO NOT forward custom props below to the <InputText>
|
|
107
|
+
// Everything else is safe to spread.
|
|
108
|
+
...restInputProps
|
|
109
|
+
} = props;
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
// Local edit buffer & validity; parent value is the source of truth after "accept".
|
|
113
|
+
const [entryValue, setEntryValue] = useState<string>(toStr(value));
|
|
114
|
+
const [editing, setEditing] = useState<boolean>(false);
|
|
115
|
+
const [isValid, setIsValid] = useState<boolean>(value ? validateValue(value, validator) : true);
|
|
116
|
+
|
|
117
|
+
// Sync incoming prop value (e.g., external changes/reset)
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
setEntryValue(toStr(value));
|
|
120
|
+
setEditing(false);
|
|
121
|
+
setIsValid(value ? validateValue(value, validator) : true);
|
|
122
|
+
}, [value, validator]);
|
|
123
|
+
|
|
124
|
+
// Validate only when asked to accept
|
|
125
|
+
function validateValue(val: string, re?: RegExp) {
|
|
126
|
+
if (!re) return true;
|
|
127
|
+
return re.test(val);
|
|
138
128
|
}
|
|
139
129
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
componentDidUpdate(prevProps: TextInputProps) {
|
|
148
|
-
// Check if the value prop has changed
|
|
149
|
-
if (prevProps.value !== this.props.value) {
|
|
150
|
-
this.setState({
|
|
151
|
-
entryValue: this.props.value,
|
|
152
|
-
editing: false
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Check the new value against the validator RegEx, if one was specified.
|
|
160
|
-
* @param val The new value.
|
|
161
|
-
* @returns True if no validator specified or the value is valid, false if not valid.
|
|
162
|
-
*/
|
|
163
|
-
private validateValue = (val : string) => {
|
|
164
|
-
|
|
165
|
-
if (this.props.validator !== undefined && this.props.validator !== null) {
|
|
166
|
-
return this.props.validator.test(val);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return true;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
};
|
|
173
|
-
|
|
130
|
+
function accept() {
|
|
131
|
+
const val = entryValue;
|
|
132
|
+
const ok = validateValue(val, validator);
|
|
133
|
+
setIsValid(ok);
|
|
134
|
+
if (!ok) return;
|
|
174
135
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
*/
|
|
178
|
-
private onAcceptValue() {
|
|
179
|
-
if (this.state.entryValue !== undefined ) {
|
|
180
|
-
if (this.validateValue(this.state.entryValue) ) {
|
|
181
|
-
this.setState({isValid : true, editing : false});
|
|
182
|
-
|
|
183
|
-
if (this.props.onValueChanged)
|
|
184
|
-
this.props.onValueChanged(this.state.entryValue);
|
|
185
|
-
|
|
186
|
-
if (this.props.dispatchTopic !== undefined) {
|
|
187
|
-
this.context.dispatch({topic: this.props.dispatchTopic, payload:this.state.entryValue});
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
this.setState({isValid : false});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
this.setState({isValid: false});
|
|
197
|
-
}
|
|
136
|
+
setEditing(false);
|
|
137
|
+
onValueChanged?.(val);
|
|
198
138
|
}
|
|
199
139
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
entryValue: this.props.value,
|
|
206
|
-
isValid: this.props.value !== undefined ? this.validateValue(this.props.value) : false,
|
|
207
|
-
editing : false
|
|
208
|
-
});
|
|
140
|
+
function reset() {
|
|
141
|
+
const v = toStr(value);
|
|
142
|
+
setEntryValue(v);
|
|
143
|
+
setEditing(false);
|
|
144
|
+
setIsValid(v ? validateValue(v, validator) : true);
|
|
209
145
|
}
|
|
210
146
|
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
{
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
{
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
visible={this.state.editing}
|
|
255
|
-
/>
|
|
256
|
-
|
|
257
|
-
<Button
|
|
258
|
-
icon="pi pi-times"
|
|
259
|
-
disabled={this.props.disabled || !this.state.editing}
|
|
260
|
-
className="p-button-danger"
|
|
261
|
-
onClickCapture={()=>this.onResetValue()}
|
|
262
|
-
visible={this.state.editing}
|
|
263
|
-
/>
|
|
264
|
-
</div>
|
|
265
|
-
|
|
266
|
-
{this.props.description !== undefined &&
|
|
267
|
-
<small>{this.props.description}</small>
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
|
|
147
|
+
// Keep the DOM value a string at all times (no uncontrolled→controlled flip)
|
|
148
|
+
const domValue = useMemo(() => toStr(entryValue), [entryValue]);
|
|
149
|
+
|
|
150
|
+
return (
|
|
151
|
+
<div>
|
|
152
|
+
<div className="p-inputgroup flex-1">
|
|
153
|
+
<span className="p-inputgroup-addon">{label}</span>
|
|
154
|
+
|
|
155
|
+
{prefix !== undefined && <span className="p-inputgroup-addon">{prefix}</span>}
|
|
156
|
+
|
|
157
|
+
<InputText
|
|
158
|
+
{...restInputProps}
|
|
159
|
+
keyfilter={keyfilter}
|
|
160
|
+
placeholder={placeholder}
|
|
161
|
+
value={domValue}
|
|
162
|
+
onChange={(e) => {
|
|
163
|
+
setEntryValue(e.target.value);
|
|
164
|
+
setEditing(true);
|
|
165
|
+
}}
|
|
166
|
+
className={isValid ? restInputProps.className ?? "" : `${restInputProps.className ?? ""} p-invalid`}
|
|
167
|
+
onKeyDown={(e) => {
|
|
168
|
+
if (e.key === "Enter") accept();
|
|
169
|
+
else if (e.key === "Escape") reset();
|
|
170
|
+
}}
|
|
171
|
+
disabled={disabled}
|
|
172
|
+
/>
|
|
173
|
+
|
|
174
|
+
{suffix !== undefined && <span className="p-inputgroup-addon">{suffix}</span>}
|
|
175
|
+
|
|
176
|
+
<Button
|
|
177
|
+
icon="pi pi-check"
|
|
178
|
+
disabled={disabled || !editing}
|
|
179
|
+
className="p-button-success"
|
|
180
|
+
onClick={accept}
|
|
181
|
+
visible={editing}
|
|
182
|
+
/>
|
|
183
|
+
<Button
|
|
184
|
+
icon="pi pi-times"
|
|
185
|
+
disabled={disabled || !editing}
|
|
186
|
+
className="p-button-danger"
|
|
187
|
+
onClick={reset}
|
|
188
|
+
visible={editing}
|
|
189
|
+
/>
|
|
271
190
|
</div>
|
|
272
191
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
}
|
|
192
|
+
{description !== undefined && <small>{description}</small>}
|
|
193
|
+
</div>
|
|
194
|
+
);
|
|
195
|
+
};
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp.. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-03-12 10:14:48
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-05 14:51:30
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import React, { useState, useEffect, useContext } from 'react';
|
|
11
|
-
import { SelectButton, SelectButtonProps } from 'primereact/selectbutton';
|
|
12
|
-
import {SelectItemOptionsType} from "primereact/selectitem";
|
|
11
|
+
import { SelectButton, type SelectButtonProps } from 'primereact/selectbutton';
|
|
12
|
+
import type {SelectItemOptionsType} from "primereact/selectitem";
|
|
13
13
|
|
|
14
14
|
import { EventEmitterContext} from '../core/EventEmitterContext';
|
|
15
15
|
import {IndicatorColor} from "../core/IndicatorColor";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-16 14:17:02
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-05 14:51:23
|
|
6
6
|
* Modified By: ADC
|
|
7
7
|
* -----
|
|
8
8
|
*
|
|
@@ -14,9 +14,9 @@ import { Component } from 'react';
|
|
|
14
14
|
//import useFitText from 'use-fit-text';
|
|
15
15
|
import { format as numerableFormat } from 'numerable';
|
|
16
16
|
import clsx from 'clsx';
|
|
17
|
-
import { EventEmitterContext, EventEmitterContextType } from '../core/EventEmitterContext';
|
|
17
|
+
import { EventEmitterContext, type EventEmitterContextType } from '../core/EventEmitterContext';
|
|
18
18
|
|
|
19
|
-
import { IPositionContext } from '../core/PositionContext';
|
|
19
|
+
import type { IPositionContext } from '../core/PositionContext';
|
|
20
20
|
import type { NumerableFormatOptions } from '../core/NumerableTypes';
|
|
21
21
|
|
|
22
22
|
/**
|
|
@@ -233,4 +233,4 @@ class ValueDisplay extends Component<Props, State> {
|
|
|
233
233
|
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
export { ValueDisplay, NumerableFormatOptions };
|
|
236
|
+
export { ValueDisplay, type NumerableFormatOptions };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-01-16 14:17:02
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-05 14:50:58
|
|
6
6
|
* Modified By: ADC
|
|
7
7
|
* -----
|
|
8
8
|
*
|
|
@@ -133,4 +133,4 @@ export class ValueIndicator extends Component<ValueIndicatorProps, ValueIndicato
|
|
|
133
133
|
}
|
|
134
134
|
|
|
135
135
|
export default ValueIndicator;
|
|
136
|
-
export { NumerableFormatOptions };
|
|
136
|
+
export { type NumerableFormatOptions };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (C) 2024 Automated Design Corp.. All Rights Reserved.
|
|
3
3
|
* Created Date: 2024-03-20 13:05:42
|
|
4
4
|
* -----
|
|
5
|
-
* Last Modified:
|
|
5
|
+
* Last Modified: 2025-09-05 14:50:52
|
|
6
6
|
* -----
|
|
7
7
|
*
|
|
8
8
|
*/
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
import React, { useState, useRef, useEffect, useContext } from 'react';
|
|
61
|
-
import { InputNumber, InputNumberProps } from 'primereact/inputnumber';
|
|
61
|
+
import { InputNumber, type InputNumberProps } from 'primereact/inputnumber';
|
|
62
62
|
import { EventEmitterContext } from "../core/EventEmitterContext";
|
|
63
63
|
import { Button } from 'primereact/button';
|
|
64
64
|
|