-
Notifications
You must be signed in to change notification settings - Fork 0
/
panel-filter.html
125 lines (102 loc) · 3.26 KB
/
panel-filter.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<link rel="import" href="../polymer/polymer-element.html"/>
<link rel="import" href="../iron-icon/iron-icon.html"/>
<link rel="import" href="../paper-input/paper-input.html"/>
<link rel="import" href="../paper-checkbox/paper-checkbox.html"/>
<link rel="import" href="../paper-dropdown-menu/paper-dropdown-menu.html"/>
<link rel="import" href="../paper-listbox/paper-listbox.html"/>
<link rel="import" href="../paper-item/paper-item.html"/>
<link rel="import" href="../paper-button/paper-button.html"/>
<link rel="import" href="../paper-styles/color.html"/>
<link rel="import" href="../paper-material/paper-material.html"/>
<link rel="import" href="filter-icons.html"/>
<!--
`panel-filter`
### Styling
The following custom properties and mixins are available for styling.
Custom property | Description | Default
------------------|-------------------------------------|----------
`--panel-filter` | Mixin applied to the `panel-filter` | `{}`
@demo demo/index.html
-->
<dom-module id="panel-filter">
<template>
<style include="paper-material"></style>
<style>
:host {
display: block;
width: 50%;
padding: 11px;
@apply(--panel-filter);
}
.filter-checkbox {
margin: 10px 0;
}
.filter-check {
margin-top: 18px;
}
paper-button {
--paper-button: {
margin: 0;
padding: 8px;
font-size: 12px;
};
}
.filter-button {
margin-top: 40px;
}
.filter-button iron-icon {
--iron-icon-width: 20px;
--iron-icon-height: 20px;
}
</style>
<div>
<div class="filter-input">
<paper-input label="Search" type="text" value="{{search}}">
<iron-icon icon="search" prefix></iron-icon>
</paper-input>
</div>
<div class="filter-check">
<div class="filter-checkbox">
<paper-checkbox class="checkchange" checked>Customer Name</paper-checkbox>
</div>
<div class="filter-checkbox">
<paper-checkbox class="checkchange">Shop Name</paper-checkbox>
</div>
<div class="filter-checkbox">
<paper-checkbox class="checkchange">Customer ERP Code</paper-checkbox>
</div>
</div>
<div class="filter-dropdown">
<paper-dropdown-menu id="dropdown" label="Faghed">
<paper-listbox class="dropdown-content">
<paper-item>item 1</paper-item>
<paper-item>item 2</paper-item>
<paper-item>item 3</paper-item>
<paper-item>item 4</paper-item>
</paper-listbox>
</paper-dropdown-menu>
</div>
<div class="filter-input">
<paper-input type="number" value="{{numbersearch}}">
</paper-input>
</div>
<div class="filter-check">
<div class="filter-checkbox">
<paper-checkbox class="checkchange">Last visit</paper-checkbox>
</div>
<div class="filter-checkbox">
<paper-checkbox class="checkchange">Last Order</paper-checkbox>
</div>
<div class="filter-checkbox">
<paper-checkbox class="checkchange" checked>Account Balance</paper-checkbox>
</div>
</div>
<div class="filter-button">
<paper-button raised><iron-icon icon="check"></iron-icon>Search</paper-button>
<paper-button raised on-tap="_resetfilter"><iron-icon icon="close"></iron-icon>Reset</paper-button>
</div>
</div>
</template>
<script type="text/javascript" src="panel-filter.js"></script>
</script>
</dom-module>