@openforis/arena-core 3.1.6 → 3.2.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 (121) hide show
  1. package/dist/esm/geo/geoFeature.js +2 -0
  2. package/dist/esm/geo/geoFeature.js.map +1 -0
  3. package/dist/esm/geo/index.js.map +1 -1
  4. package/dist/esm/geo/points/isFilled.js +5 -1
  5. package/dist/esm/geo/points/isFilled.js.map +1 -1
  6. package/dist/esm/geo/points/parse.js +2 -2
  7. package/dist/esm/geo/points/parse.js.map +1 -1
  8. package/dist/esm/geo/points/toLatLong.js +2 -2
  9. package/dist/esm/geo/points/toLatLong.js.map +1 -1
  10. package/dist/esm/geo/points/transform.js.map +1 -1
  11. package/dist/esm/index.js.map +1 -1
  12. package/dist/esm/logger/logger.js.map +1 -1
  13. package/dist/esm/node/index.js.map +1 -1
  14. package/dist/esm/node/node.js.map +1 -1
  15. package/dist/esm/node/nodeValue/coordinate.js.map +1 -1
  16. package/dist/esm/node/nodeValue/geo.js +2 -0
  17. package/dist/esm/node/nodeValue/geo.js.map +1 -0
  18. package/dist/esm/node/nodeValue/index.js.map +1 -1
  19. package/dist/esm/node/nodeValue/nodeValue.js +2 -0
  20. package/dist/esm/node/nodeValue/nodeValue.js.map +1 -0
  21. package/dist/esm/nodeDef/index.js.map +1 -1
  22. package/dist/esm/nodeDef/nodeDefs.js.map +1 -1
  23. package/dist/esm/nodeDef/types/coordinate.js.map +1 -1
  24. package/dist/esm/record/index.js.map +1 -1
  25. package/dist/esm/record/recordSummary.js +2 -0
  26. package/dist/esm/record/recordSummary.js.map +1 -0
  27. package/dist/esm/survey/index.js.map +1 -1
  28. package/dist/esm/survey/surveySummary.js +2 -0
  29. package/dist/esm/survey/surveySummary.js.map +1 -0
  30. package/dist/esm/survey/surveys/nodeDefs.js +1 -1
  31. package/dist/esm/survey/surveys/nodeDefs.js.map +1 -1
  32. package/dist/esm/survey/surveys/refsData.js +4 -3
  33. package/dist/esm/survey/surveys/refsData.js.map +1 -1
  34. package/dist/esm/survey/surveys/surveyGettersSecurity.js.map +1 -1
  35. package/dist/esm/survey/surveys/surveysGetters.js.map +1 -1
  36. package/dist/esm/utils/_objects/path.js +1 -0
  37. package/dist/esm/utils/_objects/path.js.map +1 -1
  38. package/dist/esm/utils/fileProcessor.js +1 -0
  39. package/dist/esm/utils/fileProcessor.js.map +1 -1
  40. package/dist/esm/utils/index.js.map +1 -1
  41. package/dist/esm/utils/numbers.js +4 -4
  42. package/dist/esm/utils/numbers.js.map +1 -1
  43. package/dist/esm/validation/validations.js +1 -1
  44. package/dist/esm/validation/validations.js.map +1 -1
  45. package/dist/geo/geoFeature.d.ts +16 -0
  46. package/dist/geo/geoFeature.js +3 -0
  47. package/dist/geo/geoFeature.js.map +1 -0
  48. package/dist/geo/index.d.ts +1 -0
  49. package/dist/geo/index.js.map +1 -1
  50. package/dist/geo/points/isFilled.d.ts +1 -1
  51. package/dist/geo/points/isFilled.js +5 -1
  52. package/dist/geo/points/isFilled.js.map +1 -1
  53. package/dist/geo/points/parse.d.ts +3 -3
  54. package/dist/geo/points/parse.js +2 -2
  55. package/dist/geo/points/parse.js.map +1 -1
  56. package/dist/geo/points/toLatLong.d.ts +1 -1
  57. package/dist/geo/points/toLatLong.js +1 -1
  58. package/dist/geo/points/toLatLong.js.map +1 -1
  59. package/dist/geo/points/transform.d.ts +2 -2
  60. package/dist/geo/points/transform.js.map +1 -1
  61. package/dist/index.d.ts +6 -6
  62. package/dist/index.js.map +1 -1
  63. package/dist/logger/logger.d.ts +4 -4
  64. package/dist/logger/logger.js.map +1 -1
  65. package/dist/node/index.d.ts +1 -1
  66. package/dist/node/index.js.map +1 -1
  67. package/dist/node/node.d.ts +2 -2
  68. package/dist/node/node.js.map +1 -1
  69. package/dist/node/nodeValue/coordinate.d.ts +3 -0
  70. package/dist/node/nodeValue/coordinate.js.map +1 -1
  71. package/dist/node/nodeValue/geo.d.ts +2 -0
  72. package/dist/node/nodeValue/geo.js +3 -0
  73. package/dist/node/nodeValue/geo.js.map +1 -0
  74. package/dist/node/nodeValue/index.d.ts +2 -0
  75. package/dist/node/nodeValue/index.js.map +1 -1
  76. package/dist/node/nodeValue/nodeValue.d.ts +9 -0
  77. package/dist/node/nodeValue/nodeValue.js +3 -0
  78. package/dist/node/nodeValue/nodeValue.js.map +1 -0
  79. package/dist/nodeDef/index.d.ts +1 -1
  80. package/dist/nodeDef/index.js.map +1 -1
  81. package/dist/nodeDef/nodeDefs.d.ts +2 -2
  82. package/dist/nodeDef/nodeDefs.js.map +1 -1
  83. package/dist/nodeDef/types/coordinate.d.ts +2 -0
  84. package/dist/nodeDef/types/coordinate.js.map +1 -1
  85. package/dist/record/index.d.ts +1 -0
  86. package/dist/record/index.js.map +1 -1
  87. package/dist/record/recordNodesUpdater/recordUpdateResult.d.ts +1 -1
  88. package/dist/record/recordSummary.d.ts +15 -0
  89. package/dist/record/recordSummary.js +3 -0
  90. package/dist/record/recordSummary.js.map +1 -0
  91. package/dist/survey/index.d.ts +1 -0
  92. package/dist/survey/index.js.map +1 -1
  93. package/dist/survey/surveySummary.d.ts +14 -0
  94. package/dist/survey/surveySummary.js +3 -0
  95. package/dist/survey/surveySummary.js.map +1 -0
  96. package/dist/survey/surveys/index.d.ts +3 -3
  97. package/dist/survey/surveys/nodeDefs.d.ts +2 -2
  98. package/dist/survey/surveys/nodeDefs.js +1 -1
  99. package/dist/survey/surveys/nodeDefs.js.map +1 -1
  100. package/dist/survey/surveys/refsData.d.ts +1 -1
  101. package/dist/survey/surveys/refsData.js +4 -3
  102. package/dist/survey/surveys/refsData.js.map +1 -1
  103. package/dist/survey/surveys/surveyGettersSecurity.d.ts +11 -10
  104. package/dist/survey/surveys/surveyGettersSecurity.js.map +1 -1
  105. package/dist/survey/surveys/surveysGetters.d.ts +17 -16
  106. package/dist/survey/surveys/surveysGetters.js.map +1 -1
  107. package/dist/utils/_objects/path.d.ts +2 -1
  108. package/dist/utils/_objects/path.js +1 -0
  109. package/dist/utils/_objects/path.js.map +1 -1
  110. package/dist/utils/fileProcessor.d.ts +24 -11
  111. package/dist/utils/fileProcessor.js +1 -0
  112. package/dist/utils/fileProcessor.js.map +1 -1
  113. package/dist/utils/index.d.ts +1 -1
  114. package/dist/utils/index.js.map +1 -1
  115. package/dist/utils/numbers.d.ts +5 -5
  116. package/dist/utils/numbers.js +4 -4
  117. package/dist/utils/numbers.js.map +1 -1
  118. package/dist/validation/validations.d.ts +10 -10
  119. package/dist/validation/validations.js +1 -1
  120. package/dist/validation/validations.js.map +1 -1
  121. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=geoFeature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geoFeature.js","sourceRoot":"","sources":["../../../src/geo/geoFeature.ts"],"names":[],"mappings":"","sourcesContent":["import type { Feature, LineString, MultiLineString, MultiPolygon, Polygon } from 'geojson'\n\n/**\n * Value of a geo attribute drawn as a polygon: GeoJSON feature in WGS84 (EPSG:4326).\n */\nexport type ArenaGeoPolygonFeature = Feature<Polygon | MultiPolygon>\n\n/**\n * Properties of a track: time and accuracy of each recorded position (nested arrays for multi line strings).\n */\nexport type ArenaGeoTrackFeatureProperties = {\n coordTimes?: string[] | string[][]\n accuracies?: (number | null)[] | (number | null)[][]\n}\n\n/**\n * Value of a geo attribute recorded by position tracking: GeoJSON line feature in WGS84 (EPSG:4326).\n */\nexport type ArenaGeoTrackFeature = Feature<LineString | MultiLineString, ArenaGeoTrackFeatureProperties>\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/geo/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA","sourcesContent":["export type { ArenaAreaOfInterest, ArenaAreaOfInterestDescriptor } from './areaOfInterest'\nexport type { ArenaPoint } from './point'\n\nexport { PointFactory } from './pointFactory'\n\nexport { Points } from './points'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/geo/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA","sourcesContent":["export type { ArenaAreaOfInterest, ArenaAreaOfInterestDescriptor } from './areaOfInterest'\nexport type { ArenaGeoPolygonFeature, ArenaGeoTrackFeature, ArenaGeoTrackFeatureProperties } from './geoFeature'\nexport type { ArenaPoint } from './point'\n\nexport { PointFactory } from './pointFactory'\n\nexport { Points } from './points'\n"]}
@@ -1,3 +1,7 @@
1
1
  import { Objects } from '../../utils';
2
- export const isFilled = (point) => !Objects.isEmpty(point) && !Objects.isEmpty(point.srs) && !Objects.isEmpty(point.x) && !Objects.isEmpty(point.y);
2
+ export const isFilled = (point) => !!point &&
3
+ !Objects.isEmpty(point) &&
4
+ !Objects.isEmpty(point.srs) &&
5
+ !Objects.isEmpty(point.x) &&
6
+ !Objects.isEmpty(point.y);
3
7
  //# sourceMappingURL=isFilled.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isFilled.js","sourceRoot":"","sources":["../../../../src/geo/points/isFilled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAiB,EAAW,EAAE,CACrD,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA","sourcesContent":["import { Objects } from '../../utils'\nimport { ArenaPoint } from '../point'\n\nexport const isFilled = (point: ArenaPoint): boolean =>\n !Objects.isEmpty(point) && !Objects.isEmpty(point.srs) && !Objects.isEmpty(point.x) && !Objects.isEmpty(point.y)\n"]}
1
+ {"version":3,"file":"isFilled.js","sourceRoot":"","sources":["../../../../src/geo/points/isFilled.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAoC,EAAuB,EAAE,CACpF,CAAC,CAAC,KAAK;IACP,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;IACvB,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC;IAC3B,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IACzB,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA","sourcesContent":["import { Objects } from '../../utils'\nimport { ArenaPoint } from '../point'\n\nexport const isFilled = (point: ArenaPoint | null | undefined): point is ArenaPoint =>\n !!point &&\n !Objects.isEmpty(point) &&\n !Objects.isEmpty(point.srs) &&\n !Objects.isEmpty(point.x) &&\n !Objects.isEmpty(point.y)\n"]}
@@ -9,8 +9,8 @@ const POINT_REGEX = new RegExp(String.raw `SRID=((EPSG:)?(\w+));POINT\((${NUMBER
9
9
  * - SRID=4326;POINT(12 41)
10
10
  * - SRID=4326;POINT(1e-7 41).
11
11
  *
12
- * @param {!(string | object)} value - The point to parse. It can be a string or an object.
13
- * @returns {ArenaPoint} - The parsed Point object.
12
+ * @param {unknown} value - The point to parse. It can be a string or an object.
13
+ * @returns {ArenaPoint} - The parsed Point object, or null if the value is empty or not a point.
14
14
  */
15
15
  export const parse = (value) => {
16
16
  if (!value)
@@ -1 +1 @@
1
- {"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../../src/geo/points/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,sIAAsI;AACtI,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA,kCAAkC,CAAA;AACnE,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAA,gCAAgC,cAAc,MAAM,cAAc,KAAK,CAAC,CAAA;AAEjH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAsB,EAAqB,EAAE;IACjE,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAA;IAEvB,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAmB,CAAA;IAEzD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACrC,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAA;QAEvB,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACpB,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QAC1B,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QAC1B,OAAO,YAAY,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;IACnD,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import { ArenaPoint } from '../point'\nimport { PointFactory } from '../pointFactory'\n\n// coordinates can be in exponent notation (e.g. 1e-7), as generated by Number.toString or by PostgreSQL for very small or big numbers\nconst NUMBER_PATTERN = String.raw`-?\\d+(?:\\.\\d+)?(?:[eE][-+]?\\d+)?`\nconst POINT_REGEX = new RegExp(String.raw`SRID=((EPSG:)?(\\w+));POINT\\((${NUMBER_PATTERN}) (${NUMBER_PATTERN})\\)`)\n\n/**\n * Parses a point in the format: SRID=SRS_CODE;POINT(X Y)\n * (X and Y separated by a space). Valid examples are:\n * - SRID=EPSG:4326;POINT(12.489060 41.882788)\n * - SRID=4326;POINT(12 41)\n * - SRID=4326;POINT(1e-7 41).\n *\n * @param {!(string | object)} value - The point to parse. It can be a string or an object.\n * @returns {ArenaPoint} - The parsed Point object.\n */\nexport const parse = (value: string | object): ArenaPoint | null => {\n if (!value) return null\n\n if (typeof value === 'object') return value as ArenaPoint\n\n if (typeof value === 'string') {\n const match = POINT_REGEX.exec(value)\n if (!match) return null\n\n const srs = match[3]\n const x = Number(match[4])\n const y = Number(match[5])\n return PointFactory.createInstance({ srs, x, y })\n }\n return null\n}\n"]}
1
+ {"version":3,"file":"parse.js","sourceRoot":"","sources":["../../../../src/geo/points/parse.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,sIAAsI;AACtI,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA,kCAAkC,CAAA;AACnE,MAAM,WAAW,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,GAAG,CAAA,gCAAgC,cAAc,MAAM,cAAc,KAAK,CAAC,CAAA;AAEjH;;;;;;;;;GASG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,KAAc,EAAqB,EAAE;IACzD,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAA;IAEvB,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAmB,CAAA;IAEzD,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,MAAM,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;QACrC,IAAI,CAAC,KAAK;YAAE,OAAO,IAAI,CAAA;QAEvB,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;QACpB,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QAC1B,MAAM,CAAC,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;QAC1B,OAAO,YAAY,CAAC,cAAc,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAA;IACnD,CAAC;IACD,OAAO,IAAI,CAAA;AACb,CAAC,CAAA","sourcesContent":["import { ArenaPoint } from '../point'\nimport { PointFactory } from '../pointFactory'\n\n// coordinates can be in exponent notation (e.g. 1e-7), as generated by Number.toString or by PostgreSQL for very small or big numbers\nconst NUMBER_PATTERN = String.raw`-?\\d+(?:\\.\\d+)?(?:[eE][-+]?\\d+)?`\nconst POINT_REGEX = new RegExp(String.raw`SRID=((EPSG:)?(\\w+));POINT\\((${NUMBER_PATTERN}) (${NUMBER_PATTERN})\\)`)\n\n/**\n * Parses a point in the format: SRID=SRS_CODE;POINT(X Y)\n * (X and Y separated by a space). Valid examples are:\n * - SRID=EPSG:4326;POINT(12.489060 41.882788)\n * - SRID=4326;POINT(12 41)\n * - SRID=4326;POINT(1e-7 41).\n *\n * @param {unknown} value - The point to parse. It can be a string or an object.\n * @returns {ArenaPoint} - The parsed Point object, or null if the value is empty or not a point.\n */\nexport const parse = (value: unknown): ArenaPoint | null => {\n if (!value) return null\n\n if (typeof value === 'object') return value as ArenaPoint\n\n if (typeof value === 'string') {\n const match = POINT_REGEX.exec(value)\n if (!match) return null\n\n const srs = match[3]\n const x = Number(match[4])\n const y = Number(match[5])\n return PointFactory.createInstance({ srs, x, y })\n }\n return null\n}\n"]}
@@ -1,4 +1,4 @@
1
- import { DEFAULT_SRS } from '../../srs';
1
+ import { DEFAULT_SRS, DEFAULT_SRS_INDEX } from '../../srs';
2
2
  import { transform } from './transform';
3
- export const toLatLong = (point, srsIndex) => transform(point, DEFAULT_SRS.code, srsIndex);
3
+ export const toLatLong = (point, srsIndex = DEFAULT_SRS_INDEX) => transform(point, DEFAULT_SRS.code, srsIndex);
4
4
  //# sourceMappingURL=toLatLong.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"toLatLong.js","sourceRoot":"","sources":["../../../../src/geo/points/toLatLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,MAAM,WAAW,CAAA;AAEtD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,KAAiB,EAAE,QAAuB,EAAqB,EAAE,CACzF,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["import { DEFAULT_SRS, ArenaSRSIndex } from '../../srs'\nimport { ArenaPoint } from '../point'\nimport { transform } from './transform'\n\nexport const toLatLong = (point: ArenaPoint, srsIndex: ArenaSRSIndex): ArenaPoint | null =>\n transform(point, DEFAULT_SRS.code, srsIndex)\n"]}
1
+ {"version":3,"file":"toLatLong.js","sourceRoot":"","sources":["../../../../src/geo/points/toLatLong.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAiB,MAAM,WAAW,CAAA;AAEzE,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAEvC,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,KAAoC,EACpC,QAAQ,GAAkB,iBAAiB,EACxB,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA","sourcesContent":["import { DEFAULT_SRS, DEFAULT_SRS_INDEX, ArenaSRSIndex } from '../../srs'\nimport { ArenaPoint } from '../point'\nimport { transform } from './transform'\n\nexport const toLatLong = (\n point: ArenaPoint | null | undefined,\n srsIndex: ArenaSRSIndex = DEFAULT_SRS_INDEX\n): ArenaPoint | null => transform(point, DEFAULT_SRS.code, srsIndex)\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../../src/geo/points/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AA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j4'\n\nimport { SystemError, SystemErrorKeys } from '../../error'\nimport { DEFAULT_SRS_INDEX, ArenaSRSIndex } from '../../srs'\nimport { ArenaPoint } from '../point'\nimport { PointFactory } from '../pointFactory'\nimport { isFilled } from './isFilled'\nimport { getSrs } from './getSrs'\n\n// proj4 parses both WKT strings every time it is called with them: cache the converters by WKT pair\nconst convertersCache = new Map<string, Converter>()\n\nconst getConverter = (wktFrom: string, wktTo: string): Converter => {\n const key = `${wktFrom}\\n${wktTo}`\n let converter = convertersCache.get(key)\n if (!converter) {\n converter = proj4(wktFrom, wktTo)\n convertersCache.set(key, converter)\n }\n return converter\n}\n\n/**\n * Transforms the specified point from one SRS into another, throwing a SystemError with the reason when it cannot.\n *\n * @param point - The point to transform.\n * @param srsCodeTo - The SRS code to transform the point into.\n * @param srsIndex - SRSs indexed by SRS code.\n * @returns The transformed point (the point itself if it is already in the target SRS).\n * @throws {SystemError} `geo.pointNotFilled`, `geo.srsNotFound` (with the `code` param) or `geo.transformFailed`.\n */\nexport const transformOrThrow = (\n point: ArenaPoint,\n srsCodeTo: string,\n srsIndex: ArenaSRSIndex = DEFAULT_SRS_INDEX\n): ArenaPoint => {\n if (!isFilled(point)) throw new SystemError(SystemErrorKeys.geo.pointNotFilled)\n\n const { srs: srsCodeFrom } = point\n\n if (srsCodeFrom === srsCodeTo) {\n // projection is not needed\n return point\n }\n const srsFrom = getSrs({ code: srsCodeFrom, srsIndex })\n if (!srsFrom) throw new SystemError(SystemErrorKeys.geo.srsNotFound, { code: srsCodeFrom })\n\n const srsTo = getSrs({ code: srsCodeTo, srsIndex })\n if (!srsTo) throw new SystemError(SystemErrorKeys.geo.srsNotFound, { code: srsCodeTo })\n\n try {\n const { x, y } = point\n const [long, lat] = getConverter(srsFrom.wkt, srsTo.wkt).forward([Number(x), Number(y)])\n\n return PointFactory.createInstance({ ...point, srs: srsCodeTo, x: long, y: lat })\n } catch (error) {\n throw new SystemError(\n SystemErrorKeys.geo.transformFailed,\n { srsFrom: srsCodeFrom, srsTo: srsCodeTo },\n { cause: error }\n )\n }\n}\n\n/**\n * Transforms the specified point from one SRS into another.\n * Use `transformOrThrow` to know why a point cannot be transformed.\n *\n * @param point - The point to transform.\n * @param srsCodeTo - The SRS code to transform the point into.\n * @param srsIndex - SRSs indexed by SRS code.\n * @returns The transformed point, or null if the point is not filled, an SRS is unknown or the transformation fails.\n */\nexport const transform = (\n point: ArenaPoint,\n srsCodeTo: string,\n srsIndex: ArenaSRSIndex = DEFAULT_SRS_INDEX\n): ArenaPoint | null => {\n try {\n return transformOrThrow(point, srsCodeTo, srsIndex)\n } catch {\n return null\n }\n}\n"]}
1
+ {"version":3,"file":"transform.js","sourceRoot":"","sources":["../../../../src/geo/points/transform.ts"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAC1D,OAAO,EAAE,iBAAiB,EAAiB,MAAM,WAAW,CAAA;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,oGAAoG;AACpG,MAAM,eAAe,GAAG,IAAI,GAAG,EAAqB,CAAA;AAEpD,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,KAAa,EAAa,EAAE;IACjE,MAAM,GAAG,GAAG,GAAG,OAAO,KAAK,KAAK,EAAE,CAAA;IAClC,IAAI,SAAS,GAAG,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IACxC,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,SAAS,GAAG,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACjC,eAAe,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,CAAA;IACrC,CAAC;IACD,OAAO,SAAS,CAAA;AAClB,CAAC,CAAA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AAE,GAAG,IAAG,CAAA;IACnF,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,WAAW,CACnB,eAAe,CAAC,GAAG,CAAC,eAAe,EACnC,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,EAC1C,EAAE,KAAK,EAAE,KAAK,EAAE,CACjB,CAAA;IACH,CAAC;AACH,CAAC,CAAA;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,CACvB,KAAoC,EACpC,SAAiB,EACjB,QAAQ,GAAkB,iBAAiB,EACxB,EAAE;IACrB,IAAI,CAAC;QACH,OAAO,gBAAgB,CAAC,KAAK,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAA;IACrD,CAAC;eAAO,CAAC;QACP,OAAO,IAAI,CAAA;IACb,CAAC;AACH,CAAC,CAAA","sourcesContent":["import proj4, { type Converter } from 'proj4'\n\nimport { SystemError, SystemErrorKeys } from '../../error'\nimport { DEFAULT_SRS_INDEX, ArenaSRSIndex } from '../../srs'\nimport { ArenaPoint } from '../point'\nimport { PointFactory } from '../pointFactory'\nimport { isFilled } from './isFilled'\nimport { getSrs } from './getSrs'\n\n// proj4 parses both WKT strings every time it is called with them: cache the converters by WKT pair\nconst convertersCache = new Map<string, Converter>()\n\nconst getConverter = (wktFrom: string, wktTo: string): Converter => {\n const key = `${wktFrom}\\n${wktTo}`\n let converter = convertersCache.get(key)\n if (!converter) {\n converter = proj4(wktFrom, wktTo)\n convertersCache.set(key, converter)\n }\n return converter\n}\n\n/**\n * Transforms the specified point from one SRS into another, throwing a SystemError with the reason when it cannot.\n *\n * @param point - The point to transform.\n * @param srsCodeTo - The SRS code to transform the point into.\n * @param srsIndex - SRSs indexed by SRS code.\n * @returns The transformed point (the point itself if it is already in the target SRS).\n * @throws {SystemError} `geo.pointNotFilled`, `geo.srsNotFound` (with the `code` param) or `geo.transformFailed`.\n */\nexport const transformOrThrow = (\n point: ArenaPoint | null | undefined,\n srsCodeTo: string,\n srsIndex: ArenaSRSIndex = DEFAULT_SRS_INDEX\n): ArenaPoint => {\n if (!isFilled(point)) throw new SystemError(SystemErrorKeys.geo.pointNotFilled)\n\n const { srs: srsCodeFrom } = point\n\n if (srsCodeFrom === srsCodeTo) {\n // projection is not needed\n return point\n }\n const srsFrom = getSrs({ code: srsCodeFrom, srsIndex })\n if (!srsFrom) throw new SystemError(SystemErrorKeys.geo.srsNotFound, { code: srsCodeFrom })\n\n const srsTo = getSrs({ code: srsCodeTo, srsIndex })\n if (!srsTo) throw new SystemError(SystemErrorKeys.geo.srsNotFound, { code: srsCodeTo })\n\n try {\n const { x, y } = point\n const [long, lat] = getConverter(srsFrom.wkt, srsTo.wkt).forward([Number(x), Number(y)])\n\n return PointFactory.createInstance({ ...point, srs: srsCodeTo, x: long, y: lat })\n } catch (error) {\n throw new SystemError(\n SystemErrorKeys.geo.transformFailed,\n { srsFrom: srsCodeFrom, srsTo: srsCodeTo },\n { cause: error }\n )\n }\n}\n\n/**\n * Transforms the specified point from one SRS into another.\n * Use `transformOrThrow` to know why a point cannot be transformed.\n *\n * @param point - The point to transform.\n * @param srsCodeTo - The SRS code to transform the point into.\n * @param srsIndex - SRSs indexed by SRS code.\n * @returns The transformed point, or null if the point is not filled, an SRS is unknown or the transformation fails.\n */\nexport const transform = (\n point: ArenaPoint | null | undefined,\n srsCodeTo: string,\n srsIndex: ArenaSRSIndex = DEFAULT_SRS_INDEX\n): ArenaPoint | null => {\n try {\n return transformOrThrow(point, srsCodeTo, srsIndex)\n } catch {\n return null\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,GACN,MAAM,QAAQ,CAAA;AAwBf,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,o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AAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,kBAAkB,GACnB,MAAM,cAAc,CAAA","sourcesContent":["export type { ArenaAppInfo } from './app'\n\nexport {\n Authorizer,\n AuthGroupName,\n createDefaultAuthGroups,\n UserStatus,\n Permission,\n UserTitle,\n UserFactory,\n Users,\n} from './auth'\nexport type {\n ArenaAuthGroup,\n ArenaUser,\n ArenaUserAuthGroup,\n ArenaUserAuthGroupProps,\n ArenaAuthToken,\n ArenaUserAuthTokenPayload,\n ArenaUserAuthTokenService,\n ArenaUserPrefs,\n ArenaUserPrefSurveys,\n ArenaUserProps,\n ArenaUserAuthRefreshToken,\n ArenaUserAuthRefreshTokenProps,\n ArenaUserAuthRefreshTokenPayload,\n ArenaUserService,\n ArenaUserTokenPayload,\n ArenaDownloadAuthTokenPayload,\n ArenaUserGroup,\n ArenaUserGroupProps,\n ArenaUserGroupQualifier,\n ArenaUserInvitation,\n} from './auth'\n\nexport { CategoryFactory, CategoryItemFactory, CategoryLevelFactory } from './category'\nexport type {\n ArenaCategoryItemProps,\n ArenaCategory,\n ArenaCategoryItem,\n ArenaCategoryLevel,\n ArenaCategoryLevelProps,\n ArenaCategoryProps,\n} from './category'\n\nexport { Categories, CategoryItems } from './category'\n\nexport { ChainFactory, ChainStatusExec, ChainNodeDefFactory } from './chain'\nexport type {\n ArenaChain,\n ArenaChainProps,\n ArenaChainNodeDef,\n ArenaChainNodeDefProps,\n ArenaChainNodeDefAggregate,\n ArenaChainNodeDefAggregateProps,\n} from './chain'\n\nexport { TraverseMethod } from './common'\nexport type { ArenaObject, ArenaService, ArenaDictionary, ArenaFactory, ArenaI18n } from './common'\n\nexport type { ArenaFlatDataExportOptions, ArenaExportInfoFactoryParams, ArenaExportInfo } from './dataExport'\nexport {\n FlatDataExportDefaultOptions,\n FlatDataExportOption,\n FlatDataFiles,\n FlatDataExportModel,\n FlatDataExportColumnDataType,\n ArenaExportFile,\n ArenaExportInfoFactory,\n ArenaExportType,\n UniqueFileNamesGenerator,\n} from './dataExport'\n\nexport { DataQueryMode, DataQuerySummaries } from './dataQuery'\nexport type { ArenaDataQuery, ArenaDataQuerySummary, ArenaDataQuerySummaryProps } from './dataQuery'\n\nexport { SystemError, SystemErrorKeys } from './error'\n\nexport {\n ExpressionNodeType,\n ExpressionNodeEvaluator,\n ExpressionVariable,\n JavascriptExpressionEvaluator,\n JavascriptExpressionParser,\n} from './expression'\nexport type {\n ArenaArrayExpression,\n ArenaBinaryExpression,\n ArenaCallExpression,\n ArenaCompoundExpression,\n ArenaConditionalExpression,\n ArenaExpressionContext,\n ArenaExpressionEvaluator,\n ArenaExpressionFunction,\n ArenaExpressionFunctions,\n ArenaAnyExpressionNode,\n ArenaExpressionNode,\n ArenaExpressionNodeEvaluatorConstructor,\n ArenaMemberExpression,\n ArenaIdentifierExpression,\n ArenaLiteralExpression,\n ArenaSequenceExpression,\n ArenaThisExpression,\n ArenaUnaryExpression,\n} from './expression'\n\nexport { ExtraPropDataType, ExtraPropsDataGenerator } from './extraProp'\nexport type { ArenaExtraPropDef, ArenaExtraPropDefs } from './extraProp'\n\nexport { PointFactory, Points } from './geo'\nexport type { ArenaAreaOfInterest, ArenaAreaOfInterestDescriptor, ArenaPoint } from './geo'\n\nexport { JobBase, JobEventType, JobStatus } from './job'\nexport type { ArenaJob, ArenaJobContext, ArenaJobEvent, ArenaJobSerialized, ArenaJobTxClient } from './job'\n\nexport { LanguageCode, Languages, LanguagesISO639part2 } from './language'\nexport type { ArenaLabels } from './language'\n\nexport type { ArenaLogger } from './logger'\n\nexport type { ArenaMessage } from './message'\nexport { MessageNotificationType, MessagePropsKey, MessageStatus, MessageTargetUserType, Messages } from './message'\n\nexport {\n RecordNodeFactory,\n RecordNodeKeys,\n RecordNodeMetaKeys,\n RecordNodes,\n RecordNodeValueFormatter,\n RecordNodeValues,\n} from './node'\nexport type {\n ArenaRecordNode,\n ArenaRecordNodeMeta,\n ArenaRecordNodePointer,\n ArenaRecordNodeRefData,\n ArenaRecordNodesMap,\n ArenaRecordNodeValueCode,\n ArenaRecordNodeValueCoordinate,\n ArenaRecordNodeValueFile,\n ArenaRecordNodeValueTaxon,\n} from './node'\n\nexport {\n NodeDefCountType,\n NodeDefExpressionFactory,\n NodeDefType,\n NodeDefFactory,\n NodeDefs,\n NodeDefEntityRenderType,\n NodeDefFileType,\n NodeDefTextInputType,\n NodeDefTextRenderType,\n FormHeaderColor,\n} from './nodeDef'\n\nexport { NodeDefExpressionEvaluator, NodeDefExpressionValidator } from './nodeDefExpressionEvaluator'\nexport type {\n ArenaAreaOfInterestProvider,\n ArenaCategoryItemProvider,\n ArenaTaxonProvider,\n} from './nodeDefExpressionEvaluator'\n\nexport type {\n ArenaNodeDef,\n ArenaAnyNodeDef,\n ArenaNodeDefLayout,\n ArenaNodeDefMeta,\n ArenaNodeDefProps,\n ArenaNodeDefPropsWithLayout,\n ArenaNodeDefBoolean,\n ArenaNodeDefBooleanProps,\n ArenaNodeDefCode,\n ArenaNodeDefCodeLayout,\n ArenaNodeDefCodeProps,\n ArenaNodeDefCoordinate,\n ArenaNodeDefCoordinateProps,\n ArenaNodeDefDate,\n ArenaNodeDefDecimal,\n ArenaNodeDefDecimalProps,\n ArenaNodeDefEntity,\n ArenaNodeDefEntityChildPosition,\n ArenaNodeDefEntityLayout,\n ArenaNodeDefEntityLayoutChildItem,\n ArenaNodeDefEntityProps,\n ArenaNodeDefPrintOrientation,\n ArenaNodeDefFile,\n ArenaNodeDefFileProps,\n ArenaNodeDefGeo,\n ArenaNodeDefGeoProps,\n ArenaNodeDefFormHeader,\n ArenaNodeDefFormHeaderProps,\n ArenaNodeDefInteger,\n ArenaNodeDefPropsAdvanced,\n ArenaNodeDefTaxon,\n ArenaNodeDefTaxonProps,\n ArenaNodeDefText,\n ArenaNodeDefTextProps,\n ArenaNodeDefTextLayout,\n ArenaNodeDefTime,\n ArenaNodeDefTimeProps,\n ArenaNodeDefCountExpression,\n ArenaNodeDefExpression,\n ArenaNodeDefExpressionFactoryParams,\n ArenaNodeDefMap,\n ArenaNodeDefValidations,\n} from './nodeDef'\n\nexport {\n RecordNodePointers,\n RecordCloner,\n RecordFactory,\n RecordFixer,\n Records,\n RECORD_STEP_DEFAULT,\n RecordStepAnalysisCode,\n RecordStepCleansingCode,\n RecordStepEntryCode,\n RecordStepNames,\n RecordSteps,\n RecordStepsList,\n RecordExpressionEvaluator,\n RecordNodesUpdater,\n RecordPrettyPrinter,\n RecordUpdater,\n RecordUpdateResult,\n RecordValidator,\n RecordValidations,\n} from './record'\nexport type {\n ArenaAttributeValidatorParams,\n ArenaAttributesValidatorParams,\n ArenaRecordNodeCreateParams,\n ArenaRecordNodesUpdateParams,\n ArenaRecord,\n ArenaRecordExpressionContext,\n ArenaRecordExpressionEvaluationContext,\n ArenaRecordService,\n ArenaRecordStep,\n ArenaRecordUpdateOptions,\n ArenaRecordValidatorParams,\n ArenaSortedAttributesValidatorParams,\n} from './record'\n\nexport { ServiceRegistry, ServiceType } from './registry'\nexport type { ArenaServiceTypeMap } from './registry'\n\nexport { DEFAULT_SRS, DEFAULT_SRS_INDEX, SRSFactory } from './srs'\nexport type { ArenaSRS, ArenaSRSIndex } from './srs'\n\nexport {\n NodeDefsFixer,\n SurveyDocImages,\n SurveyDocImageFactory,\n SurveyDocPlace,\n SurveyDependencyType,\n SurveyFactory,\n SurveyFileFactory,\n SurveyFileType,\n SurveyRefDataFactory,\n SurveySecurityProp,\n Surveys,\n surveyDocImagePropKeys,\n surveySecurityDefaults,\n defaultCycle,\n} from './survey'\nexport type {\n ArenaSurvey,\n ArenaSurveyCycle,\n ArenaSurveyDependency,\n ArenaSurveyDependencyGraph,\n ArenaSurveyDocImage,\n ArenaSurveyDocImageFactoryParams,\n ArenaSurveyDocImageProps,\n ArenaSurveyFile,\n ArenaSurveyFileFactoryParams,\n ArenaSurveyFileProps,\n ArenaSurveyNodeDefsIndex,\n ArenaSurveyProps,\n ArenaSurveyRefData,\n ArenaSurveySecurity,\n ArenaSurveyService,\n} from './survey'\n\nexport { Taxa, Taxonomies, TaxonomyFactory, TaxonFactory, TaxonGenerator, VernacularNameFactory } from './taxonomy'\nexport type {\n ArenaVernacularNameParams,\n ArenaTaxonomyFactoryParams,\n ArenaTaxonFactoryParams,\n ArenaTaxonomy,\n ArenaVernacularNameProps,\n ArenaVernacularName,\n ArenaTaxonProps,\n ArenaTaxon,\n ArenaTaxonomyProps,\n} from './taxonomy'\n\nexport { SurveyBuilder, SurveyObjectBuilders } from './tests/builder/surveyBuilder'\nexport { RecordBuilder, RecordNodeBuilders } from './tests/builder/recordBuilder'\n\nexport {\n Arrays,\n DateFormats,\n Dates,\n FileNames,\n FileProcessor,\n Numbers,\n Objects,\n Promises,\n Queue,\n RetryProcessor,\n Strings,\n UnitOfTime,\n UUIDs,\n Versions,\n} from './utils'\n\nexport type { ArenaFileProcessorConstructorArgs, ArenaMutationOptions, ArenaParsedVersion } from './utils'\n\nexport {\n FieldValidators,\n ValidationFactory,\n ValidationResultFactory,\n ValidationResults,\n Validations,\n ValidationSeverity,\n Validator,\n ValidatorErrorKeys,\n} from './validation'\nexport type {\n ArenaDissocFieldValidationOptions,\n ArenaFieldValidator,\n ArenaValidation,\n ArenaValidationFields,\n ArenaValidationResult,\n ArenaValidationCounts,\n} from './validation'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,UAAU,EACV,UAAU,EACV,SAAS,EACT,WAAW,EACX,KAAK,GACN,MAAM,QAAQ,CAAA;AAwBf,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAUvF,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAEtD,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAU5E,OAAO,EAAE,cAAc,EAAE,M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AAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,eAAe,EACf,yBAAyB,EACzB,kBAAkB,EAClB,mBAAmB,EACnB,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,iBAAiB,GAClB,MAAM,UAAU,CAAA;AAiBjB,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAGzD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGlE,OAAO,EACL,aAAa,EACb,eAAe,EACf,qBAAqB,EACrB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,kBAAkB,EAClB,OAAO,EACP,sBAAsB,EACtB,sBAAsB,EACtB,YAAY,GACb,MAAM,UAAU,CAAA;AAqBjB,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,eAAe,EAAE,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAanH,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACnF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAA;AAEjF,OAAO,EACL,MAAM,EACN,WAAW,EACX,KAAK,EACL,SAAS,EACT,aAAa,EACb,OAAO,EACP,OAAO,EACP,QAAQ,EACR,KAAK,EACL,cAAc,EACd,OAAO,EACP,UAAU,EACV,KAAK,EACL,QAAQ,GACT,MAAM,SAAS,CAAA;AAUhB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,kBAAkB,GACnB,MAAM,cAAc,CAAA","sourcesContent":["export type { ArenaAppInfo } from './app'\n\nexport {\n Authorizer,\n AuthGroupName,\n createDefaultAuthGroups,\n UserStatus,\n Permission,\n UserTitle,\n UserFactory,\n Users,\n} from './auth'\nexport type {\n ArenaAuthGroup,\n ArenaUser,\n ArenaUserAuthGroup,\n ArenaUserAuthGroupProps,\n ArenaAuthToken,\n ArenaUserAuthTokenPayload,\n ArenaUserAuthTokenService,\n ArenaUserPrefs,\n ArenaUserPrefSurveys,\n ArenaUserProps,\n ArenaUserAuthRefreshToken,\n ArenaUserAuthRefreshTokenProps,\n ArenaUserAuthRefreshTokenPayload,\n ArenaUserService,\n ArenaUserTokenPayload,\n ArenaDownloadAuthTokenPayload,\n ArenaUserGroup,\n ArenaUserGroupProps,\n ArenaUserGroupQualifier,\n ArenaUserInvitation,\n} from './auth'\n\nexport { CategoryFactory, CategoryItemFactory, CategoryLevelFactory } from './category'\nexport type {\n ArenaCategoryItemProps,\n ArenaCategory,\n ArenaCategoryItem,\n ArenaCategoryLevel,\n ArenaCategoryLevelProps,\n ArenaCategoryProps,\n} from './category'\n\nexport { Categories, CategoryItems } from './category'\n\nexport { ChainFactory, ChainStatusExec, ChainNodeDefFactory } from './chain'\nexport type {\n ArenaChain,\n ArenaChainProps,\n ArenaChainNodeDef,\n ArenaChainNodeDefProps,\n ArenaChainNodeDefAggregate,\n ArenaChainNodeDefAggregateProps,\n} from './chain'\n\nexport { TraverseMethod } from './common'\nexport type { ArenaObject, ArenaService, ArenaDictionary, ArenaFactory, ArenaI18n } from './common'\n\nexport type { ArenaFlatDataExportOptions, ArenaExportInfoFactoryParams, ArenaExportInfo } from './dataExport'\nexport {\n FlatDataExportDefaultOptions,\n FlatDataExportOption,\n FlatDataFiles,\n FlatDataExportModel,\n FlatDataExportColumnDataType,\n ArenaExportFile,\n ArenaExportInfoFactory,\n ArenaExportType,\n UniqueFileNamesGenerator,\n} from './dataExport'\n\nexport { DataQueryMode, DataQuerySummaries } from './dataQuery'\nexport type { ArenaDataQuery, ArenaDataQuerySummary, ArenaDataQuerySummaryProps } from './dataQuery'\n\nexport { SystemError, SystemErrorKeys } from './error'\n\nexport {\n ExpressionNodeType,\n ExpressionNodeEvaluator,\n ExpressionVariable,\n JavascriptExpressionEvaluator,\n JavascriptExpressionParser,\n} from './expression'\nexport type {\n ArenaArrayExpression,\n ArenaBinaryExpression,\n ArenaCallExpression,\n ArenaCompoundExpression,\n ArenaConditionalExpression,\n ArenaExpressionContext,\n ArenaExpressionEvaluator,\n ArenaExpressionFunction,\n ArenaExpressionFunctions,\n ArenaAnyExpressionNode,\n ArenaExpressionNode,\n ArenaExpressionNodeEvaluatorConstructor,\n ArenaMemberExpression,\n ArenaIdentifierExpression,\n ArenaLiteralExpression,\n ArenaSequenceExpression,\n ArenaThisExpression,\n ArenaUnaryExpression,\n} from './expression'\n\nexport { ExtraPropDataType, ExtraPropsDataGenerator } from './extraProp'\nexport type { ArenaExtraPropDef, ArenaExtraPropDefs } from './extraProp'\n\nexport { PointFactory, Points } from './geo'\nexport type {\n ArenaAreaOfInterest,\n ArenaAreaOfInterestDescriptor,\n ArenaGeoPolygonFeature,\n ArenaGeoTrackFeature,\n ArenaGeoTrackFeatureProperties,\n ArenaPoint,\n} from './geo'\n\nexport { JobBase, JobEventType, JobStatus } from './job'\nexport type { ArenaJob, ArenaJobContext, ArenaJobEvent, ArenaJobSerialized, ArenaJobTxClient } from './job'\n\nexport { LanguageCode, Languages, LanguagesISO639part2 } from './language'\nexport type { ArenaLabels } from './language'\n\nexport type { ArenaLogger } from './logger'\n\nexport type { ArenaMessage } from './message'\nexport { MessageNotificationType, MessagePropsKey, MessageStatus, MessageTargetUserType, Messages } from './message'\n\nexport {\n RecordNodeFactory,\n RecordNodeKeys,\n RecordNodeMetaKeys,\n RecordNodes,\n RecordNodeValueFormatter,\n RecordNodeValues,\n} from './node'\nexport type {\n ArenaRecordNode,\n ArenaRecordNodeMeta,\n ArenaRecordNodePointer,\n ArenaRecordNodeRefData,\n ArenaRecordNodesMap,\n ArenaRecordNodeValue,\n ArenaRecordNodeValueCode,\n ArenaRecordNodeValueCoordinate,\n ArenaRecordNodeValueFile,\n ArenaRecordNodeValueGeo,\n ArenaRecordNodeValueTaxon,\n} from './node'\n\nexport {\n NodeDefCountType,\n NodeDefExpressionFactory,\n NodeDefType,\n NodeDefFactory,\n NodeDefs,\n NodeDefEntityRenderType,\n NodeDefFileType,\n NodeDefTextInputType,\n NodeDefTextRenderType,\n FormHeaderColor,\n} from './nodeDef'\n\nexport { NodeDefExpressionEvaluator, NodeDefExpressionValidator } from './nodeDefExpressionEvaluator'\nexport type {\n ArenaAreaOfInterestProvider,\n ArenaCategoryItemProvider,\n ArenaTaxonProvider,\n} from './nodeDefExpressionEvaluator'\n\nexport type {\n ArenaNodeDef,\n ArenaAnyNodeDef,\n ArenaNodeDefLayout,\n ArenaNodeDefMeta,\n ArenaNodeDefProps,\n ArenaNodeDefPropsWithLayout,\n ArenaNodeDefBoolean,\n ArenaNodeDefBooleanProps,\n ArenaNodeDefCode,\n ArenaNodeDefCodeLayout,\n ArenaNodeDefCodeProps,\n ArenaCoordinateAdditionalField,\n ArenaNodeDefCoordinate,\n ArenaNodeDefCoordinateProps,\n ArenaNodeDefDate,\n ArenaNodeDefDecimal,\n ArenaNodeDefDecimalProps,\n ArenaNodeDefEntity,\n ArenaNodeDefEntityChildPosition,\n ArenaNodeDefEntityLayout,\n ArenaNodeDefEntityLayoutChildItem,\n ArenaNodeDefEntityProps,\n ArenaNodeDefPrintOrientation,\n ArenaNodeDefFile,\n ArenaNodeDefFileProps,\n ArenaNodeDefGeo,\n ArenaNodeDefGeoProps,\n ArenaNodeDefFormHeader,\n ArenaNodeDefFormHeaderProps,\n ArenaNodeDefInteger,\n ArenaNodeDefPropsAdvanced,\n ArenaNodeDefTaxon,\n ArenaNodeDefTaxonProps,\n ArenaNodeDefText,\n ArenaNodeDefTextProps,\n ArenaNodeDefTextLayout,\n ArenaNodeDefTime,\n ArenaNodeDefTimeProps,\n ArenaNodeDefCountExpression,\n ArenaNodeDefExpression,\n ArenaNodeDefExpressionFactoryParams,\n ArenaNodeDefMap,\n ArenaNodeDefValidations,\n} from './nodeDef'\n\nexport {\n RecordNodePointers,\n RecordCloner,\n RecordFactory,\n RecordFixer,\n Records,\n RECORD_STEP_DEFAULT,\n RecordStepAnalysisCode,\n RecordStepCleansingCode,\n RecordStepEntryCode,\n RecordStepNames,\n RecordSteps,\n RecordStepsList,\n RecordExpressionEvaluator,\n RecordNodesUpdater,\n RecordPrettyPrinter,\n RecordUpdater,\n RecordUpdateResult,\n RecordValidator,\n RecordValidations,\n} from './record'\nexport type {\n ArenaAttributeValidatorParams,\n ArenaAttributesValidatorParams,\n ArenaRecordNodeCreateParams,\n ArenaRecordNodesUpdateParams,\n ArenaRecord,\n ArenaRecordExpressionContext,\n ArenaRecordExpressionEvaluationContext,\n ArenaRecordService,\n ArenaRecordStep,\n ArenaRecordSummary,\n ArenaRecordUpdateOptions,\n ArenaRecordValidatorParams,\n ArenaSortedAttributesValidatorParams,\n} from './record'\n\nexport { ServiceRegistry, ServiceType } from './registry'\nexport type { ArenaServiceTypeMap } from './registry'\n\nexport { DEFAULT_SRS, DEFAULT_SRS_INDEX, SRSFactory } from './srs'\nexport type { ArenaSRS, ArenaSRSIndex } from './srs'\n\nexport {\n NodeDefsFixer,\n SurveyDocImages,\n SurveyDocImageFactory,\n SurveyDocPlace,\n SurveyDependencyType,\n SurveyFactory,\n SurveyFileFactory,\n SurveyFileType,\n SurveyRefDataFactory,\n SurveySecurityProp,\n Surveys,\n surveyDocImagePropKeys,\n surveySecurityDefaults,\n defaultCycle,\n} from './survey'\nexport type {\n ArenaSurvey,\n ArenaSurveyCycle,\n ArenaSurveyDependency,\n ArenaSurveyDependencyGraph,\n ArenaSurveyDocImage,\n ArenaSurveyDocImageFactoryParams,\n ArenaSurveyDocImageProps,\n ArenaSurveyFile,\n ArenaSurveyFileFactoryParams,\n ArenaSurveyFileProps,\n ArenaSurveyNodeDefsIndex,\n ArenaSurveyProps,\n ArenaSurveyRefData,\n ArenaSurveySecurity,\n ArenaSurveyService,\n ArenaSurveyOrSummary,\n ArenaSurveySummary,\n} from './survey'\n\nexport { Taxa, Taxonomies, TaxonomyFactory, TaxonFactory, TaxonGenerator, VernacularNameFactory } from './taxonomy'\nexport type {\n ArenaVernacularNameParams,\n ArenaTaxonomyFactoryParams,\n ArenaTaxonFactoryParams,\n ArenaTaxonomy,\n ArenaVernacularNameProps,\n ArenaVernacularName,\n ArenaTaxonProps,\n ArenaTaxon,\n ArenaTaxonomyProps,\n} from './taxonomy'\n\nexport { SurveyBuilder, SurveyObjectBuilders } from './tests/builder/surveyBuilder'\nexport { RecordBuilder, RecordNodeBuilders } from './tests/builder/recordBuilder'\n\nexport {\n Arrays,\n DateFormats,\n Dates,\n FileNames,\n FileProcessor,\n Numbers,\n Objects,\n Promises,\n Queue,\n RetryProcessor,\n Strings,\n UnitOfTime,\n UUIDs,\n Versions,\n} from './utils'\n\nexport type {\n ArenaFileProcessorChunk,\n ArenaFileProcessorConstructorArgs,\n ArenaFileProcessorUriChunk,\n ArenaMutationOptions,\n ArenaParsedVersion,\n} from './utils'\n\nexport {\n FieldValidators,\n ValidationFactory,\n ValidationResultFactory,\n ValidationResults,\n Validations,\n ValidationSeverity,\n Validator,\n ValidatorErrorKeys,\n} from './validation'\nexport type {\n ArenaDissocFieldValidationOptions,\n ArenaFieldValidator,\n ArenaValidation,\n ArenaValidationFields,\n ArenaValidationResult,\n ArenaValidationCounts,\n} from './validation'\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"","sourcesContent":["export interface ArenaLogger {\n isDebugEnabled(): boolean\n\n isInfoEnabled(): boolean\n\n isWarnEnabled(): boolean\n\n isErrorEnabled(): boolean\n\n debug(...msgs: any[]): void\n\n info(...msgs: any[]): void\n\n warn(...msgs: any[]): void\n\n error(...msgs: any[]): void\n}\n"]}
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"","sourcesContent":["export interface ArenaLogger {\n isDebugEnabled(): boolean\n\n isInfoEnabled(): boolean\n\n isWarnEnabled(): boolean\n\n isErrorEnabled(): boolean\n\n debug(...msgs: unknown[]): void\n\n info(...msgs: unknown[]): void\n\n warn(...msgs: unknown[]): void\n\n error(...msgs: unknown[]): void\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAW3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA","sourcesContent":["export type { ArenaRecordNode, ArenaRecordNodeMeta, ArenaRecordNodeRefData, ArenaRecordNodesMap } from './node'\n\nexport { RecordNodeKeys, RecordNodeMetaKeys } from './node'\n\nexport type { ArenaRecordNodePointer } from './nodePointer'\n\nexport type {\n ArenaRecordNodeValueCode,\n ArenaRecordNodeValueCoordinate,\n ArenaRecordNodeValueFile,\n ArenaRecordNodeValueTaxon,\n} from './nodeValue'\n\nexport { RecordNodeFactory } from './factory'\n\nexport { RecordNodes } from './nodes'\n\nexport { RecordNodeValueFormatter } from './nodeValueFormatter'\n\nexport { RecordNodeValues } from './nodeValues'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/node/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,QAAQ,CAAA;AAa3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAE7C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAErC,OAAO,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAA;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA","sourcesContent":["export type { ArenaRecordNode, ArenaRecordNodeMeta, ArenaRecordNodeRefData, ArenaRecordNodesMap } from './node'\n\nexport { RecordNodeKeys, RecordNodeMetaKeys } from './node'\n\nexport type { ArenaRecordNodePointer } from './nodePointer'\n\nexport type {\n ArenaRecordNodeValue,\n ArenaRecordNodeValueCode,\n ArenaRecordNodeValueCoordinate,\n ArenaRecordNodeValueFile,\n ArenaRecordNodeValueGeo,\n ArenaRecordNodeValueTaxon,\n} from './nodeValue'\n\nexport { RecordNodeFactory } from './factory'\n\nexport { RecordNodes } from './nodes'\n\nexport { RecordNodeValueFormatter } from './nodeValueFormatter'\n\nexport { RecordNodeValues } from './nodeValues'\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/node/node.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6BAAO,CAAA;IACP,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import { ArenaCategoryItem } from '../category'\nimport { ArenaTaxon } from '../taxonomy'\n\nexport enum RecordNodeKeys {\n meta = 'meta',\n value = 'value',\n}\n\nexport enum RecordNodeMetaKeys {\n h = 'h',\n hCode = 'hCode',\n}\n\nexport interface ArenaRecordNodeMeta {\n /**\n * Applicability of the node children (by definition UUID). If not defined, the children are applicable by default.\n */\n childApplicability?: { [uuid: string]: boolean }\n /**\n * Whether the node children (by definition UUID) are editable (true) or read-only (false).\n * If not defined, the children are editable by default.\n */\n cEdit?: { [uuid: string]: boolean }\n /**\n * Whether the node children (by definition UUID) are required because their \"required if\" condition is met (true).\n * If not defined, the children are not required by a condition (only true values are stored).\n */\n cReq?: { [uuid: string]: boolean }\n /**\n * Maximum number of children (by definition UUID) for the node.\n */\n childrenMaxCount?: { [uuid: string]: number }\n /**\n * Minimum number of children (by definition UUID) for the node.\n */\n childrenMinCount?: { [uuid: string]: number }\n /**\n * Whether the node children (by definition UUID) are visible (true) or hidden (false).\n * If not defined, the children are visible by default.\n */\n cVis?: { [uuid: string]: boolean }\n /**\n * Hierarchy of ancestor node UUIDs.\n */\n h?: string[]\n /**\n * Hierarchy of code attribute ancestor UUIDs (according to the parent code defs specified).\n */\n hCode?: string[]\n /**\n * True if the value has been auto-filled from the node default value\n */\n defaultValueApplied?: boolean\n /**\n * True if the value has been auto-filled from the user group qualifier\n */\n qualifierValueApplied?: boolean\n}\n\nexport interface ArenaRecordNodeRefData {\n categoryItem?: ArenaCategoryItem\n taxon?: ArenaTaxon\n}\n\nexport interface ArenaRecordNode {\n dateCreated?: string\n dateModified?: string\n id?: number\n meta?: ArenaRecordNodeMeta\n nodeDefUuid: string\n parentUuid?: string\n recordUuid: string\n refData?: ArenaRecordNodeRefData\n uuid: string\n value?: any\n placeholder?: boolean\n surveyUuid?: string\n\n // transient status variables\n /**\n * Record node has been created but not persisted yet.\n */\n created?: boolean\n /**\n * Record node has been deleted.\n */\n deleted?: boolean\n /**\n * Record node has been modified but not persisted yet.\n */\n updated?: boolean\n}\n\nexport interface ArenaRecordNodesMap {\n [key: string]: ArenaRecordNode\n}\n"]}
1
+ {"version":3,"file":"node.js","sourceRoot":"","sources":["../../../src/node/node.ts"],"names":[],"mappings":"AAGA,MAAM,CAAN,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,iCAAe,CAAA;AACjB,CAAC,EAHW,cAAc,KAAd,cAAc,QAGzB;AAED,MAAM,CAAN,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,6BAAO,CAAA;IACP,qCAAe,CAAA;AACjB,CAAC,EAHW,kBAAkB,KAAlB,kBAAkB,QAG7B","sourcesContent":["import { ArenaCategoryItem } from '../category'\nimport { ArenaTaxon } from '../taxonomy'\n\nexport enum RecordNodeKeys {\n meta = 'meta',\n value = 'value',\n}\n\nexport enum RecordNodeMetaKeys {\n h = 'h',\n hCode = 'hCode',\n}\n\nexport interface ArenaRecordNodeMeta {\n /**\n * Applicability of the node children (by definition UUID). If not defined, the children are applicable by default.\n */\n childApplicability?: { [uuid: string]: boolean }\n /**\n * Whether the node children (by definition UUID) are editable (true) or read-only (false).\n * If not defined, the children are editable by default.\n */\n cEdit?: { [uuid: string]: boolean }\n /**\n * Whether the node children (by definition UUID) are required because their \"required if\" condition is met (true).\n * If not defined, the children are not required by a condition (only true values are stored).\n */\n cReq?: { [uuid: string]: boolean }\n /**\n * Maximum number of children (by definition UUID) for the node.\n */\n childrenMaxCount?: { [uuid: string]: number }\n /**\n * Minimum number of children (by definition UUID) for the node.\n */\n childrenMinCount?: { [uuid: string]: number }\n /**\n * Whether the node children (by definition UUID) are visible (true) or hidden (false).\n * If not defined, the children are visible by default.\n */\n cVis?: { [uuid: string]: boolean }\n /**\n * Hierarchy of ancestor node UUIDs.\n */\n h?: string[]\n /**\n * Hierarchy of code attribute ancestor UUIDs (according to the parent code defs specified).\n */\n hCode?: string[]\n /**\n * True if the value has been auto-filled from the node default value\n */\n defaultValueApplied?: boolean\n /**\n * True if the value has been auto-filled from the user group qualifier\n */\n qualifierValueApplied?: boolean\n}\n\nexport interface ArenaRecordNodeRefData {\n categoryItem?: ArenaCategoryItem\n taxon?: ArenaTaxon\n}\n\nexport interface ArenaRecordNode<V = any> {\n dateCreated?: string\n dateModified?: string\n id?: number\n meta?: ArenaRecordNodeMeta\n nodeDefUuid: string\n parentUuid?: string\n recordUuid: string\n refData?: ArenaRecordNodeRefData\n uuid: string\n value?: V\n placeholder?: boolean\n surveyUuid?: string\n\n // transient status variables\n /**\n * Record node has been created but not persisted yet.\n */\n created?: boolean\n /**\n * Record node has been deleted.\n */\n deleted?: boolean\n /**\n * Record node has been modified but not persisted yet.\n */\n updated?: boolean\n}\n\nexport interface ArenaRecordNodesMap {\n [key: string]: ArenaRecordNode\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"coordinate.js","sourceRoot":"","sources":["../../../../src/node/nodeValue/coordinate.ts"],"names":[],"mappings":"","sourcesContent":["import { NodeValueComposite } from './nodeValueComposite'\n\nexport interface ArenaRecordNodeValueCoordinate extends NodeValueComposite {\n srs: string\n x: number\n y: number\n}\n"]}
1
+ {"version":3,"file":"coordinate.js","sourceRoot":"","sources":["../../../../src/node/nodeValue/coordinate.ts"],"names":[],"mappings":"","sourcesContent":["import { NodeValueComposite } from './nodeValueComposite'\n\nexport interface ArenaRecordNodeValueCoordinate extends NodeValueComposite {\n srs: string\n x: number\n y: number\n accuracy?: number\n altitude?: number\n altitudeAccuracy?: number\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=geo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geo.js","sourceRoot":"","sources":["../../../../src/node/nodeValue/geo.ts"],"names":[],"mappings":"","sourcesContent":["import type { ArenaGeoPolygonFeature, ArenaGeoTrackFeature } from '../../geo'\n\nexport type ArenaRecordNodeValueGeo = ArenaGeoPolygonFeature | ArenaGeoTrackFeature\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/node/nodeValue/index.ts"],"names":[],"mappings":"","sourcesContent":["export type { ArenaRecordNodeValueCode } from './code'\nexport type { ArenaRecordNodeValueCoordinate } from './coordinate'\nexport type { ArenaRecordNodeValueFile } from './file'\nexport type { ArenaRecordNodeValueTaxon } from './taxon'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/node/nodeValue/index.ts"],"names":[],"mappings":"","sourcesContent":["export type { ArenaRecordNodeValueCode } from './code'\nexport type { ArenaRecordNodeValueCoordinate } from './coordinate'\nexport type { ArenaRecordNodeValueFile } from './file'\nexport type { ArenaRecordNodeValueGeo } from './geo'\nexport type { ArenaRecordNodeValue } from './nodeValue'\nexport type { ArenaRecordNodeValueTaxon } from './taxon'\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=nodeValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nodeValue.js","sourceRoot":"","sources":["../../../../src/node/nodeValue/nodeValue.ts"],"names":[],"mappings":"","sourcesContent":["import type { ArenaRecordNodeValueCode } from './code'\nimport type { ArenaRecordNodeValueCoordinate } from './coordinate'\nimport type { ArenaRecordNodeValueFile } from './file'\nimport type { ArenaRecordNodeValueGeo } from './geo'\nimport type { ArenaRecordNodeValueTaxon } from './taxon'\n\n/**\n * Value of a record node of any type (date and time values are strings).\n */\nexport type ArenaRecordNodeValue =\n | ArenaRecordNodeValueCode\n | ArenaRecordNodeValueCoordinate\n | ArenaRecordNodeValueFile\n | ArenaRecordNodeValueGeo\n | ArenaRecordNodeValueTaxon\n | boolean\n | number\n | string\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nodeDef/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAgB1C,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAsBrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAK9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAQpD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA","sourcesContent":["export { NodeDefFactory } from './factory'\n\nexport type {\n ArenaNodeDef,\n ArenaAnyNodeDef,\n ArenaNodeDefProps,\n ArenaNodeDefPropsWithLayout,\n ArenaNodeDefMeta,\n ArenaNodeDefPropsAdvanced,\n ArenaNodeDefExpression,\n ArenaNodeDefLayout,\n ArenaNodeDefValidations,\n ArenaNodeDefMap,\n ArenaNodeDefCountExpression,\n ArenaNodeDefExpressionFactoryParams,\n} from './nodeDef'\nexport { NodeDefCountType, NodeDefExpressionFactory, NodeDefType } from './nodeDef'\nexport { NodeDefs } from './nodeDefs'\n\n// ==== node def types\nexport type { ArenaNodeDefBoolean, ArenaNodeDefBooleanProps } from './types/boolean'\n\nexport type { ArenaNodeDefCode, ArenaNodeDefCodeLayout, ArenaNodeDefCodeProps } from './types/code'\n\nexport type { ArenaNodeDefCoordinate, ArenaNodeDefCoordinateProps } from './types/coordinate'\n\nexport type { ArenaNodeDefDate } from './types/date'\n\nexport type { ArenaNodeDefDecimal, ArenaNodeDefDecimalProps } from './types/decimal'\n\nexport type {\n ArenaNodeDefEntity,\n ArenaNodeDefEntityChildPosition,\n ArenaNodeDefEntityLayout,\n ArenaNodeDefEntityLayoutChildItem,\n ArenaNodeDefEntityProps,\n ArenaNodeDefPrintOrientation,\n} from './types/entity'\n\nexport { NodeDefEntityRenderType } from './types/entity'\n\nexport { NodeDefFileType } from './types/file'\nexport type { ArenaNodeDefFile, ArenaNodeDefFileProps } from './types/file'\n\nexport type { ArenaNodeDefGeo, ArenaNodeDefGeoProps } from './types/geo'\n\nexport { FormHeaderColor } from './types/formHeader'\nexport type { ArenaNodeDefFormHeader, ArenaNodeDefFormHeaderProps } from './types/formHeader'\n\nexport type { ArenaNodeDefInteger } from './types/integer'\n\nexport type { ArenaNodeDefTaxon, ArenaNodeDefTaxonProps } from './types/taxon'\n\nexport type { ArenaNodeDefText, ArenaNodeDefTextProps, ArenaNodeDefTextLayout } from './types/text'\nexport { NodeDefTextRenderType, NodeDefTextInputType } from './types/text'\n\nexport type { ArenaNodeDefTime, ArenaNodeDefTimeProps } from './types/time'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nodeDef/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAgB1C,OAAO,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AA0BrC,OAAO,EAAE,uBAAuB,EAAE,MAAM,gBAAgB,CAAA;AAExD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAK9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAQpD,OAAO,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAA","sourcesContent":["export { NodeDefFactory } from './factory'\n\nexport type {\n ArenaNodeDef,\n ArenaAnyNodeDef,\n ArenaNodeDefProps,\n ArenaNodeDefPropsWithLayout,\n ArenaNodeDefMeta,\n ArenaNodeDefPropsAdvanced,\n ArenaNodeDefExpression,\n ArenaNodeDefLayout,\n ArenaNodeDefValidations,\n ArenaNodeDefMap,\n ArenaNodeDefCountExpression,\n ArenaNodeDefExpressionFactoryParams,\n} from './nodeDef'\nexport { NodeDefCountType, NodeDefExpressionFactory, NodeDefType } from './nodeDef'\nexport { NodeDefs } from './nodeDefs'\n\n// ==== node def types\nexport type { ArenaNodeDefBoolean, ArenaNodeDefBooleanProps } from './types/boolean'\n\nexport type { ArenaNodeDefCode, ArenaNodeDefCodeLayout, ArenaNodeDefCodeProps } from './types/code'\n\nexport type {\n ArenaCoordinateAdditionalField,\n ArenaNodeDefCoordinate,\n ArenaNodeDefCoordinateProps,\n} from './types/coordinate'\n\nexport type { ArenaNodeDefDate } from './types/date'\n\nexport type { ArenaNodeDefDecimal, ArenaNodeDefDecimalProps } from './types/decimal'\n\nexport type {\n ArenaNodeDefEntity,\n ArenaNodeDefEntityChildPosition,\n ArenaNodeDefEntityLayout,\n ArenaNodeDefEntityLayoutChildItem,\n ArenaNodeDefEntityProps,\n ArenaNodeDefPrintOrientation,\n} from './types/entity'\n\nexport { NodeDefEntityRenderType } from './types/entity'\n\nexport { NodeDefFileType } from './types/file'\nexport type { ArenaNodeDefFile, ArenaNodeDefFileProps } from './types/file'\n\nexport type { ArenaNodeDefGeo, ArenaNodeDefGeoProps } from './types/geo'\n\nexport { FormHeaderColor } from './types/formHeader'\nexport type { ArenaNodeDefFormHeader, ArenaNodeDefFormHeaderProps } from './types/formHeader'\n\nexport type { ArenaNodeDefInteger } from './types/integer'\n\nexport type { ArenaNodeDefTaxon, ArenaNodeDefTaxonProps } from './types/taxon'\n\nexport type { ArenaNodeDefText, ArenaNodeDefTextProps, ArenaNodeDefTextLayout } from './types/text'\nexport { NodeDefTextRenderType, NodeDefTextInputType } from './types/text'\n\nexport type { ArenaNodeDefTime, ArenaNodeDefTimeProps } from './types/time'\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"nodeDefs.js","sourceRoot":"","sources":["../../../src/nodeDef/nodeDefs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,EAIL,gBAAgB,EAIhB,WAAW,GAEZ,MAAM,WAAW,CAAA;AAMlB,OAAO,EAIL,uBAAuB,GAExB,MAAM,gBAAgB,CAAA;AAMvB,OAAO,EAAoB,qBAAqB,EAAwB,MAAM,cAAc,CAAA;AAG5F,MAAM,MAAM,GAAG,CAAC,OAAwB,EAAW,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAA;AAEzE,MAAM,WAAW,GAAG,CAAC,OAAwB,EAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAA;AAE7E,MAAM,QAAQ,GAAG,CAAC,OAAwB,EAAiC,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,WAAW,CAAC,MAAM,CAAA;AAEjH,MAAM,SAAS,GAAG,CAAC,OAAwB,EA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AuB;IACvB,eAAe;IACf,WAAW;IACX,gBAAgB;CACjB,CAAA","sourcesContent":["import { LanguageCode } from '../language'\nimport { getLabelOrDefault } from '../language/labels'\nimport { ValuePropsCoordinate } from '../node/nodeValueProps'\nimport { defaultCycle } from '../survey'\nimport { Objects } from '../utils'\nimport {\n ArenaAnyNodeDef,\n ArenaNodeDef,\n ArenaNodeDefCountExpression,\n NodeDefCountType,\n ArenaNodeDefExpression,\n ArenaNodeDefLayout,\n ArenaNodeDefPropsWithLayout,\n NodeDefType,\n ArenaNodeDefValidations,\n} from './nodeDef'\nimport { ArenaNodeDefBoolean } from './types/boolean'\nimport { ArenaNodeDefCode } from './types/code'\nimport { ArenaNodeDefCoordinate } from './types/coordinate'\nimport { ArenaNodeDefDate } from './types/date'\nimport { ArenaNodeDefDecimal } from './types/decimal'\nimport {\n ArenaNodeDefEntity,\n ArenaNodeDefEntityLayout,\n ArenaNodeDefEntityLayoutChildItem,\n NodeDefEntityRenderType,\n ArenaNodeDefPrintOrientation,\n} from './types/entity'\nimport { ArenaNodeDefFile, NodeDefFileType } from './types/file'\nimport { ArenaNodeDefFormHeader } from './types/formHeader'\nimport { ArenaNodeDefGeo } from './types/geo'\nimport { ArenaNodeDefInteger } from './types/integer'\nimport { ArenaNodeDefTaxon } from './types/taxon'\nimport { ArenaNodeDefText, NodeDefTextRenderType, NodeDefTextInputType } from './types/text'\nimport { ArenaNodeDefTime } from './types/time'\n\nconst isRoot = (nodeDef: ArenaAnyNodeDef): boolean => !nodeDef.parentUuid\n\nconst isAttribute = (nodeDef: ArenaAnyNodeDef): boolean => !isEntity(nodeDef)\n\nconst isEntity = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefEntity => nodeDef.type === NodeDefType.entity\n\nconst isBoolean = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefBoolean => nodeDef.type === NodeDefType.boolean\n\nconst isCode = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefCode => nodeDef.type === NodeDefType.code\n\nconst isCoordinate = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefCoordinate =>\n nodeDef.type === NodeDefType.coordinate\n\nconst isDate = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefDate => nodeDef.type === NodeDefType.date\n\nconst isDecimal = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefDecimal => nodeDef.type === NodeDefType.decimal\n\nconst isFile = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefFile => nodeDef.type === NodeDefType.file\n\nconst isGeo = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefGeo => nodeDef.type === NodeDefType.geo\n\nconst isInteger = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefInteger => nodeDef.type === NodeDefType.integer\n\nconst isTaxon = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefTaxon => nodeDef.type === NodeDefType.taxon\n\nconst isText = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefText => nodeDef.type === NodeDefType.text\n\nconst isTime = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefTime => nodeDef.type === NodeDefType.time\n\nconst isMultiple = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.multiple ?? false\n\nconst isSingle = (nodeDef: ArenaAnyNodeDef): boolean => !isMultiple(nodeDef)\n\nconst isSingleEntity = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefEntity =>\n isEntity(nodeDef) && isSingle(nodeDef)\n\nconst isSingleAttribute = (nodeDef: ArenaAnyNodeDef): boolean => isAttribute(nodeDef) && isSingle(nodeDef)\n\nconst isMultipleEntity = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefEntity =>\n isEntity(nodeDef) && isMultiple(nodeDef)\n\nconst isMultipleAttribute = (nodeDef: ArenaAnyNodeDef): boolean => isAttribute(nodeDef) && isMultiple(nodeDef)\n\nconst isKey = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.key ?? false\n\nconst isAutoIncrementalKey = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.autoIncrementalKey ?? false\n\nconst isAnalysis = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.analysis ?? false\n\nconst getType = (nodeDef: ArenaAnyNodeDef): NodeDefType => nodeDef.type\n\nconst isLayoutElement = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefFormHeader =>\n nodeDef.type === NodeDefType.formHeader\n\nconst getName = (nodeDef: ArenaAnyNodeDef): string => nodeDef.props.name ?? ''\n\nconst getLabelOrName = (nodeDef: ArenaAnyNodeDef, lang: LanguageCode): string =>\n getLabelOrDefault(nodeDef.props.labels, lang, getName(nodeDef))\n\nconst getDescription = (nodeDef: ArenaAnyNodeDef, lang: LanguageCode): string =>\n getLabelOrDefault(nodeDef.props.descriptions, lang)\n\nconst isQualifier = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.qualifier ?? false\n\nconst isReadOnly = (nodeDef: ArenaNodeDef<any>): boolean => nodeDef.props.readOnly ?? false\n\nconst isHidden = (nodeDef: ArenaNodeDef<any>): boolean => nodeDef.props.hidden ?? false\n\nconst isEnumerate = (nodeDef: ArenaNodeDefEntity): boolean => nodeDef.props.enumerate ?? false\n\nconst getEnumeratingItemsExpression = (nodeDef: ArenaNodeDefEntity): string | undefined =>\n nodeDef.propsAdvanced?.enumeratingItemsExpression\n\nconst isAutoCreateMinCountItems = (nodeDef: ArenaNodeDefEntity): boolean =>\n isMultipleEntity(nodeDef) && (nodeDef.props.autoCreateMinCountItems ?? false)\n\nconst getPrintOrientation = (nodeDef: ArenaNodeDefEntity): ArenaNodeDefPrintOrientation | undefined =>\n nodeDef.props.printOrientation\n\nconst getDefaultValues = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] =>\n nodeDef.propsAdvanced?.defaultValues ?? []\n\nconst isDefaultValueEvaluatedOneTime = (nodeDef: ArenaAnyNodeDef): boolean =>\n !!nodeDef.propsAdvanced?.defaultValueEvaluatedOneTime\n\nconst getApplicable = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => nodeDef.propsAdvanced?.applicable ?? []\n\nconst getVisibleFields = (nodeDef: ArenaAnyNodeDef): string[] | undefined => nodeDef.props.visibleFields\n\nconst isFieldVisible = (field: string) => (nodeDef: ArenaNodeDef<any>) => {\n const visibleFields = getVisibleFields(nodeDef)\n return !visibleFields || visibleFields.includes(field)\n}\n\nconst isInCycle =\n (cycle: string) =>\n (nodeDef: ArenaAnyNodeDef): boolean => {\n const cycles = nodeDef.props.cycles ?? [defaultCycle]\n return cycles.includes(cycle)\n }\n\nconst isExcludedInClone = (nodeDef: ArenaAnyNodeDef): boolean => !!nodeDef.propsAdvanced?.excludedInClone\n\nconst getEditableIf = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => nodeDef.propsAdvanced?.editableIf ?? []\n\nconst isAlwaysEditable = (nodeDef: ArenaAnyNodeDef): boolean => getEditableIf(nodeDef).length === 0\n\nconst getVisibleIf = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => nodeDef.propsAdvanced?.visibleIf ?? []\n\nconst isAlwaysVisible = (nodeDef: ArenaAnyNodeDef): boolean => getVisibleIf(nodeDef).length === 0\n\n// code\nconst getCategoryUuid = (nodeDef: ArenaNodeDefCode): string | undefined => nodeDef.props.categoryUuid\nconst getParentCodeDefUuid = (nodeDef: ArenaNodeDefCode): string | undefined => nodeDef.props.parentCodeDefUuid\n\n// coordinate\nconst isAllowOnlyDeviceCoordinate = (nodeDef: ArenaNodeDefCoordinate): boolean =>\n !!nodeDef.props.allowOnlyDeviceCoordinate\n\nconst getCoordinateAdditionalFields = (nodeDef: ArenaNodeDefCoordinate): string[] => {\n const result = []\n if (nodeDef.props.includeAccuracy) result.push(ValuePropsCoordinate[ValuePropsCoordinate.accuracy])\n if (nodeDef.props.includeAltitude) result.push(ValuePropsCoordinate[ValuePropsCoordinate.altitude])\n if (nodeDef.props.includeAltitudeAccuracy) result.push(ValuePropsCoordinate[ValuePropsCoordinate.altitudeAccuracy])\n return result\n}\n\n// decimal\nconst getMaxNumberDecimalDigits = (nodeDef: ArenaNodeDefDecimal) => {\n const decimalDigits = nodeDef.props.maxNumberDecimalDigits\n return Objects.isEmpty(decimalDigits) ? Number.NaN : Number(decimalDigits)\n}\n\n// file\nconst getFileType = (nodeDef: ArenaNodeDefFile): NodeDefFileType | undefined => nodeDef.props.fileType\nconst getFileNameExpression = (nodeDef: ArenaNodeDefFile): string | undefined =>\n nodeDef.propsAdvanced?.fileNameExpression\nconst getFileMaxSize = (nodeDef: ArenaNodeDefFile): number | undefined => nodeDef.props.maxFileSize\nconst isGeotagInformationShown = (nodeDef: ArenaNodeDefFile): boolean => !!nodeDef.props.geotagInformationShown\nconst isScreenCaptureInMapAllowed = (nodeDef: ArenaNodeDefFile): boolean => !!nodeDef.props.screenCaptureInMapAllowed\n\n// geo\nconst isPositionTracking = (nodeDef: ArenaNodeDefGeo): boolean => !!nodeDef.props.positionTracking\n\n// time\nconst isSecondsIncluded = (nodeDef: ArenaNodeDefTime): boolean => !!nodeDef.props.includeSeconds\n\n// taxon\nconst getTaxonomyUuid = (nodeDef: ArenaNodeDefTaxon): string | undefined => nodeDef.props.taxonomyUuid\n\nconst isVernacularNameSelectionKept = (nodeDef: ArenaNodeDefTaxon): boolean =>\n !!nodeDef.props.vernacularNameSelectionKept\n\nconst isVernacularNameAlwaysIncludedIfSingle = (nodeDef: ArenaNodeDefTaxon): boolean =>\n !!nodeDef.props.vernacularNameAlwaysIncludedIfSingle\n\n// text\nconst getTextTransform = (nodeDef: ArenaNodeDefText): string | undefined => nodeDef.props?.textTransform\nconst getTextInputType = (nodeDef: ArenaNodeDefText): NodeDefTextInputType | undefined => nodeDef.props?.textInputType\n\n// code and taxon\nconst getItemsFilter = (nodeDef: ArenaNodeDef<any>): string | undefined => nodeDef.propsAdvanced?.itemsFilter\n\n// Validations\nconst getValidations = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefValidations | undefined =>\n nodeDef.propsAdvanced?.validations\n\nconst getValidationsExpressions = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] =>\n getValidations(nodeDef)?.expressions ?? []\n\nconst isRequired = (nodeDef: ArenaAnyNodeDef): boolean => getValidations(nodeDef)?.required ?? false\n\nconst getRequiredIf = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => getValidations(nodeDef)?.requiredIf ?? []\n\nconst isRequiredIfDefined = (nodeDef: ArenaAnyNodeDef): boolean => getRequiredIf(nodeDef).length > 0\n\n/**\n * True if the node def is always required or required when a condition is met (node def level, not record level).\n */\nconst isRequiredOrConditionallyRequired = (nodeDef: ArenaAnyNodeDef): boolean =>\n isRequired(nodeDef) || isRequiredIfDefined(nodeDef)\n\n// // Min/max count\n\nconst getCount = (nodeDef: ArenaAnyNodeDef, countType: NodeDefCountType): ArenaNodeDefCountExpression | undefined => {\n const countValidations = getValidations(nodeDef)?.count\n if (!countValidations) return undefined\n return countType === NodeDefCountType.max ? countValidations.max : countValidations.min\n}\n\nconst getMinCount = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefCountExpression | undefined =>\n getCount(nodeDef, NodeDefCountType.min)\n\nconst getMaxCount = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefCountExpression | undefined =>\n getCount(nodeDef, NodeDefCountType.max)\n\nconst hasMinOrMaxCount = (nodeDef: ArenaAnyNodeDef): boolean =>\n Objects.isNotEmpty(getMinCount(nodeDef)) || Objects.isNotEmpty(getMaxCount(nodeDef))\n\n// layout\nconst getLayoutProps =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<any>>): any =>\n nodeDef?.props?.layout?.[cycle] ?? {}\n\nconst getLayoutRenderType =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<any>>): string | undefined =>\n getLayoutProps(cycle)(nodeDef).renderType\n\nconst isLayoutRenderTypeForm =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefEntityRenderType.form\n\nconst isLayoutRenderTypeTable =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefEntityRenderType.table\n\nconst isLayoutRenderTypeHyperlink =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefText): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefTextRenderType.hyperlink\n\nconst isLayoutRenderTypeMarkdown =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefText): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefTextRenderType.markdown\n\nconst getChildrenEntitiesInOwnPageUuids =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): string[] =>\n (getLayoutProps(cycle)(nodeDef) as ArenaNodeDefEntityLayout).indexChildren ?? []\n\nconst getLayoutChildren =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): ArenaNodeDefEntityLayoutChildItem[] =>\n (getLayoutProps(cycle)(nodeDef) as ArenaNodeDefEntityLayout).layoutChildren ?? []\n\nconst getPageUuid =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): string | undefined =>\n (getLayoutProps(cycle)(nodeDef) as ArenaNodeDefEntityLayout).pageUuid\n\nconst isDisplayInOwnPage =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): boolean =>\n !!getPageUuid(cycle)(nodeDef)\n\nconst isHiddenInMobile =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).hiddenInMobile ?? false\n\nconst isIncludedInMultipleEntitySummary =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).includedInMultipleEntitySummary ?? false\n\nconst isIncludedInPreviousCycleLink =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).includedInPreviousCycleLink ?? true\n\nconst isHiddenWhenNotRelevant =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).hiddenWhenNotRelevant ?? false\n\nconst isCodeShown =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefCode): boolean =>\n !!(getLayoutProps(cycle)(nodeDef).codeShown ?? true)\n\n// Analysis\nconst getAreaBasedEstimatedOf = (nodeDef: ArenaNodeDef<any>): string | undefined =>\n nodeDef.propsAdvancedDraft?.areaBasedEstimatedOf ?? nodeDef.propsAdvanced?.areaBasedEstimatedOf\n\nconst getIndexInChain = (nodeDef: ArenaNodeDef<any>): number | undefined => nodeDef.propsAdvanced?.index\n\n// Metadata\nconst getMetaHierarchy = (nodeDef: ArenaNodeDef<any>): string[] => nodeDef.meta?.h ?? []\n\nexport const NodeDefs = {\n isEntity,\n isBoolean,\n isCode,\n isCoordinate,\n isDate,\n isDecimal,\n isFile,\n isGeo,\n isInteger,\n isTaxon,\n isText,\n isTime,\n isMultiple,\n isMultipleEntity,\n isSingle,\n isSingleEntity,\n isAttribute,\n isSingleAttribute,\n isMultipleAttribute,\n isKey,\n isAutoIncrementalKey,\n isQualifier,\n isReadOnly,\n isHidden,\n isEnumerate,\n getEnumeratingItemsExpression,\n isAutoCreateMinCountItems,\n getPrintOrientation,\n isAnalysis,\n isRoot,\n getType,\n isLayoutElement,\n getName,\n getLabelOrName,\n getDescription,\n getDefaultValues,\n isDefaultValueEvaluatedOneTime,\n getApplicable,\n getVisibleFields,\n isFieldVisible,\n isInCycle,\n isExcludedInClone,\n getEditableIf,\n isAlwaysEditable,\n getVisibleIf,\n isAlwaysVisible,\n\n getCategoryUuid,\n getParentCodeDefUuid,\n isAllowOnlyDeviceCoordinate,\n getCoordinateAdditionalFields,\n getMaxNumberDecimalDigits,\n getFileNameExpression,\n getFileType,\n getFileMaxSize,\n isGeotagInformationShown,\n isScreenCaptureInMapAllowed,\n isPositionTracking,\n isSecondsIncluded,\n getTaxonomyUuid,\n isVernacularNameSelectionKept,\n isVernacularNameAlwaysIncludedIfSingle,\n getTextTransform,\n getTextInputType,\n getItemsFilter,\n\n // layout\n getLayoutProps,\n getLayoutRenderType,\n isLayoutRenderTypeForm,\n isLayoutRenderTypeTable,\n getChildrenEntitiesInOwnPageUuids,\n getLayoutChildren,\n getPageUuid,\n isDisplayInOwnPage,\n isHiddenInMobile,\n isIncludedInMultipleEntitySummary,\n isIncludedInPreviousCycleLink,\n isHiddenWhenNotRelevant,\n isCodeShown,\n isLayoutRenderTypeHyperlink,\n isLayoutRenderTypeMarkdown,\n // validations\n getValidations,\n getValidationsExpressions,\n isRequired,\n getRequiredIf,\n isRequiredIfDefined,\n isRequiredOrConditionallyRequired,\n // // Min Max\n hasMinOrMaxCount,\n getCount,\n getMaxCount,\n getMinCount,\n // Analysis\n getAreaBasedEstimatedOf,\n getIndexInChain,\n // Metadata\n getMetaHierarchy,\n}\n"]}
1
+ {"version":3,"file":"nodeDefs.js","sourceRoot":"","sources":["../../../src/nodeDef/nodeDefs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAClC,OAAO,EAIL,gBAAgB,EAIhB,WAAW,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jB,eAAe;IACf,6BAA6B;IAC7B,sCAAsC;IACtC,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IAEd,SAAS;IACT,cAAc;IACd,mBAAmB;IACnB,sBAAsB;IACtB,uBAAuB;IACvB,iCAAiC;IACjC,iBAAiB;IACjB,WAAW;IACX,kBAAkB;IAClB,gBAAgB;IAChB,iCAAiC;IACjC,6BAA6B;IAC7B,uBAAuB;IACvB,WAAW;IACX,2BAA2B;IAC3B,0BAA0B;IAC1B,cAAc;IACd,cAAc;IACd,yBAAyB;IACzB,UAAU;IACV,aAAa;IACb,mBAAmB;IACnB,iCAAiC;IACjC,aAAa;IACb,gBAAgB;IAChB,QAAQ;IACR,WAAW;IACX,WAAW;IACX,WAAW;IACX,uBAAuB;IACvB,eAAe;IACf,WAAW;IACX,gBAAgB;CACjB,CAAA","sourcesContent":["import { LanguageCode } from '../language'\nimport { getLabelOrDefault } from '../language/labels'\nimport { ValuePropsCoordinate } from '../node/nodeValueProps'\nimport { defaultCycle } from '../survey'\nimport { Objects } from '../utils'\nimport {\n ArenaAnyNodeDef,\n ArenaNodeDef,\n ArenaNodeDefCountExpression,\n NodeDefCountType,\n ArenaNodeDefExpression,\n ArenaNodeDefLayout,\n ArenaNodeDefPropsWithLayout,\n NodeDefType,\n ArenaNodeDefValidations,\n} from './nodeDef'\nimport { ArenaNodeDefBoolean } from './types/boolean'\nimport { ArenaNodeDefCode } from './types/code'\nimport { ArenaCoordinateAdditionalField, ArenaNodeDefCoordinate } from './types/coordinate'\nimport { ArenaNodeDefDate } from './types/date'\nimport { ArenaNodeDefDecimal } from './types/decimal'\nimport {\n ArenaNodeDefEntity,\n ArenaNodeDefEntityLayout,\n ArenaNodeDefEntityLayoutChildItem,\n NodeDefEntityRenderType,\n ArenaNodeDefPrintOrientation,\n} from './types/entity'\nimport { ArenaNodeDefFile, NodeDefFileType } from './types/file'\nimport { ArenaNodeDefFormHeader } from './types/formHeader'\nimport { ArenaNodeDefGeo } from './types/geo'\nimport { ArenaNodeDefInteger } from './types/integer'\nimport { ArenaNodeDefTaxon } from './types/taxon'\nimport { ArenaNodeDefText, NodeDefTextRenderType, NodeDefTextInputType } from './types/text'\nimport { ArenaNodeDefTime } from './types/time'\n\nconst isRoot = (nodeDef: ArenaAnyNodeDef): boolean => !nodeDef.parentUuid\n\nconst isAttribute = (nodeDef: ArenaAnyNodeDef): boolean => !isEntity(nodeDef)\n\nconst isEntity = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefEntity => nodeDef.type === NodeDefType.entity\n\nconst isBoolean = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefBoolean => nodeDef.type === NodeDefType.boolean\n\nconst isCode = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefCode => nodeDef.type === NodeDefType.code\n\nconst isCoordinate = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefCoordinate =>\n nodeDef.type === NodeDefType.coordinate\n\nconst isDate = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefDate => nodeDef.type === NodeDefType.date\n\nconst isDecimal = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefDecimal => nodeDef.type === NodeDefType.decimal\n\nconst isFile = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefFile => nodeDef.type === NodeDefType.file\n\nconst isGeo = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefGeo => nodeDef.type === NodeDefType.geo\n\nconst isInteger = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefInteger => nodeDef.type === NodeDefType.integer\n\nconst isTaxon = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefTaxon => nodeDef.type === NodeDefType.taxon\n\nconst isText = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefText => nodeDef.type === NodeDefType.text\n\nconst isTime = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefTime => nodeDef.type === NodeDefType.time\n\nconst isMultiple = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.multiple ?? false\n\nconst isSingle = (nodeDef: ArenaAnyNodeDef): boolean => !isMultiple(nodeDef)\n\nconst isSingleEntity = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefEntity =>\n isEntity(nodeDef) && isSingle(nodeDef)\n\nconst isSingleAttribute = (nodeDef: ArenaAnyNodeDef): boolean => isAttribute(nodeDef) && isSingle(nodeDef)\n\nconst isMultipleEntity = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefEntity =>\n isEntity(nodeDef) && isMultiple(nodeDef)\n\nconst isMultipleAttribute = (nodeDef: ArenaAnyNodeDef): boolean => isAttribute(nodeDef) && isMultiple(nodeDef)\n\nconst isKey = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.key ?? false\n\nconst isAutoIncrementalKey = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.autoIncrementalKey ?? false\n\nconst isAnalysis = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.analysis ?? false\n\nconst getType = (nodeDef: ArenaAnyNodeDef): NodeDefType => nodeDef.type\n\nconst isLayoutElement = (nodeDef: ArenaAnyNodeDef): nodeDef is ArenaNodeDefFormHeader =>\n nodeDef.type === NodeDefType.formHeader\n\nconst getName = (nodeDef: ArenaAnyNodeDef): string => nodeDef.props.name ?? ''\n\nconst getLabelOrName = (nodeDef: ArenaAnyNodeDef, lang: LanguageCode): string =>\n getLabelOrDefault(nodeDef.props.labels, lang, getName(nodeDef))\n\nconst getDescription = (nodeDef: ArenaAnyNodeDef, lang: LanguageCode): string =>\n getLabelOrDefault(nodeDef.props.descriptions, lang)\n\nconst isQualifier = (nodeDef: ArenaAnyNodeDef): boolean => nodeDef.props.qualifier ?? false\n\nconst isReadOnly = (nodeDef: ArenaNodeDef<any>): boolean => nodeDef.props.readOnly ?? false\n\nconst isHidden = (nodeDef: ArenaNodeDef<any>): boolean => nodeDef.props.hidden ?? false\n\nconst isEnumerate = (nodeDef: ArenaNodeDefEntity): boolean => nodeDef.props.enumerate ?? false\n\nconst getEnumeratingItemsExpression = (nodeDef: ArenaNodeDefEntity): string | undefined =>\n nodeDef.propsAdvanced?.enumeratingItemsExpression\n\nconst isAutoCreateMinCountItems = (nodeDef: ArenaNodeDefEntity): boolean =>\n isMultipleEntity(nodeDef) && (nodeDef.props.autoCreateMinCountItems ?? false)\n\nconst getPrintOrientation = (nodeDef: ArenaNodeDefEntity): ArenaNodeDefPrintOrientation | undefined =>\n nodeDef.props.printOrientation\n\nconst getDefaultValues = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] =>\n nodeDef.propsAdvanced?.defaultValues ?? []\n\nconst isDefaultValueEvaluatedOneTime = (nodeDef: ArenaAnyNodeDef): boolean =>\n !!nodeDef.propsAdvanced?.defaultValueEvaluatedOneTime\n\nconst getApplicable = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => nodeDef.propsAdvanced?.applicable ?? []\n\nconst getVisibleFields = (nodeDef: ArenaAnyNodeDef): string[] | undefined => nodeDef.props.visibleFields\n\nconst isFieldVisible = (field: string) => (nodeDef: ArenaNodeDef<any>) => {\n const visibleFields = getVisibleFields(nodeDef)\n return !visibleFields || visibleFields.includes(field)\n}\n\nconst isInCycle =\n (cycle: string) =>\n (nodeDef: ArenaAnyNodeDef): boolean => {\n const cycles = nodeDef.props.cycles ?? [defaultCycle]\n return cycles.includes(cycle)\n }\n\nconst isExcludedInClone = (nodeDef: ArenaAnyNodeDef): boolean => !!nodeDef.propsAdvanced?.excludedInClone\n\nconst getEditableIf = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => nodeDef.propsAdvanced?.editableIf ?? []\n\nconst isAlwaysEditable = (nodeDef: ArenaAnyNodeDef): boolean => getEditableIf(nodeDef).length === 0\n\nconst getVisibleIf = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => nodeDef.propsAdvanced?.visibleIf ?? []\n\nconst isAlwaysVisible = (nodeDef: ArenaAnyNodeDef): boolean => getVisibleIf(nodeDef).length === 0\n\n// code\nconst getCategoryUuid = (nodeDef: ArenaNodeDefCode): string | undefined => nodeDef.props.categoryUuid\nconst getParentCodeDefUuid = (nodeDef: ArenaNodeDefCode): string | undefined => nodeDef.props.parentCodeDefUuid\n\n// coordinate\nconst isAllowOnlyDeviceCoordinate = (nodeDef: ArenaNodeDefCoordinate): boolean =>\n !!nodeDef.props.allowOnlyDeviceCoordinate\n\nconst getCoordinateAdditionalFields = (nodeDef: ArenaNodeDefCoordinate): ArenaCoordinateAdditionalField[] => {\n const result: ArenaCoordinateAdditionalField[] = []\n if (nodeDef.props.includeAccuracy) result.push(ValuePropsCoordinate[ValuePropsCoordinate.accuracy])\n if (nodeDef.props.includeAltitude) result.push(ValuePropsCoordinate[ValuePropsCoordinate.altitude])\n if (nodeDef.props.includeAltitudeAccuracy) result.push(ValuePropsCoordinate[ValuePropsCoordinate.altitudeAccuracy])\n return result\n}\n\n// decimal\nconst getMaxNumberDecimalDigits = (nodeDef: ArenaNodeDefDecimal) => {\n const decimalDigits = nodeDef.props.maxNumberDecimalDigits\n return Objects.isEmpty(decimalDigits) ? Number.NaN : Number(decimalDigits)\n}\n\n// file\nconst getFileType = (nodeDef: ArenaNodeDefFile): NodeDefFileType | undefined => nodeDef.props.fileType\nconst getFileNameExpression = (nodeDef: ArenaNodeDefFile): string | undefined =>\n nodeDef.propsAdvanced?.fileNameExpression\nconst getFileMaxSize = (nodeDef: ArenaNodeDefFile): number | undefined => nodeDef.props.maxFileSize\nconst isGeotagInformationShown = (nodeDef: ArenaNodeDefFile): boolean => !!nodeDef.props.geotagInformationShown\nconst isScreenCaptureInMapAllowed = (nodeDef: ArenaNodeDefFile): boolean => !!nodeDef.props.screenCaptureInMapAllowed\n\n// geo\nconst isPositionTracking = (nodeDef: ArenaNodeDefGeo): boolean => !!nodeDef.props.positionTracking\n\n// time\nconst isSecondsIncluded = (nodeDef: ArenaNodeDefTime): boolean => !!nodeDef.props.includeSeconds\n\n// taxon\nconst getTaxonomyUuid = (nodeDef: ArenaNodeDefTaxon): string | undefined => nodeDef.props.taxonomyUuid\n\nconst isVernacularNameSelectionKept = (nodeDef: ArenaNodeDefTaxon): boolean =>\n !!nodeDef.props.vernacularNameSelectionKept\n\nconst isVernacularNameAlwaysIncludedIfSingle = (nodeDef: ArenaNodeDefTaxon): boolean =>\n !!nodeDef.props.vernacularNameAlwaysIncludedIfSingle\n\n// text\nconst getTextTransform = (nodeDef: ArenaNodeDefText): string | undefined => nodeDef.props?.textTransform\nconst getTextInputType = (nodeDef: ArenaNodeDefText): NodeDefTextInputType | undefined => nodeDef.props?.textInputType\n\n// code and taxon\nconst getItemsFilter = (nodeDef: ArenaNodeDef<any>): string | undefined => nodeDef.propsAdvanced?.itemsFilter\n\n// Validations\nconst getValidations = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefValidations | undefined =>\n nodeDef.propsAdvanced?.validations\n\nconst getValidationsExpressions = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] =>\n getValidations(nodeDef)?.expressions ?? []\n\nconst isRequired = (nodeDef: ArenaAnyNodeDef): boolean => getValidations(nodeDef)?.required ?? false\n\nconst getRequiredIf = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefExpression[] => getValidations(nodeDef)?.requiredIf ?? []\n\nconst isRequiredIfDefined = (nodeDef: ArenaAnyNodeDef): boolean => getRequiredIf(nodeDef).length > 0\n\n/**\n * True if the node def is always required or required when a condition is met (node def level, not record level).\n */\nconst isRequiredOrConditionallyRequired = (nodeDef: ArenaAnyNodeDef): boolean =>\n isRequired(nodeDef) || isRequiredIfDefined(nodeDef)\n\n// // Min/max count\n\nconst getCount = (nodeDef: ArenaAnyNodeDef, countType: NodeDefCountType): ArenaNodeDefCountExpression | undefined => {\n const countValidations = getValidations(nodeDef)?.count\n if (!countValidations) return undefined\n return countType === NodeDefCountType.max ? countValidations.max : countValidations.min\n}\n\nconst getMinCount = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefCountExpression | undefined =>\n getCount(nodeDef, NodeDefCountType.min)\n\nconst getMaxCount = (nodeDef: ArenaAnyNodeDef): ArenaNodeDefCountExpression | undefined =>\n getCount(nodeDef, NodeDefCountType.max)\n\nconst hasMinOrMaxCount = (nodeDef: ArenaAnyNodeDef): boolean =>\n Objects.isNotEmpty(getMinCount(nodeDef)) || Objects.isNotEmpty(getMaxCount(nodeDef))\n\n// layout\nconst getLayoutProps =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<any>>): any =>\n nodeDef?.props?.layout?.[cycle] ?? {}\n\nconst getLayoutRenderType =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<any>>): string | undefined =>\n getLayoutProps(cycle)(nodeDef).renderType\n\nconst isLayoutRenderTypeForm =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefEntityRenderType.form\n\nconst isLayoutRenderTypeTable =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefEntityRenderType.table\n\nconst isLayoutRenderTypeHyperlink =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefText): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefTextRenderType.hyperlink\n\nconst isLayoutRenderTypeMarkdown =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefText): boolean =>\n getLayoutRenderType(cycle)(nodeDef) === NodeDefTextRenderType.markdown\n\nconst getChildrenEntitiesInOwnPageUuids =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): string[] =>\n (getLayoutProps(cycle)(nodeDef) as ArenaNodeDefEntityLayout).indexChildren ?? []\n\nconst getLayoutChildren =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): ArenaNodeDefEntityLayoutChildItem[] =>\n (getLayoutProps(cycle)(nodeDef) as ArenaNodeDefEntityLayout).layoutChildren ?? []\n\nconst getPageUuid =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): string | undefined =>\n (getLayoutProps(cycle)(nodeDef) as ArenaNodeDefEntityLayout).pageUuid\n\nconst isDisplayInOwnPage =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefEntity): boolean =>\n !!getPageUuid(cycle)(nodeDef)\n\nconst isHiddenInMobile =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).hiddenInMobile ?? false\n\nconst isIncludedInMultipleEntitySummary =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).includedInMultipleEntitySummary ?? false\n\nconst isIncludedInPreviousCycleLink =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).includedInPreviousCycleLink ?? true\n\nconst isHiddenWhenNotRelevant =\n (cycle = defaultCycle) =>\n <L extends ArenaNodeDefLayout>(nodeDef: ArenaNodeDef<any, ArenaNodeDefPropsWithLayout<L>>): boolean =>\n getLayoutProps(cycle)(nodeDef).hiddenWhenNotRelevant ?? false\n\nconst isCodeShown =\n (cycle = defaultCycle) =>\n (nodeDef: ArenaNodeDefCode): boolean =>\n !!(getLayoutProps(cycle)(nodeDef).codeShown ?? true)\n\n// Analysis\nconst getAreaBasedEstimatedOf = (nodeDef: ArenaNodeDef<any>): string | undefined =>\n nodeDef.propsAdvancedDraft?.areaBasedEstimatedOf ?? nodeDef.propsAdvanced?.areaBasedEstimatedOf\n\nconst getIndexInChain = (nodeDef: ArenaNodeDef<any>): number | undefined => nodeDef.propsAdvanced?.index\n\n// Metadata\nconst getMetaHierarchy = (nodeDef: ArenaNodeDef<any>): string[] => nodeDef.meta?.h ?? []\n\nexport const NodeDefs = {\n isEntity,\n isBoolean,\n isCode,\n isCoordinate,\n isDate,\n isDecimal,\n isFile,\n isGeo,\n isInteger,\n isTaxon,\n isText,\n isTime,\n isMultiple,\n isMultipleEntity,\n isSingle,\n isSingleEntity,\n isAttribute,\n isSingleAttribute,\n isMultipleAttribute,\n isKey,\n isAutoIncrementalKey,\n isQualifier,\n isReadOnly,\n isHidden,\n isEnumerate,\n getEnumeratingItemsExpression,\n isAutoCreateMinCountItems,\n getPrintOrientation,\n isAnalysis,\n isRoot,\n getType,\n isLayoutElement,\n getName,\n getLabelOrName,\n getDescription,\n getDefaultValues,\n isDefaultValueEvaluatedOneTime,\n getApplicable,\n getVisibleFields,\n isFieldVisible,\n isInCycle,\n isExcludedInClone,\n getEditableIf,\n isAlwaysEditable,\n getVisibleIf,\n isAlwaysVisible,\n\n getCategoryUuid,\n getParentCodeDefUuid,\n isAllowOnlyDeviceCoordinate,\n getCoordinateAdditionalFields,\n getMaxNumberDecimalDigits,\n getFileNameExpression,\n getFileType,\n getFileMaxSize,\n isGeotagInformationShown,\n isScreenCaptureInMapAllowed,\n isPositionTracking,\n isSecondsIncluded,\n getTaxonomyUuid,\n isVernacularNameSelectionKept,\n isVernacularNameAlwaysIncludedIfSingle,\n getTextTransform,\n getTextInputType,\n getItemsFilter,\n\n // layout\n getLayoutProps,\n getLayoutRenderType,\n isLayoutRenderTypeForm,\n isLayoutRenderTypeTable,\n getChildrenEntitiesInOwnPageUuids,\n getLayoutChildren,\n getPageUuid,\n isDisplayInOwnPage,\n isHiddenInMobile,\n isIncludedInMultipleEntitySummary,\n isIncludedInPreviousCycleLink,\n isHiddenWhenNotRelevant,\n isCodeShown,\n isLayoutRenderTypeHyperlink,\n isLayoutRenderTypeMarkdown,\n // validations\n getValidations,\n getValidationsExpressions,\n isRequired,\n getRequiredIf,\n isRequiredIfDefined,\n isRequiredOrConditionallyRequired,\n // // Min Max\n hasMinOrMaxCount,\n getCount,\n getMaxCount,\n getMinCount,\n // Analysis\n getAreaBasedEstimatedOf,\n getIndexInChain,\n // Metadata\n getMetaHierarchy,\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"coordinate.js","sourceRoot":"","sources":["../../../../src/nodeDef/types/coordinate.ts"],"names":[],"mappings":"","sourcesContent":["import { ArenaNodeDef, ArenaNodeDefProps, NodeDefType } from '../nodeDef'\n\nexport interface ArenaNodeDefCoordinateProps extends ArenaNodeDefProps {\n allowOnlyDeviceCoordinate?: boolean\n includeAccuracy?: boolean\n includeAltitude?: boolean\n includeAltitudeAccuracy?: boolean\n}\n\nexport type ArenaNodeDefCoordinate = ArenaNodeDef<NodeDefType.coordinate, ArenaNodeDefCoordinateProps>\n"]}
1
+ {"version":3,"file":"coordinate.js","sourceRoot":"","sources":["../../../../src/nodeDef/types/coordinate.ts"],"names":[],"mappings":"","sourcesContent":["import { ArenaNodeDef, ArenaNodeDefProps, NodeDefType } from '../nodeDef'\n\nexport interface ArenaNodeDefCoordinateProps extends ArenaNodeDefProps {\n allowOnlyDeviceCoordinate?: boolean\n includeAccuracy?: boolean\n includeAltitude?: boolean\n includeAltitudeAccuracy?: boolean\n}\n\nexport type ArenaNodeDefCoordinate = ArenaNodeDef<NodeDefType.coordinate, ArenaNodeDefCoordinateProps>\n\n/** Optional fields of a coordinate value, included according to the node def props. */\nexport type ArenaCoordinateAdditionalField = 'accuracy' | 'altitude' | 'altitudeAccuracy'\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAG9C,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,eAAe,GAChB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAM7E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAGzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA","sourcesContent":["export { RecordNodePointers } from './nodePointers'\n\nexport type { ArenaRecord } from './record'\nexport { RECORD_STEP_DEFAULT } from './record'\n\nexport type { ArenaRecordStep } from './recordStep'\nexport {\n RecordStepAnalysisCode,\n RecordStepCleansingCode,\n RecordStepEntryCode,\n RecordStepNames,\n RecordSteps,\n RecordStepsList,\n} from './recordStep'\n\nexport { Records } from './records'\nexport type { ArenaRecordUpdateOptions } from './records'\n\nexport { RecordCloner } from './recordCloner'\nexport { RecordExpressionEvaluator } from './recordExpressionEvaluator'\nexport type { ArenaRecordExpressionContext } from './recordExpressionEvaluator'\nexport { RecordFixer } from './recordFixer'\nexport { RecordNodesUpdater, RecordUpdateResult } from './recordNodesUpdater'\nexport type {\n ArenaRecordNodeCreateParams,\n ArenaRecordNodesUpdateParams,\n ArenaRecordExpressionEvaluationContext,\n} from './recordNodesUpdater'\nexport { RecordUpdater } from './recordUpdater'\nexport { RecordValidator } from './recordValidator'\nexport type {\n ArenaAttributeValidatorParams,\n ArenaAttributesValidatorParams,\n ArenaRecordValidatorParams,\n ArenaSortedAttributesValidatorParams,\n} from './recordValidator'\nexport { RecordValidations } from './recordValidations'\n\nexport { RecordFactory } from './factory'\nexport type { ArenaRecordService } from './service'\n\nexport { RecordPrettyPrinter } from './recordPrettyPrinter'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAGnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAA;AAI9C,OAAO,EACL,sBAAsB,EACtB,uBAAuB,EACvB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,eAAe,GAChB,MAAM,cAAc,CAAA;AAErB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAGnC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAA;AAEvE,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAM7E,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAOnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEvD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAGzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA","sourcesContent":["export { RecordNodePointers } from './nodePointers'\n\nexport type { ArenaRecord } from './record'\nexport { RECORD_STEP_DEFAULT } from './record'\nexport type { ArenaRecordSummary } from './recordSummary'\n\nexport type { ArenaRecordStep } from './recordStep'\nexport {\n RecordStepAnalysisCode,\n RecordStepCleansingCode,\n RecordStepEntryCode,\n RecordStepNames,\n RecordSteps,\n RecordStepsList,\n} from './recordStep'\n\nexport { Records } from './records'\nexport type { ArenaRecordUpdateOptions } from './records'\n\nexport { RecordCloner } from './recordCloner'\nexport { RecordExpressionEvaluator } from './recordExpressionEvaluator'\nexport type { ArenaRecordExpressionContext } from './recordExpressionEvaluator'\nexport { RecordFixer } from './recordFixer'\nexport { RecordNodesUpdater, RecordUpdateResult } from './recordNodesUpdater'\nexport type {\n ArenaRecordNodeCreateParams,\n ArenaRecordNodesUpdateParams,\n ArenaRecordExpressionEvaluationContext,\n} from './recordNodesUpdater'\nexport { RecordUpdater } from './recordUpdater'\nexport { RecordValidator } from './recordValidator'\nexport type {\n ArenaAttributeValidatorParams,\n ArenaAttributesValidatorParams,\n ArenaRecordValidatorParams,\n ArenaSortedAttributesValidatorParams,\n} from './recordValidator'\nexport { RecordValidations } from './recordValidations'\n\nexport { RecordFactory } from './factory'\nexport type { ArenaRecordService } from './service'\n\nexport { RecordPrettyPrinter } from './recordPrettyPrinter'\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=recordSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"recordSummary.js","sourceRoot":"","sources":["../../../src/record/recordSummary.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Item of the record summaries list returned by the server (key and summary attribute values by node def name).\n */\nexport type ArenaRecordSummary = {\n uuid: string\n cycle: string\n dateCreated?: string\n dateModified?: string\n ownerUuid?: string\n ownerName?: string\n // number in some server responses\n step?: string | number\n readOnly?: boolean\n keysObj?: Record<string, unknown>\n summaryAttributesObj?: Record<string, unknown>\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/survey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAkB/D,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,UAAU,CAAA;AAEjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAMzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA","sourcesContent":["export { NodeDefsFixer } from './nodeDefsFixer'\nexport { SurveyDocImages } from './surveyDocImages'\nexport { SurveyFileFactory, SurveyFileType } from './surveyFileFactory'\nexport { SurveyDocImageFactory } from './surveyDocImageFactory'\nexport type { ArenaSurveyFileFactoryParams } from './surveyFileFactory'\nexport type { ArenaSurveyDocImageFactoryParams } from './surveyDocImageFactory'\n\nexport type {\n ArenaSurvey,\n ArenaSurveyCycle,\n ArenaSurveyDependencyGraph,\n ArenaSurveyDependency,\n ArenaSurveyDocImage,\n ArenaSurveyDocImageProps,\n ArenaSurveyFile,\n ArenaSurveyFileProps,\n ArenaSurveyNodeDefsIndex,\n ArenaSurveyProps,\n ArenaSurveySecurity,\n} from './survey'\n\nexport {\n defaultCycle,\n SurveyDependencyType,\n SurveyDocPlace,\n SurveySecurityProp,\n surveyDocImagePropKeys,\n surveySecurityDefaults,\n} from './survey'\n\nexport { Surveys } from './surveys'\n\nexport { SurveyFactory } from './factory'\n\nexport type { ArenaSurveyService } from './service'\n\nexport type { ArenaSurveyRefData } from './refData'\n\nexport { SurveyRefDataFactory } from './refData'\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/survey/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAkB/D,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,cAAc,EACd,kBAAkB,EAClB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,UAAU,CAAA;AAIjB,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAMzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA","sourcesContent":["export { NodeDefsFixer } from './nodeDefsFixer'\nexport { SurveyDocImages } from './surveyDocImages'\nexport { SurveyFileFactory, SurveyFileType } from './surveyFileFactory'\nexport { SurveyDocImageFactory } from './surveyDocImageFactory'\nexport type { ArenaSurveyFileFactoryParams } from './surveyFileFactory'\nexport type { ArenaSurveyDocImageFactoryParams } from './surveyDocImageFactory'\n\nexport type {\n ArenaSurvey,\n ArenaSurveyCycle,\n ArenaSurveyDependencyGraph,\n ArenaSurveyDependency,\n ArenaSurveyDocImage,\n ArenaSurveyDocImageProps,\n ArenaSurveyFile,\n ArenaSurveyFileProps,\n ArenaSurveyNodeDefsIndex,\n ArenaSurveyProps,\n ArenaSurveySecurity,\n} from './survey'\n\nexport {\n defaultCycle,\n SurveyDependencyType,\n SurveyDocPlace,\n SurveySecurityProp,\n surveyDocImagePropKeys,\n surveySecurityDefaults,\n} from './survey'\n\nexport type { ArenaSurveyOrSummary, ArenaSurveySummary } from './surveySummary'\n\nexport { Surveys } from './surveys'\n\nexport { SurveyFactory } from './factory'\n\nexport type { ArenaSurveyService } from './service'\n\nexport type { ArenaSurveyRefData } from './refData'\n\nexport { SurveyRefDataFactory } from './refData'\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=surveySummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"surveySummary.js","sourceRoot":"","sources":["../../../src/survey/surveySummary.ts"],"names":[],"mappings":"","sourcesContent":["import type { ArenaAuthGroup } from '../auth'\nimport type { ArenaSurvey } from './survey'\n\n/**\n * Item of the surveys list returned by the server: survey without node defs and reference data, plus list fields.\n */\nexport type ArenaSurveySummary = Omit<\n ArenaSurvey,\n 'authGroups' | 'categories' | 'dependencyGraph' | 'nodeDefs' | 'nodeDefsIndex' | 'refData' | 'taxonomies'\n> & {\n authGroups?: ArenaAuthGroup[]\n defaultLabel?: string\n ownerName?: string\n}\n\n/**\n * A full survey or a survey summary: accepted by the getters that only read the survey props.\n */\nexport type ArenaSurveyOrSummary = ArenaSurvey | ArenaSurveySummary\n"]}
@@ -337,7 +337,7 @@ export const getNodeDefKeys = (params) => {
337
337
  const { survey, cycle, nodeDef } = params;
338
338
  return getDescendantsInSingleEntities({
339
339
  survey,
340
- cycle,
340
+ cycle: cycle !== null && cycle !== void 0 ? cycle : undefined,
341
341
  nodeDef,
342
342
  predicate: (visitedNodeDef) => NodeDefs.isKey(visitedNodeDef) &&
343
343
  !visitedNodeDef.deleted &&