@hybridcore/ui 1.3.6 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/dist/AccordionDetails-CGs6GZQK.js +454 -0
  2. package/dist/Add-eepk2WTM.js +379 -0
  3. package/dist/Box-BPyg-Ybm.js +70 -0
  4. package/dist/Button-DLwB_sKd.js +354 -0
  5. package/dist/{ButtonBase-D6qhsxB0.js → ButtonBase-D0qccOVb.js} +6 -5
  6. package/dist/{CardContent-B8hqgH-I.js → CardContent-DFsCCOWk.js} +4 -4
  7. package/dist/{Checkbox-BFWhj3s-.js → Checkbox-qy3cjvnb.js} +134 -195
  8. package/dist/{Collapse-D_TjnyE5.js → Collapse-CL6LGGZw.js} +68 -75
  9. package/dist/Delete-OHEw9lDi.js +22 -0
  10. package/dist/DialogContent-CxOSq6h9.js +519 -0
  11. package/dist/FormControlLabel-D9KFjcIx.js +193 -0
  12. package/dist/{IconButton-D8bwME9t.js → IconButton-BaiyAtmS.js} +5 -5
  13. package/dist/{Input-Dxzguyp5.js → Input-CmCkXczh.js} +6 -6
  14. package/dist/{InputAdornment-B8ERE7Zv.js → InputAdornment-CZUPEeia.js} +5 -5
  15. package/dist/{FormControl-BMRUQKHh.js → InputLabel-CWkW8NtU.js} +316 -316
  16. package/dist/{List-DEWyK9IO.js → List-PpNAWJ_I.js} +4 -4
  17. package/dist/ListItem-CZbZ91vp.js +428 -0
  18. package/dist/{MenuItem-DstAFfik.js → MenuItem-D-INSvZa.js} +7 -7
  19. package/dist/{Modal-DNGEQJ1M.js → Modal-KrI5qFIq.js} +61 -57
  20. package/dist/{OutlinedInput-w2Cj9STF.js → OutlinedInput-DkIUD30e.js} +6 -6
  21. package/dist/{Paper-BseeergJ.js → Paper-btu3j72o.js} +5 -5
  22. package/dist/{Select-NDq3WyLt.js → Select-ClaBvSqf.js} +20 -18
  23. package/dist/Tabs-BzelDJKy.js +787 -0
  24. package/dist/TextField-D87qTh1k.js +457 -0
  25. package/dist/Typography-Bm7PFqUT.js +176 -0
  26. package/dist/assets/index.css +1 -1
  27. package/dist/assets/index2.css +1 -1
  28. package/dist/components/card/index.js +6 -6
  29. package/dist/components/card/styled.js +1 -1
  30. package/dist/components/collapsible-card/style.js +20 -466
  31. package/dist/components/confirm/dialog.js +8 -149
  32. package/dist/components/confirm/index.js +1 -1
  33. package/dist/components/container/index.js +7 -7
  34. package/dist/components/context-menu/index.js +191 -604
  35. package/dist/components/data-security-selectors/dissemination-list/index.js +12 -6
  36. package/dist/components/data-security-selectors/security-level/index.js +46 -45
  37. package/dist/components/date-time-picker/index.js +85 -64
  38. package/dist/components/geometry-picker/coordinate/index.js +1 -1
  39. package/dist/components/geometry-picker/edit/index.js +16 -16
  40. package/dist/components/geometry-picker/geometry/index.js +35 -35
  41. package/dist/components/geometry-picker/index.js +60 -56
  42. package/dist/components/geometry-picker/kml/index.js +14 -14
  43. package/dist/components/geometry-picker/map/index.js +1 -1
  44. package/dist/components/geometry-picker/map/logic.js +38 -37
  45. package/dist/components/geometry-picker/parser/coordinate-input/logic.js +63 -59
  46. package/dist/components/geometry-picker/parser/logic.js +33 -32
  47. package/dist/components/geometry-picker/styled.js +22 -14
  48. package/dist/components/icon-button/index.js +1 -1
  49. package/dist/components/icon-button/styled.js +0 -2
  50. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/index.js +2 -2
  51. package/dist/components/{data-management/instance-form → instance-form}/components/composite-list/styled.js +15 -6
  52. package/dist/components/instance-form/components/variable/index.js +19 -0
  53. package/dist/components/instance-form/components/variables/index.js +40 -0
  54. package/dist/components/{data-management/instance-form → instance-form}/index.js +174 -155
  55. package/dist/components/instance-hierarchy-table/index.js +58 -0
  56. package/dist/components/instance-hierarchy-table/styled.js +29 -0
  57. package/dist/components/instance-table/index.js +125 -0
  58. package/dist/components/instance-table/styled.js +13 -0
  59. package/dist/components/map/helpers/ol.js +1 -1
  60. package/dist/components/map/index.js +1 -1
  61. package/dist/components/map/logic.js +1 -1
  62. package/dist/components/map/styled.js +1 -1
  63. package/dist/components/phone-input/index.js +1 -1
  64. package/dist/components/property-mapping/index.js +558 -0
  65. package/dist/components/range-selector/components/composite-list-range/index.js +81 -0
  66. package/dist/components/range-selector/components/date-range/index.js +9 -0
  67. package/dist/components/range-selector/components/geometry-range/index.js +26 -0
  68. package/dist/components/range-selector/components/number-range/index.js +86 -0
  69. package/dist/components/range-selector/components/string-range/index.js +31 -0
  70. package/dist/components/range-selector/index.js +59 -0
  71. package/dist/components/search-input/index.js +4 -4
  72. package/dist/components/tabs/appleTabs.style.js +55 -0
  73. package/dist/components/tabs/index.js +93 -0
  74. package/dist/components/tabs/tab-panel.js +18 -0
  75. package/dist/components/template-form/components/catalogue-instance-selector/index.js +158 -0
  76. package/dist/components/template-form/components/property-list/index.js +72 -0
  77. package/dist/components/template-form/components/property-list/property-list-columns.js +125 -0
  78. package/dist/components/template-form/components/property-list/property-list-form.js +16 -0
  79. package/dist/components/template-form/components/property-list/property-list-logic.js +66 -0
  80. package/dist/components/template-form/components/property-list/types.js +8 -0
  81. package/dist/components/template-form/components/recognition-property-list/index.js +69 -0
  82. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-columns.js +50 -0
  83. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-form.js +174 -0
  84. package/dist/components/template-form/components/recognition-property-list/recognition-property-list-logic.js +64 -0
  85. package/dist/components/template-form/components/recognition-property-list/types.js +8 -0
  86. package/dist/components/template-form/components/select-icon/index.js +186 -0
  87. package/dist/components/template-form/components/select-icon/styled.js +76 -0
  88. package/dist/components/template-form/index.js +338 -0
  89. package/dist/components/template-property-filters/property.js +48 -46
  90. package/dist/components/tree-select/index.js +51 -49
  91. package/dist/components/tree-select/styled.js +2 -2
  92. package/dist/components/treeview-filter/index.js +8 -8
  93. package/dist/components/treeview-filter/item/index.js +1 -1
  94. package/dist/components/treeview-filter/item-label/index.js +18 -17
  95. package/dist/constants/index.js +41 -0
  96. package/dist/{createStyled-B96gjom1.js → createStyled-BzvgQjjR.js} +487 -464
  97. package/dist/createSvgIcon-Cfm1LkEe.js +73 -0
  98. package/dist/{createSvgIcon-BNrb7rDY.js → createSvgIcon-DEXLbMwp.js} +62 -90
  99. package/dist/dialog-v5-nL5yy.js +153 -0
  100. package/dist/{exactProp-CI_rjX83.js → exactProp-DkmnwNVS.js} +3 -3
  101. package/dist/extendSxProp-qqdkfHzS.js +30 -0
  102. package/dist/{index-CSfSVkKj.js → index-B0JPwFI9.js} +6 -5
  103. package/dist/index-C1fczHEW.js +11042 -0
  104. package/dist/index-DPf5olog.js +288 -0
  105. package/dist/{index-JrtqxUdI.js → index-DlnzUkwe.js} +1 -1
  106. package/dist/{listItemTextClasses-CFiI_U7B.js → listItemTextClasses-DsHGzpPM.js} +2 -2
  107. package/dist/main.d.ts +569 -81
  108. package/dist/main.js +157 -157
  109. package/dist/{ol-BUKJ1urU.js → ol-CHaVTXvL.js} +24 -24
  110. package/dist/property-list-form-BfP9gzSo.js +391 -0
  111. package/dist/requirePropFactory-BjhhI-AW.js +18 -0
  112. package/dist/{styled-cPJbqF0E.js → styled-LNCprp4n.js} +24 -22
  113. package/dist/unsupportedProp-BuVD30Gh.js +9 -0
  114. package/dist/useControlled-BYdyS7Pn.js +31 -0
  115. package/dist/{useTheme-C-T6Qisa.js → useTheme-DBiahn6p.js} +2 -2
  116. package/dist/{useThemeProps-DeftUmqJ.js → useThemeProps-uYx_RkOH.js} +16 -14
  117. package/dist/utils/ontology.js +52 -30
  118. package/dist/{utils-CCkxV0lZ.js → utils-DNe_YYjm.js} +16 -16
  119. package/package.json +2 -1
  120. package/dist/DialogContent-BCYm_d1s.js +0 -864
  121. package/dist/FormControlLabel-DENNVXWL.js +0 -639
  122. package/dist/Typography-Dg-ROiTA.js +0 -201
  123. package/dist/components/data-management/instance-form/components/variable/index.js +0 -17
  124. package/dist/components/data-management/instance-form/components/variables/index.js +0 -39
  125. package/dist/createSvgIcon-B2WT0K4k.js +0 -87
  126. package/dist/index-B3Oj04nl.js +0 -287
  127. package/dist/components/{data-management/instance-form → instance-form}/components/policy-list/index.js +0 -0
  128. package/dist/{extends-Cyw62AD_.js → objectWithoutPropertiesLoose-BK36oJDi.js} +9 -9
@@ -399,11 +399,11 @@ class $ {
399
399
  */
400
400
  rotateAround(t, n) {
401
401
  if (!(t instanceof $)) throw new TypeError("axis is not Vector3d object");
402
- const s = n.toRadians(), e = this.unit(), i = t.unit(), r = Math.sin(s), a = Math.cos(s), o = 1 - a, f = i.x, c = i.y, u = i.z, w = [
402
+ const s = n.toRadians(), e = this.unit(), i = t.unit(), r = Math.sin(s), a = Math.cos(s), o = 1 - a, p = i.x, u = i.y, d = i.z, w = [
403
403
  // rotation matrix for rotation about supplied axis
404
- [o * f * f + a, o * f * c - r * u, o * f * u + r * c],
405
- [o * f * c + r * u, o * c * c + a, o * c * u - r * f],
406
- [o * f * u - r * c, o * c * u + r * f, o * u * u + a]
404
+ [o * p * p + a, o * p * u - r * d, o * p * d + r * u],
405
+ [o * p * u + r * d, o * u * u + a, o * u * d - r * p],
406
+ [o * p * d - r * u, o * u * d + r * p, o * d * d + a]
407
407
  ], N = [
408
408
  w[0][0] * e.x + w[0][1] * e.y + w[0][2] * e.z,
409
409
  w[1][0] * e.x + w[1][1] * e.y + w[1][2] * e.z,
@@ -579,8 +579,8 @@ class Q {
579
579
  * earth centre.
580
580
  */
581
581
  toCartesian() {
582
- const t = this.datum ? this.datum.ellipsoid : this.referenceFrame ? this.referenceFrame.ellipsoid : B.WGS84, n = this.lat.toRadians(), s = this.lon.toRadians(), e = this.height, { a: i, f: r } = t, a = Math.sin(n), o = Math.cos(n), f = Math.sin(s), c = Math.cos(s), u = 2 * r - r * r, w = i / Math.sqrt(1 - u * a * a), N = (w + e) * o * c, g = (w + e) * o * f, d = (w * (1 - u) + e) * a;
583
- return new ft(N, g, d);
582
+ const t = this.datum ? this.datum.ellipsoid : this.referenceFrame ? this.referenceFrame.ellipsoid : B.WGS84, n = this.lat.toRadians(), s = this.lon.toRadians(), e = this.height, { a: i, f: r } = t, a = Math.sin(n), o = Math.cos(n), p = Math.sin(s), u = Math.cos(s), d = 2 * r - r * r, w = i / Math.sqrt(1 - d * a * a), N = (w + e) * o * u, g = (w + e) * o * p, f = (w * (1 - d) + e) * a;
583
+ return new ft(N, g, f);
584
584
  }
585
585
  /**
586
586
  * Checks if another point is equal to ‘this’ point.
@@ -659,8 +659,8 @@ class ft extends $ {
659
659
  */
660
660
  toLatLon(t = B.WGS84) {
661
661
  if (!t || !t.a) throw new TypeError(`invalid ellipsoid ‘${t}’`);
662
- const { x: n, y: s, z: e } = this, { a: i, b: r, f: a } = t, o = 2 * a - a * a, f = o / (1 - o), c = Math.sqrt(n * n + s * s), u = Math.sqrt(c * c + e * e), w = r * e / (i * c) * (1 + f * r / u), N = w / Math.sqrt(1 + w * w), g = N / w, d = isNaN(g) ? 0 : Math.atan2(e + f * r * N * N * N, c - o * i * g * g * g), p = Math.atan2(s, n), m = Math.sin(d), y = Math.cos(d), b = i / Math.sqrt(1 - o * m * m), S = c * y + e * m - i * i / b;
663
- return new Q(d.toDegrees(), p.toDegrees(), S);
662
+ const { x: n, y: s, z: e } = this, { a: i, b: r, f: a } = t, o = 2 * a - a * a, p = o / (1 - o), u = Math.sqrt(n * n + s * s), d = Math.sqrt(u * u + e * e), w = r * e / (i * u) * (1 + p * r / d), N = w / Math.sqrt(1 + w * w), g = N / w, f = isNaN(g) ? 0 : Math.atan2(e + p * r * N * N * N, u - o * i * g * g * g), c = Math.atan2(s, n), m = Math.sin(f), y = Math.cos(f), b = i / Math.sqrt(1 - o * m * m), S = u * y + e * m - i * i / b;
663
+ return new Q(f.toDegrees(), c.toDegrees(), S);
664
664
  }
665
665
  /**
666
666
  * Returns a string representation of ‘this’ cartesian point.
@@ -899,7 +899,7 @@ class lt extends ft {
899
899
  * @returns {Cartesian} Transformed point.
900
900
  */
901
901
  applyTransform(t) {
902
- const { x: n, y: s, z: e } = this, i = t[0], r = t[1], a = t[2], o = t[3] / 1e6 + 1, f = (t[4] / 3600).toRadians(), c = (t[5] / 3600).toRadians(), u = (t[6] / 3600).toRadians(), w = i + n * o - s * u + e * c, N = r + n * u + s * o - e * f, g = a - n * c + s * f + e * o;
902
+ const { x: n, y: s, z: e } = this, i = t[0], r = t[1], a = t[2], o = t[3] / 1e6 + 1, p = (t[4] / 3600).toRadians(), u = (t[5] / 3600).toRadians(), d = (t[6] / 3600).toRadians(), w = i + n * o - s * d + e * u, N = r + n * d + s * o - e * p, g = a - n * u + s * p + e * o;
903
903
  return new lt(w, N, g);
904
904
  }
905
905
  }
@@ -951,15 +951,15 @@ class pt {
951
951
  * const latlong = grid.toLatLon(); // 48°51′29.52″N, 002°17′40.20″E
952
952
  */
953
953
  toLatLon() {
954
- const { zone: t, hemisphere: n } = this, s = 5e5, e = 1e7, { a: i, f: r } = this.datum.ellipsoid, a = 0.9996, o = this.easting - s, f = n == "S" ? this.northing - e : this.northing, c = Math.sqrt(r * (2 - r)), u = r / (2 - r), w = u * u, N = u * w, g = u * N, d = u * g, p = u * d, m = i / (1 + u) * (1 + 1 / 4 * w + 1 / 64 * g + 1 / 256 * p), y = o / (a * m), b = f / (a * m), S = [
954
+ const { zone: t, hemisphere: n } = this, s = 5e5, e = 1e7, { a: i, f: r } = this.datum.ellipsoid, a = 0.9996, o = this.easting - s, p = n == "S" ? this.northing - e : this.northing, u = Math.sqrt(r * (2 - r)), d = r / (2 - r), w = d * d, N = d * w, g = d * N, f = d * g, c = d * f, m = i / (1 + d) * (1 + 1 / 4 * w + 1 / 64 * g + 1 / 256 * c), y = o / (a * m), b = p / (a * m), S = [
955
955
  null,
956
956
  // note β is one-based array (6th order Krüger expressions)
957
- 1 / 2 * u - 2 / 3 * w + 37 / 96 * N - 1 / 360 * g - 81 / 512 * d + 96199 / 604800 * p,
958
- 1 / 48 * w + 1 / 15 * N - 437 / 1440 * g + 46 / 105 * d - 1118711 / 3870720 * p,
959
- 17 / 480 * N - 37 / 840 * g - 209 / 4480 * d + 5569 / 90720 * p,
960
- 4397 / 161280 * g - 11 / 504 * d - 830251 / 7257600 * p,
961
- 4583 / 161280 * d - 108847 / 3991680 * p,
962
- 20648693 / 638668800 * p
957
+ 1 / 2 * d - 2 / 3 * w + 37 / 96 * N - 1 / 360 * g - 81 / 512 * f + 96199 / 604800 * c,
958
+ 1 / 48 * w + 1 / 15 * N - 437 / 1440 * g + 46 / 105 * f - 1118711 / 3870720 * c,
959
+ 17 / 480 * N - 37 / 840 * g - 209 / 4480 * f + 5569 / 90720 * c,
960
+ 4397 / 161280 * g - 11 / 504 * f - 830251 / 7257600 * c,
961
+ 4583 / 161280 * f - 108847 / 3991680 * c,
962
+ 20648693 / 638668800 * c
963
963
  ];
964
964
  let L = b;
965
965
  for (let l = 1; l <= 6; l++) L -= S[l] * Math.sin(2 * l * b) * Math.cosh(2 * l * y);
@@ -968,15 +968,15 @@ class pt {
968
968
  const G = Math.sinh(P), v = Math.sin(L), F = Math.cos(L), T = v / Math.sqrt(G * G + F * F);
969
969
  let W = null, E = T;
970
970
  do {
971
- const l = Math.sinh(c * Math.atanh(c * E / Math.sqrt(1 + E * E))), st = E * Math.sqrt(1 + l * l) - l * Math.sqrt(1 + E * E);
972
- W = (T - st) / Math.sqrt(1 + st * st) * (1 + (1 - c * c) * E * E) / ((1 - c * c) * Math.sqrt(1 + E * E)), E += W;
971
+ const l = Math.sinh(u * Math.atanh(u * E / Math.sqrt(1 + E * E))), st = E * Math.sqrt(1 + l * l) - l * Math.sqrt(1 + E * E);
972
+ W = (T - st) / Math.sqrt(1 + st * st) * (1 + (1 - u * u) * E * E) / ((1 - u * u) * Math.sqrt(1 + E * E)), E += W;
973
973
  } while (Math.abs(W) > 1e-12);
974
974
  const q = E, U = Math.atan(q);
975
975
  let O = Math.atan2(G, F), C = 1;
976
976
  for (let l = 1; l <= 6; l++) C -= 2 * l * S[l] * Math.cos(2 * l * b) * Math.cosh(2 * l * y);
977
977
  let z = 0;
978
978
  for (let l = 1; l <= 6; l++) z += 2 * l * S[l] * Math.sin(2 * l * b) * Math.sinh(2 * l * y);
979
- const k = Math.atan(Math.tan(L) * Math.tanh(P)), j = Math.atan2(z, C), A = k + j, X = Math.sin(U), H = Math.sqrt(1 - c * c * X * X) * Math.sqrt(1 + q * q) * Math.sqrt(G * G + F * F), Y = m / i / Math.sqrt(C * C + z * z), J = a * H * Y, Z = ((t - 1) * 6 - 180 + 3).toRadians();
979
+ const k = Math.atan(Math.tan(L) * Math.tanh(P)), j = Math.atan2(z, C), A = k + j, X = Math.sin(U), H = Math.sqrt(1 - u * u * X * X) * Math.sqrt(1 + q * q) * Math.sqrt(G * G + F * F), Y = m / i / Math.sqrt(C * C + z * z), J = a * H * Y, Z = ((t - 1) * 6 - 180 + 3).toRadians();
980
980
  O += Z;
981
981
  const V = Number(U.toDegrees().toFixed(14)), tt = Number(O.toDegrees().toFixed(14)), nt = Number(A.toDegrees().toFixed(9)), et = Number(J.toFixed(12)), I = new K(V, tt, 0, this.datum);
982
982
  return I.convergence = nt, I.scale = et, I;
@@ -1046,11 +1046,11 @@ class K extends D {
1046
1046
  let e = t || Math.floor((this.lon + 180) / 6) + 1, i = ((e - 1) * 6 - 180 + 3).toRadians();
1047
1047
  const a = "CDEFGHJKLMNPQRSTUVWXX".charAt(Math.floor(this.lat / 8 + 10));
1048
1048
  e == 31 && a == "V" && this.lon >= 3 && (e++, i += 6 .toRadians()), e == 32 && a == "X" && this.lon < 9 && (e--, i -= 6 .toRadians()), e == 32 && a == "X" && this.lon >= 9 && (e++, i += 6 .toRadians()), e == 34 && a == "X" && this.lon < 21 && (e--, i -= 6 .toRadians()), e == 34 && a == "X" && this.lon >= 21 && (e++, i += 6 .toRadians()), e == 36 && a == "X" && this.lon < 33 && (e--, i -= 6 .toRadians()), e == 36 && a == "X" && this.lon >= 33 && (e++, i += 6 .toRadians());
1049
- const o = this.lat.toRadians(), f = this.lon.toRadians() - i, c = this.datum ? this.datum.ellipsoid : D.ellipsoids.WGS84, { a: u, f: w } = c, N = 0.9996, g = Math.sqrt(w * (2 - w)), d = w / (2 - w), p = d * d, m = d * p, y = d * m, b = d * y, S = d * b, L = Math.cos(f), P = Math.sin(f), G = Math.tan(f), v = Math.tan(o), F = Math.sinh(g * Math.atanh(g * v / Math.sqrt(1 + v * v))), T = v * Math.sqrt(1 + F * F) - F * Math.sqrt(1 + v * v), W = Math.atan2(T, L), E = Math.asinh(P / Math.sqrt(T * T + L * L)), q = u / (1 + d) * (1 + 1 / 4 * p + 1 / 64 * y + 1 / 256 * S), U = [
1049
+ const o = this.lat.toRadians(), p = this.lon.toRadians() - i, u = this.datum ? this.datum.ellipsoid : D.ellipsoids.WGS84, { a: d, f: w } = u, N = 0.9996, g = Math.sqrt(w * (2 - w)), f = w / (2 - w), c = f * f, m = f * c, y = f * m, b = f * y, S = f * b, L = Math.cos(p), P = Math.sin(p), G = Math.tan(p), v = Math.tan(o), F = Math.sinh(g * Math.atanh(g * v / Math.sqrt(1 + v * v))), T = v * Math.sqrt(1 + F * F) - F * Math.sqrt(1 + v * v), W = Math.atan2(T, L), E = Math.asinh(P / Math.sqrt(T * T + L * L)), q = d / (1 + f) * (1 + 1 / 4 * c + 1 / 64 * y + 1 / 256 * S), U = [
1050
1050
  null,
1051
1051
  // note α is one-based array (6th order Krüger expressions)
1052
- 1 / 2 * d - 2 / 3 * p + 5 / 16 * m + 41 / 180 * y - 127 / 288 * b + 7891 / 37800 * S,
1053
- 13 / 48 * p - 3 / 5 * m + 557 / 1440 * y + 281 / 630 * b - 1983433 / 1935360 * S,
1052
+ 1 / 2 * f - 2 / 3 * c + 5 / 16 * m + 41 / 180 * y - 127 / 288 * b + 7891 / 37800 * S,
1053
+ 13 / 48 * c - 3 / 5 * m + 557 / 1440 * y + 281 / 630 * b - 1983433 / 1935360 * S,
1054
1054
  61 / 240 * m - 103 / 140 * y + 15061 / 26880 * b + 167603 / 181440 * S,
1055
1055
  49561 / 161280 * y - 179 / 168 * b + 6601661 / 7257600 * S,
1056
1056
  34729 / 80640 * b - 3418889 / 1995840 * S,
@@ -1064,7 +1064,7 @@ class K extends D {
1064
1064
  for (let l = 1; l <= 6; l++) j += 2 * l * U[l] * Math.cos(2 * l * W) * Math.cosh(2 * l * E);
1065
1065
  let A = 0;
1066
1066
  for (let l = 1; l <= 6; l++) A += 2 * l * U[l] * Math.sin(2 * l * W) * Math.sinh(2 * l * E);
1067
- const X = Math.atan(T / Math.sqrt(1 + T * T) * G), H = Math.atan2(A, j), Y = X + H, J = Math.sin(o), Z = Math.sqrt(1 - g * g * J * J) * Math.sqrt(1 + v * v) / Math.sqrt(T * T + L * L), V = q / u * Math.sqrt(j * j + A * A), tt = N * Z * V;
1067
+ const X = Math.atan(T / Math.sqrt(1 + T * T) * G), H = Math.atan2(A, j), Y = X + H, J = Math.sin(o), Z = Math.sqrt(1 - g * g * J * J) * Math.sqrt(1 + v * v) / Math.sqrt(T * T + L * L), V = q / d * Math.sqrt(j * j + A * A), tt = N * Z * V;
1068
1068
  z = z + n, k < 0 && (k = k + s), z = Number(z.toFixed(9)), k = Number(k.toFixed(9));
1069
1069
  const nt = Number(Y.toDegrees().toFixed(9)), et = Number(tt.toFixed(12)), I = this.lat >= 0 ? "N" : "S";
1070
1070
  return new pt(e, I, z, k, this.datum, nt, et, !!t);
@@ -1136,14 +1136,14 @@ class _ {
1136
1136
  if (!t) throw new Error(`invalid MGRS grid reference ‘${t}’`);
1137
1137
  if (!t.trim().match(/\s/)) {
1138
1138
  if (!Number(t.slice(0, 2))) throw new Error(`invalid MGRS grid reference ‘${t}’`);
1139
- let u = t.trim().slice(5);
1140
- u = u.slice(0, u.length / 2) + " " + u.slice(-u.length / 2), t = t.slice(0, 3) + " " + t.slice(3, 5) + " " + u;
1139
+ let d = t.trim().slice(5);
1140
+ d = d.slice(0, d.length / 2) + " " + d.slice(-d.length / 2), t = t.slice(0, 3) + " " + t.slice(3, 5) + " " + d;
1141
1141
  }
1142
1142
  const n = t.match(/\S+/g);
1143
1143
  if (n == null || n.length != 4) throw new Error(`invalid MGRS grid reference ‘${t}’`);
1144
1144
  const s = n[0], e = s.slice(0, 2), i = s.slice(2, 3), r = n[1], a = r.slice(0, 1), o = r.slice(1, 2);
1145
- let f = n[2], c = n[3];
1146
- return f = f.length >= 5 ? f : (f + "00000").slice(0, 5), c = c.length >= 5 ? c : (c + "00000").slice(0, 5), new _(e, i, a, o, f, c);
1145
+ let p = n[2], u = n[3];
1146
+ return p = p.length >= 5 ? p : (p + "00000").slice(0, 5), u = u.length >= 5 ? u : (u + "00000").slice(0, 5), new _(e, i, a, o, p, u);
1147
1147
  }
1148
1148
  /**
1149
1149
  * Returns a string representation of an MGRS grid reference.
@@ -1169,8 +1169,8 @@ class _ {
1169
1169
  */
1170
1170
  toString(t = 10) {
1171
1171
  if (![2, 4, 6, 8, 10].includes(Number(t))) throw new RangeError(`invalid precision ‘${t}’`);
1172
- const { zone: n, band: s, e100k: e, n100k: i, easting: r, northing: a } = this, o = Math.floor(r / Math.pow(10, 5 - t / 2)), f = Math.floor(a / Math.pow(10, 5 - t / 2)), c = n.toString().padStart(2, "0"), u = o.toString().padStart(t / 2, "0"), w = f.toString().padStart(t / 2, "0");
1173
- return `${c}${s} ${e}${i} ${u} ${w}`;
1172
+ const { zone: n, band: s, e100k: e, n100k: i, easting: r, northing: a } = this, o = Math.floor(r / Math.pow(10, 5 - t / 2)), p = Math.floor(a / Math.pow(10, 5 - t / 2)), u = n.toString().padStart(2, "0"), d = o.toString().padStart(t / 2, "0"), w = p.toString().padStart(t / 2, "0");
1173
+ return `${u}${s} ${e}${i} ${d} ${w}`;
1174
1174
  }
1175
1175
  }
1176
1176
  class ht extends pt {
@@ -1186,8 +1186,8 @@ class ht extends pt {
1186
1186
  */
1187
1187
  toMgrs() {
1188
1188
  const t = this.zone, n = this.toLatLon(), s = rt.charAt(Math.floor(n.lat / 8 + 10)), e = Math.floor(this.easting / 1e5), i = ot[(t - 1) % 3].charAt(e - 1), r = Math.floor(this.northing / 1e5) % 20, a = at[(t - 1) % 2].charAt(r);
1189
- let o = this.easting % 1e5, f = this.northing % 1e5;
1190
- return o = Number(o.toFixed(6)), f = Number(f.toFixed(6)), new _(t, s, i, a, o, f);
1189
+ let o = this.easting % 1e5, p = this.northing % 1e5;
1190
+ return o = Number(o.toFixed(6)), p = Number(p.toFixed(6)), new _(t, s, i, a, o, p);
1191
1191
  }
1192
1192
  }
1193
1193
  class wt extends K {
@@ -1230,16 +1230,16 @@ function Nt({
1230
1230
  });
1231
1231
  ct(() => (o(M[1], M[0]), () => {
1232
1232
  }), [M]), ct(() => {
1233
- const { latitude: d, longitude: p } = e.latLon;
1234
- return t && (d !== M[1] || p !== M[0]) && t({
1235
- latitude: d,
1236
- longitude: p
1233
+ const { latitude: f, longitude: c } = e.latLon;
1234
+ return t && (f !== M[1] || c !== M[0]) && t({
1235
+ latitude: f,
1236
+ longitude: c
1237
1237
  }), () => {
1238
1238
  };
1239
1239
  }, [e]);
1240
- const o = (d, p) => {
1240
+ const o = (f, c) => {
1241
1241
  try {
1242
- const m = new wt(d, p), y = m.toUtm(), b = y.toMgrs(), S = m.toString("dms");
1242
+ const m = new wt(f, c), y = m.toUtm(), b = y.toMgrs(), S = m.toString("dms");
1243
1243
  i({
1244
1244
  latLon: {
1245
1245
  latitude: m.latitude,
@@ -1249,7 +1249,8 @@ function Nt({
1249
1249
  mgrs: b.toString(),
1250
1250
  dms: S
1251
1251
  });
1252
- } catch {
1252
+ } catch (m) {
1253
+ console.log("error", m);
1253
1254
  }
1254
1255
  };
1255
1256
  return {
@@ -1259,42 +1260,45 @@ function Nt({
1259
1260
  latLonStr: r
1260
1261
  },
1261
1262
  action: {
1262
- onChangeFormat: (d) => {
1263
- s(d.target.value);
1263
+ onChangeFormat: (f) => {
1264
+ s(f.target.value);
1264
1265
  },
1265
- onChangeLat: (d) => {
1266
- let p = d.target.value;
1267
- p = p.replace(",", "."), a({
1268
- latitude: p,
1266
+ onChangeLat: (f) => {
1267
+ let c = f.target.value;
1268
+ c = c.replace(",", "."), a({
1269
+ latitude: c,
1269
1270
  longitude: r.longitude
1270
- }), o(Number(p), e.latLon.longitude);
1271
+ }), o(Number(c), e.latLon.longitude);
1271
1272
  },
1272
- onChangeLon: (d) => {
1273
- let p = d.target.value;
1274
- p = p.replace(",", "."), a({
1273
+ onChangeLon: (f) => {
1274
+ let c = f.target.value;
1275
+ c = c.replace(",", "."), a({
1275
1276
  latitude: r.latitude,
1276
- longitude: p
1277
- }), o(e.latLon.latitude, Number(p));
1277
+ longitude: c
1278
+ }), o(e.latLon.latitude, Number(c));
1278
1279
  },
1279
- onChangeDms: (d) => {
1280
+ onChangeDms: (f) => {
1280
1281
  try {
1281
- const p = d.target.value.split(","), m = p[0].trim(), y = p[1].trim(), b = h.parse(m), S = h.parse(y);
1282
+ const c = f.target.value.split(","), m = c[0].trim(), y = c[1].trim(), b = h.parse(m), S = h.parse(y);
1282
1283
  o(b, S);
1283
- } catch {
1284
+ } catch (c) {
1285
+ console.log("error", c);
1284
1286
  }
1285
1287
  },
1286
- onChangeMgrs: (d) => {
1288
+ onChangeMgrs: (f) => {
1287
1289
  try {
1288
- const m = _.parse(d.target.value).toUtm().toLatLon();
1290
+ const m = _.parse(f.target.value).toUtm().toLatLon();
1289
1291
  o(m.latitude, m.longitude);
1290
- } catch {
1292
+ } catch (c) {
1293
+ console.log("error", c);
1291
1294
  }
1292
1295
  },
1293
- onChangeUtm: (d) => {
1296
+ onChangeUtm: (f) => {
1294
1297
  try {
1295
- const m = ht.parse(d.target.value).toLatLon();
1298
+ const m = ht.parse(f.target.value).toLatLon();
1296
1299
  o(m.latitude, m.longitude);
1297
- } catch {
1300
+ } catch (c) {
1301
+ console.log("error", c);
1298
1302
  }
1299
1303
  }
1300
1304
  }
@@ -1,77 +1,78 @@
1
1
  import u from "react";
2
- import { parse as a, convert as c } from "../../map/helpers/wkt.js";
2
+ import { parse as a, convert as l } from "../../map/helpers/wkt.js";
3
3
  import m from "lodash";
4
4
  function M({ value: p, onChange: i }) {
5
- const s = u.useMemo(() => {
6
- let e = a(p);
7
- return m.isArray(e) || (e = [e]), e;
5
+ const r = u.useMemo(() => {
6
+ let o = a(p);
7
+ return m.isArray(o) || (o = [o]), o;
8
8
  }, [p]);
9
9
  return {
10
10
  state: {
11
- parsed: s
11
+ parsed: r
12
12
  },
13
13
  action: {
14
- onCoordinateInputChange: (e) => (l) => {
14
+ onCoordinateInputChange: (o) => (s) => {
15
15
  if (i) {
16
- let o, t = [...s];
17
- t[e] = {
16
+ let e;
17
+ const t = [...r];
18
+ t[o] = {
18
19
  type: "Point",
19
- coordinates: [l.longitude, l.latitude]
20
- }, t.length > 1 ? o = c({
20
+ coordinates: [s.longitude, s.latitude]
21
+ }, t.length > 1 ? e = l({
21
22
  type: "GeometryCollection",
22
23
  geometries: t
23
- }) : o = c(t[0]), i(o);
24
+ }) : e = l(t[0]), i(e);
24
25
  }
25
26
  },
26
- onPolygonInputChange: (e, l, o) => (t) => {
27
+ onPolygonInputChange: (o, s, e) => (t) => {
27
28
  if (i) {
28
- let n = [...s], r = [...e[0]];
29
- r[o] = [t.longitude, t.latitude], n[l] = {
29
+ const n = [...r], c = [...o[0]];
30
+ c[e] = [t.longitude, t.latitude], n[s] = {
30
31
  type: "Polygon",
31
- coordinates: [r]
32
+ coordinates: [c]
32
33
  };
33
- const g = c({
34
+ const g = l({
34
35
  type: "GeometryCollection",
35
36
  geometries: n
36
37
  });
37
38
  i(g);
38
39
  }
39
40
  },
40
- onMultiPointInputChange: (e, l, o) => (t) => {
41
+ onMultiPointInputChange: (o, s, e) => (t) => {
41
42
  if (i) {
42
- let n = [...s], r = [...e];
43
- r[o] = [t.longitude, t.latitude], n[l] = {
43
+ const n = [...r], c = [...o];
44
+ c[e] = [t.longitude, t.latitude], n[s] = {
44
45
  type: "MultiPoint",
45
- coordinates: r
46
+ coordinates: c
46
47
  };
47
- const g = c({
48
+ const g = l({
48
49
  type: "GeometryCollection",
49
50
  geometries: n
50
51
  });
51
52
  i(g);
52
53
  }
53
54
  },
54
- onLineStringInputChange: (e, l, o) => (t) => {
55
+ onLineStringInputChange: (o, s, e) => (t) => {
55
56
  if (i) {
56
- let n = [...s], r = [...e];
57
- r[o] = [t.longitude, t.latitude], n[l] = {
57
+ const n = [...r], c = [...o];
58
+ c[e] = [t.longitude, t.latitude], n[s] = {
58
59
  type: "LineString",
59
- coordinates: r
60
+ coordinates: c
60
61
  };
61
- const g = c({
62
+ const g = l({
62
63
  type: "GeometryCollection",
63
64
  geometries: n
64
65
  });
65
66
  i(g);
66
67
  }
67
68
  },
68
- onRemoveItem: (e) => (l) => {
69
- if (l.stopPropagation(), i) {
70
- let o = [...s];
71
- o.splice(e, 1);
72
- const n = c({
69
+ onRemoveItem: (o) => (s) => {
70
+ if (s.stopPropagation(), i) {
71
+ const e = [...r];
72
+ e.splice(o, 1);
73
+ const n = l({
73
74
  type: "GeometryCollection",
74
- geometries: o
75
+ geometries: e
75
76
  });
76
77
  i(n);
77
78
  }
@@ -1,14 +1,22 @@
1
- import { styled as t, Box as n, Button as a } from "@mui/material";
2
- const e = t(n)(({ theme: o }) => ({
1
+ import { styled as n, Box as i, Button as a } from "@mui/material";
2
+ const s = n(i)(({ theme: o }) => ({
3
3
  position: "relative",
4
4
  paddingTop: o.spacing(1),
5
5
  width: "100%"
6
- })), r = t(n)({
7
- position: "absolute",
8
- top: 0,
9
- right: 0,
10
- zIndex: 9
11
- }), d = t(a)(({ theme: o, variant: i }) => ({
6
+ })), p = n(i)(
7
+ ({ variant: o = "standard", theme: t }) => ({
8
+ position: "absolute",
9
+ top: 0,
10
+ right: 0,
11
+ zIndex: 9,
12
+ ...o === "outlined" && {
13
+ padding: t.spacing(0.25),
14
+ top: t.spacing(-0.75),
15
+ right: t.spacing(1),
16
+ background: t.palette.background.default
17
+ }
18
+ })
19
+ ), r = n(a)(({ theme: o, variant: t }) => ({
12
20
  fontSize: 10,
13
21
  padding: "3px 8px",
14
22
  minWidth: "auto",
@@ -22,13 +30,13 @@ const e = t(n)(({ theme: o }) => ({
22
30
  fontSize: 14
23
31
  }
24
32
  },
25
- ...i === "contained" && {
33
+ ...t === "contained" && {
26
34
  "&:hover": {
27
35
  backgroundColor: o.palette.grey[300],
28
36
  boxShadow: o.shadows[1]
29
37
  }
30
38
  }
31
- })), p = t(n)({
39
+ })), g = n(i)({
32
40
  position: "absolute",
33
41
  top: 0,
34
42
  left: 0,
@@ -41,8 +49,8 @@ const e = t(n)(({ theme: o }) => ({
41
49
  }
42
50
  });
43
51
  export {
44
- r as Actions,
45
- d as Button,
46
- e as Container,
47
- p as Modal
52
+ p as Actions,
53
+ r as Button,
54
+ s as Container,
55
+ g as Modal
48
56
  };
@@ -1,6 +1,6 @@
1
1
  import { jsx as t } from "react/jsx-runtime";
2
2
  import { VerticalButton as m, MiniButton as c } from "./styled.js";
3
- import { I as e } from "../../IconButton-D8bwME9t.js";
3
+ import { I as e } from "../../IconButton-BaiyAtmS.js";
4
4
  const a = ({
5
5
  variant: i = "default",
6
6
  startIcon: f,
@@ -5,7 +5,6 @@ const r = o(n)(({ theme: t, color: i }) => ({
5
5
  flexDirection: "column",
6
6
  width: 130,
7
7
  height: 140,
8
- // @ts-ignore
9
8
  color: i ? t.palette.text.primary : "inherit",
10
9
  borderRadius: 10,
11
10
  transition: "all .3s",
@@ -24,7 +23,6 @@ const r = o(n)(({ theme: t, color: i }) => ({
24
23
  },
25
24
  "&:hover": {
26
25
  boxShadow: t.shadows[4],
27
- // @ts-ignore
28
26
  color: i ? t.palette.text.primary : "inherit",
29
27
  "&:after": {
30
28
  opacity: 1
@@ -2,8 +2,8 @@ import "react/jsx-runtime";
2
2
  import "@mui/material";
3
3
  import "./styled.js";
4
4
  import "@mui/icons-material";
5
- import "../../../../../hooks/useToggle.js";
6
- import { C as l } from "../../../../../index-B3Oj04nl.js";
5
+ import "../../../../hooks/useToggle.js";
6
+ import { C as l } from "../../../../index-DPf5olog.js";
7
7
  import "react";
8
8
  import "lodash";
9
9
  import "dayjs";
@@ -1,13 +1,22 @@
1
- import { styled as i, Box as n, Button as r } from "@mui/material";
2
- const p = i(n)(({ theme: o, variant: t }) => ({
1
+ import { styled as i, Box as r, Button as n } from "@mui/material";
2
+ const p = i(r)(({ theme: o, variant: t }) => ({
3
3
  position: "relative",
4
4
  width: "100%",
5
+ boxSizing: "border-box",
5
6
  ...t === "outlined" ? {
6
7
  border: "1px solid",
7
- padding: "2.5px 60px 2.5px 2.5px",
8
+ padding: "10px 60px 10px 10px",
8
9
  borderRadius: o.spacing(0.5),
9
10
  "& .MuiButton-root": {
10
- margin: "7px 8px"
11
+ margin: "14px 8px"
12
+ },
13
+ "& .MuiTypography-root": {
14
+ position: "absolute",
15
+ top: -15,
16
+ left: 10,
17
+ paddingLeft: 4,
18
+ paddingRight: 4,
19
+ backgroundColor: o.palette.background.default
11
20
  }
12
21
  } : {
13
22
  borderBottom: "1px solid",
@@ -17,7 +26,7 @@ const p = i(n)(({ theme: o, variant: t }) => ({
17
26
  "&:hover": {
18
27
  borderColor: o.palette.action.active
19
28
  }
20
- })), d = i(n)(({ theme: o }) => ({
29
+ })), d = i(r)(({ theme: o }) => ({
21
30
  minHeight: 33,
22
31
  whiteSpace: "normal",
23
32
  "& .MuiChip-root": {
@@ -27,7 +36,7 @@ const p = i(n)(({ theme: o, variant: t }) => ({
27
36
  "& .MuiChip-root:first-of-type": {
28
37
  marginLeft: 0
29
38
  }
30
- })), e = i(r)(({ theme: o, variant: t }) => ({
39
+ })), e = i(n)(({ theme: o, variant: t }) => ({
31
40
  position: "absolute",
32
41
  top: 0,
33
42
  right: 0,
@@ -0,0 +1,19 @@
1
+ import "react/jsx-runtime";
2
+ import "lodash";
3
+ import "dayjs";
4
+ import { V as g } from "../../../../index-DPf5olog.js";
5
+ import "@mui/material";
6
+ import "@mui/icons-material";
7
+ import "../../../geometry-picker/index.js";
8
+ import "../../../phone-input/index.js";
9
+ import "../../../date-time-picker/index.js";
10
+ import "../../../../TextField-D87qTh1k.js";
11
+ import "../../../../Box-BPyg-Ybm.js";
12
+ import "../../../../FormControlLabel-D9KFjcIx.js";
13
+ import "../../../../Checkbox-qy3cjvnb.js";
14
+ import "../../../../InputLabel-CWkW8NtU.js";
15
+ import "../../../../Select-ClaBvSqf.js";
16
+ import "../../../../MenuItem-D-INSvZa.js";
17
+ export {
18
+ g as default
19
+ };
@@ -0,0 +1,40 @@
1
+ import { jsx as n, Fragment as t } from "react/jsx-runtime";
2
+ import l from "react";
3
+ import { V as p } from "../../../../index-DPf5olog.js";
4
+ import m from "lodash";
5
+ function b({
6
+ template: o,
7
+ value: i,
8
+ mapboxAccessToken: s,
9
+ variant: a = "outlined",
10
+ onChange: u
11
+ }) {
12
+ const d = l.useMemo(() => {
13
+ let r = o == null ? void 0 : o.properties.filter((e) => e.visible);
14
+ return r = m.orderBy(r, "id"), r;
15
+ }, [o]), f = (r) => {
16
+ const e = {
17
+ target: {
18
+ value: { ...i, ...r }
19
+ }
20
+ };
21
+ u(e);
22
+ };
23
+ return o === void 0 ? /* @__PURE__ */ n(t, {}) : /* @__PURE__ */ n(t, { children: d.map((r, e) => {
24
+ const c = i[r.propertyId];
25
+ return /* @__PURE__ */ n(
26
+ p,
27
+ {
28
+ property: r,
29
+ value: c,
30
+ mapboxAccessToken: s,
31
+ variant: a,
32
+ onChange: f
33
+ },
34
+ e
35
+ );
36
+ }) });
37
+ }
38
+ export {
39
+ b as default
40
+ };