chore: prettier

This commit is contained in:
Yohan Boniface 2024-05-16 12:17:17 +02:00
parent 44b8433216
commit 3a19b921a7
4 changed files with 14 additions and 9 deletions

View file

@ -201,7 +201,11 @@ export default class Browser {
if (filtersBuilder) filtersBuilder.form.reset() if (filtersBuilder) filtersBuilder.form.reset()
}) })
DomUtil.createIcon(reset, 'icon-restore') DomUtil.createIcon(reset, 'icon-restore')
DomUtil.element({ tagName: 'span', parent: reset, textContent: translate('Reset all') }) DomUtil.element({
tagName: 'span',
parent: reset,
textContent: translate('Reset all'),
})
this.map.panel.open({ this.map.panel.open({
content: container, content: container,

View file

@ -20,7 +20,9 @@ export default class Caption {
}) })
} }
const datalayerContainer = DomUtil.create('div', 'datalayer-container', container) const datalayerContainer = DomUtil.create('div', 'datalayer-container', container)
this.map.eachDataLayer((datalayer) => this.addDataLayer(datalayer, datalayerContainer)) this.map.eachDataLayer((datalayer) =>
this.addDataLayer(datalayer, datalayerContainer)
)
const creditsContainer = DomUtil.create('div', 'credits-container', container) const creditsContainer = DomUtil.create('div', 'credits-container', container)
this.addCredits(creditsContainer) this.addCredits(creditsContainer)
this.map.panel.open({ content: container }) this.map.panel.open({ content: container })
@ -103,6 +105,5 @@ export default class Caption {
urls urls
) )
DomUtil.element({ tagName: 'p', innerHTML: creditHTML, parent: credits }) DomUtil.element({ tagName: 'p', innerHTML: creditHTML, parent: credits })
} }
} }

View file

@ -556,7 +556,9 @@ U.Help = L.Class.extend({
'Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.' 'Comma separated list of properties to use for sorting features. To reverse the sort, put a minus sign (-) before. Eg. mykey,-otherkey.'
), ),
slugKey: L._('The name of the property to use as feature unique identifier.'), slugKey: L._('The name of the property to use as feature unique identifier.'),
filterKey: L._('Comma separated list of properties to use when filtering features by text input'), filterKey: L._(
'Comma separated list of properties to use when filtering features by text input'
),
facetKey: L._( facetKey: L._(
'Comma separated list of properties to use for filters (eg.: mykey,otherkey). To control label, add it after a | (eg.: mykey|My Key,otherkey|Other Key). To control input field type, add it after another | (eg.: mykey|My Key|checkbox,otherkey|Other Key|datetime). Allowed values for the input field type are checkbox (default), radio, number, date and datetime.' 'Comma separated list of properties to use for filters (eg.: mykey,otherkey). To control label, add it after a | (eg.: mykey|My Key,otherkey|Other Key). To control input field type, add it after another | (eg.: mykey|My Key|checkbox,otherkey|Other Key|datetime). Allowed values for the input field type are checkbox (default), radio, number, date and datetime.'
), ),

View file

@ -745,14 +745,12 @@ L.FormBuilder.Switch = L.FormBuilder.CheckBox.extend({
}) })
L.FormBuilder.FacetSearchBase = L.FormBuilder.Element.extend({ L.FormBuilder.FacetSearchBase = L.FormBuilder.Element.extend({
buildLabel: function () { buildLabel: function () {
this.label = L.DomUtil.element({ this.label = L.DomUtil.element({
tagName: 'legend', tagName: 'legend',
textContent: this.options.label, textContent: this.options.label,
}) })
} },
}) })
L.FormBuilder.FacetSearchChoices = L.FormBuilder.FacetSearchBase.extend({ L.FormBuilder.FacetSearchChoices = L.FormBuilder.FacetSearchBase.extend({
build: function () { build: function () {
@ -865,13 +863,13 @@ L.FormBuilder.MinMaxBase = L.FormBuilder.FacetSearchBase.extend({
}, },
isMinModified: function () { isMinModified: function () {
const default_ = this.minInput.getAttribute("value") const default_ = this.minInput.getAttribute('value')
const current = this.minInput.value const current = this.minInput.value
return current != default_ return current != default_
}, },
isMaxModified: function () { isMaxModified: function () {
const default_ = this.maxInput.getAttribute("value") const default_ = this.maxInput.getAttribute('value')
const current = this.maxInput.value const current = this.maxInput.value
return current != default_ return current != default_
}, },