@vertigis/workflow 5.36.0 → 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 -101
- 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/AddFeatureLayer.d.ts +23 -23
- package/activities/arcgis/AddFeatureLayer.js +1 -1
- package/activities/arcgis/AddFeatures.d.ts +27 -27
- package/activities/arcgis/AddGraphics.d.ts +27 -27
- package/activities/arcgis/ArcadeScript.d.ts +17 -18
- package/activities/arcgis/AreaEngineTask.d.ts +20 -20
- package/activities/arcgis/BufferEngineTask.d.ts +27 -27
- 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/ClosestFacilityTask.d.ts +90 -90
- package/activities/arcgis/ClosestFacilityTask.js +1 -1
- package/activities/arcgis/CompareGeometries.d.ts +19 -19
- 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/DeleteAttachments.d.ts +22 -22
- package/activities/arcgis/DeleteFeatures.d.ts +30 -30
- package/activities/arcgis/DensifyEngineTask.d.ts +20 -20
- package/activities/arcgis/DifferenceEngineTask.d.ts +23 -23
- package/activities/arcgis/DistanceEngineTask.d.ts +20 -20
- 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/FromGeoCoordinateStringServiceTask.d.ts +24 -24
- package/activities/arcgis/GeneralizeEngineTask.d.ts +22 -22
- 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/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/GetLayer.d.ts +21 -21
- package/activities/arcgis/GetLayerDefinitionExpression.d.ts +18 -18
- package/activities/arcgis/GetLayerProperty.d.ts +18 -18
- package/activities/arcgis/GetLayerVisibility.d.ts +18 -18
- package/activities/arcgis/GetMap.d.ts +11 -11
- 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/GetViewExtent.d.ts +16 -16
- package/activities/arcgis/GetViewpoint.d.ts +12 -12
- package/activities/arcgis/IntersectEngineTask.d.ts +20 -20
- package/activities/arcgis/LabelPointsServiceTask.d.ts +18 -18
- package/activities/arcgis/LengthEngineTask.d.ts +20 -20
- 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/NearestVerticesEngineTask.d.ts +34 -34
- package/activities/arcgis/OffsetEngineTask.d.ts +25 -25
- 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/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/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/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/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/SetLayerDefinitionExpression.d.ts +21 -21
- package/activities/arcgis/SetLayerDefinitionExpression.js +1 -1
- package/activities/arcgis/SetLayerPopup.d.ts +12 -12
- package/activities/arcgis/SetLayerProperty.d.ts +23 -23
- package/activities/arcgis/SetLayerVisibility.d.ts +23 -23
- package/activities/arcgis/SetMap.d.ts +14 -14
- package/activities/arcgis/SetViewExtent.d.ts +27 -27
- package/activities/arcgis/SetViewpoint.d.ts +23 -23
- package/activities/arcgis/ShowFeaturePopup.d.ts +11 -11
- package/activities/arcgis/ShowResults.d.ts +51 -51
- package/activities/arcgis/SimplifyEngineTask.d.ts +15 -15
- 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/UnionServiceTask.d.ts +20 -20
- package/activities/arcgis/UpdateAttachment.d.ts +29 -29
- package/activities/arcgis/UpdateFeatures.d.ts +27 -27
- package/activities/arcgis/libs/arcGisRestApi.d.ts +18 -18
- package/activities/arcgis/runUtils.d.ts +93 -93
- package/activities/arcgis/shared.d.ts +61 -61
- package/activities/arcgis/tools.d.ts +42 -40
- 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/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/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/CompleteForm.d.ts +11 -11
- package/activities/forms/DisplayForm.d.ts +48 -49
- 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 -140
- 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/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/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/SetFormElementProperty.d.ts +32 -19
- package/activities/forms/SetFormElementProperty.js +1 -1
- package/activities/forms/ShowFormElement.d.ts +15 -15
- 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/Engine.d.ts +84 -85
- package/execution/IDebugSession.d.ts +43 -44
- package/execution/ModuleLoader.d.ts +42 -42
- 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 -47
- package/forms/FormComponent.js +1 -1
- package/forms/FormDefinition.d.ts +451 -452
- package/forms/FormElement.d.ts +24 -59
- package/forms/FormElement.js +1 -1
- package/forms/FormHost.d.ts +225 -231
- package/forms/FormHost.js +1 -1
- package/forms/FormPresenterHost.d.ts +62 -74
- package/forms/MutuallyExclusiveSectionGroup.d.ts +41 -41
- package/forms/NumberParser.d.ts +27 -26
- 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 -8
- package/forms/components/ButtonBar.d.ts +8 -8
- package/forms/components/CheckBox.d.ts +7 -7
- package/forms/components/CheckGroup.d.ts +8 -8
- package/forms/components/Custom.d.ts +7 -7
- package/forms/components/DatePicker.d.ts +8 -8
- package/forms/components/DatePicker.js +1 -1
- package/forms/components/DateRangePicker.d.ts +12 -12
- package/forms/components/DateRangePicker.js +1 -1
- package/forms/components/DateTimePicker.d.ts +8 -8
- 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 -17
- 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/ItemPicker.d.ts +15 -17
- package/forms/components/ItemPicker.js +1 -1
- package/forms/components/ListBox.d.ts +8 -8
- package/forms/components/Markdown.d.ts +14 -14
- package/forms/components/Number.d.ts +8 -8
- package/forms/components/Number.js +1 -1
- package/forms/components/NumberRangeSlider.d.ts +12 -12
- package/forms/components/NumberSlider.d.ts +11 -11
- package/forms/components/RadioGroup.d.ts +8 -8
- 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/Text.d.ts +8 -8
- package/forms/components/TextArea.d.ts +7 -7
- package/forms/components/TextBox.d.ts +7 -7
- package/forms/components/TimePicker.d.ts +8 -8
- package/forms/components/TimePicker.js +1 -1
- package/forms/constants.d.ts +81 -81
- package/forms/dateUtilities.d.ts +102 -103
- 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 -108
- package/forms/keyboard.d.ts +9 -9
- package/forms/listUtilities.d.ts +3 -3
- package/forms/manifest.d.ts +3 -3
- package/forms/manifest.js +1 -1
- package/forms/numberFormatter.d.ts +90 -94
- package/forms/numberFormatter.js +1 -1
- package/forms/numberUtilities.d.ts +150 -150
- 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 -146
- 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
package/forms/renderers.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Box from"@vertigis/react-ui/Box";import*as React from"react";import AccordionGroup from"./components/AccordionGroup.js";import
|
|
1
|
+
import Box from"@vertigis/react-ui/Box";import*as React from"react";import AccordionGroup from"./components/AccordionGroup.js";import Form,{formClasses}from"./components/Form.js";import{FormComponentTypes}from"./constants.js";function renderComponent(e){switch(e.props.type){case FormComponentTypes.FORM:return React.createElement(Form,{component:e});case FormComponentTypes.HEADER:return renderBox(e.props.children,formClasses.header);case FormComponentTypes.MAIN:return renderBox(e.props.children,formClasses.main);case FormComponentTypes.FOOTER:return renderBox(e.props.children,formClasses.footer);case FormComponentTypes.BODY:return renderBox(e.props.children,formClasses.body);case FormComponentTypes.ROW:return renderBox(e.props.children,formClasses.row);case FormComponentTypes.ACCORDIONGROUP:return React.createElement(AccordionGroup,{component:e});default:return null}}function renderNone(e){return renderBox([`--- Unsupported Form Element (name=${e.props.name}) ---`],"None")}function renderBox(e,r){return React.createElement(Box,{className:r},e)}export{renderComponent,renderNone};
|
package/forms/textUtilities.d.ts
CHANGED
|
@@ -1,23 +1,33 @@
|
|
|
1
|
-
import { markdownToSafeHtml } from "@vertigis/react-ui/utils/markdown";
|
|
2
|
-
import * as defs from "./FormDefinition";
|
|
3
|
-
/**
|
|
4
|
-
* Ensures the supplied string can be rendered literally in markdown by
|
|
5
|
-
* escaping any characters that have special meaning in
|
|
6
|
-
* markdown syntax.
|
|
7
|
-
*
|
|
8
|
-
* This method assumes that we are using a markdown parser that complies
|
|
9
|
-
* with the commonmark specification. (http://commonmark.org/)
|
|
10
|
-
* As such, the only escaping performed is that which is necessary for
|
|
11
|
-
* the features suppored by commonmark.
|
|
12
|
-
*
|
|
13
|
-
* You can test commonmark behaviour here: http://spec.commonmark.org/dingus/
|
|
14
|
-
*
|
|
15
|
-
* @param literalString A string to be treated literally in markdown.
|
|
16
|
-
*/
|
|
17
|
-
export declare function escapeTextForMarkdown(literalString: string): string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { markdownToSafeHtml } from "@vertigis/react-ui/utils/markdown";
|
|
2
|
+
import * as defs from "./FormDefinition";
|
|
3
|
+
/**
|
|
4
|
+
* Ensures the supplied string can be rendered literally in markdown by
|
|
5
|
+
* escaping any characters that have special meaning in
|
|
6
|
+
* markdown syntax.
|
|
7
|
+
*
|
|
8
|
+
* This method assumes that we are using a markdown parser that complies
|
|
9
|
+
* with the commonmark specification. (http://commonmark.org/)
|
|
10
|
+
* As such, the only escaping performed is that which is necessary for
|
|
11
|
+
* the features suppored by commonmark.
|
|
12
|
+
*
|
|
13
|
+
* You can test commonmark behaviour here: http://spec.commonmark.org/dingus/
|
|
14
|
+
*
|
|
15
|
+
* @param literalString A string to be treated literally in markdown.
|
|
16
|
+
*/
|
|
17
|
+
export declare function escapeTextForMarkdown(literalString: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Returns the underlying content from a `defs.Text` input.
|
|
20
|
+
* This function does not perform any translation or markdown rendering.
|
|
21
|
+
* Its sole purpose is to expose the string from inside the relevant object,
|
|
22
|
+
* or return the input itself if it's already a string or undefined.
|
|
23
|
+
* @param text The text to extract content from.
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
export declare function getContent(text: defs.Text | undefined): string | undefined;
|
|
27
|
+
export declare function hasContent(text: defs.Text | undefined): text is defs.Text;
|
|
28
|
+
export declare function isMarkdown(text: (Partial<defs.MarkdownRef> & defs.Text) | undefined | null): text is defs.MarkdownRef;
|
|
29
|
+
export declare function isStatus(text: (Partial<defs.StatusRef> & defs.Text) | undefined | null): text is defs.StatusRef;
|
|
30
|
+
export declare function isInvalidError(text: (Partial<defs.StatusRef> & defs.Text) | undefined | null): boolean;
|
|
31
|
+
export declare function markdownToText(markdown: string): string;
|
|
32
|
+
export declare function textToHtml(text: string): string;
|
|
33
|
+
export { markdownToSafeHtml };
|
package/forms/textUtilities.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{markdownToSafeHtml}from"@vertigis/react-ui/utils/markdown";const htmlContent=document.createElement("div"),textContent=document.createElement("div"),textNode=document.createTextNode("");htmlContent.appendChild(textNode);const markdownCharsRegExp=/[\\`*_{}[\]()#+\-.!>~]/g,markdownCodeBlockSpacesRegExp=/^[ ]{4}/gm,markdownCodeBlockTabRegExp=/^[ ]{0,3}[ ]{1}/gm,markdownLineBreakSuffixRegExp=/[ ]{2}$/gm;function escapeTextForMarkdown(t){let e=t.replace(markdownCharsRegExp,"\\$&");return e=e.replace(markdownCodeBlockSpacesRegExp," "),e=e.replace(markdownCodeBlockTabRegExp," "),e=e.replace(markdownLineBreakSuffixRegExp," "),e}function
|
|
1
|
+
import{markdownToSafeHtml}from"@vertigis/react-ui/utils/markdown";const htmlContent=document.createElement("div"),textContent=document.createElement("div"),textNode=document.createTextNode("");htmlContent.appendChild(textNode);const markdownCharsRegExp=/[\\`*_{}[\]()#+\-.!>~]/g,markdownCodeBlockSpacesRegExp=/^[ ]{4}/gm,markdownCodeBlockTabRegExp=/^[ ]{0,3}[ ]{1}/gm,markdownLineBreakSuffixRegExp=/[ ]{2}$/gm;function escapeTextForMarkdown(t){let e=t.replace(markdownCharsRegExp,"\\$&");return e=e.replace(markdownCodeBlockSpacesRegExp," "),e=e.replace(markdownCodeBlockTabRegExp," "),e=e.replace(markdownLineBreakSuffixRegExp," "),e}function getContent(t){return isMarkdown(t)?t.markdown:isStatus(t)?t.status:t}function hasContent(t){return!!getContent(t)}function isMarkdown(t){return null!=t&&"string"==typeof t.markdown}function isStatus(t){return null!=t&&"string"==typeof t.status}function isInvalidError(t){return isStatus(t)&&"invalid"===t.status}function markdownToText(t){return textContent.innerHTML=markdownToSafeHtml(t),textContent.innerText}function textToHtml(t){return textNode.data=t,htmlContent.innerHTML}export{escapeTextForMarkdown,getContent,hasContent,isMarkdown,isStatus,isInvalidError,markdownToText,textToHtml,markdownToSafeHtml};
|
package/forms/utils.d.ts
CHANGED
|
@@ -1,146 +1,177 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
* is
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
* @
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
items
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
value
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* **IMPORTANT: This should be ignored when using a `defs.ItemsRef` as the value.**
|
|
96
|
-
* 1. This is the
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* @
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
export declare function
|
|
108
|
-
|
|
109
|
-
export declare function
|
|
110
|
-
export declare function
|
|
111
|
-
export declare function
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
export declare function
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
export declare function
|
|
123
|
-
/**
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
export declare function
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
export declare function
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
1
|
+
import { FormComponent } from "./FormComponent";
|
|
2
|
+
import * as defs from "./FormDefinition";
|
|
3
|
+
import * as text from "./textUtilities";
|
|
4
|
+
import { FormElementProps } from "./index";
|
|
5
|
+
/**
|
|
6
|
+
* Constraints for a property that may specify a default value and bounds.
|
|
7
|
+
*/
|
|
8
|
+
export interface PropertyConstraints<T> {
|
|
9
|
+
default?: T;
|
|
10
|
+
maximum?: T;
|
|
11
|
+
minimum?: T;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Constraints for a property that specifies a default value.
|
|
15
|
+
*/
|
|
16
|
+
export interface PropertyConstraintsWithDefault<T> extends PropertyConstraints<T> {
|
|
17
|
+
default: T;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Constraints for a property that specifies a maximum value.
|
|
21
|
+
*/
|
|
22
|
+
export interface PropertyConstraintsWithMaximum<T> extends PropertyConstraints<T> {
|
|
23
|
+
maximum: T;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Constraints for a property that specifies a minimum value.
|
|
27
|
+
*/
|
|
28
|
+
export interface PropertyConstraintsWithMinimum<T> extends PropertyConstraints<T> {
|
|
29
|
+
minimum: T;
|
|
30
|
+
}
|
|
31
|
+
export interface FormElementPropertyConstraints {
|
|
32
|
+
[key: string]: PropertyConstraints<any> | undefined;
|
|
33
|
+
}
|
|
34
|
+
export interface DebounceResult {
|
|
35
|
+
/** Invoke the scheduled function immediately, without any further delay. */
|
|
36
|
+
now: () => void;
|
|
37
|
+
/** Do not invoke the scheduled function at all. */
|
|
38
|
+
cancel: () => void;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Exporting text since it was split out from here into it's own file as part of the designer
|
|
42
|
+
* CRA migration. This was necessary since babel does not support namespaces.
|
|
43
|
+
**/
|
|
44
|
+
export { text };
|
|
45
|
+
export declare function makeId(): string;
|
|
46
|
+
/** A type that includes an optional `index` property. */
|
|
47
|
+
interface Indexwise {
|
|
48
|
+
index?: number;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Performs key/item sorting.
|
|
52
|
+
*/
|
|
53
|
+
/**
|
|
54
|
+
* This function attempts to sort and filter a collection of items.
|
|
55
|
+
*
|
|
56
|
+
* The sorted is limited as the result is an object, so the order of the keys is not entirely configurable.
|
|
57
|
+
*
|
|
58
|
+
* The filtering is achieved via the predicate. Any item that causes a non-numeric return value from the predicate
|
|
59
|
+
* is dropped from the resulting items.
|
|
60
|
+
*
|
|
61
|
+
* @param items The items to be sorted and filtered.
|
|
62
|
+
* @param predicate The function to call for each item to determine its new index. If this returns something other than a number, the item is excluded from the result.
|
|
63
|
+
* @returns A sorted and filtered version of the items.
|
|
64
|
+
* @product This is intended for internal use only within VertiGIS Studio products.
|
|
65
|
+
*/
|
|
66
|
+
export declare function sortAndFilter<T extends Indexwise>(items: Record<string, T> | undefined, predicate?: (item: T, index: number) => number | undefined): Record<string, T>;
|
|
67
|
+
/**
|
|
68
|
+
* Details returned by `inspectItems()`.
|
|
69
|
+
*/
|
|
70
|
+
type InspectItemsResult = {
|
|
71
|
+
/** The index of the now-selected item, based on the new value of `items`. */
|
|
72
|
+
current: string | undefined;
|
|
73
|
+
/** The sorted and filtered items. */
|
|
74
|
+
items: Record<string, defs.Item>;
|
|
75
|
+
/** The new `label` of the element, based on the new value of `current`. */
|
|
76
|
+
label: defs.Text | undefined;
|
|
77
|
+
/** The new `value` of the element, based on the new value of `current`. */
|
|
78
|
+
value: defs.Value | undefined;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* This function interates through the items of the supplied element in preparation for use.
|
|
82
|
+
*
|
|
83
|
+
* It does the following:
|
|
84
|
+
*
|
|
85
|
+
* 1. Provides a new set of items.
|
|
86
|
+
* 1. They are sorted and filters to exclude any where `visible` is `false`.
|
|
87
|
+
* 2. Unlike the other values returned, this one should not be updated on the element.
|
|
88
|
+
* This is because we want to be able to change an invisible item back to visible in future,
|
|
89
|
+
* and they are omitted from the returned items.
|
|
90
|
+
* 2. Provides a new value for `element.current`\
|
|
91
|
+
* **IMPORTANT: This should be ignored when using a `defs.ItemsRef` as the value.**
|
|
92
|
+
* 1. It must refer to a visible item.
|
|
93
|
+
* 2. If absent, items' values are compared with `element.value` to find a match. If found, that is the new `current`.
|
|
94
|
+
* 3. Provides a new value for `element.label`.\
|
|
95
|
+
* **IMPORTANT: This should be ignored when using a `defs.ItemsRef` as the value.**
|
|
96
|
+
* 1. This is the label of the item specified by `current`.
|
|
97
|
+
* 4. Provides a new value for `element.value`.\
|
|
98
|
+
* **IMPORTANT: This should be ignored when using a `defs.ItemsRef` as the value.**
|
|
99
|
+
* 1. This is the value of the item specified by `current`.
|
|
100
|
+
* @param current The id of the current item, equivalent to `element.current`.
|
|
101
|
+
* @param items The items, equivalent to `element.items`.
|
|
102
|
+
* @param value The current value, equivalent to `element.value`.
|
|
103
|
+
* @returns A sorted and filtered set if items, along with some other properties that can be updated on `element`.
|
|
104
|
+
*/
|
|
105
|
+
export declare function inspectItems(current: string | undefined, items: Record<string, defs.Item> | undefined, value: defs.Value | undefined): InspectItemsResult;
|
|
106
|
+
/** @product This is intended for internal use only within VertiGIS Studio products. */
|
|
107
|
+
export declare function makeSafeClassName(elementName: string | undefined): string;
|
|
108
|
+
/** @public */
|
|
109
|
+
export declare function makeUniqueId(elementName: string | undefined): string;
|
|
110
|
+
export declare function addClass(element: HTMLElement, name: string): void;
|
|
111
|
+
export declare function removeClass(element: HTMLElement, name: string): void;
|
|
112
|
+
export declare function setClass(element: HTMLElement, name: string, exists: boolean): void;
|
|
113
|
+
/**
|
|
114
|
+
* Returns `true` if the element has a `type` of `"Section"`.
|
|
115
|
+
* @param element The element to be inspected.
|
|
116
|
+
*/
|
|
117
|
+
export declare function isSection(element?: defs.Element): element is defs.Element;
|
|
118
|
+
/**
|
|
119
|
+
* Returns `true` if the element has a `type` of `"Section"` and a `format` of `"accordion-section"`, `false` otherwise.
|
|
120
|
+
* @param element The element to be inspected.
|
|
121
|
+
*/
|
|
122
|
+
export declare function isAccordionSection(element?: defs.Element): boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Returns `true` if the element has a `type` of `"Section"` and a `format` of `"collapsible-section"`, `false` otherwise.
|
|
125
|
+
* @param element The element to be inspected.
|
|
126
|
+
*/
|
|
127
|
+
export declare function isCollapsibleSection(element?: defs.Element): boolean;
|
|
128
|
+
export declare function isBoolean(value: defs.Value | undefined): value is boolean;
|
|
129
|
+
export declare function isNumber(value: defs.Value | undefined): value is number;
|
|
130
|
+
/** @product This is intended for internal use only within VertiGIS Studio products. */
|
|
131
|
+
export declare function isString(value: defs.Value | undefined): value is string;
|
|
132
|
+
export declare function isDataRef(value: defs.Value | undefined): value is defs.DataRef;
|
|
133
|
+
export declare function isDateRangeRef(value: defs.Value | undefined): value is defs.DateRangeRef;
|
|
134
|
+
export declare function isDateTimeRef(value: defs.Value | undefined): value is defs.DateTimeRef;
|
|
135
|
+
export declare function isFilesRef(value: defs.Value | undefined): value is defs.FilesRef;
|
|
136
|
+
export declare function isScanRef(value: defs.Value | undefined): value is defs.ScanRef;
|
|
137
|
+
export declare function isGeometryRef(value: defs.Value | undefined): value is defs.GeometryRef;
|
|
138
|
+
export declare function isItemsRef(value: defs.Value | undefined): value is defs.ItemsRef;
|
|
139
|
+
/** @product This is intended for internal use only within VertiGIS Studio products. */
|
|
140
|
+
export declare function isNumberRef(value: defs.Value | undefined): value is defs.NumberRef;
|
|
141
|
+
/** @product This is intended for internal use only within VertiGIS Studio products. */
|
|
142
|
+
export declare function sanitizeGeometryRef(value: defs.Value | undefined): defs.GeometryRef | undefined;
|
|
143
|
+
/** @product This is intended for internal use only within VertiGIS Studio products. */
|
|
144
|
+
export declare function createGeometryRef(format: defs.GeometryFormat): defs.GeometryRef;
|
|
145
|
+
export interface DebounceResult {
|
|
146
|
+
/** Invoke the scheduled function immediately, without any further delay. */
|
|
147
|
+
now: () => void;
|
|
148
|
+
/** Do not invoke the scheduled function at all. */
|
|
149
|
+
cancel: () => void;
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Creates a debounced function that will invoke the given function
|
|
153
|
+
* only after the function has not been called for the duration of the delay.
|
|
154
|
+
* @param func The function to invoke.
|
|
155
|
+
* @param delay The delay to wait (in milliseconds) before invoking the function.
|
|
156
|
+
*/
|
|
157
|
+
export declare function debounce(fn: Function, delay?: number): (this: any) => DebounceResult;
|
|
158
|
+
/**
|
|
159
|
+
* Creates a throttled function that will invoke the given
|
|
160
|
+
* function at most once per the given delay.
|
|
161
|
+
* @param func The function to invoke.
|
|
162
|
+
* @param delay The delay to wait (in milliseconds) before invoking the function again.
|
|
163
|
+
*/
|
|
164
|
+
export declare function throttle(func: Function, delay?: number): (this: any) => void;
|
|
165
|
+
/**
|
|
166
|
+
* Determines whether a value is numeric, i.e. a number or a numeric string.
|
|
167
|
+
* @param value The value to check.
|
|
168
|
+
*/
|
|
169
|
+
export declare function isNumeric(value: unknown): boolean;
|
|
170
|
+
export declare function getElementProps(component: FormComponent, element: defs.Element): FormElementProps;
|
|
171
|
+
/**
|
|
172
|
+
* Gets the id of an item from a Record<string, defs.Item>.
|
|
173
|
+
* @param item The item to find.
|
|
174
|
+
* @param items The items to look through.
|
|
175
|
+
* @returns The key corresponding to the item, or undefined if no match was found.
|
|
176
|
+
*/
|
|
177
|
+
export declare function getItemId(item: defs.Item | null | undefined, items: Record<string, defs.Item>): string | undefined;
|
package/forms/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as text from"./textUtilities.js";const DEFAULT_THROTTLE_DELAY=100;let next=0,seed=(new Date).valueOf();const guid="5DDC9A38-AAAB-44C1-AD87-415160F43D75";function makeId(){return 2147483648<=next&&(seed=(new Date).valueOf(),next=0),`${guid}:${seed}:${next++}`}function indexOf(e,t){if(null!=e){e=e.index;return"number"==typeof e?e:t}}function compareIndex(e,t){return compareNumber(e.index,t.index)}function compareNumber(e,t){return e<t?-1:t<e?1:0}function sortAndFilter(e,t){void 0===t&&(t=indexOf);const n={};if("object"!=typeof e||null===e)return n;let
|
|
1
|
+
import{FormElementTypes}from"./constants.js";import*as text from"./textUtilities.js";const DEFAULT_DEBOUNCE_DELAY=300,DEFAULT_THROTTLE_DELAY=100;let next=0,seed=(new Date).valueOf();const guid="5DDC9A38-AAAB-44C1-AD87-415160F43D75";function makeId(){return 2147483648<=next&&(seed=(new Date).valueOf(),next=0),`${guid}:${seed}:${next++}`}function indexOf(e,t){if(null!=e){e=e.index;return"number"==typeof e?e:t}}function compareIndex(e,t){return compareNumber(e.index,t.index)}function compareNumber(e,t){return e<t?-1:t<e?1:0}function sortAndFilter(e,t){void 0===t&&(t=indexOf);const n={};if("object"!=typeof e||null===e)return n;let i=0;const r=[];for(const a in e){var s=e[a],o=t(s,i++);"number"==typeof o&&r.push({key:a,index:o,item:s})}for(const c of r.sort(compareIndex))n[c.key]=c.item;return n}function inspectItems(e,t,n){let i;var r=sortAndFilter(t,function(e,t){if(null!=e&&!1!==e.visible){e=e.index;return"number"==typeof e?e:t}});if(void 0===(e=null==e||void 0===r[e]?void 0:e)&&null!=n)for(const s in r){if(r[s].value===n){e=s;break}e=void 0}return n=void 0!==e?(i=r[e].label,r[e].value):i=void 0,{current:e,items:r,label:i,value:n}}function stripClassName(e,t){return e.className.split(" ").filter(e=>0<e.length&&e!==t).join(" ")}function makeSafeClassName(e){return`gcx-forms-${e?.replace(/[\W]/g,"")||"element"}`}let idSuffix=0;function makeUniqueId(e){return`${makeSafeClassName(e)}-${++idSuffix}`}function addClass(e,t){void 0!==e.classList?e.classList.add(t):e.className=stripClassName(e,t)+" "+t}function removeClass(e,t){void 0!==e.classList?e.classList.remove(t):e.className=stripClassName(e,t)}function setClass(e,t,n){(n?addClass:removeClass)(e,t)}function isObjectType(e,t){return"object"==typeof e&&null!==e&&(!Array.isArray(e)&&e.refValueType===t)}function isSection(e){return e?.type===FormElementTypes.SECTION}function isAccordionSection(e){return isSection(e)&&"accordion-section"===e.format}function isCollapsibleSection(e){return isSection(e)&&"collapsible-section"===e.format}function isBoolean(e){return"boolean"==typeof e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isDataRef(e){return isObjectType(e,"data")}function isDateRangeRef(e){return isObjectType(e,"daterange")}function isDateTimeRef(e){return isObjectType(e,"date")||isObjectType(e,"time")||isObjectType(e,"datetime")}function isFilesRef(e){return isObjectType(e,"files")}function isScanRef(e){return isObjectType(e,"scan")}function isGeometryRef(e){return isObjectType(e,"geometry")}function isItemsRef(e){return isObjectType(e,"items")}function isNumberRef(e){return isObjectType(e,"number")}function sanitizeGeometryRef(e){if(isGeometryRef(e)){var t=e.geometry;if(Array.isArray(t)&&0<t.length)switch(e.format){case"point":case"polygon":case"polyline":case"polygon-freehand":case"polyline-freehand":case"extent":case"line":return e}}}function createGeometryRef(e){return{refValueType:"geometry",format:e,geometry:[]}}function debounce(i,r=DEFAULT_DEBOUNCE_DELAY){let s;return function(){function e(){s=void 0,i.apply(t,n)}const t=this,n=arguments;return clearTimeout(s),s=setTimeout(e,r),{now:()=>{s&&(clearTimeout(s),e())},cancel:()=>{s&&(clearTimeout(s),s=void 0)}}}}function throttle(r,s=DEFAULT_THROTTLE_DELAY){let o,a;return function(){const e=this,t=arguments;function n(){a=void 0,o=Date.now(),r.apply(e,t)}var i=Date.now();o&&i<o+s?(clearTimeout(a),a=setTimeout(n,s)):n()}}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}const HostMap=new WeakMap;function getElementProps(e,t){var{enabled:n,id:i,raiseEvent:r,setItemProperty:s,setProperty:o,setValue:a}=e;const c=e.props["host"];let u=HostMap.get(c);u||(u={coerceNumber:c.coerceNumber.bind(c),deriveLocale:c.deriveLocale.bind(c),displayDialog:c.displayDialog.bind(c),formatNumber:c.formatNumber.bind(c),hasInvalidChild:c.hasInvalidChild.bind(c),refs:c.refs,renderFocus:c.renderFocus.bind(c),renderState:c.renderState.bind(c),renderText:c.renderText.bind(c),translateText:c.translateText.bind(c),updateAccordionSections:c.updateAccordionSections.bind(c)},HostMap.set(c,u));var{format:l,manualEntry:f,showMinMaxLabels:d,showTickMarks:m,size:p,type:y,value:b,wrap:T}=t;return{...t,enabled:!!n,id:i,raiseEvent:r,setItemProperty:s,setProperty:o,setValue:a,format:l,manualEntry:f,showMinMaxLabels:d,showTickMarks:m,size:p,type:y,value:b,wrap:T,coerceNumber:u.coerceNumber,displayDialog:u.displayDialog,deriveLocale:u.deriveLocale,formatNumber:u.formatNumber,hasInvalidChild:u.hasInvalidChild,refs:u.refs,renderFocus:u.renderFocus,renderState:u.renderState,renderText:u.renderText,translateText:u.translateText,updateAccordionSections:u.updateAccordionSections,element:t,name:e.props.name,component:e}}function getItemId(e,t){if(e)for(const n in t)if(t[n]===e)return n}export{text,makeId,sortAndFilter,inspectItems,makeSafeClassName,makeUniqueId,addClass,removeClass,setClass,isSection,isAccordionSection,isCollapsibleSection,isBoolean,isNumber,isString,isDataRef,isDateRangeRef,isDateTimeRef,isFilesRef,isScanRef,isGeometryRef,isItemsRef,isNumberRef,sanitizeGeometryRef,createGeometryRef,debounce,throttle,isNumeric,getElementProps,getItemId};
|
package/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type { IActivityHandler } from "./IActivityHandler";
|
|
2
|
-
export type { FormElementProps, FormElementSettableProps, PropertyChangeEvent, FormElementRegistration, } from "./forms/index";
|
|
1
|
+
export type { IActivityHandler } from "./IActivityHandler";
|
|
2
|
+
export type { FormElementProps, FormElementSettableProps, PropertyChangeEvent, FormElementRegistration, } from "./forms/index";
|
package/libs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "5.
|
|
1
|
+
export declare const VERSION = "5.37.0+41";
|
package/libs/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const VERSION="5.
|
|
1
|
+
const VERSION="5.37.0+41";export{VERSION};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/licensing/Watermark.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface WatermarkProps {
|
|
3
|
-
hide: () => void;
|
|
4
|
-
message: string;
|
|
5
|
-
}
|
|
6
|
-
declare const Watermark: ({ hide, message }: WatermarkProps) => JSX.Element;
|
|
7
|
-
export default Watermark;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface WatermarkProps {
|
|
3
|
+
hide: () => void;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
declare const Watermark: ({ hide, message }: WatermarkProps) => JSX.Element;
|
|
7
|
+
export default Watermark;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vertigis/workflow",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.37.0",
|
|
4
4
|
"author": "VertiGIS",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@zxing/library": "^0.20.0",
|
|
@@ -12,31 +12,29 @@
|
|
|
12
12
|
},
|
|
13
13
|
"type": "module",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@arcgis/core": "
|
|
16
|
-
"@types/arcgis-js-api": "^4.24.0",
|
|
15
|
+
"@arcgis/core": "4.28.10",
|
|
17
16
|
"@types/autosuggest-highlight": "^3.2.0",
|
|
18
17
|
"@types/jest": "^29.2.3",
|
|
19
18
|
"@types/react": "^17.0.53",
|
|
20
19
|
"@types/react-dom": "^17.0.18",
|
|
21
20
|
"@vertigis-internal/licensing": "^5.0.102865",
|
|
22
|
-
"@vertigis/react-ui": "
|
|
21
|
+
"@vertigis/react-ui": "12.3.0",
|
|
23
22
|
"cross-env": "7.0.3",
|
|
24
|
-
"jest": "29.
|
|
25
|
-
"jest-environment-jsdom": "^29.
|
|
23
|
+
"jest": "^29.7.0",
|
|
24
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
26
25
|
"jest-junit": "^15.0.0",
|
|
27
26
|
"jest-runtime": "^29.3.1",
|
|
28
27
|
"nock": "^13.2.9",
|
|
29
28
|
"node-fetch": "^3.3.0",
|
|
30
29
|
"react": "^17.0.2",
|
|
31
30
|
"react-dom": "^17.0.2",
|
|
32
|
-
"ts-jest": "^29.
|
|
31
|
+
"ts-jest": "^29.1.1",
|
|
33
32
|
"tslib": "^2.3.1",
|
|
34
|
-
"typescript": "
|
|
35
|
-
"typescript-strict-plugin": "^2.1.0"
|
|
33
|
+
"typescript": "5.2.2"
|
|
36
34
|
},
|
|
37
35
|
"peerDependencies": {
|
|
38
|
-
"@arcgis/core": ">= 4.
|
|
39
|
-
"@vertigis/react-ui": ">=
|
|
36
|
+
"@arcgis/core": ">= 4.28.10 < 5.0.0",
|
|
37
|
+
"@vertigis/react-ui": ">= 12.0.0-0 < 13.0.0-0",
|
|
40
38
|
"react": ">= 17 < 19",
|
|
41
39
|
"react-dom": ">= 17 < 19"
|
|
42
40
|
},
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const WFStorage = "__WFStorage__";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const WFStorage="__WFStorage__";export{WFStorage};
|