@brikka/locations 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -1841,7 +1841,9 @@ class ObjectSchema extends Schema {
1841
1841
  }
1842
1842
  create$3.prototype = ObjectSchema.prototype;
1843
1843
 
1844
- const editForm = (lat, lng, mapZoom, locationTypeLabel) => form.FormHelper.array(formMaps.mapsHelper("location", `Search a ${locationTypeLabel}}`, lat, lng, mapZoom), form.FormHelper.condition("location", location => location != null && Object.keys(location).length > 0, form.FormHelper.array(form.FormHelper.divider(), form.FormHelper.input("map.addressName", "Name"), form.FormHelper.input("map.addressStreet", "Address"))));
1844
+ const editForm = (lat, lng, mapZoom, locationTypeLabel) => form.FormHelper.array(formMaps.mapsHelper("location", `Search a ${locationTypeLabel}`, lat, lng, mapZoom), form.FormHelper.condition("location", location => location != null && Object.keys(location).length > 0, form.FormHelper.array(form.FormHelper.divider(), form.FormHelper.input("map.addressName", "Name"), form.FormHelper.input("map.addressStreet", "Address", false, undefined, {
1845
+ disabled: true
1846
+ }))));
1845
1847
  const editInitialValues = () => ({
1846
1848
  type: "google",
1847
1849
  location: {}
package/index.esm.js CHANGED
@@ -1837,7 +1837,9 @@ class ObjectSchema extends Schema {
1837
1837
  }
1838
1838
  create$3.prototype = ObjectSchema.prototype;
1839
1839
 
1840
- const editForm = (lat, lng, mapZoom, locationTypeLabel) => FormHelper.array(mapsHelper("location", `Search a ${locationTypeLabel}}`, lat, lng, mapZoom), FormHelper.condition("location", location => location != null && Object.keys(location).length > 0, FormHelper.array(FormHelper.divider(), FormHelper.input("map.addressName", "Name"), FormHelper.input("map.addressStreet", "Address"))));
1840
+ const editForm = (lat, lng, mapZoom, locationTypeLabel) => FormHelper.array(mapsHelper("location", `Search a ${locationTypeLabel}`, lat, lng, mapZoom), FormHelper.condition("location", location => location != null && Object.keys(location).length > 0, FormHelper.array(FormHelper.divider(), FormHelper.input("map.addressName", "Name"), FormHelper.input("map.addressStreet", "Address", false, undefined, {
1841
+ disabled: true
1842
+ }))));
1841
1843
  const editInitialValues = () => ({
1842
1844
  type: "google",
1843
1845
  location: {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brikka/locations",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "module": "./index.esm.js",
5
5
  "main": "./index.cjs.js"
6
6
  }