Fix lit linting. (some fix could be better...)
This commit is contained in:
parent
724e8fdce9
commit
8cc9061092
@ -78,8 +78,7 @@ export function tplChannelConfiguration (el: ChannelConfigurationElement): Templ
|
|||||||
},
|
},
|
||||||
reason: {
|
reason: {
|
||||||
inputType: 'text',
|
inputType: 'text',
|
||||||
default: '',
|
default: ''
|
||||||
datalist: []
|
|
||||||
},
|
},
|
||||||
comments: {
|
comments: {
|
||||||
inputType: 'textarea',
|
inputType: 'textarea',
|
||||||
|
@ -268,7 +268,7 @@ export class DynamicTableFormElement extends LivechatElement {
|
|||||||
<td class="form-group">
|
<td class="form-group">
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="peertube-button-link orange-button dynamic-table-remove-row"
|
class="peertube-button-link orange-button dynamic-table-remove-row"
|
||||||
.title=${ptTr(LOC_ACTION_REMOVE_ENTRY)}
|
.title=${ptTr(LOC_ACTION_REMOVE_ENTRY) as any}
|
||||||
@click=${async () => this._removeRow(rowData._id)}
|
@click=${async () => this._removeRow(rowData._id)}
|
||||||
>
|
>
|
||||||
${unsafeHTML(RemoveSVG)}
|
${unsafeHTML(RemoveSVG)}
|
||||||
@ -287,7 +287,7 @@ export class DynamicTableFormElement extends LivechatElement {
|
|||||||
<td>
|
<td>
|
||||||
<button type="button"
|
<button type="button"
|
||||||
class="peertube-button-link orange-button dynamic-table-add-row"
|
class="peertube-button-link orange-button dynamic-table-add-row"
|
||||||
.title=${ptTr(LOC_ACTION_ADD_ENTRY)}
|
.title=${ptTr(LOC_ACTION_ADD_ENTRY) as any}
|
||||||
@click=${this._addRow}
|
@click=${this._addRow}
|
||||||
>
|
>
|
||||||
${unsafeHTML(AddSVG)}
|
${unsafeHTML(AddSVG)}
|
||||||
@ -520,7 +520,7 @@ export class DynamicTableFormElement extends LivechatElement {
|
|||||||
propertyValue: string,
|
propertyValue: string,
|
||||||
originalIndex: number): TemplateResult => {
|
originalIndex: number): TemplateResult => {
|
||||||
return html`<input
|
return html`<input
|
||||||
type=${propertySchema.inputType}
|
type=${propertySchema.inputType as any}
|
||||||
name=${inputName}
|
name=${inputName}
|
||||||
class=${classMap(
|
class=${classMap(
|
||||||
Object.assign(
|
Object.assign(
|
||||||
@ -530,7 +530,7 @@ export class DynamicTableFormElement extends LivechatElement {
|
|||||||
)}
|
)}
|
||||||
id=${inputId}
|
id=${inputId}
|
||||||
aria-describedby="${inputId}-feedback"
|
aria-describedby="${inputId}-feedback"
|
||||||
list=${(propertySchema.datalist) ? inputId + '-datalist' : nothing}
|
list=${ifDefined(propertySchema.datalist ? inputId + '-datalist' : undefined)}
|
||||||
min=${ifDefined(propertySchema.min)}
|
min=${ifDefined(propertySchema.min)}
|
||||||
max=${ifDefined(propertySchema.max)}
|
max=${ifDefined(propertySchema.max)}
|
||||||
minlength=${ifDefined(propertySchema.minlength)}
|
minlength=${ifDefined(propertySchema.minlength)}
|
||||||
@ -540,7 +540,7 @@ export class DynamicTableFormElement extends LivechatElement {
|
|||||||
/>
|
/>
|
||||||
${(propertySchema.datalist)
|
${(propertySchema.datalist)
|
||||||
? html`<datalist id=${inputId + '-datalist'}>
|
? html`<datalist id=${inputId + '-datalist'}>
|
||||||
${(propertySchema.datalist ?? []).map((value) => html`<option value=${value}>`)}
|
${(propertySchema.datalist ?? []).map((value) => html`<option value=${value.toString()}>`)}
|
||||||
</datalist>`
|
</datalist>`
|
||||||
: nothing}`
|
: nothing}`
|
||||||
}
|
}
|
||||||
@ -561,16 +561,17 @@ export class DynamicTableFormElement extends LivechatElement {
|
|||||||
)
|
)
|
||||||
)}
|
)}
|
||||||
id=${inputId}
|
id=${inputId}
|
||||||
.inputPlaceholder=${ifDefined(propertySchema.label)}
|
.inputPlaceholder=${propertySchema.label as any}
|
||||||
aria-describedby="${inputId}-feedback"
|
aria-describedby="${inputId}-feedback"
|
||||||
.min=${ifDefined(propertySchema.min)}
|
.min=${propertySchema.min}
|
||||||
.max=${ifDefined(propertySchema.max)}
|
.max=${propertySchema.max}
|
||||||
.minlength=${ifDefined(propertySchema.minlength)}
|
.minlength=${propertySchema.minlength}
|
||||||
.maxlength=${ifDefined(propertySchema.maxlength)}
|
.maxlength=${propertySchema.maxlength}
|
||||||
.datalist=${ifDefined(propertySchema.datalist)}
|
.datalist=${propertySchema.datalist as any}
|
||||||
.separators=${ifDefined(propertySchema.separators)}
|
.separators=${propertySchema.separators}
|
||||||
@change=${(event: Event) => this._updatePropertyFromValue(event, propertyName, propertySchema, rowId)}
|
@change=${(event: Event) => this._updatePropertyFromValue(event, propertyName, propertySchema, rowId)}
|
||||||
.value=${propertyValue}></livechat-tags-input>`
|
.value=${propertyValue as any}
|
||||||
|
></livechat-tags-input>`
|
||||||
}
|
}
|
||||||
|
|
||||||
_renderTextarea = (rowId: number,
|
_renderTextarea = (rowId: number,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user