mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-24 09:04:02 +02:00
Merge branch 'master' into validation
This commit is contained in:
@@ -648,6 +648,19 @@ button.add-note svg.icon {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.header-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.header-block-outer {
|
||||
width: 20%;
|
||||
}
|
||||
|
||||
.header-block-close {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
/* Hide/Toggle collapsable sections (aka Disclosure)
|
||||
------------------------------------------------------- */
|
||||
@@ -4075,6 +4088,7 @@ svg.mouseclick use.right {
|
||||
------------------------------------------------------- */
|
||||
.settings-modal textarea {
|
||||
height: 70px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.settings-custom-background .instructions-template {
|
||||
|
||||
+24
-16
@@ -364,6 +364,11 @@ en:
|
||||
country:
|
||||
# country=*
|
||||
label: Country
|
||||
couplings:
|
||||
# couplings=*
|
||||
label: Couplings
|
||||
# couplings field placeholder
|
||||
placeholder: '1, 2, 3...'
|
||||
covered:
|
||||
# covered=*
|
||||
label: Covered
|
||||
@@ -598,26 +603,20 @@ en:
|
||||
fence_type:
|
||||
# fence_type=*
|
||||
label: Type
|
||||
fire_hydrant/position:
|
||||
# 'fire_hydrant:position=*'
|
||||
label: Position
|
||||
options:
|
||||
# 'fire_hydrant:position=green'
|
||||
green: Green
|
||||
# 'fire_hydrant:position=lane'
|
||||
lane: Lane
|
||||
# 'fire_hydrant:position=parking_lot'
|
||||
parking_lot: Parking Lot
|
||||
# 'fire_hydrant:position=sidewalk'
|
||||
sidewalk: Sidewalk
|
||||
fire_hydrant/diameter:
|
||||
# 'fire_hydrant:diameter=*'
|
||||
label: 'Diameter (mm, in, or letters)'
|
||||
fire_hydrant/pressure:
|
||||
# 'fire_hydrant:pressure=*'
|
||||
label: Pressure (bar)
|
||||
fire_hydrant/type:
|
||||
# 'fire_hydrant:type=*'
|
||||
label: Type
|
||||
label: Shape
|
||||
options:
|
||||
# 'fire_hydrant:type=pillar'
|
||||
pillar: Pillar/Aboveground
|
||||
# 'fire_hydrant:type=pond'
|
||||
pond: Pond
|
||||
# 'fire_hydrant:type=pipe'
|
||||
pipe: Capped Pipe
|
||||
# 'fire_hydrant:type=underground'
|
||||
underground: Underground
|
||||
# 'fire_hydrant:type=wall'
|
||||
@@ -1791,6 +1790,9 @@ en:
|
||||
surveillance/zone:
|
||||
# 'surveillance:zone=*'
|
||||
label: Surveillance Zone
|
||||
survey/date:
|
||||
# 'survey:date=*'
|
||||
label: Last Survey Date
|
||||
swimming_pool:
|
||||
# swimming_pool=*
|
||||
label: Type
|
||||
@@ -2020,6 +2022,12 @@ en:
|
||||
water_point:
|
||||
# water_point=*
|
||||
label: Water Point
|
||||
water_source:
|
||||
# water_source=*
|
||||
label: Water Source
|
||||
water_volume:
|
||||
# water_volume=*
|
||||
label: Water Reserve Volume (m³)
|
||||
waterway:
|
||||
# waterway=*
|
||||
label: Type
|
||||
@@ -3643,7 +3651,7 @@ en:
|
||||
emergency/fire_hydrant:
|
||||
# emergency=fire_hydrant
|
||||
name: Fire Hydrant
|
||||
# 'terms: fire plug'
|
||||
# 'terms: fire plug,fire water well,hydrant'
|
||||
terms: '<translate with synonyms or related terms for ''Fire Hydrant'', separated by commas>'
|
||||
emergency/first_aid_kit:
|
||||
# emergency=first_aid_kit
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
"content": {"key": "content", "type": "combo", "label": "Content", "options": ["silage", "water", "oil", "fuel", "slurry", "gas", "manure", "sewage"]},
|
||||
"conveying": {"key": "conveying", "type": "typeCombo", "label": "Movement Direction", "strings": {"options": {"forward": "Forward", "backward": "Backward", "reversible": "Reversible"}}},
|
||||
"country": {"key": "country", "type": "combo", "label": "Country"},
|
||||
"couplings": {"key": "couplings", "type": "number", "minValue": 1, "label": "Couplings", "placeholder": "1, 2, 3..."},
|
||||
"covered": {"key": "covered", "type": "check", "label": "Covered"},
|
||||
"craft": {"key": "craft", "type": "typeCombo", "label": "Type"},
|
||||
"crane/type": {"key": "crane:type", "type": "combo", "label": "Crane Type", "strings": {"options": {"portal_crane": "Portal Crane", "floor-mounted_crane": "Floor-mounted Crane", "travel_lift": "Travel Lift"}}},
|
||||
@@ -104,8 +105,9 @@
|
||||
"fax": {"key": "fax", "type": "tel", "label": "Fax", "universal": true, "placeholder": "+31 42 123 4567"},
|
||||
"fee": {"key": "fee", "type": "check", "label": "Fee"},
|
||||
"fence_type": {"key": "fence_type", "type": "combo", "label": "Type"},
|
||||
"fire_hydrant/position": {"key": "fire_hydrant:position", "type": "combo", "label": "Position", "strings": {"options": {"lane": "Lane", "parking_lot": "Parking Lot", "sidewalk": "Sidewalk", "green": "Green"}}},
|
||||
"fire_hydrant/type": {"key": "fire_hydrant:type", "type": "combo", "label": "Type", "strings": {"options": {"pillar": "Pillar/Aboveground", "underground": "Underground", "wall": "Wall", "pond": "Pond"}}},
|
||||
"fire_hydrant/diameter": {"key": "fire_hydrant:diameter", "type": "combo", "label": "Diameter (mm, in, or letters)", "snake_case": false},
|
||||
"fire_hydrant/pressure": {"key": "fire_hydrant:pressure", "type": "combo", "label": "Pressure (bar)", "snake_case": false},
|
||||
"fire_hydrant/type": {"key": "fire_hydrant:type", "type": "combo", "label": "Shape", "strings": {"options": {"pillar": "Pillar/Aboveground", "underground": "Underground", "wall": "Wall", "pipe": "Capped Pipe"}}},
|
||||
"fireplace": {"key": "fireplace", "type": "check", "label": "Fireplace"},
|
||||
"fitness_station": {"key": "fitness_station", "type": "typeCombo", "label": "Equipment Type"},
|
||||
"fixme": {"key": "fixme", "type": "textarea", "label": "Fix Me", "universal": true},
|
||||
@@ -306,6 +308,7 @@
|
||||
"surveillance": {"key": "surveillance", "type": "combo", "label": "Surveillance Kind"},
|
||||
"surveillance/type": {"key": "surveillance:type", "type": "combo", "label": "Surveillance Type", "strings": {"options": {"camera": "Camera", "guard": "Guard", "ALPR": "Automatic License Plate Reader"}}},
|
||||
"surveillance/zone": {"key": "surveillance:zone", "type": "combo", "label": "Surveillance Zone"},
|
||||
"survey/date": {"key": "survey:date", "type": "text", "label": "Last Survey Date"},
|
||||
"swimming_pool": {"key": "swimming_pool", "type": "combo", "label": "Type"},
|
||||
"switch": {"key": "switch", "type": "combo", "label": "Type", "strings": {"options": {"mechanical": "Mechanical", "circuit_breaker": "Circuit Breaker", "disconnector": "Disconnector", "earthing": "Earthing"}}},
|
||||
"tactile_paving": {"key": "tactile_paving", "type": "check", "label": "Tactile Paving"},
|
||||
@@ -340,6 +343,8 @@
|
||||
"voltage/tertiary": {"key": "voltage:tertiary", "type": "combo", "label": "Tertiary Voltage"},
|
||||
"wall": {"key": "wall", "type": "combo", "label": "Type"},
|
||||
"water_point": {"key": "water_point", "type": "check", "label": "Water Point"},
|
||||
"water_source": {"key": "water_source", "default": "main", "type": "combo", "label": "Water Source"},
|
||||
"water_volume": {"key": "water_volume", "type": "number", "label": "Water Reserve Volume (m³)", "snake_case": false},
|
||||
"water": {"key": "water", "type": "combo", "label": "Type"},
|
||||
"waterway": {"key": "waterway", "type": "typeCombo", "label": "Type"},
|
||||
"website": {"key": "website", "type": "url", "icon": "website", "placeholder": "http://example.com/", "universal": true, "label": "Website"},
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"key": "couplings",
|
||||
"type": "number",
|
||||
"minValue": 1,
|
||||
"label": "Couplings",
|
||||
"placeholder": "1, 2, 3..."
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"key": "fire_hydrant:diameter",
|
||||
"type": "combo",
|
||||
"label": "Diameter (mm, in, or letters)",
|
||||
"snake_case": false
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{
|
||||
"key": "fire_hydrant:position",
|
||||
"type": "combo",
|
||||
"label": "Position",
|
||||
"strings": {
|
||||
"options": {
|
||||
"lane": "Lane",
|
||||
"parking_lot": "Parking Lot",
|
||||
"sidewalk": "Sidewalk",
|
||||
"green": "Green"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"key": "fire_hydrant:pressure",
|
||||
"type": "combo",
|
||||
"label": "Pressure (bar)",
|
||||
"snake_case": false
|
||||
}
|
||||
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"key": "fire_hydrant:type",
|
||||
"type": "combo",
|
||||
"label": "Type",
|
||||
"label": "Shape",
|
||||
"strings": {
|
||||
"options": {
|
||||
"pillar": "Pillar/Aboveground",
|
||||
"underground": "Underground",
|
||||
"wall": "Wall",
|
||||
"pond": "Pond"
|
||||
"pipe": "Capped Pipe"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"key": "survey:date",
|
||||
"type": "text",
|
||||
"label": "Last Survey Date"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"key": "water_source",
|
||||
"default": "main",
|
||||
"type": "combo",
|
||||
"label": "Water Source"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"key": "water_volume",
|
||||
"type": "number",
|
||||
"label": "Water Reserve Volume (m³)",
|
||||
"snake_case": false
|
||||
}
|
||||
@@ -361,7 +361,7 @@
|
||||
"emergency/defibrillator": {"icon": "maki-defibrillator", "fields": ["indoor", "ref", "operator"], "geometry": ["point", "vertex"], "terms": ["AED"], "tags": {"emergency": "defibrillator"}, "name": "Defibrillator"},
|
||||
"emergency/fire_alarm": {"icon": "fas-bell", "fields": ["indoor", "ref", "operator"], "geometry": ["point", "vertex"], "tags": {"emergency": "fire_alarm_box"}, "name": "Fire Alarm Call Box"},
|
||||
"emergency/fire_extinguisher": {"icon": "fas-fire-extinguisher", "fields": ["indoor", "ref", "operator"], "geometry": ["point", "vertex"], "tags": {"emergency": "fire_extinguisher"}, "name": "Fire Extinguisher"},
|
||||
"emergency/fire_hydrant": {"icon": "temaki-fire_hydrant", "fields": ["fire_hydrant/type", "fire_hydrant/position", "ref", "operator"], "geometry": ["point", "vertex"], "terms": ["fire plug"], "tags": {"emergency": "fire_hydrant"}, "name": "Fire Hydrant"},
|
||||
"emergency/fire_hydrant": {"icon": "temaki-fire_hydrant", "fields": ["ref", "fire_hydrant/type", "colour", "water_source", "fire_hydrant/pressure", "fire_hydrant/diameter", "couplings", "water_volume", "survey/date"], "geometry": ["point", "vertex"], "terms": ["fire plug", "fire water well", "hydrant"], "tags": {"emergency": "fire_hydrant"}, "name": "Fire Hydrant"},
|
||||
"emergency/first_aid_kit": {"icon": "fas-medkit", "fields": ["indoor", "ref", "operator"], "geometry": ["point", "vertex"], "terms": ["bandage", "first aid", "med", "med kit", "medic*", "medkit"], "tags": {"emergency": "first_aid_kit"}, "name": "First Aid Kit"},
|
||||
"emergency/life_ring": {"icon": "fas-life-ring", "fields": ["ref", "operator"], "geometry": ["point", "vertex"], "terms": ["life buoy", "kisby ring", "kisbie ring", "perry buoy"], "tags": {"emergency": "life_ring"}, "name": "Life Ring"},
|
||||
"emergency/lifeguard": {"icon": "fas-life-ring", "fields": ["ref", "operator", "building_area", "opening_hours"], "geometry": ["point", "area"], "terms": ["CPR", "rescue"], "tags": {"emergency": "lifeguard"}, "name": "Lifeguard"},
|
||||
|
||||
@@ -1,17 +1,24 @@
|
||||
{
|
||||
"icon": "temaki-fire_hydrant",
|
||||
"fields": [
|
||||
"fire_hydrant/type",
|
||||
"fire_hydrant/position",
|
||||
"ref",
|
||||
"operator"
|
||||
"fire_hydrant/type",
|
||||
"colour",
|
||||
"water_source",
|
||||
"fire_hydrant/pressure",
|
||||
"fire_hydrant/diameter",
|
||||
"couplings",
|
||||
"water_volume",
|
||||
"survey/date"
|
||||
],
|
||||
"geometry": [
|
||||
"point",
|
||||
"vertex"
|
||||
],
|
||||
"terms": [
|
||||
"fire plug"
|
||||
"fire plug",
|
||||
"fire water well",
|
||||
"hydrant"
|
||||
],
|
||||
"tags": {
|
||||
"emergency": "fire_hydrant"
|
||||
|
||||
+11
-22
@@ -7096,6 +7096,7 @@
|
||||
"description": "🄵 Movement Direction"
|
||||
},
|
||||
{"key": "country", "description": "🄵 Country"},
|
||||
{"key": "couplings", "description": "🄵 Couplings"},
|
||||
{"key": "covered", "description": "🄵 Covered"},
|
||||
{
|
||||
"key": "crane:type",
|
||||
@@ -7228,33 +7229,18 @@
|
||||
{"key": "fee", "description": "🄵 Fee"},
|
||||
{"key": "fence_type", "description": "🄵 Type"},
|
||||
{
|
||||
"key": "fire_hydrant:position",
|
||||
"value": "lane",
|
||||
"description": "🄵 Position"
|
||||
"key": "fire_hydrant:diameter",
|
||||
"description": "🄵 Diameter (mm, in, or letters)"
|
||||
},
|
||||
{
|
||||
"key": "fire_hydrant:position",
|
||||
"value": "parking_lot",
|
||||
"description": "🄵 Position"
|
||||
},
|
||||
{
|
||||
"key": "fire_hydrant:position",
|
||||
"value": "sidewalk",
|
||||
"description": "🄵 Position"
|
||||
},
|
||||
{
|
||||
"key": "fire_hydrant:position",
|
||||
"value": "green",
|
||||
"description": "🄵 Position"
|
||||
},
|
||||
{"key": "fire_hydrant:type", "value": "pillar", "description": "🄵 Type"},
|
||||
{"key": "fire_hydrant:pressure", "description": "🄵 Pressure (bar)"},
|
||||
{"key": "fire_hydrant:type", "value": "pillar", "description": "🄵 Shape"},
|
||||
{
|
||||
"key": "fire_hydrant:type",
|
||||
"value": "underground",
|
||||
"description": "🄵 Type"
|
||||
"description": "🄵 Shape"
|
||||
},
|
||||
{"key": "fire_hydrant:type", "value": "wall", "description": "🄵 Type"},
|
||||
{"key": "fire_hydrant:type", "value": "pond", "description": "🄵 Type"},
|
||||
{"key": "fire_hydrant:type", "value": "wall", "description": "🄵 Shape"},
|
||||
{"key": "fire_hydrant:type", "value": "pipe", "description": "🄵 Shape"},
|
||||
{"key": "fireplace", "description": "🄵 Fireplace"},
|
||||
{"key": "fitness_station", "description": "🄵 Equipment Type"},
|
||||
{"key": "fixme", "description": "🄵 Fix Me"},
|
||||
@@ -7923,6 +7909,7 @@
|
||||
"description": "🄵 Surveillance Type"
|
||||
},
|
||||
{"key": "surveillance:zone", "description": "🄵 Surveillance Zone"},
|
||||
{"key": "survey:date", "description": "🄵 Last Survey Date"},
|
||||
{"key": "swimming_pool", "description": "🄵 Type"},
|
||||
{"key": "switch", "value": "mechanical", "description": "🄵 Type"},
|
||||
{"key": "switch", "value": "circuit_breaker", "description": "🄵 Type"},
|
||||
@@ -8080,6 +8067,8 @@
|
||||
{"key": "voltage:tertiary", "description": "🄵 Tertiary Voltage"},
|
||||
{"key": "wall", "description": "🄵 Type"},
|
||||
{"key": "water_point", "description": "🄵 Water Point"},
|
||||
{"key": "water_source", "description": "🄵 Water Source"},
|
||||
{"key": "water_volume", "description": "🄵 Water Reserve Volume (m³)"},
|
||||
{"key": "water", "description": "🄵 Type"},
|
||||
{"key": "website", "description": "🄵 Website"},
|
||||
{"key": "wetland", "description": "🄵 Type"},
|
||||
|
||||
Vendored
+21
-11
@@ -1803,6 +1803,10 @@
|
||||
"country": {
|
||||
"label": "Country"
|
||||
},
|
||||
"couplings": {
|
||||
"label": "Couplings",
|
||||
"placeholder": "1, 2, 3..."
|
||||
},
|
||||
"covered": {
|
||||
"label": "Covered"
|
||||
},
|
||||
@@ -2007,22 +2011,19 @@
|
||||
"fence_type": {
|
||||
"label": "Type"
|
||||
},
|
||||
"fire_hydrant/position": {
|
||||
"label": "Position",
|
||||
"options": {
|
||||
"lane": "Lane",
|
||||
"parking_lot": "Parking Lot",
|
||||
"sidewalk": "Sidewalk",
|
||||
"green": "Green"
|
||||
}
|
||||
"fire_hydrant/diameter": {
|
||||
"label": "Diameter (mm, in, or letters)"
|
||||
},
|
||||
"fire_hydrant/pressure": {
|
||||
"label": "Pressure (bar)"
|
||||
},
|
||||
"fire_hydrant/type": {
|
||||
"label": "Type",
|
||||
"label": "Shape",
|
||||
"options": {
|
||||
"pillar": "Pillar/Aboveground",
|
||||
"underground": "Underground",
|
||||
"wall": "Wall",
|
||||
"pond": "Pond"
|
||||
"pipe": "Capped Pipe"
|
||||
}
|
||||
},
|
||||
"fireplace": {
|
||||
@@ -2982,6 +2983,9 @@
|
||||
"surveillance/zone": {
|
||||
"label": "Surveillance Zone"
|
||||
},
|
||||
"survey/date": {
|
||||
"label": "Last Survey Date"
|
||||
},
|
||||
"swimming_pool": {
|
||||
"label": "Type"
|
||||
},
|
||||
@@ -3164,6 +3168,12 @@
|
||||
"water_point": {
|
||||
"label": "Water Point"
|
||||
},
|
||||
"water_source": {
|
||||
"label": "Water Source"
|
||||
},
|
||||
"water_volume": {
|
||||
"label": "Water Reserve Volume (m³)"
|
||||
},
|
||||
"water": {
|
||||
"label": "Type"
|
||||
},
|
||||
@@ -4656,7 +4666,7 @@
|
||||
},
|
||||
"emergency/fire_hydrant": {
|
||||
"name": "Fire Hydrant",
|
||||
"terms": "fire plug"
|
||||
"terms": "fire plug,fire water well,hydrant"
|
||||
},
|
||||
"emergency/first_aid_kit": {
|
||||
"name": "First Aid Kit",
|
||||
|
||||
+20
-2
@@ -14,6 +14,8 @@ import { uiCommitWarnings } from './commit_warnings';
|
||||
import { uiRawTagEditor } from './raw_tag_editor';
|
||||
import { utilDetect } from '../util/detect';
|
||||
import { utilRebind } from '../util';
|
||||
import { modeBrowse } from '../modes';
|
||||
import { svgIcon } from '../svg';
|
||||
|
||||
|
||||
var _changeset;
|
||||
@@ -100,11 +102,27 @@ export function uiCommit(context) {
|
||||
var header = selection.selectAll('.header')
|
||||
.data([0]);
|
||||
|
||||
header.enter()
|
||||
var headerTitle = header.enter()
|
||||
.append('div')
|
||||
.attr('class', 'header fillL')
|
||||
.attr('class', 'header fillL header-container');
|
||||
|
||||
headerTitle
|
||||
.append('div')
|
||||
.attr('class', 'header-block header-block-outer');
|
||||
|
||||
headerTitle
|
||||
.append('div')
|
||||
.attr('class', 'header-block')
|
||||
.append('h3')
|
||||
.text(t('commit.title'));
|
||||
|
||||
headerTitle
|
||||
.append('div')
|
||||
.attr('class', 'header-block header-block-outer header-block-close')
|
||||
.append('button')
|
||||
.attr('class', 'close')
|
||||
.on('click', function() { context.enter(modeBrowse(context)); })
|
||||
.call(svgIcon('#iD-icon-close'));
|
||||
|
||||
var body = selection.selectAll('.body')
|
||||
.data([0]);
|
||||
|
||||
Reference in New Issue
Block a user