@vertigis/workflow 5.44.0 → 5.45.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.
Files changed (104) hide show
  1. package/Activator.d.ts +1 -1
  2. package/Hooks.d.ts +2 -2
  3. package/IActivityHandler.d.ts +2 -2
  4. package/ProgramInspectorFacility.d.ts +1 -1
  5. package/ProgramInspectorFacility.js +1 -1
  6. package/TemplateUtils.js +1 -1
  7. package/Validation.d.ts +31 -31
  8. package/Validation.js +1 -1
  9. package/activities/arcgis/AddFeatureLayer.d.ts +1 -1
  10. package/activities/arcgis/AddFeatureLayer.js +1 -1
  11. package/activities/arcgis/AddFeatures.d.ts +1 -1
  12. package/activities/arcgis/ConvertValueToArcGisFieldType.d.ts +2 -2
  13. package/activities/arcgis/CreateGraphic.d.ts +1 -1
  14. package/activities/arcgis/DeleteFeatures.d.ts +1 -1
  15. package/activities/arcgis/FeatureSetFromJson.d.ts +1 -1
  16. package/activities/arcgis/GeometryFromJson.d.ts +1 -1
  17. package/activities/arcgis/GeoprocessingAsync.js +1 -1
  18. package/activities/arcgis/GetCurrentPosition.js +1 -1
  19. package/activities/arcgis/GetFormElementItemsFromFeatures.js +1 -1
  20. package/activities/arcgis/MapProvider.d.ts +40 -2
  21. package/activities/arcgis/MapProvider.js +1 -1
  22. package/activities/arcgis/ProjectServiceTask.d.ts +1 -1
  23. package/activities/arcgis/QueryTask.js +1 -1
  24. package/activities/arcgis/RelationServiceTask.js +1 -1
  25. package/activities/arcgis/RendererFromJson.d.ts +1 -1
  26. package/activities/arcgis/ResetAllLayerDefinitionExpressions.d.ts +10 -0
  27. package/activities/arcgis/ResetAllLayerDefinitionExpressions.js +1 -0
  28. package/activities/arcgis/ResetLayerDefinitionExpression.d.ts +24 -0
  29. package/activities/arcgis/ResetLayerDefinitionExpression.js +1 -0
  30. package/activities/arcgis/ReverseGeocode.d.ts +1 -1
  31. package/activities/arcgis/RunWorkflow.js +1 -1
  32. package/activities/arcgis/SetImageryLayerOptions.d.ts +2 -2
  33. package/activities/arcgis/SetMap.d.ts +1 -1
  34. package/activities/arcgis/SetMap.js +1 -1
  35. package/activities/arcgis/SymbolFromJson.d.ts +1 -1
  36. package/activities/arcgis/TypeChecking.d.ts +0 -7
  37. package/activities/arcgis/TypeChecking.js +1 -1
  38. package/activities/arcgis/UpdateFeatures.d.ts +1 -1
  39. package/activities/arcgis/libs/arcGisRestApi.d.ts +1 -1
  40. package/activities/arcgis/shared.d.ts +1 -1
  41. package/activities/arcgis/shared.js +1 -1
  42. package/activities/arcgis/tools.js +1 -1
  43. package/activities/constants.js +1 -1
  44. package/activities/core/ChannelProvider.d.ts +2 -2
  45. package/activities/core/ChannelProvider.js +1 -1
  46. package/activities/core/ConvertToJson.d.ts +1 -1
  47. package/activities/core/ExecuteFunction.js +1 -1
  48. package/activities/core/ForEach.d.ts +6 -5
  49. package/activities/core/FormatDate.d.ts +39 -1
  50. package/activities/core/FormatDate.js +1 -1
  51. package/activities/core/GetWorkflowInputs.d.ts +1 -1
  52. package/activities/core/ParseUrl.js +1 -1
  53. package/activities/core/SetProperty.d.ts +1 -1
  54. package/activities/core/TextReplace.js +1 -1
  55. package/activities/core/converters.d.ts +1 -1
  56. package/activities/essentials/RunEssentialsWorkflow.js +1 -1
  57. package/activities/forms/FormRenderer.js +1 -1
  58. package/activities/forms/GetFormElementItemsFromCollection.js +1 -1
  59. package/activities/forms/SetCurrentFormElementItem.js +1 -1
  60. package/activities/forms/SetFormElementEvent.js +1 -1
  61. package/activities/index.js +1 -1
  62. package/definition/ActivityInput.d.ts +1 -1
  63. package/definition/Program.d.ts +11 -6
  64. package/definition/ProgramInspector.d.ts +9 -2
  65. package/definition/ProgramInspector.js +1 -1
  66. package/execution/ActivityContext.js +1 -1
  67. package/execution/AmbientState.d.ts +5 -5
  68. package/execution/AmbientState.js +1 -1
  69. package/execution/AmbientStateProxy.d.ts +4 -4
  70. package/execution/Engine.d.ts +4 -4
  71. package/execution/Engine.js +1 -1
  72. package/execution/ModuleLoader.d.ts +1 -1
  73. package/forms/FormComponent.d.ts +1 -1
  74. package/forms/FormDefinition.d.ts +4 -4
  75. package/forms/FormHost.d.ts +2 -2
  76. package/forms/FormPresenterHost.d.ts +2 -2
  77. package/forms/components/AutoComplete.js +1 -1
  78. package/forms/components/ButtonBar.js +1 -1
  79. package/forms/components/CheckBox.js +1 -1
  80. package/forms/components/CheckGroup.js +1 -1
  81. package/forms/components/DateRangePicker.js +1 -1
  82. package/forms/components/DateTimePicker.js +1 -1
  83. package/forms/components/DateTimeTextField.js +1 -1
  84. package/forms/components/FormElement.js +1 -1
  85. package/forms/components/GeometryPicker.js +1 -1
  86. package/forms/components/ItemPicker.js +1 -1
  87. package/forms/components/Number.js +1 -1
  88. package/forms/components/NumberRangeSlider.js +1 -1
  89. package/forms/components/NumberSlider.js +1 -1
  90. package/forms/components/RadioGroup.js +1 -1
  91. package/forms/components/Scanner.js +1 -1
  92. package/forms/components/Section.js +1 -1
  93. package/forms/components/TextBox.js +1 -1
  94. package/forms/components/TimePicker.js +1 -1
  95. package/forms/customNumberFormat.js +1 -1
  96. package/forms/index.d.ts +2 -4
  97. package/forms/numberFormatter.js +1 -1
  98. package/forms/numberUtilities.js +1 -1
  99. package/forms/presenter.d.ts +3 -3
  100. package/forms/textUtilities.js +1 -1
  101. package/forms/utils.js +1 -1
  102. package/libs/version.d.ts +1 -1
  103. package/libs/version.js +1 -1
  104. package/package.json +8 -7
@@ -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 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};
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}[\t]{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.js CHANGED
@@ -1 +1 @@
1
- import{MuiPickersAdapterContext}from"@vertigis/react-ui/LocalizationProvider";import{useContext}from"react";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 i={};if("object"!=typeof e||null===e)return i;let n=0;const r=[];for(const c in e){var o=e[c],s=t(o,n++);"number"==typeof s&&r.push({key:c,index:s,item:o})}for(const a of r.sort(compareIndex))i[a.key]=a.item;return i}function inspectItems(e,t,i){let n;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!=i)for(const o in r){if(r[o].value===i){e=o;break}e=void 0}return i=void 0!==e?(n=r[e].label,r[e].value):n=void 0,{current:e,items:r,label:n,value:i}}function makeSafeClassName(e){return`gcx-forms-${e?.replace(/[\W]/g,"")||"element"}`}let idSuffix=0;function makeUniqueId(e){return`${makeSafeClassName(e)}-${++idSuffix}`}function addSuffix(e,t){return`${e}-${t}`}function getAccessibleDescriptionId(e){return addSuffix(e,"accessible-description")}function getDescriptionId(e){return addSuffix(e,"description")}function getInputId(e){return addSuffix(e,"input")}function getLabelId(e){return addSuffix(e,"label")}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 isFieldsetSection(e){return isSection(e)&&"fieldset-section"===e.format}function isMutuallyExclusiveSection(e){return isAccordionSection(e)||isTabSection(e)}function isTabSection(e){return isSection(e)&&"tab-section"===e.format}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"circle":case"extent":case"line":case"multipoint":case"point":case"polygon":case"polygon-freehand":case"polyline":case"polyline-freehand":return e}}}function createGeometryRef(e){return{refValueType:"geometry",format:e,geometry:[]}}function debounce(t,i=DEFAULT_DEBOUNCE_DELAY){let n;return function(){const e=()=>{n=void 0,t.apply(this,arguments)};return clearTimeout(n),n=setTimeout(e,i),{now:()=>{n&&(clearTimeout(n),e())},cancel:()=>{n&&(clearTimeout(n),n=void 0)}}}}function throttle(i,n=DEFAULT_THROTTLE_DELAY){let r,o;return function(){var e=Date.now(),t=()=>{o=void 0,r=Date.now(),i.apply(this,arguments)};r&&e<r+n?(clearTimeout(o),o=setTimeout(t,n)):t()}}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function getElementProps(e,t){var{enabled:i,id:n,raiseEvent:r,setItemProperty:o,setProperty:s,setValue:c}=e,{format:a,manualEntry:u,showMinMaxLabels:f,showTickMarks:l,size:m,type:d,value:p,wrap:y}=t;return{...t,enabled:!!i,id:n,raiseEvent:r,setItemProperty:o,setProperty:s,setValue:c,format:a,manualEntry:u,showMinMaxLabels:f,showTickMarks:l,size:m,type:d,value:p,wrap:y,element:t,name:e.props.name,component:e}}function getItemId(e,t){if(e)for(const i in t)if(t[i]===e)return i}function useLocale(){var e=useContext(MuiPickersAdapterContext)?.utils?.locale?.code;if(!e)throw new Error("Failed to detect locale. Ensure there is a LocalizationProvider in the ancestry of the component that is using this hook.");return e}export{text,makeId,sortAndFilter,inspectItems,makeSafeClassName,makeUniqueId,getAccessibleDescriptionId,getDescriptionId,getInputId,getLabelId,isSection,isAccordionSection,isCollapsibleSection,isFieldsetSection,isMutuallyExclusiveSection,isTabSection,isNumber,isString,isDataRef,isDateRangeRef,isDateTimeRef,isFilesRef,isScanRef,isGeometryRef,isItemsRef,isNumberRef,sanitizeGeometryRef,createGeometryRef,debounce,throttle,isNumeric,getElementProps,getItemId,useLocale};
1
+ import{MuiPickersAdapterContext}from"@vertigis/react-ui/LocalizationProvider";import{useContext}from"react";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 i={};if("object"!=typeof e||null===e)return i;let n=0;const r=[];for(const c in e){var o=e[c],s=t(o,n++);"number"==typeof s&&r.push({key:c,index:s,item:o})}for(const a of r.sort(compareIndex))i[a.key]=a.item;return i}function inspectItems(e,t,i){let n;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!=i)for(const o in r){if(r[o].value===i){e=o;break}e=void 0}return i=void 0!==e?(n=r[e].label,r[e].value):n=void 0,{current:e,items:r,label:n,value:i}}function makeSafeClassName(e){return`gcx-forms-${e?.replace(/[\W]/g,"")||"element"}`}let idSuffix=0;function makeUniqueId(e){return`${makeSafeClassName(e)}-${++idSuffix}`}function addSuffix(e,t){return`${e}-${t}`}function getAccessibleDescriptionId(e){return addSuffix(e,"accessible-description")}function getDescriptionId(e){return addSuffix(e,"description")}function getInputId(e){return addSuffix(e,"input")}function getLabelId(e){return addSuffix(e,"label")}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 isFieldsetSection(e){return isSection(e)&&"fieldset-section"===e.format}function isMutuallyExclusiveSection(e){return isAccordionSection(e)||isTabSection(e)}function isTabSection(e){return isSection(e)&&"tab-section"===e.format}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"circle":case"extent":case"line":case"multipoint":case"point":case"polygon":case"polygon-freehand":case"polyline":case"polyline-freehand":return e}}}function createGeometryRef(e){return{refValueType:"geometry",format:e,geometry:[]}}function debounce(t,i=DEFAULT_DEBOUNCE_DELAY){let n;return function(){const e=(...e)=>{n=void 0,t.apply(this,e)};return clearTimeout(n),n=setTimeout(e,i),{now:()=>{n&&(clearTimeout(n),e())},cancel:()=>{n&&(clearTimeout(n),n=void 0)}}}}function throttle(i,n=DEFAULT_THROTTLE_DELAY){let r,o;return function(){var e=Date.now(),t=(...e)=>{o=void 0,r=Date.now(),i.apply(this,e)};r&&e<r+n?(clearTimeout(o),o=setTimeout(t,n)):t()}}function isNumeric(e){return!isNaN(parseFloat(e))&&isFinite(e)}function getElementProps(e,t){var{enabled:i,id:n,raiseEvent:r,setItemProperty:o,setProperty:s,setValue:c}=e,{format:a,manualEntry:u,showMinMaxLabels:f,showTickMarks:l,size:m,type:d,value:p,wrap:y}=t;return{...t,enabled:!!i,id:n,raiseEvent:r,setItemProperty:o,setProperty:s,setValue:c,format:a,manualEntry:u,showMinMaxLabels:f,showTickMarks:l,size:m,type:d,value:p,wrap:y,element:t,name:e.props.name,component:e}}function getItemId(e,t){if(e)for(const i in t)if(t[i]===e)return i}function useLocale(){var e=useContext(MuiPickersAdapterContext)?.utils?.locale?.code;if(!e)throw new Error("Failed to detect locale. Ensure there is a LocalizationProvider in the ancestry of the component that is using this hook.");return e}export{text,makeId,sortAndFilter,inspectItems,makeSafeClassName,makeUniqueId,getAccessibleDescriptionId,getDescriptionId,getInputId,getLabelId,isSection,isAccordionSection,isCollapsibleSection,isFieldsetSection,isMutuallyExclusiveSection,isTabSection,isNumber,isString,isDataRef,isDateRangeRef,isDateTimeRef,isFilesRef,isScanRef,isGeometryRef,isItemsRef,isNumberRef,sanitizeGeometryRef,createGeometryRef,debounce,throttle,isNumeric,getElementProps,getItemId,useLocale};
package/libs/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "5.44.0+33";
1
+ export declare const VERSION = "5.45.1+3";
package/libs/version.js CHANGED
@@ -1 +1 @@
1
- const VERSION="5.44.0+33";export{VERSION};
1
+ const VERSION="5.45.1+3";export{VERSION};
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@vertigis/workflow",
3
- "version": "5.44.0",
3
+ "version": "5.45.1",
4
4
  "author": "VertiGIS",
5
5
  "dependencies": {
6
6
  "@date-fns/utc": "^1.2.0",
7
+ "@esri/arcgis-html-sanitizer": "^4.0.3",
7
8
  "@zxing/browser": "0.1.5",
8
9
  "@zxing/library": "0.21.3",
9
10
  "autosuggest-highlight": "^3.3.4",
@@ -24,8 +25,7 @@
24
25
  "@types/react": "18.2.46",
25
26
  "@types/react-dom": "18.2.18",
26
27
  "@vertigis/licensing": "5.1.1",
27
- "@vertigis/react-ui": "16.6.2",
28
- "cross-env": "7.0.3",
28
+ "@vertigis/react-ui": "19.0.2",
29
29
  "cross-fetch": "^4.1.0",
30
30
  "jest": "^29.7.0",
31
31
  "jest-environment-jsdom": "^29.7.0",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "peerDependencies": {
41
41
  "@arcgis/core": ">= 4.31.0 < 5.0.0",
42
- "@vertigis/react-ui": ">= 16.3.1-0 < 17.0.0-0",
42
+ "@vertigis/react-ui": ">= 19.0.2-0 < 20.0.0-0",
43
43
  "react": ">= 18 < 19",
44
44
  "react-dom": ">= 18 < 19"
45
45
  },
@@ -51,8 +51,9 @@
51
51
  "license": "SEE LICENSE IN LICENSE",
52
52
  "scripts": {
53
53
  "compile-tests": "tsc -p ./tsconfig.tests.json",
54
- "test": "yarn compile-tests && cross-env TZ=\"America/Los_Angeles\" jest",
55
- "test-coverage": "yarn compile-tests && cross-env TZ=\"America/Los_Angeles\" jest --coverage",
56
- "test-watch": "yarn compile-tests && cross-env TZ=\"America/Los_Angeles\" jest --watch"
54
+ "test": "yarn compile-tests && jest",
55
+ "test-de": "yarn compile-tests && jest --config=./jest.config.de.js",
56
+ "test-coverage": "yarn compile-tests && jest --coverage && yarn test-de formatDate",
57
+ "test-watch": "yarn compile-tests && jest --watch"
57
58
  }
58
59
  }