Commit 80110df28004cd79ccb9230801fa5ad904a10664
Exists in
develop
Merge branch 'develop' into 'develop'
Develop && --> || en vigencia de categorias See merge request !152
Showing
1 changed file
Show diff stats
src/app/modules/seleccion-articulos/filtro-categorias/filtro-categorias.component.html
1 | <!-- FILTRO CATEGORIAS --> | 1 | <!-- FILTRO CATEGORIAS --> |
2 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> | 2 | <p class="h6 h-6 m-0 text-center"><small>CATEGORÍAS</small></p> |
3 | <div class="row mx-0 h-94 justify-content-center align-items-center"> | 3 | <div class="row mx-0 h-94 justify-content-center align-items-center"> |
4 | <div class="col-auto btn-effect h-5 cat-btn"> | 4 | <div class="col-auto btn-effect h-5 cat-btn"> |
5 | <img | 5 | <img |
6 | draggable="false" | 6 | draggable="false" |
7 | ondragstart="return false;" | 7 | ondragstart="return false;" |
8 | (contextmenu)="false" | 8 | (contextmenu)="false" |
9 | class="h-100 d-block mx-auto rotate-90-neg" | 9 | class="h-100 d-block mx-auto rotate-90-neg" |
10 | src="assets/img/ir-color.svg" | 10 | src="assets/img/ir-color.svg" |
11 | (mousedown)="scrollY(templateCategorias, -100)" | 11 | (mousedown)="scrollY(templateCategorias, -100)" |
12 | (mouseup)="mouseup()" | 12 | (mouseup)="mouseup()" |
13 | (mouseleave)="mouseup()"> | 13 | (mouseleave)="mouseup()"> |
14 | </div> | 14 | </div> |
15 | <!-- CATEGORIAS --> | 15 | <!-- CATEGORIAS --> |
16 | <div | 16 | <div |
17 | #templateCategorias | 17 | #templateCategorias |
18 | class="col-12 px-0 mx-0 box-categorias border border-primary py-1 | 18 | class="col-12 px-0 mx-0 box-categorias border border-primary py-1 |
19 | border-left-0 rounded-right scroll-y cat-box" | 19 | border-left-0 rounded-right scroll-y cat-box" |
20 | (scroll)="scrollEvent($event)"> | 20 | (scroll)="scrollEvent($event)"> |
21 | <div | 21 | <div |
22 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" | 22 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" |
23 | [ngClass]="{ 'active rounded shadow px-2': allActive, 'border-bottom-effect': !allActive }" | 23 | [ngClass]="{ 'active rounded shadow px-2': allActive, 'border-bottom-effect': !allActive }" |
24 | (click)="selectCategoria(-1, 0)"> | 24 | (click)="selectCategoria(-1, 0)"> |
25 | <img | 25 | <img |
26 | draggable="false" | 26 | draggable="false" |
27 | ondragstart="return false;" | 27 | ondragstart="return false;" |
28 | (contextmenu)="false" | 28 | (contextmenu)="false" |
29 | class="col-12 img-fluid align-self-end d-none | 29 | class="col-12 img-fluid align-self-end d-none |
30 | d-sm-block rounded-circle h-50" | 30 | d-sm-block rounded-circle h-50" |
31 | src="assets/img/logo-spot.svg"> | 31 | src="assets/img/logo-spot.svg"> |
32 | <small class="col-12 px-0 my-1 h-100 h-md-25 align-self-end text-center text-truncate">Todos</small> | 32 | <small class="col-12 px-0 my-1 h-100 h-md-25 align-self-end text-center text-truncate">Todos</small> |
33 | </div> | 33 | </div> |
34 | 34 | ||
35 | <div | 35 | <div |
36 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" | 36 | class="row mx-2 mb-2 h-25 h-lg-30 justify-content-center tab cat-content" |
37 | [ngClass]="{ 'active rounded shadow px-2': categoria.selected, | 37 | [ngClass]="{ 'active rounded shadow px-2': categoria.selected, |
38 | 'border-bottom-effect': !categoria.selected, | 38 | 'border-bottom-effect': !categoria.selected, |
39 | 'media-pantalla': templateCategorias.classList.contains('media-pantalla')}" | 39 | 'media-pantalla': templateCategorias.classList.contains('media-pantalla')}" |
40 | (click)="selectCategoria(i, categoria.id)" | 40 | (click)="selectCategoria(i, categoria.id)" |
41 | id="cat-content" | 41 | id="cat-content" |
42 | *ngFor="let categoria of categorias; let i = index;" | 42 | *ngFor="let categoria of categorias; let i = index;" |
43 | [hidden]="categoria.articulos <= 0 | 43 | [hidden]="categoria.articulos <= 0 |
44 | && validarFecha(categoria.vigencia_desde, categoria.vigencia_hasta)"> | 44 | || validarFecha(categoria.vigencia_desde, categoria.vigencia_hasta)"> |
45 | <img | 45 | <img |
46 | draggable="false" | 46 | draggable="false" |
47 | ondragstart="return false;" | 47 | ondragstart="return false;" |
48 | (contextmenu)="false" | 48 | (contextmenu)="false" |
49 | class="d-none d-sm-block rounded-circle w-auto h-auto col-12" | 49 | class="d-none d-sm-block rounded-circle w-auto h-auto col-12" |
50 | src="{{urlImagenes}}{{categoria.path_imagen}}" | 50 | src="{{urlImagenes}}{{categoria.path_imagen}}" |
51 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> | 51 | onerror="this.src='assets/img/imagen-no-encontrada.jpg'"> |
52 | <small class="col-12 px-1 my-1 h-100 h-md-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> | 52 | <small class="col-12 px-1 my-1 h-100 h-md-25 align-self-end text-center text-truncate">{{categoria.detalle}}</small> |
53 | </div> | 53 | </div> |
54 | 54 | ||
55 | </div> | 55 | </div> |
56 | <div class="col-auto btn-effect h-5 cat-btn"> | 56 | <div class="col-auto btn-effect h-5 cat-btn"> |
57 | <img | 57 | <img |
58 | draggable="false" | 58 | draggable="false" |
59 | ondragstart="return false;" | 59 | ondragstart="return false;" |
60 | (contextmenu)="false" | 60 | (contextmenu)="false" |
61 | class="h-100 d-block mx-auto rotate-90" | 61 | class="h-100 d-block mx-auto rotate-90" |
62 | src="assets/img/ir-color.svg" | 62 | src="assets/img/ir-color.svg" |
63 | (mousedown)="scrollY(templateCategorias, 100)" | 63 | (mousedown)="scrollY(templateCategorias, 100)" |
64 | (mouseup)="mouseup()" | 64 | (mouseup)="mouseup()" |
65 | (mouseleave)="mouseup()"> | 65 | (mouseleave)="mouseup()"> |
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | 68 |