@vertigis/workflow 5.36.0 → 5.37.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ActivityAbortedError}from"../../Errors.js";import{FormHost,defs}from"../../forms/FormHost.js";import{FormElementTypes}from"../../forms/constants.js";import{
|
|
1
|
+
import{ActivityAbortedError}from"../../Errors.js";import{FormHost,defs}from"../../forms/FormHost.js";import{FormElementTypes}from"../../forms/constants.js";import{getContent}from"../../forms/textUtilities.js";import{text}from"../../forms/utils.js";import{FormElementNotFoundError,NoFormElementAvailableError}from"./Errors.js";function toMarkdownRef(e,t){return"string"!=typeof t?t:{markdown:t}}const guid="F889738A-EBE2-4D52-8B46-3E24CC6E30F6:";class FormRenderer extends FormHost{static create(){return new this}static createCustom(){const e=new this;return e.custom=!0,e}static register(e){e.factories.push(e=>e===this.type?this:void 0)}addElement(e,t,r){if(this.form.elements.hasOwnProperty(e))throw new Error(`Element already present: ${e}`);const n={};if("object"==typeof r)for(const s in r)n[s]=r[s];n.type=t;t=n.section;if(t){let e;if("object"==typeof t?e=t.name:"string"==typeof t&&(e=t),"header"===e||"footer"===e)throw new Error("Elements cannot be added to the header or footer.")}return this.form.elements[e]=n,this.invalidate(),n}assignElementProperty(t,r,n,e=!1,s=!0){e&&(n=toMarkdownRef(r,n));const o=this.getElement(t);if(o[r]!==n){const i={},a=this.getElementRegistration(o);if(a?.onPropertyChange)try{const m=(e,t)=>{i[e]!==t&&(i[e]=t,a.onPropertyChange({properties:{...o,...i},property:e,setProperty:m}))};m(r,n)}catch(e){throw console.error(`Error setting element property.\nElement: "${t}"\nProperty: "${r}"\nValue: ${n}\n`,e),e}else i[r]=n;for(const l of Object.keys(i))o[l]=i[l];a&&"value"in i&&!1!==s&&(t={..."object"==typeof s?s:{},name:t,value:i.value},this.post("changed",t)),this.refresh()}}assignElementItemProperty(e,t,r,n,s){const o=this.getElement(e);o.items[t][r]=s?toMarkdownRef(r,n):n,this.refresh(e)}assignItemsToElement(e,t,r){const n=this.getElement(e);let s=n.items||{};!1!==r&&(s={});for(const o in t)s[o]=t[o];n.items=s,n.type!==FormElementTypes.GEOMETRYPICKER&&n.type!==FormElementTypes.ITEMPICKER||delete n.state,this.invalidate(e)}cancelTool(){}deriveLocale(){return this.state?.locale||super.deriveLocale()}dispose(){if(super.dispose()){const e=this.state;return void 0!==e&&null!==e&&e.completion.isPending()&&e.reject(new ActivityAbortedError),!0}return!1}filterItems(e,t){const r=this.find(e);if(void 0===r||null===r)return!1;var n=r.items;if(null==n)return!1;if("string"!=typeof t)return t;let s=!1;const o={};var i=t.toLowerCase().split(/\s+/);for(const l in n){var a=n[l];const f=this.renderText(a.label);var m=f.toLowerCase().split(/\s+/);for(const c of i)if(0<c.length)for(const h of m)0<h.length&&0===h.indexOf(c)&&(s=!0,o[l]=a)}return r.items=o,this.invalidate(e),s}getElement(e,t){let r;if(e){if("string"!=typeof e)return e;r=e}else t?.name&&(r=t.name);if(r){t=this.form.elements[r];if(!t)throw new FormElementNotFoundError(r);return t}throw new NoFormElementAvailableError}getElementName(e,t){if(e){if("string"==typeof e)return e;for(const r in this.form.elements)if(this.form.elements[r]===e)return r;throw new FormElementNotFoundError(e)}if(t?.name)return t.name;throw new NoFormElementAvailableError}getElementRegistration(e){return this.state?.trivia?.getFormElementRegistration?.(e.customType??e.type)}getText(e){var t=this.state;if(void 0!==t){const r=t.environment.getText;if("function"==typeof r){if(text.isMarkdown(e))return{markdown:r(e.markdown)};if(text.isStatus(e))return{markdown:r(`@form-element-status-${e.status}`)};if(e&&"@"===e[0]){t=r(e);if(t)return t}}}return e}hideElement(e){e.visible=!1,this.invalidate()}isRelated(e){return this.state&&this.state.trivia&&this.state.trivia.isDescendantOf&&this.state.trivia.isDescendantOf(e.state)}load(e,t){t=super.load(e,t);if(t&&this.form?.elements)for(const n in this.form.elements){var r=this.form.elements[n];const s=this.getElementRegistration(r);s&&s.getInitialProperties&&(r={...r,...s.getInitialProperties()},this.form.elements[n]=r)}return t}renderHtml(e,t){return super.renderHtml(this.getText(e),t)}renderText(e){return super.renderText(this.getText(e))}setCurrentItem(e,t,r){const s=this.getElement(e);if(!s||!s.items)return!1;let n;switch(r){case"index":n=(e,t,r)=>{var n=Object.keys(s.items);return 0<n.length&&e===n[r]};break;case"item":n=(e,t,r)=>r===t;break;case"key":n=(e,t,r)=>r===e;break;case"label":n=(e,t,r)=>getContent(r)===getContent(t.label);break;case"value":n=(e,t,r)=>r===t.value;break;default:throw new Error("Unsupported value for itemMatchType: "+r)}for(const o in s.items)if(n(o,s.items[o],t))return s.current=o,[FormElementTypes.AUTOCOMPLETE,FormElementTypes.DROPDOWNLIST,FormElementTypes.RADIOGROUP].includes(s.type)&&(s.label=s.items[o].label,s.value=s.items[o].value),this.invalidate(e),this.cascade(e),!0;return!1}setElementError(e,t,r=!1){this.errors[e]=r?toMarkdownRef("error",t):t}showElement(e){e.visible=!0,this.invalidate()}spinNoBlock(){return this.spin()}translateText(e){return super.translateText(this.getText(e))}}FormRenderer.type=guid+"FormRenderer";export{defs,FormRenderer};
|
|
@@ -1,50 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
static readonly
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
* @param
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
* @param
|
|
29
|
-
* @
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* @param
|
|
38
|
-
* @param
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
private
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
+
import { Item } from "../../forms/FormDefinition";
|
|
3
|
+
export interface GetFormElementItemsFromCollectionInputs {
|
|
4
|
+
/** The collection to be converted to the items collection. */
|
|
5
|
+
collection: any[];
|
|
6
|
+
/** The name of the field used to populate the items' labels. If not provided, the item itself will be used as the label. */
|
|
7
|
+
labelFieldName?: string;
|
|
8
|
+
/** The name of the field used to populate the items' values. If not provided, the item itself is used in a DataRef object. */
|
|
9
|
+
valueFieldName?: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetFormElementItemsFromCollectionOutputs {
|
|
12
|
+
/** The result items collection. */
|
|
13
|
+
items: Record<string, Item>;
|
|
14
|
+
}
|
|
15
|
+
export declare class GetFormElementItemsFromCollection implements IActivityHandler {
|
|
16
|
+
static readonly action = "gcx:wf:forms::GetFormElementItemsFromCollection";
|
|
17
|
+
static readonly suite = "gcx:wf:builtin";
|
|
18
|
+
/**
|
|
19
|
+
* Checks if there is a field name that matches the supplied label.
|
|
20
|
+
* @param label The label input to be checked.
|
|
21
|
+
* @param propertyNames The names of all valid properties.
|
|
22
|
+
*/
|
|
23
|
+
private _isLabelFieldName;
|
|
24
|
+
/**
|
|
25
|
+
* Returns the property name to use based on the supplied value.
|
|
26
|
+
* If no match is found, `undefined` is returned.
|
|
27
|
+
* @param propertyName The user-input name of the property.
|
|
28
|
+
* @param propertyNames The names of all valid properties.
|
|
29
|
+
* @returns The name of the matching field, or `undefined` if no match was found.
|
|
30
|
+
*/
|
|
31
|
+
private _getPropertyName;
|
|
32
|
+
/**
|
|
33
|
+
* Attempt to get the value of the specified property.
|
|
34
|
+
* If no match is found, `undefined` is returned.
|
|
35
|
+
* Values of `null` and `undefined` are converted to empty strings to prevent confusion with a "no match found" result.
|
|
36
|
+
* @param propertyName The user-input name of the property.
|
|
37
|
+
* @param propertyNames The names of all valid properties.
|
|
38
|
+
* @param item An item from the collection.
|
|
39
|
+
*/
|
|
40
|
+
private _getPropertyValue;
|
|
41
|
+
private _getTokenValues;
|
|
42
|
+
/**
|
|
43
|
+
* Gets all of the property names that are valid for the specified object.
|
|
44
|
+
* We can't simply rely on `Object.keys(obj)` as it could be inheriting properties.
|
|
45
|
+
* Instead, we check every prototype.
|
|
46
|
+
*/
|
|
47
|
+
private getPropertyNames;
|
|
48
|
+
execute(inputs: GetFormElementItemsFromCollectionInputs, context: IActivityContext): GetFormElementItemsFromCollectionOutputs;
|
|
49
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as TemplateUtils from"../../TemplateUtils.js";import{validation}from"../../Validation.js";import{text}from"../../forms/utils.js";class GetFormElementItemsFromCollection{_isLabelFieldName(e,t){return null!=e&&0!==t.length&&e===this._getPropertyName(e,t)}_getPropertyName(e,t){return t.includes(e)?e:void 0}_getPropertyValue(e,t,l){
|
|
1
|
+
import*as TemplateUtils from"../../TemplateUtils.js";import{validation}from"../../Validation.js";import{text}from"../../forms/utils.js";class GetFormElementItemsFromCollection{_isLabelFieldName(e,t){return null!=e&&0!==t.length&&e===this._getPropertyName(e,t)}_getPropertyName(e,t){return t.includes(e)?e:void 0}_getPropertyValue(e,t,l){t=this._getPropertyName(e,t);return t?TemplateUtils.valueOrEmptyString(l[t]):void 0}_getTokenValues(e,t,l){const o={};for(const i of e){var r,a=i.token;o.hasOwnProperty(a)||(r=this._getPropertyValue(a,t,l),r=TemplateUtils.getTokenValueString(a,r),o[a]=text.escapeTextForMarkdown(r))}return o}getPropertyNames(e){const t=[];if(!e)return t;for(const l in e)"function"!=typeof e[l]&&t.push(l);return t}execute(l,e){var o=l.labelFieldName||void 0,r=validation.array("collection",l.collection,validation.never);const a={};var i=0<r.length?this.getPropertyNames(r[0]):[],n=this._isLabelFieldName(o,i),s=n?[]:TemplateUtils.findTokenInstances(o);for(let t=0;t<r.length;++t){var m,c=r[t];let e;e=n?c[l.labelFieldName]:o?(m=this._getTokenValues(s,i,c),TemplateUtils.replacePlaceholders(o,s,m)):c,void 0!==e&&null!==e||(e="");const u={};l.valueFieldName?u.value=c[l.valueFieldName]:u.value={refValueType:"data",type:"object",data:c},text.isMarkdown(e)?u.label=e:u.label=e.toString(),a[t]=u}return{items:a}}}GetFormElementItemsFromCollection.action="gcx:wf:forms::GetFormElementItemsFromCollection",GetFormElementItemsFromCollection.suite="gcx:wf:builtin";export{GetFormElementItemsFromCollection};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface GetFormElementPropertyInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The name of the form element. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
/** The name of the element property to get. */
|
|
9
|
-
name: string;
|
|
10
|
-
}
|
|
11
|
-
export interface GetFormElementPropertyOutputs {
|
|
12
|
-
/** The value of the property. */
|
|
13
|
-
value: any;
|
|
14
|
-
}
|
|
15
|
-
export declare class GetFormElementProperty implements IActivityHandler {
|
|
16
|
-
static readonly action = "gcx:wf:forms::GetFormElementProperty";
|
|
17
|
-
static readonly suite = "gcx:wf:builtin";
|
|
18
|
-
execute(inputs: GetFormElementPropertyInputs, context: IActivityContext): GetFormElementPropertyOutputs;
|
|
19
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface GetFormElementPropertyInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The name of the form element. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
/** The name of the element property to get. */
|
|
9
|
+
name: string;
|
|
10
|
+
}
|
|
11
|
+
export interface GetFormElementPropertyOutputs {
|
|
12
|
+
/** The value of the property. */
|
|
13
|
+
value: any;
|
|
14
|
+
}
|
|
15
|
+
export declare class GetFormElementProperty implements IActivityHandler {
|
|
16
|
+
static readonly action = "gcx:wf:forms::GetFormElementProperty";
|
|
17
|
+
static readonly suite = "gcx:wf:builtin";
|
|
18
|
+
execute(inputs: GetFormElementPropertyInputs, context: IActivityContext): GetFormElementPropertyOutputs;
|
|
19
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface GetFormElementValueInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The name of the form element. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
}
|
|
9
|
-
export interface GetFormElementValueOutputs {
|
|
10
|
-
/** The value of the form element. */
|
|
11
|
-
value: any;
|
|
12
|
-
}
|
|
13
|
-
export declare class GetFormElementValue implements IActivityHandler {
|
|
14
|
-
static readonly action = "gcx:wf:forms::GetFormElementValue";
|
|
15
|
-
static readonly suite = "gcx:wf:builtin";
|
|
16
|
-
execute(inputs: GetFormElementValueInputs, context: IActivityContext): GetFormElementValueOutputs;
|
|
17
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface GetFormElementValueInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The name of the form element. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
}
|
|
9
|
+
export interface GetFormElementValueOutputs {
|
|
10
|
+
/** The value of the form element. */
|
|
11
|
+
value: any;
|
|
12
|
+
}
|
|
13
|
+
export declare class GetFormElementValue implements IActivityHandler {
|
|
14
|
+
static readonly action = "gcx:wf:forms::GetFormElementValue";
|
|
15
|
+
static readonly suite = "gcx:wf:builtin";
|
|
16
|
+
execute(inputs: GetFormElementValueInputs, context: IActivityContext): GetFormElementValueOutputs;
|
|
17
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
3
|
-
export interface GetFormEventDataInputs {
|
|
4
|
-
form: DisplayFormOutputs;
|
|
5
|
-
}
|
|
6
|
-
export interface GetFormEventDataOutputs {
|
|
7
|
-
elementId?: string;
|
|
8
|
-
itemId?: string;
|
|
9
|
-
type?: string;
|
|
10
|
-
argument?: any;
|
|
11
|
-
value?: any;
|
|
12
|
-
}
|
|
13
|
-
export declare class GetFormEventData implements IActivityHandler {
|
|
14
|
-
static readonly action = "gcx:wf:forms::GetFormEventData";
|
|
15
|
-
static readonly suite = "gcx:wf:builtin";
|
|
16
|
-
execute(inputs: GetFormEventDataInputs): GetFormEventDataOutputs;
|
|
17
|
-
}
|
|
1
|
+
import { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
3
|
+
export interface GetFormEventDataInputs {
|
|
4
|
+
form: DisplayFormOutputs;
|
|
5
|
+
}
|
|
6
|
+
export interface GetFormEventDataOutputs {
|
|
7
|
+
elementId?: string;
|
|
8
|
+
itemId?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
argument?: any;
|
|
11
|
+
value?: any;
|
|
12
|
+
}
|
|
13
|
+
export declare class GetFormEventData implements IActivityHandler {
|
|
14
|
+
static readonly action = "gcx:wf:forms::GetFormEventData";
|
|
15
|
+
static readonly suite = "gcx:wf:builtin";
|
|
16
|
+
execute(inputs: GetFormEventDataInputs): GetFormEventDataOutputs;
|
|
17
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface HideFormElementInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element to hide. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
}
|
|
9
|
-
export declare class HideFormElement implements IActivityHandler {
|
|
10
|
-
static readonly action = "gcx:wf:forms::HideFormElement";
|
|
11
|
-
static readonly suite = "gcx:wf:builtin";
|
|
12
|
-
execute(inputs: HideFormElementInputs): EmptyOutputs;
|
|
13
|
-
}
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface HideFormElementInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The ID of the form element to hide. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
}
|
|
9
|
+
export declare class HideFormElement implements IActivityHandler {
|
|
10
|
+
static readonly action = "gcx:wf:forms::HideFormElement";
|
|
11
|
+
static readonly suite = "gcx:wf:builtin";
|
|
12
|
+
execute(inputs: HideFormElementInputs): EmptyOutputs;
|
|
13
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { EmptyOutputs, IActivityHandler } from "../../IActivityHandler";
|
|
2
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
3
|
-
export interface ControlEventInputs {
|
|
4
|
-
form: DisplayFormOutputs;
|
|
5
|
-
}
|
|
6
|
-
export declare class PropagateFormEvent implements IActivityHandler {
|
|
7
|
-
static readonly action = "gcx:wf:forms::PropagateFormEvent";
|
|
8
|
-
static readonly suite = "gcx:wf:builtin";
|
|
9
|
-
execute(inputs: ControlEventInputs): EmptyOutputs;
|
|
10
|
-
}
|
|
1
|
+
import { EmptyOutputs, IActivityHandler } from "../../IActivityHandler";
|
|
2
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
3
|
+
export interface ControlEventInputs {
|
|
4
|
+
form: DisplayFormOutputs;
|
|
5
|
+
}
|
|
6
|
+
export declare class PropagateFormEvent implements IActivityHandler {
|
|
7
|
+
static readonly action = "gcx:wf:forms::PropagateFormEvent";
|
|
8
|
+
static readonly suite = "gcx:wf:builtin";
|
|
9
|
+
execute(inputs: ControlEventInputs): EmptyOutputs;
|
|
10
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface SetCurrentFormElementItemInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element to update. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
matchType: "index" | "item" | "key" | "label" | "value" | string;
|
|
9
|
-
value: any;
|
|
10
|
-
}
|
|
11
|
-
export interface SetCurrentFormElementItemOutputs {
|
|
12
|
-
result: boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class SetCurrentFormElementItem implements IActivityHandler {
|
|
15
|
-
static readonly action = "gcx:wf:forms::SetCurrentFormElementItem";
|
|
16
|
-
static readonly suite = "gcx:wf:builtin";
|
|
17
|
-
execute(inputs: SetCurrentFormElementItemInputs): SetCurrentFormElementItemOutputs;
|
|
18
|
-
}
|
|
1
|
+
import { IActivityHandler } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface SetCurrentFormElementItemInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The ID of the form element to update. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
matchType: "index" | "item" | "key" | "label" | "value" | string;
|
|
9
|
+
value: any;
|
|
10
|
+
}
|
|
11
|
+
export interface SetCurrentFormElementItemOutputs {
|
|
12
|
+
result: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class SetCurrentFormElementItem implements IActivityHandler {
|
|
15
|
+
static readonly action = "gcx:wf:forms::SetCurrentFormElementItem";
|
|
16
|
+
static readonly suite = "gcx:wf:builtin";
|
|
17
|
+
execute(inputs: SetCurrentFormElementItemInputs): SetCurrentFormElementItemOutputs;
|
|
18
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetCurrentFormElementItem{execute(e){var{matchType:t,value:
|
|
1
|
+
import{ActivityInputError}from"../../Errors.js";import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetCurrentFormElementItem{execute(e){var{matchType:t,value:r}=e;let{elementName:m,form:a}=e;switch("object"==typeof m&&(a=getFormForElement(m)),validation.exists("form",a),validation.string("matchType",t,validation.never),validation.exists("value",r),t){case"index":case"item":case"key":case"label":case"value":break;default:throw new ActivityInputError("matchOn",'The `matchOn` input must be "index", "item", "key", "label" or "value".')}e=a.actor.getElementName(m,a.event);return{result:a.actor.setCurrentItem(e,r,t)}}}SetCurrentFormElementItem.action="gcx:wf:forms::SetCurrentFormElementItem",SetCurrentFormElementItem.suite="gcx:wf:builtin";export{SetCurrentFormElementItem};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface SetFormElementErrorInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element to apply the error to. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
/** The error message to apply to the form element. */
|
|
9
|
-
error: string;
|
|
10
|
-
/** Controls when strings are interpreted as markdown. */
|
|
11
|
-
markdown?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare class SetFormElementError implements IActivityHandler {
|
|
14
|
-
static readonly action = "gcx:wf:forms::SetFormElementError";
|
|
15
|
-
static readonly suite = "gcx:wf:builtin";
|
|
16
|
-
execute(inputs: SetFormElementErrorInputs): EmptyOutputs;
|
|
17
|
-
}
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface SetFormElementErrorInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The ID of the form element to apply the error to. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
/** The error message to apply to the form element. */
|
|
9
|
+
error: string;
|
|
10
|
+
/** Controls when strings are interpreted as markdown. */
|
|
11
|
+
markdown?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class SetFormElementError implements IActivityHandler {
|
|
14
|
+
static readonly action = "gcx:wf:forms::SetFormElementError";
|
|
15
|
+
static readonly suite = "gcx:wf:builtin";
|
|
16
|
+
execute(inputs: SetFormElementErrorInputs): EmptyOutputs;
|
|
17
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
3
|
-
export interface SetFormElementEventInputs {
|
|
4
|
-
form: DisplayFormOutputs;
|
|
5
|
-
/** The id of the Display Form activity that contains the element to add the event to. */
|
|
6
|
-
displayFormId: string;
|
|
7
|
-
/** The ID of the form element to apply the event to. */
|
|
8
|
-
elementName?: string;
|
|
9
|
-
/** The name of the event to add to the Element. */
|
|
10
|
-
eventName: "cancel" | "changed" | "clicked" | "custom" | "dragged" | "load" | "populate" | "submit" | "suggest" | "validate" | string;
|
|
11
|
-
/** The id of the activity to be used as the event handler. This can be a Container, Subworkflow, or Try Catch. */
|
|
12
|
-
targetActivityId: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class SetFormElementEvent implements IActivityHandler {
|
|
15
|
-
static readonly action = "gcx:wf:forms::SetFormElementEvent";
|
|
16
|
-
static readonly suite = "gcx:wf:builtin";
|
|
17
|
-
execute(inputs: SetFormElementEventInputs, context: IActivityContext): EmptyOutputs;
|
|
18
|
-
}
|
|
1
|
+
import { IActivityHandler, IActivityContext, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
3
|
+
export interface SetFormElementEventInputs {
|
|
4
|
+
form: DisplayFormOutputs;
|
|
5
|
+
/** The id of the Display Form activity that contains the element to add the event to. */
|
|
6
|
+
displayFormId: string;
|
|
7
|
+
/** The ID of the form element to apply the event to. */
|
|
8
|
+
elementName?: string;
|
|
9
|
+
/** The name of the event to add to the Element. */
|
|
10
|
+
eventName: "cancel" | "changed" | "clicked" | "custom" | "dragged" | "load" | "populate" | "submit" | "suggest" | "validate" | string;
|
|
11
|
+
/** The id of the activity to be used as the event handler. This can be a Container, Subworkflow, or Try Catch. */
|
|
12
|
+
targetActivityId: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class SetFormElementEvent implements IActivityHandler {
|
|
15
|
+
static readonly action = "gcx:wf:forms::SetFormElementEvent";
|
|
16
|
+
static readonly suite = "gcx:wf:builtin";
|
|
17
|
+
execute(inputs: SetFormElementEventInputs, context: IActivityContext): EmptyOutputs;
|
|
18
|
+
}
|
|
@@ -1,21 +1,34 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface SetFormElementItemPropertyInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element bearing the items. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
/** The key of the item to modify. */
|
|
9
|
-
itemKey: string | number;
|
|
10
|
-
/** The name of the property to modify. */
|
|
11
|
-
propertyName: "checked" | "default" | "enabled" | "index" | "label" | "styleName" | "tooltip" | "validates" | "value" | "visible" | string;
|
|
12
|
-
/** The value of the property to assign. */
|
|
13
|
-
propertyValue: any;
|
|
14
|
-
/** Controls when strings are interpreted as markdown. */
|
|
15
|
-
markdown?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare class SetFormElementItemProperty implements IActivityHandler {
|
|
18
|
-
static readonly action = "gcx:wf:forms::SetFormElementItemProperty";
|
|
19
|
-
static readonly suite = "gcx:wf:builtin";
|
|
20
|
-
execute(inputs: SetFormElementItemPropertyInputs): EmptyOutputs;
|
|
21
|
-
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface SetFormElementItemPropertyInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The ID of the form element bearing the items. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
/** The key of the item to modify. */
|
|
9
|
+
itemKey: string | number;
|
|
10
|
+
/** The name of the property to modify. */
|
|
11
|
+
propertyName: "checked" | "default" | "enabled" | "index" | "label" | "styleName" | "tooltip" | "validates" | "value" | "visible" | string;
|
|
12
|
+
/** The value of the property to assign. */
|
|
13
|
+
propertyValue: any;
|
|
14
|
+
/** Controls when strings are interpreted as markdown. */
|
|
15
|
+
markdown?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class SetFormElementItemProperty implements IActivityHandler {
|
|
18
|
+
static readonly action = "gcx:wf:forms::SetFormElementItemProperty";
|
|
19
|
+
static readonly suite = "gcx:wf:builtin";
|
|
20
|
+
execute(inputs: SetFormElementItemPropertyInputs): EmptyOutputs;
|
|
21
|
+
/**
|
|
22
|
+
* This list is based on the data type of the property rather than how the content is rendered.
|
|
23
|
+
* In order to support markdown, a property needs to support the `MarkdownRef` data type,
|
|
24
|
+
* which is included in `Text`, defined in `FormDefinition`. If a Form Element subsequently
|
|
25
|
+
* passed this to `renderText()`, it would still handle the markdown appropriately. Styling would be stripped out
|
|
26
|
+
* and you would be left with readable text. For example "**hello** there" would become "hello there".
|
|
27
|
+
*
|
|
28
|
+
* On the other hand, properties that expect a `string` must not ever be set to a `MarkdownRef`
|
|
29
|
+
* as the element is not expected to perform any conversion on them.
|
|
30
|
+
* @param propertyName The name of the property to check
|
|
31
|
+
* @returns True if this property could accept markdown, false otherwise.
|
|
32
|
+
*/
|
|
33
|
+
private propertyAllowsMarkdown;
|
|
34
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetFormElementItemProperty{execute(e){var{propertyName:t,propertyValue:r,itemKey:o}=e;let{elementName:m,form:
|
|
1
|
+
import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetFormElementItemProperty{execute(e){var{propertyName:t,propertyValue:r,itemKey:o}=e;let{elementName:m,form:a}=e;"object"==typeof m&&(a=getFormForElement(m)),validation.exists("form",a),validation.exists("itemKey",o);let i=validation.string("itemKey",o,"");""===i&&(i=validation.number("itemKey",o,validation.never));o=i.toString();let n=validation.boolean("markdown",e.markdown);return void 0===n&&(n=this.propertyAllowsMarkdown(t)),m=a.actor.getElementName(m,a.event),a.actor.assignElementItemProperty(m,o,t,r,n),{}}propertyAllowsMarkdown(e){switch(e){case"label":case"tooltip":return!0;default:return!1}}}SetFormElementItemProperty.action="gcx:wf:forms::SetFormElementItemProperty",SetFormElementItemProperty.suite="gcx:wf:builtin";export{SetFormElementItemProperty};
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
items
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
static readonly
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { Item } from "../../forms/FormDefinition";
|
|
4
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
5
|
+
export interface SetFormElementItemsInputs {
|
|
6
|
+
form: DisplayFormOutputs;
|
|
7
|
+
/** The ID of the fom element to assign items to. */
|
|
8
|
+
elementName?: string | defs.Element;
|
|
9
|
+
/** The collection of items to assign to the element. */
|
|
10
|
+
items: Record<string, Item>;
|
|
11
|
+
/** Controls if the collection is cleared prior to assigning the items. */
|
|
12
|
+
reset?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class SetFormElementItems implements IActivityHandler {
|
|
15
|
+
static readonly action = "gcx:wf:forms::SetFormElementItems";
|
|
16
|
+
static readonly suite = "gcx:wf:builtin";
|
|
17
|
+
execute(inputs: SetFormElementItemsInputs): EmptyOutputs;
|
|
18
|
+
}
|
|
@@ -1,19 +1,32 @@
|
|
|
1
|
-
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
-
import * as defs from "../../forms/FormDefinition";
|
|
3
|
-
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
-
export interface SetFormElementPropertyInputs {
|
|
5
|
-
form: DisplayFormOutputs;
|
|
6
|
-
/** The ID of the form element to modify. */
|
|
7
|
-
elementName?: string | defs.Element;
|
|
8
|
-
/** The name of the element property to modify. */
|
|
9
|
-
propertyName: "accessibleDescription" | "autoActivate" | "checked" | "collapsed" | "current" | "delay" | "dependsOn" | "description" | "enabled" | "error" | "fileTypes" | "format" | "itemLabel" | "items" | "label" | "manualEntry" | "maxLength" | "minLength" | "orientation" | "prompt" | "readOnly" | "require" | "rowIndex" | "rowNumber" | "selectionMode" | "showFilter" | "showMinMaxLabels" | "showTickMarks" | "size" | "styleName" | "title" | "titleLocation" | "tooltip" | "type" | "validates" | "value" | "visible" | "wrap" | string;
|
|
10
|
-
/** The value to assign to the property. */
|
|
11
|
-
propertyValue: any;
|
|
12
|
-
/** Controls when strings are interpreted as markdown. */
|
|
13
|
-
markdown?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class SetFormElementProperty implements IActivityHandler {
|
|
16
|
-
static readonly action = "gcx:wf:forms::SetFormElementProperty";
|
|
17
|
-
static readonly suite = "gcx:wf:builtin";
|
|
18
|
-
execute(inputs: SetFormElementPropertyInputs): EmptyOutputs;
|
|
19
|
-
|
|
1
|
+
import { IActivityHandler, EmptyOutputs } from "../../IActivityHandler";
|
|
2
|
+
import * as defs from "../../forms/FormDefinition";
|
|
3
|
+
import { DisplayFormOutputs } from "./DisplayForm";
|
|
4
|
+
export interface SetFormElementPropertyInputs {
|
|
5
|
+
form: DisplayFormOutputs;
|
|
6
|
+
/** The ID of the form element to modify. */
|
|
7
|
+
elementName?: string | defs.Element;
|
|
8
|
+
/** The name of the element property to modify. */
|
|
9
|
+
propertyName: "accessibleDescription" | "autoActivate" | "checked" | "collapsed" | "current" | "delay" | "dependsOn" | "description" | "enabled" | "error" | "fileTypes" | "format" | "itemLabel" | "items" | "label" | "manualEntry" | "maxLength" | "minLength" | "orientation" | "prompt" | "readOnly" | "require" | "rowIndex" | "rowNumber" | "selectionMode" | "showFilter" | "showMinMaxLabels" | "showTickMarks" | "size" | "styleName" | "title" | "titleLocation" | "tooltip" | "type" | "validates" | "value" | "visible" | "wrap" | string;
|
|
10
|
+
/** The value to assign to the property. */
|
|
11
|
+
propertyValue: any;
|
|
12
|
+
/** Controls when strings are interpreted as markdown. */
|
|
13
|
+
markdown?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class SetFormElementProperty implements IActivityHandler {
|
|
16
|
+
static readonly action = "gcx:wf:forms::SetFormElementProperty";
|
|
17
|
+
static readonly suite = "gcx:wf:builtin";
|
|
18
|
+
execute(inputs: SetFormElementPropertyInputs): EmptyOutputs;
|
|
19
|
+
/**
|
|
20
|
+
* This list is based on the data type of the property rather than how the content is rendered.
|
|
21
|
+
* In order to support markdown, a property needs to support the `MarkdownRef` data type,
|
|
22
|
+
* which is included in `Text`, defined in `FormDefinition`. If a Form Element subsequently
|
|
23
|
+
* passed this to `renderText()`, it would still handle the markdown appropriately. Styling would be stripped out
|
|
24
|
+
* and you would be left with readable text. For example "**hello** there" would become "hello there".
|
|
25
|
+
*
|
|
26
|
+
* On the other hand, properties that expect a `string` must not ever be set to a `MarkdownRef`
|
|
27
|
+
* as the element is not expected to perform any conversion on them.
|
|
28
|
+
* @param propertyName The name of the property to check
|
|
29
|
+
* @returns True if this property could accept markdown, false otherwise.
|
|
30
|
+
*/
|
|
31
|
+
private propertyAllowsMarkdown;
|
|
32
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetFormElementProperty{execute(e){var{propertyName:t,propertyValue:r}=e;let{elementName:o,form:
|
|
1
|
+
import{validation}from"../../Validation.js";import{getFormForElement}from"./FormElementMap.js";class SetFormElementProperty{execute(e){var{propertyName:t,propertyValue:r}=e;let{elementName:o,form:a}=e;"object"==typeof o&&(a=getFormForElement(o)),validation.exists("form",a);let m=validation.boolean("markdown",e.markdown);return void 0===m&&(m=this.propertyAllowsMarkdown(t)),o=a.actor.getElementName(o,a.event),a.actor.assignElementProperty(o,t,r,m,!1),{}}propertyAllowsMarkdown(e){switch(e){case"description":case"error":case"itemLabel":case"label":case"prompt":case"title":case"tooltip":return!0;default:return!1}}}SetFormElementProperty.action="gcx:wf:forms::SetFormElementProperty",SetFormElementProperty.suite="gcx:wf:builtin";export{SetFormElementProperty};
|