ProjetRIOT/javascript/school.js

111 lines
4.1 KiB
JavaScript
Raw Normal View History

2023-03-28 10:15:32 +02:00
var school = {
css: null,
exports: null,
2023-03-31 11:34:14 +02:00
template: (template, expressionTypes, bindingTypes, getComponent) => template('<div expr52="expr52" class="box p-2 m-2" disabled></div>', [{
2023-03-30 00:54:13 +02:00
type: bindingTypes.IF,
evaluate: _scope => _scope.props.shouldShowInfos,
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr52',
selector: '[expr52]',
template: template('<iframe expr53="expr53" width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.openstreetmap.org/export/embed.html?bbox=-14.655761718750002%2C40.56389453066509%2C13.601074218750002%2C51.754240074033525&amp;layer=mapnik" style="border-radius: 5px;"></iframe><br/><div class="block control has-icons-left is-inline-block is-pulled-right"><input expr54="expr54" class="input" type="search" placeholder="Établissement"/><span class="icon is-small is-left"><i class="fas fa-search"></i></span></div><table class="table is-fullwidth is-hoverable"><thead><tr><th expr55="expr55"></th></tr></thead><tbody><tr expr57="expr57"></tr></tbody></table>', [{
type: bindingTypes.IF,
evaluate: _scope => false,
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr53',
selector: '[expr53]',
template: template(null, [])
2023-03-31 11:34:14 +02:00
}, {
redundantAttribute: 'expr54',
selector: '[expr54]',
expressions: [{
type: expressionTypes.EVENT,
name: 'onkeyup',
evaluate: _scope => _scope.props.filterSearch
}]
}, {
2023-03-30 19:28:40 +02:00
type: bindingTypes.EACH,
getKey: null,
condition: null,
2023-03-31 11:34:14 +02:00
template: template(' <a expr56="expr56"><span class="icon"><i class="fas fa-sort"></i></span></a>', [{
2023-03-30 19:28:40 +02:00
expressions: [{
type: expressionTypes.TEXT,
childNodeIndex: 0,
evaluate: _scope => [_scope.sortField.name].join('')
}]
}, {
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr56',
selector: '[expr56]',
2023-03-30 19:28:40 +02:00
expressions: [{
type: expressionTypes.ATTRIBUTE,
name: 'id',
evaluate: _scope => _scope.sortField.id
}, {
type: expressionTypes.EVENT,
name: 'onclick',
evaluate: _scope => () => _scope.props.sortList(_scope.sortField.id)
2023-03-30 19:28:40 +02:00
}]
}]),
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr55',
selector: '[expr55]',
2023-03-30 19:28:40 +02:00
itemName: 'sortField',
indexName: null,
evaluate: _scope => _scope.props.sortFields
2023-03-30 17:26:23 +02:00
}, {
2023-03-30 00:54:13 +02:00
type: bindingTypes.EACH,
getKey: null,
2023-03-30 17:26:23 +02:00
condition: null,
2023-03-31 11:34:14 +02:00
template: template('<td expr58="expr58"> </td><td expr59="expr59"> </td><td expr60="expr60"> </td><td expr61="expr61"> </td><td><title-progress expr62="expr62" max="100" style="margin: auto"></title-progress></td>', [{
redundantAttribute: 'expr58',
selector: '[expr58]',
2023-03-30 00:54:13 +02:00
expressions: [{
type: expressionTypes.TEXT,
childNodeIndex: 0,
evaluate: _scope => _scope.school.fields.g_ea_lib_vx
2023-03-30 00:54:13 +02:00
}]
}, {
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr59',
selector: '[expr59]',
2023-03-30 00:54:13 +02:00
expressions: [{
type: expressionTypes.TEXT,
childNodeIndex: 0,
evaluate: _scope => _scope.school.fields.ville_etab
2023-03-30 00:54:13 +02:00
}]
}, {
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr60',
selector: '[expr60]',
2023-03-30 00:54:13 +02:00
expressions: [{
type: expressionTypes.TEXT,
childNodeIndex: 0,
evaluate: _scope => _scope.school.fields.dep
2023-03-30 00:54:13 +02:00
}]
}, {
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr61',
selector: '[expr61]',
2023-03-30 00:54:13 +02:00
expressions: [{
type: expressionTypes.TEXT,
childNodeIndex: 0,
evaluate: _scope => _scope.school.fields.moyenne
2023-03-30 00:54:13 +02:00
}]
}, {
type: bindingTypes.TAG,
getComponent: getComponent,
evaluate: _scope => 'title-progress',
slots: [],
attributes: [{
type: expressionTypes.ATTRIBUTE,
name: 'value',
evaluate: _scope => _scope.school.fields.taux_acces_ens
}],
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr62',
selector: '[expr62]'
2023-03-30 00:54:13 +02:00
}]),
2023-03-31 11:34:14 +02:00
redundantAttribute: 'expr57',
selector: '[expr57]',
itemName: 'school',
2023-03-30 00:54:13 +02:00
indexName: null,
evaluate: _scope => _scope.props.schoolList
2023-03-30 00:54:13 +02:00
}])
2023-03-28 16:51:44 +02:00
}]),
2023-03-28 10:15:32 +02:00
name: 'school'
};
export { school as default };