@vertigis/workflow 5.35.1 → 5.37.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/Activator.d.ts +25 -25
- package/Collections.d.ts +83 -91
- package/EnumUtils.d.ts +28 -28
- package/Errors.d.ts +155 -155
- package/Hooks.d.ts +32 -32
- package/IActivityHandler.d.ts +101 -106
- package/LanguageStringUtils.d.ts +16 -17
- package/LanguageStringUtils.js +1 -1
- package/ProgramInspectorFacility.d.ts +23 -24
- package/Task.d.ts +56 -56
- package/TemplateUtils.d.ts +28 -28
- package/Validation.d.ts +151 -26
- package/Validation.js +1 -1
- package/activities/app/GetApplicationData.d.ts +15 -12
- package/activities/app/GetApplicationData.js +1 -1
- package/activities/app/GetApplicationInfo.d.ts +15 -15
- package/activities/app/GetUserInfo.d.ts +15 -15
- package/activities/app/PublishEvent.d.ts +14 -14
- package/activities/app/RemoveApplicationData.d.ts +14 -11
- package/activities/app/RemoveApplicationData.js +1 -1
- package/activities/app/RunCommand.d.ts +17 -17
- package/activities/app/RunOperation.d.ts +25 -25
- package/activities/app/SetApplicationData.d.ts +13 -10
- package/activities/app/SetApplicationData.js +1 -1
- package/activities/app/applicationData.d.ts +12 -0
- package/activities/app/applicationData.js +1 -0
- package/activities/arcgis/AddAttachment.d.ts +22 -22
- package/activities/arcgis/AddAttachment.js +1 -1
- package/activities/arcgis/AddFeatureLayer.d.ts +23 -23
- package/activities/arcgis/AddFeatureLayer.js +1 -1
- package/activities/arcgis/AddFeatures.d.ts +27 -27
- package/activities/arcgis/AddFeatures.js +1 -1
- package/activities/arcgis/AddGraphics.d.ts +27 -27
- package/activities/arcgis/AddGraphics.js +1 -1
- package/activities/arcgis/ArcadeScript.d.ts +17 -18
- package/activities/arcgis/ArcadeScript.js +1 -1
- package/activities/arcgis/AreaEngineTask.d.ts +20 -20
- package/activities/arcgis/AreaEngineTask.js +1 -1
- package/activities/arcgis/BufferEngineTask.d.ts +27 -27
- package/activities/arcgis/BufferEngineTask.js +1 -1
- package/activities/arcgis/BufferServiceTask.d.ts +33 -33
- package/activities/arcgis/BufferServiceTask.js +1 -1
- package/activities/arcgis/CastGeometry.d.ts +23 -23
- package/activities/arcgis/ClearGraphics.d.ts +12 -12
- package/activities/arcgis/ClearGraphics.js +1 -1
- package/activities/arcgis/ClipEngineTask.d.ts +18 -18
- package/activities/arcgis/ClipEngineTask.js +1 -1
- package/activities/arcgis/ClosestFacilityTask.d.ts +90 -90
- package/activities/arcgis/ClosestFacilityTask.js +1 -1
- package/activities/arcgis/CompareGeometries.d.ts +19 -19
- package/activities/arcgis/CompareGeometries.js +1 -1
- package/activities/arcgis/ConvertValueToArcGisFieldType.d.ts +13 -0
- package/activities/arcgis/ConvertValueToArcGisFieldType.js +1 -0
- package/activities/arcgis/CreateFeatureSet.d.ts +16 -16
- package/activities/arcgis/CreateFeatureSet.js +1 -1
- package/activities/arcgis/CreateGraphic.d.ts +17 -17
- package/activities/arcgis/CreateGraphic.js +1 -1
- package/activities/arcgis/CreatePoint.d.ts +17 -17
- package/activities/arcgis/CutEngineTask.d.ts +18 -18
- package/activities/arcgis/CutEngineTask.js +1 -1
- package/activities/arcgis/DeleteAttachments.d.ts +22 -22
- package/activities/arcgis/DeleteAttachments.js +1 -1
- package/activities/arcgis/DeleteFeatures.d.ts +30 -30
- package/activities/arcgis/DeleteFeatures.js +1 -1
- package/activities/arcgis/DensifyEngineTask.d.ts +20 -20
- package/activities/arcgis/DensifyEngineTask.js +1 -1
- package/activities/arcgis/DifferenceEngineTask.d.ts +23 -23
- package/activities/arcgis/DifferenceEngineTask.js +1 -1
- package/activities/arcgis/DistanceEngineTask.d.ts +20 -20
- package/activities/arcgis/DistanceEngineTask.js +1 -1
- package/activities/arcgis/DistanceServiceTask.d.ts +24 -24
- package/activities/arcgis/DistanceServiceTask.js +1 -1
- package/activities/arcgis/ExtendedSpatialReferenceInfoEngineTask.d.ts +17 -17
- package/activities/arcgis/FeatureSetFromJson.d.ts +16 -16
- package/activities/arcgis/FeatureTableMap.d.ts +12 -12
- package/activities/arcgis/FlipEngineTask.d.ts +21 -21
- package/activities/arcgis/FlipEngineTask.js +1 -1
- package/activities/arcgis/FromGeoCoordinateStringServiceTask.d.ts +24 -24
- package/activities/arcgis/GeneralizeEngineTask.d.ts +22 -22
- package/activities/arcgis/GeneralizeEngineTask.js +1 -1
- package/activities/arcgis/GenerateArcGisToken.d.ts +23 -23
- package/activities/arcgis/GenerateWebmapForReport.d.ts +20 -20
- package/activities/arcgis/GenerateWebmapForReport.js +1 -1
- package/activities/arcgis/Geocode.d.ts +37 -38
- package/activities/arcgis/Geocode.js +1 -1
- package/activities/arcgis/GeometryFromJson.d.ts +16 -16
- package/activities/arcgis/Geoprocessing.d.ts +25 -26
- package/activities/arcgis/Geoprocessing.js +1 -1
- package/activities/arcgis/GeoprocessingAsync.d.ts +36 -37
- package/activities/arcgis/GeoprocessingAsync.js +1 -1
- package/activities/arcgis/GetAttributeValue.d.ts +22 -22
- package/activities/arcgis/GetAttributeValues.d.ts +20 -20
- package/activities/arcgis/GetCentroid.d.ts +16 -16
- package/activities/arcgis/GetCodedValueDomain.d.ts +29 -29
- package/activities/arcgis/GetCodedValueDomain.js +1 -1
- package/activities/arcgis/GetCurrentPosition.d.ts +46 -46
- package/activities/arcgis/GetFeatureGeometries.d.ts +20 -20
- package/activities/arcgis/GetFeatureGeometry.d.ts +18 -18
- package/activities/arcgis/GetFeatureLayerInfo.d.ts +22 -22
- package/activities/arcgis/GetFeatureLayerInfo.js +1 -1
- package/activities/arcgis/GetFeatureSetExtent.d.ts +18 -18
- package/activities/arcgis/GetFeatureSetObjectIds.d.ts +20 -20
- package/activities/arcgis/GetFormElementItemsFromFeatures.d.ts +49 -50
- package/activities/arcgis/GetFormElementItemsFromFeatures.js +1 -1
- package/activities/arcgis/GetGeometryExtent.d.ts +17 -17
- package/activities/arcgis/GetGraphics.d.ts +19 -19
- package/activities/arcgis/GetGraphics.js +1 -1
- package/activities/arcgis/GetLayer.d.ts +21 -21
- package/activities/arcgis/GetLayer.js +1 -1
- package/activities/arcgis/GetLayerDefinitionExpression.d.ts +18 -18
- package/activities/arcgis/GetLayerDefinitionExpression.js +1 -1
- package/activities/arcgis/GetLayerProperty.d.ts +18 -18
- package/activities/arcgis/GetLayerProperty.js +1 -1
- package/activities/arcgis/GetLayerVisibility.d.ts +18 -18
- package/activities/arcgis/GetLayerVisibility.js +1 -1
- package/activities/arcgis/GetMap.d.ts +11 -11
- package/activities/arcgis/GetMap.js +1 -1
- package/activities/arcgis/GetMapScreenshot.d.ts +18 -18
- package/activities/arcgis/GetPortalUser.d.ts +20 -20
- package/activities/arcgis/GetTable.d.ts +18 -18
- package/activities/arcgis/GetTable.js +1 -1
- package/activities/arcgis/GetViewExtent.d.ts +16 -16
- package/activities/arcgis/GetViewExtent.js +1 -1
- package/activities/arcgis/GetViewpoint.d.ts +12 -12
- package/activities/arcgis/GetViewpoint.js +1 -1
- package/activities/arcgis/IntersectEngineTask.d.ts +20 -20
- package/activities/arcgis/IntersectEngineTask.js +1 -1
- package/activities/arcgis/LabelPointsServiceTask.d.ts +18 -18
- package/activities/arcgis/LengthEngineTask.d.ts +20 -20
- package/activities/arcgis/LengthEngineTask.js +1 -1
- package/activities/arcgis/MapProvider.d.ts +133 -132
- package/activities/arcgis/MapProvider.js +1 -1
- package/activities/arcgis/NearestCoordinateEngineTask.d.ts +26 -26
- package/activities/arcgis/NearestVertexEngineTask.d.ts +26 -26
- package/activities/arcgis/NearestVertexEngineTask.js +1 -1
- package/activities/arcgis/NearestVerticesEngineTask.d.ts +34 -34
- package/activities/arcgis/NearestVerticesEngineTask.js +1 -1
- package/activities/arcgis/OffsetEngineTask.d.ts +25 -25
- package/activities/arcgis/OffsetEngineTask.js +1 -1
- package/activities/arcgis/ProjectServiceTask.d.ts +27 -27
- package/activities/arcgis/ProjectServiceTask.js +1 -1
- package/activities/arcgis/QueryAttachmentInfos.d.ts +21 -21
- package/activities/arcgis/QueryAttachmentInfos.js +1 -1
- package/activities/arcgis/QueryTask.d.ts +77 -77
- package/activities/arcgis/QueryTask.js +1 -1
- package/activities/arcgis/RefreshLayer.d.ts +12 -12
- package/activities/arcgis/RegisterCorsUrl.d.ts +21 -21
- package/activities/arcgis/RelateEngineTask.d.ts +22 -22
- package/activities/arcgis/RelateEngineTask.js +1 -1
- package/activities/arcgis/RelationServiceTask.d.ts +29 -29
- package/activities/arcgis/RelationServiceTask.js +1 -1
- package/activities/arcgis/RelationshipQueryTask.d.ts +37 -38
- package/activities/arcgis/RelationshipQueryTask.js +1 -1
- package/activities/arcgis/RemoveFeatureSetFields.d.ts +22 -22
- package/activities/arcgis/RemoveFeatureSetFields.js +1 -1
- package/activities/arcgis/RemoveGraphics.d.ts +14 -14
- package/activities/arcgis/RemoveGraphics.js +1 -1
- package/activities/arcgis/RemoveLayer.d.ts +16 -16
- package/activities/arcgis/RemoveLayer.js +1 -1
- package/activities/arcgis/RendererFromJson.d.ts +16 -16
- package/activities/arcgis/ReshapeServiceTask.d.ts +20 -20
- package/activities/arcgis/ReverseGeocode.d.ts +31 -31
- package/activities/arcgis/ReverseGeocode.js +1 -1
- package/activities/arcgis/RotateEngineTask.d.ts +20 -20
- package/activities/arcgis/RotateEngineTask.js +1 -1
- package/activities/arcgis/RouteTask.d.ts +91 -91
- package/activities/arcgis/RouteTask.js +1 -1
- package/activities/arcgis/RunPrint.d.ts +33 -34
- package/activities/arcgis/RunPrint.js +1 -1
- package/activities/arcgis/RunReport.d.ts +37 -38
- package/activities/arcgis/RunReport.js +1 -1
- package/activities/arcgis/RunWorkflow.d.ts +51 -52
- package/activities/arcgis/SendLayerToAttributeTable.d.ts +10 -10
- package/activities/arcgis/ServiceAreaTask.d.ts +87 -87
- package/activities/arcgis/ServiceAreaTask.js +1 -1
- package/activities/arcgis/SetFeatureAttribute.d.ts +15 -15
- package/activities/arcgis/SetFeatureGeometry.d.ts +13 -13
- package/activities/arcgis/SetFeaturePopup.d.ts +12 -12
- package/activities/arcgis/SetFeatureSymbol.d.ts +13 -13
- package/activities/arcgis/SetImageryLayerOptions.d.ts +27 -27
- package/activities/arcgis/SetImageryLayerOptions.js +1 -1
- package/activities/arcgis/SetLayerDefinitionExpression.d.ts +21 -21
- package/activities/arcgis/SetLayerDefinitionExpression.js +1 -1
- package/activities/arcgis/SetLayerPopup.d.ts +12 -12
- package/activities/arcgis/SetLayerPopup.js +1 -1
- package/activities/arcgis/SetLayerProperty.d.ts +23 -23
- package/activities/arcgis/SetLayerProperty.js +1 -1
- package/activities/arcgis/SetLayerVisibility.d.ts +23 -23
- package/activities/arcgis/SetLayerVisibility.js +1 -1
- package/activities/arcgis/SetMap.d.ts +14 -14
- package/activities/arcgis/SetViewExtent.d.ts +27 -27
- package/activities/arcgis/SetViewExtent.js +1 -1
- package/activities/arcgis/SetViewpoint.d.ts +23 -23
- package/activities/arcgis/SetViewpoint.js +1 -1
- package/activities/arcgis/ShowFeaturePopup.d.ts +11 -11
- package/activities/arcgis/ShowFeaturePopup.js +1 -1
- package/activities/arcgis/ShowResults.d.ts +51 -51
- package/activities/arcgis/SimplifyEngineTask.d.ts +15 -15
- package/activities/arcgis/SimplifyEngineTask.js +1 -1
- package/activities/arcgis/SortFeatureSet.d.ts +20 -20
- package/activities/arcgis/SymbolFromJson.d.ts +16 -16
- package/activities/arcgis/ToGeoCoordinateStringServiceTask.d.ts +30 -30
- package/activities/arcgis/TypeChecking.d.ts +46 -46
- package/activities/arcgis/UnionEngineTask.d.ts +19 -19
- package/activities/arcgis/UnionEngineTask.js +1 -1
- package/activities/arcgis/UnionServiceTask.d.ts +20 -20
- package/activities/arcgis/UpdateAttachment.d.ts +29 -29
- package/activities/arcgis/UpdateAttachment.js +1 -1
- package/activities/arcgis/UpdateFeatures.d.ts +27 -27
- package/activities/arcgis/UpdateFeatures.js +1 -1
- package/activities/arcgis/libs/arcGisRestApi.d.ts +18 -25
- package/activities/arcgis/runUtils.d.ts +93 -93
- package/activities/arcgis/shared.d.ts +61 -61
- package/activities/arcgis/tools.d.ts +42 -49
- package/activities/arcgis/tools.js +1 -1
- package/activities/browser/GetBrowserInfo.d.ts +13 -13
- package/activities/browser/InjectCss.d.ts +11 -11
- package/activities/constants.d.ts +19 -19
- package/activities/core/AddItem.d.ts +12 -12
- package/activities/core/AddItems.d.ts +12 -12
- package/activities/core/Annotation.d.ts +8 -8
- package/activities/core/Cast.d.ts +16 -16
- package/activities/core/ChannelProvider.d.ts +89 -90
- package/activities/core/ChannelProvider.js +1 -1
- package/activities/core/ClearItems.d.ts +10 -10
- package/activities/core/Container.d.ts +7 -7
- package/activities/core/ConvertBytesToText.d.ts +14 -14
- package/activities/core/ConvertDataTableToFeatureSet.d.ts +12 -12
- package/activities/core/ConvertTextToBytes.d.ts +14 -14
- package/activities/core/ConvertToJson.d.ts +16 -16
- package/activities/core/ConvertToJson.js +1 -1
- package/activities/core/CreateFile.d.ts +18 -18
- package/activities/core/CreateValue.d.ts +21 -21
- package/activities/core/DecodeUriComponent.d.ts +14 -14
- package/activities/core/Delay.d.ts +18 -18
- package/activities/core/EncodeUriComponent.d.ts +14 -14
- package/activities/core/Evaluate.d.ts +18 -18
- package/activities/core/EvaluateAsync.d.ts +18 -18
- package/activities/core/Exit.d.ts +7 -7
- package/activities/core/ForEach.d.ts +25 -26
- package/activities/core/FormatDate.d.ts +23 -23
- package/activities/core/GetBase64StringFromBytes.d.ts +15 -15
- package/activities/core/GetBase64StringFromFile.d.ts +15 -15
- package/activities/core/GetBytesFromBase64String.d.ts +15 -15
- package/activities/core/GetFirstItem.d.ts +14 -14
- package/activities/core/GetItemAtIndex.d.ts +15 -15
- package/activities/core/GetLastItem.d.ts +14 -14
- package/activities/core/GetLogLevel.d.ts +9 -9
- package/activities/core/GetTextFromFile.d.ts +16 -16
- package/activities/core/GetWorkflowInputs.d.ts +12 -12
- package/activities/core/If.d.ts +18 -18
- package/activities/core/Log.d.ts +14 -14
- package/activities/core/Log.js +1 -1
- package/activities/core/Loop.d.ts +27 -27
- package/activities/core/Loop.js +1 -1
- package/activities/core/ParseJson.d.ts +16 -16
- package/activities/core/ParseNumber.d.ts +12 -12
- package/activities/core/ParseUrl.d.ts +24 -25
- package/activities/core/ParseUrl.js +1 -1
- package/activities/core/Placeholder.d.ts +6 -6
- package/activities/core/RegexMatches.d.ts +17 -17
- package/activities/core/RegexReplace.d.ts +18 -18
- package/activities/core/RemoveItem.d.ts +14 -14
- package/activities/core/RunActivity.d.ts +12 -13
- package/activities/core/RunSubworkflow.d.ts +14 -15
- package/activities/core/SetLogLevel.d.ts +9 -9
- package/activities/core/SetProperty.d.ts +15 -15
- package/activities/core/SetWorkflowOutput.d.ts +12 -12
- package/activities/core/Subworkflow.d.ts +14 -15
- package/activities/core/Switch.d.ts +19 -19
- package/activities/core/TextReplace.d.ts +16 -16
- package/activities/core/Throw.d.ts +12 -12
- package/activities/core/TryCatch.d.ts +12 -12
- package/activities/core/WebRequest.d.ts +49 -50
- package/activities/core/WebRequest.js +1 -1
- package/activities/core/converters.d.ts +10 -10
- package/activities/csv/ConvertCsvToDataTable.d.ts +15 -15
- package/activities/csv/ConvertDataTableToCsv.d.ts +15 -15
- package/activities/essentials/GetEssentialsSite.d.ts +225 -225
- package/activities/essentials/RunEssentialsWorkflow.d.ts +25 -26
- package/activities/essentials/RunEssentialsWorkflow.js +1 -1
- package/activities/essentials/RunEssentialsWorkflowActivity.d.ts +17 -18
- package/activities/forms/ActivateFormElement.d.ts +13 -13
- package/activities/forms/ActivateFormElement.js +1 -1
- package/activities/forms/AddFormElement.d.ts +18 -18
- package/activities/forms/ClearFormElementError.d.ts +13 -13
- package/activities/forms/ClearFormElementError.js +1 -1
- package/activities/forms/CompleteForm.d.ts +11 -11
- package/activities/forms/DisplayForm.d.ts +48 -49
- package/activities/forms/DisplayForm.js +1 -1
- package/activities/forms/Errors.d.ts +18 -18
- package/activities/forms/FilterFormElementItems.d.ts +16 -16
- package/activities/forms/FormElementMap.d.ts +13 -13
- package/activities/forms/FormRenderer.d.ts +139 -134
- package/activities/forms/FormRenderer.js +1 -1
- package/activities/forms/GetFormElementItemsFromCollection.d.ts +49 -50
- package/activities/forms/GetFormElementItemsFromCollection.js +1 -1
- package/activities/forms/GetFormElementProperty.d.ts +19 -19
- package/activities/forms/GetFormElementValue.d.ts +17 -17
- package/activities/forms/GetFormEventData.d.ts +17 -17
- package/activities/forms/HideFormElement.d.ts +13 -13
- package/activities/forms/HideFormElement.js +1 -1
- package/activities/forms/PropagateFormEvent.d.ts +10 -10
- package/activities/forms/SetCurrentFormElementItem.d.ts +18 -18
- package/activities/forms/SetCurrentFormElementItem.js +1 -1
- package/activities/forms/SetFormElementError.d.ts +17 -17
- package/activities/forms/SetFormElementError.js +1 -1
- package/activities/forms/SetFormElementEvent.d.ts +18 -18
- package/activities/forms/SetFormElementItemProperty.d.ts +34 -21
- package/activities/forms/SetFormElementItemProperty.js +1 -1
- package/activities/forms/SetFormElementItems.d.ts +18 -19
- package/activities/forms/SetFormElementItems.js +1 -1
- package/activities/forms/SetFormElementProperty.d.ts +32 -19
- package/activities/forms/SetFormElementProperty.js +1 -1
- package/activities/forms/ShowFormElement.d.ts +15 -15
- package/activities/forms/ShowFormElement.js +1 -1
- package/activities/image/GetImageMetadata.d.ts +16 -16
- package/activities/image/RotateImage.d.ts +15 -15
- package/activities/index.d.ts +4 -2
- package/activities/index.js +1 -1
- package/activities/main.d.ts +1 -1
- package/activities/math/Abs.d.ts +14 -14
- package/activities/math/Cos.d.ts +14 -14
- package/activities/math/Max.d.ts +16 -16
- package/activities/math/Min.d.ts +16 -16
- package/activities/math/Pow.d.ts +15 -15
- package/activities/math/Random.d.ts +10 -10
- package/activities/math/Sin.d.ts +14 -14
- package/activities/math/Sqrt.d.ts +14 -14
- package/activities/math/Tan.d.ts +14 -14
- package/activities/pdf/AddGeoreferenceToPdf.d.ts +19 -19
- package/activities/pdf/AddImageToPdf.d.ts +63 -0
- package/activities/pdf/AddImageToPdf.js +1 -0
- package/activities/pdf/AddTextToPdf.d.ts +59 -0
- package/activities/pdf/AddTextToPdf.js +1 -0
- package/activities/pdf/CreatePdf.d.ts +49 -0
- package/activities/pdf/CreatePdf.js +1 -0
- package/activities/pdf/ExtractPdfPages.d.ts +17 -17
- package/activities/pdf/MergePdfs.d.ts +15 -15
- package/activities/server/CopyFile.d.ts +10 -10
- package/activities/server/CreateDirectory.d.ts +9 -9
- package/activities/server/CreateDownload.d.ts +18 -18
- package/activities/server/CreateEmailAttachment.d.ts +16 -16
- package/activities/server/CreateZipFromDirectory.d.ts +12 -12
- package/activities/server/DeleteDirectory.d.ts +9 -9
- package/activities/server/DeleteFile.d.ts +9 -9
- package/activities/server/DirectoryExists.d.ts +13 -13
- package/activities/server/ExtractZipToDirectory.d.ts +11 -11
- package/activities/server/FileExists.d.ts +13 -13
- package/activities/server/GetDirectoriesInDirectory.d.ts +14 -14
- package/activities/server/GetFilesInDirectory.d.ts +14 -14
- package/activities/server/MoveFile.d.ts +10 -10
- package/activities/server/ReadFile.d.ts +14 -14
- package/activities/server/ReadFileBytes.d.ts +13 -13
- package/activities/server/RunApplication.d.ts +22 -22
- package/activities/server/RunPython.d.ts +23 -23
- package/activities/server/SendEmail.d.ts +16 -16
- package/activities/server/SqlNonQuery.d.ts +18 -18
- package/activities/server/SqlQuery.d.ts +18 -18
- package/activities/server/SqlQueryUnsafe.d.ts +18 -18
- package/activities/server/WriteFile.d.ts +11 -11
- package/activities/server/WriteFileBytes.d.ts +10 -10
- package/activities/ui/Alert.d.ts +17 -17
- package/activities/ui/Confirm.d.ts +24 -24
- package/activities/ui/Prompt.d.ts +26 -26
- package/activities/wab/OpenWidget.d.ts +10 -10
- package/activities/wab/PublishWidgetData.d.ts +11 -11
- package/activities/xlsx/ConvertDataTableToXlsx.d.ts +15 -15
- package/activities/xlsx/ConvertXlsxToDataSet.d.ts +15 -15
- package/constants.d.ts +2 -2
- package/definition/Activity.d.ts +12 -13
- package/definition/ActivityInput.d.ts +31 -31
- package/definition/Component.d.ts +10 -10
- package/definition/DeploymentConfig.d.ts +4 -5
- package/definition/Form.d.ts +5 -5
- package/definition/Program.d.ts +29 -30
- package/definition/ProgramInspector.d.ts +290 -288
- package/definition/ProgramInspector.js +1 -1
- package/definition/Reference.d.ts +11 -11
- package/definition/Resource.d.ts +26 -26
- package/definition/Step.d.ts +9 -9
- package/definition/Transition.d.ts +17 -17
- package/diagnostics/ConsoleDebugLogger.d.ts +10 -10
- package/diagnostics/logging.d.ts +5 -5
- package/execution/ActivityLoader.d.ts +23 -24
- package/execution/ActivityLoader.js +1 -1
- package/execution/Engine.d.ts +84 -85
- package/execution/Engine.js +1 -1
- package/execution/IDebugSession.d.ts +43 -44
- package/execution/ModuleLoader.d.ts +42 -42
- package/execution/ModuleLoader.js +1 -1
- package/execution/ProgramRunner.d.ts +1 -1
- package/execution/ProgramRunner.js +1 -1
- package/forms/Calendar.d.ts +89 -89
- package/forms/ExclusiveTimer.d.ts +13 -13
- package/forms/FormComponent.d.ts +47 -30
- package/forms/FormComponent.js +1 -1
- package/forms/FormDefinition.d.ts +451 -457
- package/forms/FormElement.d.ts +24 -59
- package/forms/FormElement.js +1 -1
- package/forms/FormHost.d.ts +225 -233
- package/forms/FormHost.js +1 -1
- package/forms/FormPresenterHost.d.ts +62 -76
- package/forms/MutuallyExclusiveSectionGroup.d.ts +41 -41
- package/forms/NumberParser.d.ts +27 -25
- package/forms/NumberParser.js +1 -1
- package/forms/common.d.ts +67 -62
- package/forms/common.js +1 -1
- package/forms/components/AccordionGroup.d.ts +15 -15
- package/forms/components/AutoComplete.d.ts +8 -7
- package/forms/components/AutoComplete.js +1 -1
- package/forms/components/ButtonBar.d.ts +8 -13
- package/forms/components/ButtonBar.js +1 -1
- package/forms/components/CheckBox.d.ts +7 -7
- package/forms/components/CheckBox.js +1 -1
- package/forms/components/CheckGroup.d.ts +8 -7
- package/forms/components/CheckGroup.js +1 -1
- package/forms/components/Custom.d.ts +7 -7
- package/forms/components/Custom.js +1 -1
- package/forms/components/DatePicker.d.ts +8 -7
- package/forms/components/DatePicker.js +1 -1
- package/forms/components/DateRangePicker.d.ts +12 -11
- package/forms/components/DateRangePicker.js +1 -1
- package/forms/components/DateTimePicker.d.ts +8 -7
- package/forms/components/DateTimePicker.js +1 -1
- package/forms/components/DropDownList.d.ts +8 -7
- package/forms/components/DropDownList.js +1 -1
- package/forms/components/FilePicker.d.ts +10 -9
- package/forms/components/FilePicker.js +1 -1
- package/forms/components/Form.d.ts +23 -23
- package/forms/components/Form.js +1 -1
- package/forms/components/FormLabelNumberField.d.ts +17 -15
- package/forms/components/FormLabelNumberField.js +1 -1
- package/forms/components/GeometryPicker.d.ts +5 -4
- package/forms/components/GeometryPicker.js +1 -1
- package/forms/components/GeometryPickerListItem.d.ts +23 -23
- package/forms/components/HorizontalRule.d.ts +7 -7
- package/forms/components/Image.d.ts +7 -7
- package/forms/components/Image.js +1 -1
- package/forms/components/ItemPicker.d.ts +15 -17
- package/forms/components/ItemPicker.js +1 -1
- package/forms/components/ListBox.d.ts +8 -7
- package/forms/components/ListBox.js +1 -1
- package/forms/components/Markdown.d.ts +14 -15
- package/forms/components/Markdown.js +1 -1
- package/forms/components/Number.d.ts +8 -7
- package/forms/components/Number.js +1 -1
- package/forms/components/NumberRangeSlider.d.ts +12 -12
- package/forms/components/NumberRangeSlider.js +1 -1
- package/forms/components/NumberSlider.d.ts +11 -10
- package/forms/components/NumberSlider.js +1 -1
- package/forms/components/RadioGroup.d.ts +8 -7
- package/forms/components/RadioGroup.js +1 -1
- package/forms/components/Scanner.d.ts +11 -9
- package/forms/components/Scanner.js +1 -1
- package/forms/components/Section.d.ts +14 -14
- package/forms/components/Section.js +1 -1
- package/forms/components/Signature.d.ts +12 -11
- package/forms/components/Signature.js +1 -1
- package/forms/components/SignatureDialog.d.ts +22 -22
- package/forms/components/SignatureDialog.js +1 -1
- package/forms/components/Text.d.ts +8 -8
- package/forms/components/TextArea.d.ts +7 -7
- package/forms/components/TextArea.js +1 -1
- package/forms/components/TextBox.d.ts +7 -21
- package/forms/components/TextBox.js +1 -1
- package/forms/components/TimePicker.d.ts +8 -7
- package/forms/components/TimePicker.js +1 -1
- package/forms/constants.d.ts +81 -81
- package/forms/dateUtilities.d.ts +102 -117
- package/forms/dateUtilities.js +1 -1
- package/forms/elements/AutoComplete.d.ts +13 -13
- package/forms/elements/ButtonBar.d.ts +9 -9
- package/forms/elements/CheckBox.d.ts +7 -7
- package/forms/elements/CheckGroup.d.ts +11 -11
- package/forms/elements/Custom.d.ts +7 -7
- package/forms/elements/DatePicker.d.ts +6 -6
- package/forms/elements/DateRangePicker.d.ts +6 -6
- package/forms/elements/DateTimePicker.d.ts +6 -6
- package/forms/elements/DropDownList.d.ts +6 -6
- package/forms/elements/FilePicker.d.ts +8 -8
- package/forms/elements/GeometryPicker.d.ts +18 -18
- package/forms/elements/Header.d.ts +10 -10
- package/forms/elements/HorizontalRule.d.ts +2 -2
- package/forms/elements/Image.d.ts +2 -2
- package/forms/elements/ItemPicker.d.ts +13 -13
- package/forms/elements/ListBox.d.ts +11 -11
- package/forms/elements/Number.d.ts +11 -11
- package/forms/elements/NumberRangeSlider.d.ts +10 -10
- package/forms/elements/NumberSlider.d.ts +6 -6
- package/forms/elements/PasswordBox.d.ts +5 -5
- package/forms/elements/RadioGroup.d.ts +6 -6
- package/forms/elements/Scanner.d.ts +19 -19
- package/forms/elements/Section.d.ts +2 -2
- package/forms/elements/Signature.d.ts +16 -16
- package/forms/elements/Text.d.ts +2 -2
- package/forms/elements/TextArea.d.ts +7 -7
- package/forms/elements/TextBox.d.ts +5 -5
- package/forms/elements/TimePicker.d.ts +6 -6
- package/forms/elements/types.d.ts +83 -83
- package/forms/index.d.ts +124 -72
- package/forms/keyboard.d.ts +9 -9
- package/forms/listUtilities.d.ts +3 -0
- package/forms/listUtilities.js +1 -0
- package/forms/manifest.d.ts +3 -0
- package/forms/manifest.js +1 -0
- package/forms/numberFormatter.d.ts +90 -94
- package/forms/numberFormatter.js +1 -1
- package/forms/numberUtilities.d.ts +150 -113
- package/forms/numberUtilities.js +1 -1
- package/forms/presenter.d.ts +21 -21
- package/forms/presenter.js +1 -1
- package/forms/renderers.d.ts +5 -8
- package/forms/renderers.js +1 -1
- package/forms/textUtilities.d.ts +33 -23
- package/forms/textUtilities.js +1 -1
- package/forms/utils.d.ts +177 -132
- package/forms/utils.js +1 -1
- package/index.d.ts +2 -2
- package/libs/version.d.ts +1 -1
- package/libs/version.js +1 -1
- package/licensing/LicenseChecker.d.ts +1 -1
- package/licensing/Watermark.d.ts +7 -7
- package/package.json +9 -11
- package/activities/app/constants.d.ts +0 -1
- package/activities/app/constants.js +0 -1
|
@@ -1,21 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
*
|
|
9
|
-
* - `"text"` renders as a text box, `"password"` as a password.
|
|
10
|
-
* (Obvious, but there you go.)
|
|
11
|
-
* - `"text"` will convert a numeric value to a string, `"password"` will not.
|
|
12
|
-
* - `"password"` does not support `element.maxLength` or `element.readOnly`.
|
|
13
|
-
*
|
|
14
|
-
*/
|
|
15
|
-
type?: "text" | "password";
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The component for the "Text Box" and "Password Box" Form Elements.
|
|
19
|
-
*/
|
|
20
|
-
declare const TextBox: ({ className, component, element, type }: TextBoxProps) => JSX.Element;
|
|
21
|
-
export default TextBox;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormElementProps } from "../..";
|
|
3
|
+
/**
|
|
4
|
+
* The component for the "Text Box" and "Password Box" Form Elements.
|
|
5
|
+
*/
|
|
6
|
+
declare const TextBox: ({ className, component, element, enabled, formatNumber, type: elementType, maxLength: elementMaxLength, name, prompt, readOnly: elementReadOnly, renderFocus: hostRenderFocus, require, tooltip, value: elementValue, renderText, setValue: setElementValue, }: FormElementProps<string | undefined>) => JSX.Element;
|
|
7
|
+
export default TextBox;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Input from"@vertigis/react-ui/Input";import*as React from"react";import{useEffect,useState}from"react";import FormElement from"../FormElement.js";import{getKeyString}from"../keyboard.js";import{makeUniqueId}from"../utils.js";const TextBox=({className:e,component:
|
|
1
|
+
import Input from"@vertigis/react-ui/Input";import*as React from"react";import{useEffect,useState}from"react";import FormElement from"../FormElement.js";import{FormElementTypes}from"../constants.js";import{getKeyString}from"../keyboard.js";import{makeUniqueId}from"../utils.js";const TextBox=({className:e,component:t,element:r,enabled:n,formatNumber:o,type:a,maxLength:m,name:l,prompt:u,readOnly:s,renderFocus:p,require:i,tooltip:c,value:d,renderText:f,setValue:g})=>{const[v,y]=useState("");var x=`${makeUniqueId(l)}-input`;const E=a===FormElementTypes.PASSWORDBOX;m=E?void 0:m,u=f(u),s=E?void 0:s,c=f(c);useEffect(()=>{let e="";"string"==typeof d?e=d:"number"!=typeof d||E||(e=o(d)),d!==e&&g(e,!1),v!==e&&y(e)},[d]);const T=e=>{g(e),y(e)};return React.createElement(FormElement,{className:e,component:t,element:r,inputId:x},React.createElement(Input,{disabled:!n,fullWidth:!0,id:x,inputProps:{maxLength:m,onKeyDown:e=>{var t=getKeyString(e);return"enter"===t?(e=>{const t=e.currentTarget;var r=t.value;if(r!==d)return T(r),t.select(),e.stopPropagation(),e.preventDefault(),!1})(e):"escape"===t?(e=>{const t=e.currentTarget;if(t.value!==d)return y(d),t.select(),e.stopPropagation(),e.preventDefault(),!1})(e):void 0},title:c},inputRef:e=>{null===e||e.disabled||p(e,l)},onBlur:e=>{e=e.target.value;e!=d&&T(e)},onChange:e=>{e=e.target.value;e!=v&&y(e)},placeholder:u,readOnly:s,required:i,type:E?"password":"text",value:v}))};export default TextBox;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { FormElementProps } from "../..";
|
|
3
|
+
import { defs } from "../FormHost";
|
|
4
|
+
/**
|
|
5
|
+
* The component for the "Time Picker" Form Element.
|
|
6
|
+
*/
|
|
7
|
+
declare const TimePicker: ({ className, component, deriveLocale, element, enabled, error, name, prompt, renderFocus, renderText, setProperty, setValue: setElementValue, tooltip: elementTooltip, value: elementValue, }: FormElementProps<defs.DateTimeRef | undefined>) => JSX.Element;
|
|
8
|
+
export default TimePicker;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{buttonBaseClasses}from"@vertigis/react-ui/ButtonBase";import{clockClasses}from"@vertigis/react-ui/ClockPicker";import FormHelperText from"@vertigis/react-ui/FormHelperText";import FormLabelTextField from"@vertigis/react-ui/FormLabelTextField";import BaseTimePicker from"@vertigis/react-ui/TimePicker";import{styled}from"@vertigis/react-ui/styles";import clsx from"clsx";import*as React from"react";import{useEffect,useRef,useState}from"react";import{Calendar}from"../Calendar.js";import FormElement from"../FormElement.js";import{useFocusCallback}from"../common.js";import{
|
|
1
|
+
import{buttonBaseClasses}from"@vertigis/react-ui/ButtonBase";import{clockClasses}from"@vertigis/react-ui/ClockPicker";import FormHelperText from"@vertigis/react-ui/FormHelperText";import FormLabelTextField from"@vertigis/react-ui/FormLabelTextField";import BaseTimePicker from"@vertigis/react-ui/TimePicker";import{styled}from"@vertigis/react-ui/styles";import clsx from"clsx";import*as React from"react";import{useEffect,useRef,useState}from"react";import{Calendar}from"../Calendar.js";import FormElement from"../FormElement.js";import{useFocusCallback}from"../common.js";import{areValuesEqual,isInvalidDate,makeProperValue}from"../dateUtilities.js";import{getNewElementValue}from"../dateUtilities.js";import{isInvalidError}from"../textUtilities.js";import{makeUniqueId}from"../utils.js";const StylableTimePicker=e=>{const{PopperProps:t={},className:r,...a}=e;return React.createElement(BaseTimePicker,{PopperProps:{...t,className:clsx(t.className,r)},...a})},StyledTimePicker=styled(StylableTimePicker)(({theme:{palette:e}})=>({[`& .${clockClasses.amButton}, .${clockClasses.pmButton}`]:{[`&.${buttonBaseClasses.focusVisible}`]:{color:e.action.active}}})),TimePicker=({className:e,component:t,deriveLocale:r,element:a,enabled:o,error:l,name:i,prompt:s,renderFocus:m,renderText:c,setProperty:n,setValue:u,tooltip:p,value:d})=>{const[f,k]=useState(!1),[v,P]=useState(!1),[E,F]=useState(null),T=useRef(),C=useRef(!0);m=useFocusCallback(o,i,m);const b=c(p),x={locale:r(),timezone:(new Intl.DateTimeFormat).resolvedOptions().timeZone},g=Calendar.useNative(),R="time",V=isInvalidError(l);useEffect(()=>{var e=makeProperValue(d,g),t=getNewElementValue(e,R,x,g);areValuesEqual(d,t)||u(t,!1),F(e||null)},[d]),useEffect(()=>{var e;C.current?C.current=!1:v||f||(isInvalidDate(E)?V||n("error",{status:"invalid"}):(V&&n("error",void 0),e=getNewElementValue(E,R,x,g),areValuesEqual(d,e)||u(e)))},[v,f]);const y=`${makeUniqueId(i)}-input`,B=c(s);return React.createElement(FormElement,{className:e,component:t,element:a,inputId:y},V&&React.createElement(FormHelperText,{component:"div",error:!0,role:"alert"},T.current),React.createElement(StyledTimePicker,{disabled:!o,key:"date-picker",inputRef:m,onChange:e=>{F(e)},onOpen:()=>{P(!0)},onClose:()=>{P(!1)},renderInput:e=>(T.current=e.inputProps?.placeholder,e.error=!!l,e.inputProps={...e.inputProps,id:y,onBlur:()=>{k(!1)},onFocus:()=>{k(!0)},placeholder:B||e.inputProps?.placeholder,title:b},React.createElement(FormLabelTextField,{...e})),value:E}))};export default TimePicker;
|
package/forms/constants.d.ts
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* All of the types of component used in forms within VertiGIS Studio Workflow.
|
|
3
|
-
* Most are containers that hold other things. In the case of "element",
|
|
4
|
-
* we use `FormElementTypes` to specify which type of element it represents.
|
|
5
|
-
*/
|
|
6
|
-
export declare const FormComponentTypes: {
|
|
7
|
-
ACCORDIONGROUP: string;
|
|
8
|
-
BODY: string;
|
|
9
|
-
ELEMENT: string;
|
|
10
|
-
FOOTER: string;
|
|
11
|
-
FORM: string;
|
|
12
|
-
HEADER: string;
|
|
13
|
-
MAIN: string;
|
|
14
|
-
ROW: string;
|
|
15
|
-
SECTION: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* All of the types of Form Element that are included in VertiGIS Studio Workflow.
|
|
19
|
-
*
|
|
20
|
-
* IMPORTANT: These are used as element classes when the form is rendered.
|
|
21
|
-
* Changing these values could introduce breaking changes to
|
|
22
|
-
* custom styling of existing workflows.
|
|
23
|
-
*/
|
|
24
|
-
export declare const FormElementTypes: {
|
|
25
|
-
AUTOCOMPLETE: string;
|
|
26
|
-
BUTTONBAR: string;
|
|
27
|
-
CHECKBOX: string;
|
|
28
|
-
CHECKGROUP: string;
|
|
29
|
-
CUSTOM: string;
|
|
30
|
-
DATEPICKER: string;
|
|
31
|
-
DATERANGEPICKER: string;
|
|
32
|
-
DATETIMEPICKER: string;
|
|
33
|
-
DROPDOWNLIST: string;
|
|
34
|
-
FILEPICKER: string;
|
|
35
|
-
GEOMETRYPICKER: string;
|
|
36
|
-
HEADER: string;
|
|
37
|
-
HORIZONTALRULE: string;
|
|
38
|
-
IMAGE: string;
|
|
39
|
-
ITEMPICKER: string;
|
|
40
|
-
LISTBOX: string;
|
|
41
|
-
NUMBER: string;
|
|
42
|
-
NUMBERRANGESLIDER: string;
|
|
43
|
-
NUMBERSLIDER: string;
|
|
44
|
-
PASSWORDBOX: string;
|
|
45
|
-
RADIOGROUP: string;
|
|
46
|
-
SCANNER: string;
|
|
47
|
-
SECTION: string;
|
|
48
|
-
SIGNATURE: string;
|
|
49
|
-
TEXT: string;
|
|
50
|
-
TEXTAREA: string;
|
|
51
|
-
TEXTBOX: string;
|
|
52
|
-
TIMEPICKER: string;
|
|
53
|
-
};
|
|
54
|
-
/**
|
|
55
|
-
* The way that Form Element Items are presented to the user.
|
|
56
|
-
* @public
|
|
57
|
-
*/
|
|
58
|
-
export declare const Orientation: {
|
|
59
|
-
/** The items are laid out side-by-side, in a row. */
|
|
60
|
-
HORIZONTAL: string;
|
|
61
|
-
/** The items are laid out one above the other, in a column */
|
|
62
|
-
VERTICAL: string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* The type of scan being performed in a Scanner Form Element.
|
|
66
|
-
* This is defined outside of scanner.tsx to prevent webpack from pulling @zxing/library into the designer.
|
|
67
|
-
*/
|
|
68
|
-
export declare enum ScanType {
|
|
69
|
-
BarCode = "barcode",
|
|
70
|
-
QrCode = "qrcode"
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* The way that a Form Element's title is positioned relative to its content.
|
|
74
|
-
* @public
|
|
75
|
-
*/
|
|
76
|
-
export declare const TitleLocation: {
|
|
77
|
-
/** The title is shown above the element's content. */
|
|
78
|
-
ABOVE: string;
|
|
79
|
-
/** The title is shown before the element's content. */
|
|
80
|
-
BESIDE: string;
|
|
81
|
-
};
|
|
1
|
+
/**
|
|
2
|
+
* All of the types of component used in forms within VertiGIS Studio Workflow.
|
|
3
|
+
* Most are containers that hold other things. In the case of "element",
|
|
4
|
+
* we use `FormElementTypes` to specify which type of element it represents.
|
|
5
|
+
*/
|
|
6
|
+
export declare const FormComponentTypes: {
|
|
7
|
+
ACCORDIONGROUP: string;
|
|
8
|
+
BODY: string;
|
|
9
|
+
ELEMENT: string;
|
|
10
|
+
FOOTER: string;
|
|
11
|
+
FORM: string;
|
|
12
|
+
HEADER: string;
|
|
13
|
+
MAIN: string;
|
|
14
|
+
ROW: string;
|
|
15
|
+
SECTION: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* All of the types of Form Element that are included in VertiGIS Studio Workflow.
|
|
19
|
+
*
|
|
20
|
+
* IMPORTANT: These are used as element classes when the form is rendered.
|
|
21
|
+
* Changing these values could introduce breaking changes to
|
|
22
|
+
* custom styling of existing workflows.
|
|
23
|
+
*/
|
|
24
|
+
export declare const FormElementTypes: {
|
|
25
|
+
AUTOCOMPLETE: string;
|
|
26
|
+
BUTTONBAR: string;
|
|
27
|
+
CHECKBOX: string;
|
|
28
|
+
CHECKGROUP: string;
|
|
29
|
+
CUSTOM: string;
|
|
30
|
+
DATEPICKER: string;
|
|
31
|
+
DATERANGEPICKER: string;
|
|
32
|
+
DATETIMEPICKER: string;
|
|
33
|
+
DROPDOWNLIST: string;
|
|
34
|
+
FILEPICKER: string;
|
|
35
|
+
GEOMETRYPICKER: string;
|
|
36
|
+
HEADER: string;
|
|
37
|
+
HORIZONTALRULE: string;
|
|
38
|
+
IMAGE: string;
|
|
39
|
+
ITEMPICKER: string;
|
|
40
|
+
LISTBOX: string;
|
|
41
|
+
NUMBER: string;
|
|
42
|
+
NUMBERRANGESLIDER: string;
|
|
43
|
+
NUMBERSLIDER: string;
|
|
44
|
+
PASSWORDBOX: string;
|
|
45
|
+
RADIOGROUP: string;
|
|
46
|
+
SCANNER: string;
|
|
47
|
+
SECTION: string;
|
|
48
|
+
SIGNATURE: string;
|
|
49
|
+
TEXT: string;
|
|
50
|
+
TEXTAREA: string;
|
|
51
|
+
TEXTBOX: string;
|
|
52
|
+
TIMEPICKER: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The way that Form Element Items are presented to the user.
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
58
|
+
export declare const Orientation: {
|
|
59
|
+
/** The items are laid out side-by-side, in a row. */
|
|
60
|
+
HORIZONTAL: string;
|
|
61
|
+
/** The items are laid out one above the other, in a column */
|
|
62
|
+
VERTICAL: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The type of scan being performed in a Scanner Form Element.
|
|
66
|
+
* This is defined outside of scanner.tsx to prevent webpack from pulling @zxing/library into the designer.
|
|
67
|
+
*/
|
|
68
|
+
export declare enum ScanType {
|
|
69
|
+
BarCode = "barcode",
|
|
70
|
+
QrCode = "qrcode"
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The way that a Form Element's title is positioned relative to its content.
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
76
|
+
export declare const TitleLocation: {
|
|
77
|
+
/** The title is shown above the element's content. */
|
|
78
|
+
ABOVE: string;
|
|
79
|
+
/** The title is shown before the element's content. */
|
|
80
|
+
BESIDE: string;
|
|
81
|
+
};
|
package/forms/dateUtilities.d.ts
CHANGED
|
@@ -1,117 +1,102 @@
|
|
|
1
|
-
import { Calendar } from "./Calendar";
|
|
2
|
-
import { DateRangeRef, DateTimeFormat, DateTimeRef, DateTimeType } from "./FormDefinition";
|
|
3
|
-
import { defs } from "./FormHost";
|
|
4
|
-
import { FormPresenterHost } from "./FormPresenterHost";
|
|
5
|
-
/**
|
|
6
|
-
* Checks if a form element's value is equal to the supplied value.
|
|
7
|
-
* @param
|
|
8
|
-
* @param newValue A new value for the Form Element.
|
|
9
|
-
* @returns True if the element's current value and the new value are equal, false otherwise.
|
|
10
|
-
*/
|
|
11
|
-
export declare function areValuesEqual(
|
|
12
|
-
/**
|
|
13
|
-
* Checks if a given date is valid or not.
|
|
14
|
-
* @param date The date object to check.
|
|
15
|
-
*/
|
|
16
|
-
export declare function isValidDate(date: Date): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Converts a given two-digit year to its four digit string equivalent or pads with leading zero's to make four digit.
|
|
19
|
-
* Returns undefined if the input is invalid.
|
|
20
|
-
* @param year The string for the year.
|
|
21
|
-
*/
|
|
22
|
-
export declare function tryParseYear(year: string): string;
|
|
23
|
-
/**
|
|
24
|
-
* Converts a given string to a corresponding two digit month. Performs basic validation.
|
|
25
|
-
* Returns undefined if input is valid.
|
|
26
|
-
* @param month The string for the month.
|
|
27
|
-
*/
|
|
28
|
-
export declare function tryParseMonth(month: string): string | undefined;
|
|
29
|
-
/**
|
|
30
|
-
* Converts a given string to a corresponding two digit day. Performs basic validation.
|
|
31
|
-
* Returns undefined if input is valid.
|
|
32
|
-
* @param month The string for the day.
|
|
33
|
-
*/
|
|
34
|
-
export declare function tryParseDay(day: string): string;
|
|
35
|
-
/**
|
|
36
|
-
* Processes user input and parses it in the current date format if possible. Else returns undefined.
|
|
37
|
-
* The purpose of this function is to allow maximum leeway to the user. As long as there are three
|
|
38
|
-
* numeric values in the input, we'll parse it correctly regardless of separator used and regardless
|
|
39
|
-
* of whether the day/month were entered as 1 or 2 digits or whether year was entered as 2 or 4 digits.
|
|
40
|
-
* While some basic validation is performed, this function is simply intended to format user input
|
|
41
|
-
* correctly and should not be relied upon for validation. Note that this function will always return
|
|
42
|
-
* four digit year and two digit day and month tokens.
|
|
43
|
-
* @param input The input date text.
|
|
44
|
-
*/
|
|
45
|
-
export declare function tryParseDateText(input: string): string;
|
|
46
|
-
/**
|
|
47
|
-
* Retrieves the DateFns locale corresponding to the specified language. This function will return undefined
|
|
48
|
-
* if the locale is not found.
|
|
49
|
-
* If the specified language is region specific eg. 'de-AT', this function will first try to retrieve it. In
|
|
50
|
-
* the event of failure, it will also try to retrieve the generic locale for the given language i.e. 'de' for the
|
|
51
|
-
* current example.
|
|
52
|
-
* @param language The target language to retrieve the locale for.
|
|
53
|
-
*/
|
|
54
|
-
export declare function getDateFnsLocale(language: string): Promise<Locale | undefined>;
|
|
55
|
-
/**
|
|
56
|
-
* Gets the date format based on the current browser locale. This function will always return four digit year tokens
|
|
57
|
-
* and two digit month and day tokens. The browser locale however, will determine their placement and the separator.
|
|
58
|
-
*/
|
|
59
|
-
export declare function getLocaleDateFormat(): string;
|
|
60
|
-
export declare function getLocaleDateFormatSeparator(): string;
|
|
61
|
-
/**
|
|
62
|
-
* Returns the position of the year, month or day in the date format. eg. 2 for year position in mm/dd/yyyy
|
|
63
|
-
* 1 for year position in mm/yyyy/dd and 0 for year position in yyyy/mm/dd.
|
|
64
|
-
*/
|
|
65
|
-
export declare function getLocaleDateFormatTokenPosition(token: "yyyy" | "dd" | "MM"): number;
|
|
66
|
-
/**
|
|
67
|
-
* Inputs that can be converted to a DateRangeRef. Requires two values that can be converted into
|
|
68
|
-
* start and end dates
|
|
69
|
-
*/
|
|
70
|
-
export
|
|
71
|
-
startDate: Date | string;
|
|
72
|
-
endDate: Date | string;
|
|
73
|
-
};
|
|
74
|
-
/**
|
|
75
|
-
* Attempts to convert user input into a valid DateRangeRef if possible. If arrays of dates,
|
|
76
|
-
* numbers are provided, the lower value will be used as the startDate irrespective of order defined. If a
|
|
77
|
-
* dateRangeRef like object is provided with explicit startDate and endDate properties no swapping will be done.
|
|
78
|
-
* @param value DateRangeLike inputs which could be an array of string, number, Date or a
|
|
79
|
-
* DateRangeRef like object.
|
|
80
|
-
* @returns A valid DateRangeRef if possible. Undefined otherwise.
|
|
81
|
-
*/
|
|
82
|
-
export declare function convertToDateRangeRef(value: DateRangeLike): DateRangeRef | undefined;
|
|
83
|
-
/**
|
|
84
|
-
* This function is for the sole purpose of facilitating testing. This should not be
|
|
85
|
-
* used for any other purpose. An incorrect value set here will result in incorrect
|
|
86
|
-
* behaviour for the duration of the session or until the value is cleared.
|
|
87
|
-
* @param dateFormat The date format to set in cache.
|
|
88
|
-
*/
|
|
89
|
-
export declare function __test__setlocaleDateFormatInCache(dateFormat: string): void;
|
|
90
|
-
export declare function loadLocale(host: FormPresenterHost): Promise<Locale>;
|
|
91
|
-
|
|
92
|
-
[name: string]: any;
|
|
93
|
-
format?: Partial | void;
|
|
94
|
-
locale?: string;
|
|
95
|
-
timezone?: string;
|
|
96
|
-
refValueType?: string;
|
|
97
|
-
value?: number;
|
|
98
|
-
};
|
|
99
|
-
export declare function
|
|
100
|
-
export declare function
|
|
101
|
-
export declare function
|
|
102
|
-
export
|
|
103
|
-
/**
|
|
104
|
-
* Updates `element.value` with a new `DateTimeRef` using the supplied parameters.
|
|
105
|
-
*
|
|
106
|
-
* Care is taken to ensure we don't replace `element.value` with an identical
|
|
107
|
-
* `DateTimeRef` as this can lead to infinite loops in react components
|
|
108
|
-
* when `element.value` is a dependency of a hook such as `useEffect`.
|
|
109
|
-
* @param element The element to be updated.
|
|
110
|
-
* @param date The new `Date` value to use.
|
|
111
|
-
* @param refValueType The type of value that this represents.
|
|
112
|
-
* @param format The format of the value.
|
|
113
|
-
* @param calendar A calendar to use to get a text representation of the date.
|
|
114
|
-
* @returns True if the value was updated, false otherwise.
|
|
115
|
-
*/
|
|
116
|
-
export declare function updateElementValue(element: defs.Element, date: Date | undefined | null, refValueType: DateTimeType, format: DateTimeFormat, calendar: Calendar): boolean;
|
|
117
|
-
export {};
|
|
1
|
+
import { Calendar } from "./Calendar";
|
|
2
|
+
import { DateRangeRef, DateTimeFormat, DateTimeRef, DateTimeType } from "./FormDefinition";
|
|
3
|
+
import { defs } from "./FormHost";
|
|
4
|
+
import { FormPresenterHost } from "./FormPresenterHost";
|
|
5
|
+
/**
|
|
6
|
+
* Checks if a form element's value is equal to the supplied value.
|
|
7
|
+
* @param elementValue The current value of a Form Element.
|
|
8
|
+
* @param newValue A new value for the Form Element.
|
|
9
|
+
* @returns True if the element's current value and the new value are equal, false otherwise.
|
|
10
|
+
*/
|
|
11
|
+
export declare function areValuesEqual(elementValue: defs.Value | undefined, newValue: DateTimeRef | DateRangeRef | undefined | null): boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Checks if a given date is valid or not.
|
|
14
|
+
* @param date The date object to check.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isValidDate(date: Date): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Converts a given two-digit year to its four digit string equivalent or pads with leading zero's to make four digit.
|
|
19
|
+
* Returns undefined if the input is invalid.
|
|
20
|
+
* @param year The string for the year.
|
|
21
|
+
*/
|
|
22
|
+
export declare function tryParseYear(year: string): string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Converts a given string to a corresponding two digit month. Performs basic validation.
|
|
25
|
+
* Returns undefined if input is valid.
|
|
26
|
+
* @param month The string for the month.
|
|
27
|
+
*/
|
|
28
|
+
export declare function tryParseMonth(month: string): string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Converts a given string to a corresponding two digit day. Performs basic validation.
|
|
31
|
+
* Returns undefined if input is valid.
|
|
32
|
+
* @param month The string for the day.
|
|
33
|
+
*/
|
|
34
|
+
export declare function tryParseDay(day: string): string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* Processes user input and parses it in the current date format if possible. Else returns undefined.
|
|
37
|
+
* The purpose of this function is to allow maximum leeway to the user. As long as there are three
|
|
38
|
+
* numeric values in the input, we'll parse it correctly regardless of separator used and regardless
|
|
39
|
+
* of whether the day/month were entered as 1 or 2 digits or whether year was entered as 2 or 4 digits.
|
|
40
|
+
* While some basic validation is performed, this function is simply intended to format user input
|
|
41
|
+
* correctly and should not be relied upon for validation. Note that this function will always return
|
|
42
|
+
* four digit year and two digit day and month tokens.
|
|
43
|
+
* @param input The input date text.
|
|
44
|
+
*/
|
|
45
|
+
export declare function tryParseDateText(input: string): string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves the DateFns locale corresponding to the specified language. This function will return undefined
|
|
48
|
+
* if the locale is not found.
|
|
49
|
+
* If the specified language is region specific eg. 'de-AT', this function will first try to retrieve it. In
|
|
50
|
+
* the event of failure, it will also try to retrieve the generic locale for the given language i.e. 'de' for the
|
|
51
|
+
* current example.
|
|
52
|
+
* @param language The target language to retrieve the locale for.
|
|
53
|
+
*/
|
|
54
|
+
export declare function getDateFnsLocale(language: string): Promise<Locale | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* Gets the date format based on the current browser locale. This function will always return four digit year tokens
|
|
57
|
+
* and two digit month and day tokens. The browser locale however, will determine their placement and the separator.
|
|
58
|
+
*/
|
|
59
|
+
export declare function getLocaleDateFormat(): string;
|
|
60
|
+
export declare function getLocaleDateFormatSeparator(): string;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the position of the year, month or day in the date format. eg. 2 for year position in mm/dd/yyyy
|
|
63
|
+
* 1 for year position in mm/yyyy/dd and 0 for year position in yyyy/mm/dd.
|
|
64
|
+
*/
|
|
65
|
+
export declare function getLocaleDateFormatTokenPosition(token: "yyyy" | "dd" | "MM"): number;
|
|
66
|
+
/**
|
|
67
|
+
* Inputs that can be converted to a DateRangeRef. Requires two values that can be converted into
|
|
68
|
+
* start and end dates
|
|
69
|
+
*/
|
|
70
|
+
export type DateRangeLike = (Date | number | string)[] | {
|
|
71
|
+
startDate: Date | string;
|
|
72
|
+
endDate: Date | string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Attempts to convert user input into a valid DateRangeRef if possible. If arrays of dates,
|
|
76
|
+
* numbers are provided, the lower value will be used as the startDate irrespective of order defined. If a
|
|
77
|
+
* dateRangeRef like object is provided with explicit startDate and endDate properties no swapping will be done.
|
|
78
|
+
* @param value DateRangeLike inputs which could be an array of string, number, Date or a
|
|
79
|
+
* DateRangeRef like object.
|
|
80
|
+
* @returns A valid DateRangeRef if possible. Undefined otherwise.
|
|
81
|
+
*/
|
|
82
|
+
export declare function convertToDateRangeRef(value: DateRangeLike): DateRangeRef | undefined;
|
|
83
|
+
/**
|
|
84
|
+
* This function is for the sole purpose of facilitating testing. This should not be
|
|
85
|
+
* used for any other purpose. An incorrect value set here will result in incorrect
|
|
86
|
+
* behaviour for the duration of the session or until the value is cleared.
|
|
87
|
+
* @param dateFormat The date format to set in cache.
|
|
88
|
+
*/
|
|
89
|
+
export declare function __test__setlocaleDateFormatInCache(dateFormat: string): void;
|
|
90
|
+
export declare function loadLocale(host: FormPresenterHost): Promise<Locale | undefined>;
|
|
91
|
+
type Partial = void | boolean | number | string | {
|
|
92
|
+
[name: string]: any;
|
|
93
|
+
format?: Partial | void;
|
|
94
|
+
locale?: string;
|
|
95
|
+
timezone?: string;
|
|
96
|
+
refValueType?: string;
|
|
97
|
+
value?: number;
|
|
98
|
+
};
|
|
99
|
+
export declare function makeProperValue(value: number | string | Partial, calendar: Calendar): Date | undefined;
|
|
100
|
+
export declare function isInvalidDate(date: Date | null): boolean;
|
|
101
|
+
export declare function getNewElementValue(date: Date | undefined | null, refValueType: DateTimeType, format: DateTimeFormat, calendar: Calendar): DateTimeRef | undefined;
|
|
102
|
+
export {};
|
package/forms/dateUtilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{parse,isAfter}from"date-fns";import{DEFAULT_LOCALE}from"../constants.js";import{parseLocale}from"../definition/ProgramInspector.js";import{Calendar}from"./Calendar.js";import{
|
|
1
|
+
import{parse,isAfter}from"date-fns";import{DEFAULT_LOCALE}from"../constants.js";import{parseLocale}from"../definition/ProgramInspector.js";import{Calendar}from"./Calendar.js";import{isDateRangeRef,isDateTimeRef}from"./utils.js";const CURRENT_CENTURY_YEAR_CUTOFF=29,SUPPORTED_DATE_FNS_LOCALES=["cs","da","de","de-AT","en-AU","en-CA","en-GB","en-IN","en-NZ","en-US","en-ZA","fr","fr-CA","fr-CH","it","nb","nl","nl-BE","nn","pt","pt-BR"];let localeDateFormat="",dateFormatSeparator;function areValuesEqual(e,a){return void 0===e&&void 0===a||null===e&&null===a||(isDateTimeRef(e)&&a&&isDateTimeRef(a)?e.display===a.display&&e.refValueType===a.refValueType&&e.value===a.value&&areFormatsEqual(e.format,a.format):!!(isDateRangeRef(e)&&a&&isDateRangeRef(a))&&(e.endDate?.valueOf()===a.endDate?.valueOf()&&e.refValueType===a.refValueType&&e.startDate?.valueOf()===a.startDate?.valueOf()))}function areFormatsEqual(e,a){return void 0===e&&void 0===a||("string"==typeof e&&"string"==typeof a?e===a:"object"==typeof e&&"object"==typeof a&&(null===e||null===a?e===a:e.locale===a.locale&&e.timezone===a.timezone))}function isValidDate(e){return e instanceof Date&&!isNaN(e.valueOf())}function tryParseYear(e){if(/^\d+$/.test(e)&&!(4<e.length)){for(2===e.length&&(e=`${CURRENT_CENTURY_YEAR_CUTOFF>=parseInt(e,10)?20:19}${e}`);e.length<4;)e=`0${e}`;return e}}function tryParseMonth(e){if(/^\d+$/.test(e)&&!(2<e.length)){1===e.length&&(e=`0${e}`);var a=parseInt(e,10);if(!(a<1||12<a))return e}}function tryParseDay(e){if(/^\d+$/.test(e)&&!(2<e.length)){1===e.length&&(e=`0${e}`);var a=parseInt(e,10);if(!(a<1||31<a))return e}}function tryParseDateText(e){if(e){const r=(e=e.replace(/\\/g,"\\\\")).match(/(\d+)/g);if(3===r?.length){var e=getLocaleDateFormatSeparator(),a=getLocaleDateFormatTokenPosition("yyyy"),t=getLocaleDateFormatTokenPosition("MM");for(let e=0;e<3;e++){switch(e){case a:r[e]=tryParseYear(r[e]);break;case t:r[e]=tryParseMonth(r[e]);break;default:r[e]=tryParseDay(r[e])}if(void 0===r[e])return}return`${r[0]}${e}${r[1]}${e}${r[2]}`}}}async function getDateFnsLocale(e){const a=[];e=parseLocale(e);if(e){e.territory&&a.push(`${e.language}-${e.territory}`),a.push(e.language);for(const t of a)if(-1!==SUPPORTED_DATE_FNS_LOCALES.indexOf(t)){let e;try{switch(t){case"cs":e=(await import("date-fns/locale/cs")).default;break;case"da":e=(await import("date-fns/locale/da")).default;break;case"de":e=(await import("date-fns/locale/de")).default;break;case"de-AT":e=(await import("date-fns/locale/de-AT")).default;break;case"en-AU":e=(await import("date-fns/locale/en-AU")).default;break;case"en-CA":e=(await import("date-fns/locale/en-CA")).default;break;case"en-GB":e=(await import("date-fns/locale/en-GB")).default;break;case"en-IN":e=(await import("date-fns/locale/en-IN")).default;break;case"en-NZ":e=(await import("date-fns/locale/en-NZ")).default;break;case"en-US":e=(await import("date-fns/locale/en-US")).default;break;case"en-ZA":e=(await import("date-fns/locale/en-ZA")).default;break;case"fr":e=(await import("date-fns/locale/fr")).default;break;case"fr-CA":e=(await import("date-fns/locale/fr-CA")).default;break;case"fr-CH":e=(await import("date-fns/locale/fr-CH")).default;break;case"it":e=(await import("date-fns/locale/it")).default;break;case"nb":e=(await import("date-fns/locale/nb")).default;break;case"nl":e=(await import("date-fns/locale/nl")).default;break;case"nl-BE":e=(await import("date-fns/locale/nl-BE")).default;break;case"nn":e=(await import("date-fns/locale/nn")).default;break;case"pt":e=(await import("date-fns/locale/pt")).default;break;case"pt-BR":e=(await import("date-fns/locale/pt-BR")).default}}catch{continue}if(e?.localize)return e}}}function getLocaleDateFormat(){if(localeDateFormat)return localeDateFormat;const e=new Date(1999,11,31,0,0,0);return localeDateFormat=e.toLocaleDateString(void 0,{year:"numeric",month:"numeric",day:"numeric"}),localeDateFormat=localeDateFormat.replace("1999","yyyy"),localeDateFormat=localeDateFormat.replace("99","yyyy"),localeDateFormat=localeDateFormat.replace("12","MM"),localeDateFormat=localeDateFormat.replace("31","dd"),localeDateFormat}function getLocaleDateFormatSeparator(){var e;return void 0===dateFormatSeparator&&(e=/[^dMy]+/.exec(getLocaleDateFormat()),dateFormatSeparator=e?e[0]:""),dateFormatSeparator}function getLocaleDateFormatTokenPosition(e){const a=getLocaleDateFormat();var t=a.indexOf("yyyy"),r=a.indexOf("MM"),o=a.indexOf("dd");return"yyyy"===e?0===t?0:r<t&&o<t?2:1:"MM"===e?0===r?0:o<r&&t<r?2:1:0===o?0:r<o&&t<o?2:1}const coerceIntoDate=e=>{if(e instanceof Date&&isValidDate(e))return new Date(e.valueOf());if("string"==typeof e)if(/^\d+$/.test(e))e=Number(e);else{var a=tryParseDateText(e);if(a){var t=getLocaleDateFormat(),t=parse(a,t,0);if(isValidDate(t))return t}}if("number"==typeof e){e=new Date(e);if(isValidDate(e))return e}};function convertToDateRangeRef(e){let a,t,r=!1;Array.isArray(e)?(a=coerceIntoDate(e[0]),t=coerceIntoDate(e[1]),r=!0):"object"==typeof e&&(a=coerceIntoDate(e.startDate),t=coerceIntoDate(e.endDate));var o=!!a&&!!t;let n=o&&!isAfter(a,t);return r&&o&&!n&&(e=a,a=t,t=e,n=!0),o&&n?{refValueType:"daterange",startDate:a,endDate:t}:void 0}function __test__setlocaleDateFormatInCache(e){localeDateFormat=e,dateFormatSeparator=void 0}async function loadLocale(e){e=e.deriveLocale();if("inv"!==e&&"en"!==e&&e!==DEFAULT_LOCALE)return getDateFnsLocale(e)}function makeProperValue(e,a){if("object"==typeof e){if(null===e)return;switch(e.refValueType){case"date":case"time":case"datetime":break;default:return}e=e.value}if("number"==typeof e||"string"==typeof e){const t=a.coerceIntoValue(e);if(void 0!==t&&null!==t&&isFinite(t.valueOf()))return t}}function isInvalidDate(e){return e instanceof Date&&isNaN(e.getDate())}function getNewElementValue(e,a,t,r){if(null!=e&&isFinite(e.valueOf()))return{refValueType:a,format:t,display:r.format(e,Calendar.fullFormat),value:e.valueOf()}}export{areValuesEqual,isValidDate,tryParseYear,tryParseMonth,tryParseDay,tryParseDateText,getDateFnsLocale,getLocaleDateFormat,getLocaleDateFormatSeparator,getLocaleDateFormatTokenPosition,convertToDateRangeRef,__test__setlocaleDateFormatInCache,loadLocale,makeProperValue,isInvalidDate,getNewElementValue};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { FormElementPropertyConstraints, PropertyConstraintsWithDefault, PropertyConstraintsWithMinimum } from "../utils";
|
|
2
|
-
import * as types from "./types";
|
|
3
|
-
export interface AutoComplete extends types.ElementBase, types.EditableElement, types.ElementWithItems<Item>, types.ElementWithStringLabel, types.ElementWithRequire {
|
|
4
|
-
/** Indicates the current value. */
|
|
5
|
-
readonly value?: any;
|
|
6
|
-
}
|
|
7
|
-
export
|
|
8
|
-
interface AutoCompletePropertyConstraints extends FormElementPropertyConstraints {
|
|
9
|
-
delay: PropertyConstraintsWithDefault<number> & PropertyConstraintsWithMinimum<number>;
|
|
10
|
-
minLength: PropertyConstraintsWithDefault<number> & PropertyConstraintsWithMinimum<number>;
|
|
11
|
-
}
|
|
12
|
-
export declare const autoCompletePropertyConstraints: AutoCompletePropertyConstraints;
|
|
13
|
-
export {};
|
|
1
|
+
import { FormElementPropertyConstraints, PropertyConstraintsWithDefault, PropertyConstraintsWithMinimum } from "../utils";
|
|
2
|
+
import * as types from "./types";
|
|
3
|
+
export interface AutoComplete extends types.ElementBase, types.EditableElement, types.ElementWithItems<Item>, types.ElementWithStringLabel, types.ElementWithRequire {
|
|
4
|
+
/** Indicates the current value. */
|
|
5
|
+
readonly value?: any;
|
|
6
|
+
}
|
|
7
|
+
export type Item = types.ElementItemBase<any>;
|
|
8
|
+
interface AutoCompletePropertyConstraints extends FormElementPropertyConstraints {
|
|
9
|
+
delay: PropertyConstraintsWithDefault<number> & PropertyConstraintsWithMinimum<number>;
|
|
10
|
+
minLength: PropertyConstraintsWithDefault<number> & PropertyConstraintsWithMinimum<number>;
|
|
11
|
+
}
|
|
12
|
+
export declare const autoCompletePropertyConstraints: AutoCompletePropertyConstraints;
|
|
13
|
+
export {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as types from "./types";
|
|
2
|
-
export interface ButtonBar extends types.ElementBase, types.EditableElement, types.ElementWithItems<Item> {
|
|
3
|
-
}
|
|
4
|
-
export interface Item extends types.ElementItemBase<any> {
|
|
5
|
-
/** Indicates if the item is a default. */
|
|
6
|
-
readonly default?: boolean;
|
|
7
|
-
/** Indicates if the element triggers validation when submitting. */
|
|
8
|
-
readonly validates?: boolean;
|
|
9
|
-
}
|
|
1
|
+
import * as types from "./types";
|
|
2
|
+
export interface ButtonBar extends types.ElementBase, types.EditableElement, types.ElementWithItems<Item> {
|
|
3
|
+
}
|
|
4
|
+
export interface Item extends types.ElementItemBase<any> {
|
|
5
|
+
/** Indicates if the item is a default. */
|
|
6
|
+
readonly default?: boolean;
|
|
7
|
+
/** Indicates if the element triggers validation when submitting. */
|
|
8
|
+
readonly validates?: boolean;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as types from "./types";
|
|
2
|
-
export interface CheckBox extends types.ElementBase, types.EditableElement, types.ElementWithTextLabel {
|
|
3
|
-
/** Indicates that the element is checked or not. */
|
|
4
|
-
readonly checked?: boolean;
|
|
5
|
-
/** Indicates the current value. */
|
|
6
|
-
readonly value?: any;
|
|
7
|
-
}
|
|
1
|
+
import * as types from "./types";
|
|
2
|
+
export interface CheckBox extends types.ElementBase, types.EditableElement, types.ElementWithTextLabel {
|
|
3
|
+
/** Indicates that the element is checked or not. */
|
|
4
|
+
readonly checked?: boolean;
|
|
5
|
+
/** Indicates the current value. */
|
|
6
|
+
readonly value?: any;
|
|
7
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as types from "./types";
|
|
2
|
-
export interface CheckGroup extends types.ElementBase, types.EditableElement, types.ElementWithItems<Item>, types.ElementWithRequire {
|
|
3
|
-
/** Indicates the current value. */
|
|
4
|
-
readonly value: ItemsRef;
|
|
5
|
-
}
|
|
6
|
-
export interface Item extends types.ElementItemBase<any>, types.ElementItemWithChecked {
|
|
7
|
-
}
|
|
8
|
-
export interface ItemsRef {
|
|
9
|
-
/** The items that were selected. */
|
|
10
|
-
items: Item[];
|
|
11
|
-
}
|
|
1
|
+
import * as types from "./types";
|
|
2
|
+
export interface CheckGroup extends types.ElementBase, types.EditableElement, types.ElementWithItems<Item>, types.ElementWithRequire {
|
|
3
|
+
/** Indicates the current value. */
|
|
4
|
+
readonly value: ItemsRef;
|
|
5
|
+
}
|
|
6
|
+
export interface Item extends types.ElementItemBase<any>, types.ElementItemWithChecked {
|
|
7
|
+
}
|
|
8
|
+
export interface ItemsRef {
|
|
9
|
+
/** The items that were selected. */
|
|
10
|
+
items: Item[];
|
|
11
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as types from "./types";
|
|
2
|
-
export interface Custom extends types.ElementBase, types.EditableElement {
|
|
3
|
-
/** Indicates the type name of the custom form element implementation. */
|
|
4
|
-
readonly customType?: string;
|
|
5
|
-
/** Indicates the current value. */
|
|
6
|
-
readonly value?: any;
|
|
7
|
-
}
|
|
1
|
+
import * as types from "./types";
|
|
2
|
+
export interface Custom extends types.ElementBase, types.EditableElement {
|
|
3
|
+
/** Indicates the type name of the custom form element implementation. */
|
|
4
|
+
readonly customType?: string;
|
|
5
|
+
/** Indicates the current value. */
|
|
6
|
+
readonly value?: any;
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DateTimeRef } from "../FormDefinition";
|
|
2
|
-
import * as types from "./types";
|
|
3
|
-
export interface DatePicker extends types.ElementBase, types.EditableElement, types.ElementWithRequire {
|
|
4
|
-
/** Indicates the current value. */
|
|
5
|
-
readonly value?: DateTimeRef;
|
|
6
|
-
}
|
|
1
|
+
import { DateTimeRef } from "../FormDefinition";
|
|
2
|
+
import * as types from "./types";
|
|
3
|
+
export interface DatePicker extends types.ElementBase, types.EditableElement, types.ElementWithRequire {
|
|
4
|
+
/** Indicates the current value. */
|
|
5
|
+
readonly value?: DateTimeRef;
|
|
6
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { DateRangeRef } from "../FormDefinition";
|
|
2
|
-
import * as types from "./types";
|
|
3
|
-
export interface DateRangePicker extends types.ElementBase, types.EditableElement, types.ElementWithRequire {
|
|
4
|
-
/** Indicates the current value. */
|
|
5
|
-
readonly value?: DateRangeRef;
|
|
6
|
-
}
|
|
1
|
+
import { DateRangeRef } from "../FormDefinition";
|
|
2
|
+
import * as types from "./types";
|
|
3
|
+
export interface DateRangePicker extends types.ElementBase, types.EditableElement, types.ElementWithRequire {
|
|
4
|
+
/** Indicates the current value. */
|
|
5
|
+
readonly value?: DateRangeRef;
|
|
6
|
+
}
|