@sulzanoks/vue-datatable 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +116 -0
- package/dist/datatable-card.es.js +4548 -0
- package/dist/datatable-card.umd.js +11 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +1 -0
- package/package.json +34 -0
- package/src/Components/DatatableCard.vue +780 -0
- package/src/Images/sort_asc.png +0 -0
- package/src/Images/sort_asc_disabled.png +0 -0
- package/src/Images/sort_both.png +0 -0
- package/src/Images/sort_desc.png +0 -0
- package/src/Images/sort_desc_disabled.png +0 -0
- package/src/Sass/Style.scss +552 -0
- package/src/Sass/partials/_card_header.scss +59 -0
- package/src/index.js +3 -0
|
@@ -0,0 +1,780 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="card" :class="cardClasses">
|
|
3
|
+
<header class="card-header" :class="{'card-header-primary':!cardError, 'card-header-danger':cardError && cardIcon, 'card-header-icon':cardIcon}">
|
|
4
|
+
<div v-if="cardIcon" class="card-icon">
|
|
5
|
+
<i v-if="!cardError" class="material-icons">{{cardIcon}}</i>
|
|
6
|
+
<i v-else class="material-icons">dangerous</i>
|
|
7
|
+
</div>
|
|
8
|
+
<h4 v-if="cardTitle && !cardError" class="card-title">{{cardTitle}}</h4>
|
|
9
|
+
<h4 v-if="cardError" class="card-title text-danger">{{cardError}}</h4>
|
|
10
|
+
<div v-if="!advancedSearch" class="card-search" :class="{open:searchBarOpen}">
|
|
11
|
+
<div class="form-group label-floating is-empty">
|
|
12
|
+
<i class="material-icons search-icon-left">search</i>
|
|
13
|
+
<input type="text" class="form-control filter-input" placeholder="Search..." autocomplete="off" @keyup="setSearchTerm">
|
|
14
|
+
<a href="javascript:void(0)" class="close-search" @click="clearSearch" data-tippy-content="Close">
|
|
15
|
+
<i class="material-icons">close</i>
|
|
16
|
+
</a>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<ul class="card-actions icons right-top">
|
|
20
|
+
<li v-if="createLink">
|
|
21
|
+
<Link :href="createLink" data-tippy-content="Create new">
|
|
22
|
+
<i class="material-icons">add</i>
|
|
23
|
+
</Link>
|
|
24
|
+
</li>
|
|
25
|
+
<li>
|
|
26
|
+
<a href="javascript:void(0)" data-tippy-content="Meklēt" @click="toggleSearch">
|
|
27
|
+
<i class="material-icons">search</i>
|
|
28
|
+
</a>
|
|
29
|
+
</li>
|
|
30
|
+
<li class="dropdown" data-tippy-content="Show Entries">
|
|
31
|
+
<a href="javascript:void(0)" data-bs-toggle="dropdown">
|
|
32
|
+
<i class="material-icons">more_vert</i>
|
|
33
|
+
</a>
|
|
34
|
+
<ul class="dropdown-menu dropdown-menu-right">
|
|
35
|
+
<li @click="setPageLength(10)">
|
|
36
|
+
<a href="javascript:void(0)">10</a>
|
|
37
|
+
</li>
|
|
38
|
+
<li @click="setPageLength(25)">
|
|
39
|
+
<a href="javascript:void(0)">25</a>
|
|
40
|
+
</li>
|
|
41
|
+
<li @click="setPageLength(50)">
|
|
42
|
+
<a href="javascript:void(0)">50</a>
|
|
43
|
+
</li>
|
|
44
|
+
<li @click="setPageLength(100)">
|
|
45
|
+
<a href="javascript:void(0)">100</a>
|
|
46
|
+
</li>
|
|
47
|
+
</ul>
|
|
48
|
+
</li>
|
|
49
|
+
</ul>
|
|
50
|
+
</header>
|
|
51
|
+
<div class="card-body">
|
|
52
|
+
<div v-if="advancedSearch" class="toolbar" :class="{open:searchBarOpen}">
|
|
53
|
+
<form @submit.prevent="setAdvancedSearchFilters">
|
|
54
|
+
<template v-for="(column, index) in columns">
|
|
55
|
+
<span
|
|
56
|
+
v-if="column.searchable !== false"
|
|
57
|
+
class="bmd-form-group"
|
|
58
|
+
:key="index"
|
|
59
|
+
>
|
|
60
|
+
<input
|
|
61
|
+
:name="column.name"
|
|
62
|
+
class="form-control"
|
|
63
|
+
:placeholder="column.displayName"
|
|
64
|
+
autocomplete="off"
|
|
65
|
+
/>
|
|
66
|
+
</span>
|
|
67
|
+
</template>
|
|
68
|
+
<button type="submit" class="btn btn-primary">Meklēt</button>
|
|
69
|
+
</form>
|
|
70
|
+
</div>
|
|
71
|
+
<div class="table-responsive">
|
|
72
|
+
<div class="dataTables_wrapper no-footer">
|
|
73
|
+
<table class="table data-table dataTable no-footer">
|
|
74
|
+
<thead>
|
|
75
|
+
<tr>
|
|
76
|
+
<th v-if="selectableRows">
|
|
77
|
+
<input type="checkbox" @click="selectAllRows" ref="selectAllRows">
|
|
78
|
+
</th>
|
|
79
|
+
<th
|
|
80
|
+
v-for="(column, index) in columns"
|
|
81
|
+
:key="index"
|
|
82
|
+
:class="[columnSortingClasses[index], column.sortable !== false ? 'sorting' : '']"
|
|
83
|
+
@click="setSorting(index)"
|
|
84
|
+
>
|
|
85
|
+
{{column.displayName}}
|
|
86
|
+
</th>
|
|
87
|
+
</tr>
|
|
88
|
+
</thead>
|
|
89
|
+
<tbody>
|
|
90
|
+
<tr v-for="(row, index) in rows" :key="index">
|
|
91
|
+
<td v-if="selectableRows">
|
|
92
|
+
<input type="checkbox" :value="row.id" v-model="selectedRows">
|
|
93
|
+
</td>
|
|
94
|
+
<td v-for="(column, index) in columns" :key="index">
|
|
95
|
+
<Link v-if="column.linkParams" :href="generateLink(column.linkParams, row)">
|
|
96
|
+
{{row[column.data]}}
|
|
97
|
+
</Link>
|
|
98
|
+
<span v-else>{{row[column.data]}}</span>
|
|
99
|
+
</td>
|
|
100
|
+
</tr>
|
|
101
|
+
</tbody>
|
|
102
|
+
</table>
|
|
103
|
+
|
|
104
|
+
<div class="dataTables_info">
|
|
105
|
+
Rāda {{firstRecord}}. līdz {{lastRecord}}. no {{recordsFiltered}} ierakstiem
|
|
106
|
+
<span v-if="recordsFiltered != recordsTotal">
|
|
107
|
+
(kopā {{ recordsTotal }} ierkasti)
|
|
108
|
+
</span>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="dataTables_paginate paging_simple_numbers user-select-none" id="document-index-table_paginate">
|
|
111
|
+
<a
|
|
112
|
+
class="paginate_button first user-select-none"
|
|
113
|
+
:class="{disabled:columnSettings.start == 0}"
|
|
114
|
+
@click="setPage(1)"
|
|
115
|
+
>Pirmā</a>
|
|
116
|
+
<a
|
|
117
|
+
class="paginate_button previous"
|
|
118
|
+
:class="{disabled:columnSettings.start == 0}"
|
|
119
|
+
@click="setPage(currentPage - 1)"
|
|
120
|
+
>Iepriekšējā</a>
|
|
121
|
+
|
|
122
|
+
<span>
|
|
123
|
+
<a
|
|
124
|
+
v-for="(page, index) in pages"
|
|
125
|
+
class="paginate_button"
|
|
126
|
+
:class="{current: page == currentPage}"
|
|
127
|
+
@click="setPage(page)"
|
|
128
|
+
>{{ page }}</a>
|
|
129
|
+
</span>
|
|
130
|
+
<a
|
|
131
|
+
class="paginate_button next"
|
|
132
|
+
:class="{disabled:columnSettings.start >= lastPageStart}"
|
|
133
|
+
@click="setPage(currentPage + 1)"
|
|
134
|
+
>Nākamā</a>
|
|
135
|
+
<a
|
|
136
|
+
class="paginate_button last"
|
|
137
|
+
:class="{disabled:columnSettings.start >= lastPageStart}"
|
|
138
|
+
@click="setPage(pageCount)"
|
|
139
|
+
>Pēdējā</a>
|
|
140
|
+
</div>
|
|
141
|
+
|
|
142
|
+
</div>
|
|
143
|
+
</div>
|
|
144
|
+
</div>
|
|
145
|
+
</div>
|
|
146
|
+
</template>
|
|
147
|
+
|
|
148
|
+
<script>
|
|
149
|
+
import axios from 'axios';
|
|
150
|
+
import { Link } from '@inertiajs/vue3';
|
|
151
|
+
import '../Sass/Style.scss';
|
|
152
|
+
|
|
153
|
+
export default {
|
|
154
|
+
name: "DatatableCard",
|
|
155
|
+
components: {
|
|
156
|
+
Link,
|
|
157
|
+
},
|
|
158
|
+
props: {
|
|
159
|
+
cardTitle: {
|
|
160
|
+
type: String,
|
|
161
|
+
required: false,
|
|
162
|
+
default: null,
|
|
163
|
+
},
|
|
164
|
+
cardIconStyle: {
|
|
165
|
+
type: String,
|
|
166
|
+
required: false,
|
|
167
|
+
default: 'card-header-primary',
|
|
168
|
+
},
|
|
169
|
+
cardIcon: {
|
|
170
|
+
type: String,
|
|
171
|
+
required: false,
|
|
172
|
+
default: null,
|
|
173
|
+
},
|
|
174
|
+
cardClasses: {
|
|
175
|
+
type: String,
|
|
176
|
+
required: false,
|
|
177
|
+
default: null,
|
|
178
|
+
},
|
|
179
|
+
createLink: {
|
|
180
|
+
type: String,
|
|
181
|
+
required: false,
|
|
182
|
+
default: null,
|
|
183
|
+
},
|
|
184
|
+
columns: {
|
|
185
|
+
type: Array,
|
|
186
|
+
required: true,
|
|
187
|
+
},
|
|
188
|
+
url: {
|
|
189
|
+
type: String,
|
|
190
|
+
required: true,
|
|
191
|
+
},
|
|
192
|
+
selectableRows: {
|
|
193
|
+
type: Boolean,
|
|
194
|
+
required: false,
|
|
195
|
+
default: false,
|
|
196
|
+
},
|
|
197
|
+
order: {
|
|
198
|
+
type: Array,
|
|
199
|
+
required: false,
|
|
200
|
+
default: [
|
|
201
|
+
{
|
|
202
|
+
column: 0,
|
|
203
|
+
dir: 'asc',
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
},
|
|
207
|
+
advancedSearch: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false,
|
|
210
|
+
default: false,
|
|
211
|
+
},
|
|
212
|
+
loadDataOnInit: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
required: false,
|
|
215
|
+
default: true,
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
data() {
|
|
219
|
+
return {
|
|
220
|
+
searchBarOpen: false,
|
|
221
|
+
rows: [],
|
|
222
|
+
columnSettings: {},
|
|
223
|
+
searchTerm: '',
|
|
224
|
+
recordsTotal: 0,
|
|
225
|
+
recordsFiltered: 0,
|
|
226
|
+
selectedRows: [],
|
|
227
|
+
cardError: null,
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
watch: {
|
|
231
|
+
selectedRows: function (val, oldVal) {
|
|
232
|
+
if (!this.selectableRows) {
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if(val.length === this.rows.length && val.length > 0){
|
|
237
|
+
this.$refs.selectAllRows.indeterminate = false;
|
|
238
|
+
this.$refs.selectAllRows.checked = true;
|
|
239
|
+
}else if(val.length === 0){
|
|
240
|
+
this.$refs.selectAllRows.indeterminate = false;
|
|
241
|
+
this.$refs.selectAllRows.checked = false;
|
|
242
|
+
}else{
|
|
243
|
+
this.$refs.selectAllRows.indeterminate = true;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
computed: {
|
|
248
|
+
firstRecord(){
|
|
249
|
+
return this.columnSettings.start + 1;
|
|
250
|
+
},
|
|
251
|
+
lastRecord(){
|
|
252
|
+
return this.columnSettings.start + this.rows.length;
|
|
253
|
+
},
|
|
254
|
+
currentPage(){
|
|
255
|
+
return Math.ceil(this.columnSettings.start / this.columnSettings.length) + 1;
|
|
256
|
+
},
|
|
257
|
+
pageCount(){
|
|
258
|
+
return Math.ceil(this.recordsFiltered / this.columnSettings.length);
|
|
259
|
+
},
|
|
260
|
+
lastPageStart(){
|
|
261
|
+
return (this.pageCount - 1) * this.columnSettings.length;
|
|
262
|
+
},
|
|
263
|
+
columnSortingClasses(){
|
|
264
|
+
let classes = [];
|
|
265
|
+
if(!this.columnSettings.order){
|
|
266
|
+
return classes;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
for(let i = 0; i < this.columns.length; i++){
|
|
270
|
+
let sortDirection = '';
|
|
271
|
+
for(let j = 0; j < this.columnSettings.order.length; j++){
|
|
272
|
+
if(this.columnSettings.order[j].column == i){
|
|
273
|
+
sortDirection = this.columnSettings.order[j].dir == 'asc' ? 'sorting_asc' : 'sorting_desc';
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
classes.push(sortDirection);
|
|
277
|
+
}
|
|
278
|
+
return classes;
|
|
279
|
+
},
|
|
280
|
+
pages(){
|
|
281
|
+
let pages = [];
|
|
282
|
+
let start = this.currentPage - 2;
|
|
283
|
+
let end = this.currentPage + 2;
|
|
284
|
+
if(start < 1){
|
|
285
|
+
start = 1;
|
|
286
|
+
end = 5;
|
|
287
|
+
}
|
|
288
|
+
if(end > this.pageCount){
|
|
289
|
+
start = this.pageCount - 4;
|
|
290
|
+
end = this.pageCount;
|
|
291
|
+
}
|
|
292
|
+
if(start < 1){
|
|
293
|
+
start = 1;
|
|
294
|
+
}
|
|
295
|
+
for(let i = start; i <= end; i++){
|
|
296
|
+
pages.push(i);
|
|
297
|
+
}
|
|
298
|
+
return pages;
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
methods:{
|
|
302
|
+
toggleSearch(){
|
|
303
|
+
if(!this.advancedSearch) {
|
|
304
|
+
this.searchBarOpen = true;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
if (this.advancedSearch) {
|
|
308
|
+
this.searchBarOpen = !this.searchBarOpen;
|
|
309
|
+
}
|
|
310
|
+
},
|
|
311
|
+
clearSearch(){
|
|
312
|
+
this.searchBarOpen = false;
|
|
313
|
+
this.$el.querySelector('.filter-input').value = '';
|
|
314
|
+
this.columnSettings.search.value = '';
|
|
315
|
+
|
|
316
|
+
this.loadData();
|
|
317
|
+
},
|
|
318
|
+
setAdvancedSearchFilters(){
|
|
319
|
+
this.columnSettings.columns.forEach((column, index) => {
|
|
320
|
+
if(column.searchable){
|
|
321
|
+
column.search.value = this.$el.querySelector(`input[name="${column.name}"]`).value;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
this.loadData();
|
|
325
|
+
},
|
|
326
|
+
loadData(){
|
|
327
|
+
this.columnSettings.draw++;
|
|
328
|
+
this.clearSelectedRows();
|
|
329
|
+
axios.get(this.url, {params: this.columnSettings}).then(response => {
|
|
330
|
+
this.rows = response.data.data;
|
|
331
|
+
this.recordsTotal = response.data.recordsTotal;
|
|
332
|
+
this.recordsFiltered = response.data.recordsFiltered;
|
|
333
|
+
})
|
|
334
|
+
.catch(error => {
|
|
335
|
+
this.cardError = error.response.data.message;
|
|
336
|
+
console.error(error);
|
|
337
|
+
});
|
|
338
|
+
},
|
|
339
|
+
initColumnSettings(){
|
|
340
|
+
this.columnSettings = {
|
|
341
|
+
draw: 0,
|
|
342
|
+
columns: this.columns.map((column, index) => {
|
|
343
|
+
return {
|
|
344
|
+
data: column.data,
|
|
345
|
+
name: column.name,
|
|
346
|
+
// if searchable is not set, default to true
|
|
347
|
+
searchable: column.searchable === undefined ? true : column.searchable,
|
|
348
|
+
sortable: column.sortable === undefined ? true : column.sortable,
|
|
349
|
+
search: {
|
|
350
|
+
value: '',
|
|
351
|
+
regex: false,
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}),
|
|
355
|
+
order: this.order,
|
|
356
|
+
start: 0,
|
|
357
|
+
length: 10,
|
|
358
|
+
search: {
|
|
359
|
+
value: '',
|
|
360
|
+
regex: false,
|
|
361
|
+
},
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
setPageLength(length){
|
|
365
|
+
this.columnSettings.length = length;
|
|
366
|
+
this.loadData();
|
|
367
|
+
},
|
|
368
|
+
setPage(page){
|
|
369
|
+
if(page < 1 || page > this.pageCount){
|
|
370
|
+
return;
|
|
371
|
+
}
|
|
372
|
+
this.columnSettings.start = (page - 1) * this.columnSettings.length;
|
|
373
|
+
this.loadData();
|
|
374
|
+
},
|
|
375
|
+
setSearchTerm(){
|
|
376
|
+
// wait for user to stop typing
|
|
377
|
+
setTimeout(() => {
|
|
378
|
+
this.columnSettings.search.value = this.$el.querySelector('.filter-input').value;
|
|
379
|
+
this.columnSettings.start = 0;
|
|
380
|
+
// set search term for each column if searchable
|
|
381
|
+
// this.columnSettings.columns.forEach((column, index) => {
|
|
382
|
+
// if(column.searchable){
|
|
383
|
+
// column.search.value = this.columnSettings.search.value;
|
|
384
|
+
// }
|
|
385
|
+
// });
|
|
386
|
+
this.loadData();
|
|
387
|
+
}, 500);
|
|
388
|
+
},
|
|
389
|
+
setSorting(index){
|
|
390
|
+
// if column is not sortable, do nothing
|
|
391
|
+
if(!this.columnSettings.columns[index].sortable){
|
|
392
|
+
return;
|
|
393
|
+
}
|
|
394
|
+
// console.log('sorting');
|
|
395
|
+
// // if column is already sorted, reverse sort direction
|
|
396
|
+
if(this.columnSettings.order[0].column == index){
|
|
397
|
+
this.columnSettings.order[0].dir = this.columnSettings.order[0].dir == 'asc' ? 'desc' : 'asc';
|
|
398
|
+
}else{
|
|
399
|
+
// if column is not sorted, set it as first sort column
|
|
400
|
+
this.columnSettings.order = [
|
|
401
|
+
{
|
|
402
|
+
column: index,
|
|
403
|
+
dir: 'asc',
|
|
404
|
+
}
|
|
405
|
+
];
|
|
406
|
+
}
|
|
407
|
+
this.loadData();
|
|
408
|
+
},
|
|
409
|
+
generateLink(linkParams, row){
|
|
410
|
+
let resourceIds = [];
|
|
411
|
+
linkParams.resourceIds.forEach((resourceId) => {
|
|
412
|
+
resourceIds.push(row[resourceId]);
|
|
413
|
+
});
|
|
414
|
+
return route(linkParams.name, resourceIds);
|
|
415
|
+
},
|
|
416
|
+
selectAllRows(){
|
|
417
|
+
if(this.selectedRows.length == this.rows.length){
|
|
418
|
+
this.selectedRows = [];
|
|
419
|
+
}else{
|
|
420
|
+
this.selectedRows = this.rows.map((row) => {
|
|
421
|
+
return row.id;
|
|
422
|
+
});
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
clearSelectedRows(){
|
|
426
|
+
this.selectedRows = [];
|
|
427
|
+
},
|
|
428
|
+
filterColumns(params){
|
|
429
|
+
// param example
|
|
430
|
+
// [
|
|
431
|
+
// {
|
|
432
|
+
// name: 'name',
|
|
433
|
+
// value: 'John',
|
|
434
|
+
// },
|
|
435
|
+
// {
|
|
436
|
+
// name: 'email',
|
|
437
|
+
// value: 'john@example',
|
|
438
|
+
// },
|
|
439
|
+
// ]
|
|
440
|
+
|
|
441
|
+
// set search term for each column if searchable
|
|
442
|
+
this.columnSettings.columns.forEach((column, index) => {
|
|
443
|
+
if(column.searchable){
|
|
444
|
+
column.search.value = '';
|
|
445
|
+
params.forEach((param) => {
|
|
446
|
+
if(param.name == column.name){
|
|
447
|
+
column.search.value = param.value;
|
|
448
|
+
}
|
|
449
|
+
});
|
|
450
|
+
}
|
|
451
|
+
});
|
|
452
|
+
|
|
453
|
+
this.loadData();
|
|
454
|
+
},
|
|
455
|
+
getSelectedRows(){
|
|
456
|
+
return this.selectedRows;
|
|
457
|
+
},
|
|
458
|
+
},
|
|
459
|
+
mounted(){
|
|
460
|
+
this.initColumnSettings();
|
|
461
|
+
if(this.loadDataOnInit){
|
|
462
|
+
this.loadData();
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
}
|
|
467
|
+
</script>
|
|
468
|
+
|
|
469
|
+
<style scoped>
|
|
470
|
+
.toolbar:not(.open) {
|
|
471
|
+
display: none;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.card .card-heading {
|
|
475
|
+
padding: 15px 20px;
|
|
476
|
+
position: relative;
|
|
477
|
+
height: 65px;
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
.card .card-search {
|
|
481
|
+
position: absolute;
|
|
482
|
+
top: 0;
|
|
483
|
+
right: 0;
|
|
484
|
+
margin: 0;
|
|
485
|
+
padding: 0;
|
|
486
|
+
height: 100%;
|
|
487
|
+
z-index: 15;
|
|
488
|
+
-webkit-transition: all 0.2s;
|
|
489
|
+
-o-transition: all 0.2s;
|
|
490
|
+
transition: all 0.2s;
|
|
491
|
+
border: 0;
|
|
492
|
+
box-shadow: none;
|
|
493
|
+
width: 100%;
|
|
494
|
+
display: none;
|
|
495
|
+
background: #fff;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
.card .card-search .form-group {
|
|
499
|
+
margin: 0;
|
|
500
|
+
padding: 0;
|
|
501
|
+
height: 65px;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
.card .card-search .search-icon-left {
|
|
505
|
+
left: 15px;
|
|
506
|
+
right: auto;
|
|
507
|
+
}
|
|
508
|
+
.card .card-search .close-search, .card .card-search .search-icon-left {
|
|
509
|
+
top: 50%;
|
|
510
|
+
margin-top: -15px;
|
|
511
|
+
line-height: 30px;
|
|
512
|
+
margin-right: 10px;
|
|
513
|
+
font-size: 25px;
|
|
514
|
+
position: absolute;
|
|
515
|
+
right: 15px;
|
|
516
|
+
z-index: 99;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.card .card-search .form-control {
|
|
520
|
+
width: 100%;
|
|
521
|
+
height: 100%;
|
|
522
|
+
position: absolute;
|
|
523
|
+
border: none;
|
|
524
|
+
box-shadow: none;
|
|
525
|
+
left: 0;
|
|
526
|
+
top: 0;
|
|
527
|
+
margin: 0;
|
|
528
|
+
font-size: 15px;
|
|
529
|
+
text-indent: 45px;
|
|
530
|
+
background-color: #EEF5F9;
|
|
531
|
+
background-image: none;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.card .card-search .close-search {
|
|
535
|
+
right: 15px;
|
|
536
|
+
left: auto;
|
|
537
|
+
}
|
|
538
|
+
.card .card-search .search-icon-left {
|
|
539
|
+
top: 50%;
|
|
540
|
+
margin-top: -15px;
|
|
541
|
+
line-height: 30px;
|
|
542
|
+
margin-right: 10px;
|
|
543
|
+
font-size: 25px;
|
|
544
|
+
position: absolute;
|
|
545
|
+
right: 15px;
|
|
546
|
+
z-index: 99;
|
|
547
|
+
width: 30px;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
.card .card-search.open {
|
|
551
|
+
display: block;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
ul.card-actions.icons.right-top {
|
|
555
|
+
right: 10px;
|
|
556
|
+
top: 15px;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.card-heading ul.card-actions.icons {
|
|
560
|
+
position: absolute;
|
|
561
|
+
list-style: none;
|
|
562
|
+
padding: 0;
|
|
563
|
+
margin: 0;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
ul.card-actions.icons li {
|
|
567
|
+
display: inline;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
|
|
571
|
+
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
|
|
572
|
+
background: unset;
|
|
573
|
+
background-color: #00bcd4;
|
|
574
|
+
border-color: #00bcd4;
|
|
575
|
+
box-shadow: 0 4px 5px 0 rgba(0, 188, 212, 0.14), 0 1px 10px 0 rgba(0, 188, 212, 0.12), 0 2px 4px -1px rgba(0, 188, 212, 0.2);
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.dataTables_wrapper .dataTables_paginate .paginate_button,
|
|
579
|
+
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
|
|
580
|
+
background: unset;
|
|
581
|
+
border: 0;
|
|
582
|
+
border-color: #00bcd4;
|
|
583
|
+
border-radius: 30px !important;
|
|
584
|
+
-webkit-transition: all .3s;
|
|
585
|
+
transition: all .3s;
|
|
586
|
+
padding: 0px 11px;
|
|
587
|
+
margin: 0 3px;
|
|
588
|
+
min-width: 30px;
|
|
589
|
+
height: 30px;
|
|
590
|
+
line-height: 30px;
|
|
591
|
+
color: #999999!important;
|
|
592
|
+
font-weight: 400;
|
|
593
|
+
font-size: 12px;
|
|
594
|
+
text-transform: uppercase;
|
|
595
|
+
background: transparent;
|
|
596
|
+
text-align: center;
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
|
|
600
|
+
border: 1;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.card-header:first-child {
|
|
604
|
+
border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.card .card-header {
|
|
608
|
+
border-bottom: none;
|
|
609
|
+
background: transparent;
|
|
610
|
+
}
|
|
611
|
+
|
|
612
|
+
.card [class*=card-header-], .card[class*=bg-] {
|
|
613
|
+
color: #ffffff;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.card .card-header {
|
|
617
|
+
z-index: 3 !important;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.card [class*=card-header-] {
|
|
621
|
+
margin: 0px 15px 0;
|
|
622
|
+
padding: 0;
|
|
623
|
+
position: relative;
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
.card .card-header-primary .card-icon, .card .card-header-primary .card-text, .card .card-header-primary:not(.card-header-icon):not(.card-header-text), .card.bg-primary, .card.card-rotate.bg-primary .front, .card.card-rotate.bg-primary .back {
|
|
627
|
+
background: linear-gradient(60deg, #ab47bc, #8e24aa);
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.card .card-header-primary .card-icon, .card .card-header-primary:not(.card-header-icon):not(.card-header-text), .card .card-header-primary .card-text {
|
|
631
|
+
box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(156, 39, 176, 0.4);
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.card [class*=card-header-] .card-icon, .card [class*=card-header-] .card-text {
|
|
635
|
+
border-radius: 3px;
|
|
636
|
+
background-color: #999999;
|
|
637
|
+
padding: 15px;
|
|
638
|
+
margin-top: -20px;
|
|
639
|
+
margin-right: 15px;
|
|
640
|
+
float: left;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.card .card-header.card-header-icon i, .card .card-header.card-header-text i {
|
|
644
|
+
width: 33px;
|
|
645
|
+
height: 33px;
|
|
646
|
+
text-align: center;
|
|
647
|
+
line-height: 33px;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
.card {
|
|
651
|
+
border: 0;
|
|
652
|
+
margin-bottom: 30px;
|
|
653
|
+
margin-top: 30px;
|
|
654
|
+
border-radius: 6px;
|
|
655
|
+
color: #333333;
|
|
656
|
+
background: #ffffff;
|
|
657
|
+
width: 100%;
|
|
658
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
|
659
|
+
box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
|
|
660
|
+
font-size: 0.875rem;
|
|
661
|
+
}
|
|
662
|
+
|
|
663
|
+
.card .card-header.card-header-icon .card-title, .card .card-header.card-header-text .card-title {
|
|
664
|
+
margin-top: 15px;
|
|
665
|
+
color: #3C4858;
|
|
666
|
+
}
|
|
667
|
+
.card .card-header.card-header-icon h4, .card .card-header.card-header-text h4 {
|
|
668
|
+
font-weight: 300;
|
|
669
|
+
}
|
|
670
|
+
.card .card-header .card-title {
|
|
671
|
+
margin-bottom: 3px;
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
.card .card-actions {
|
|
675
|
+
position: absolute;
|
|
676
|
+
z-index: 1;
|
|
677
|
+
top: -50px;
|
|
678
|
+
width: calc(100% - 30px);
|
|
679
|
+
left: 17px;
|
|
680
|
+
right: 17px;
|
|
681
|
+
text-align: center;
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
.card .card-actions {
|
|
685
|
+
text-align: end;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
.card ul.card-actions.icons {
|
|
689
|
+
position: absolute;
|
|
690
|
+
list-style: none;
|
|
691
|
+
padding: 0;
|
|
692
|
+
margin: 0;
|
|
693
|
+
right: 10px;
|
|
694
|
+
top: 15px;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
ul.card-actions.icons.right-top {
|
|
698
|
+
right: 10px;
|
|
699
|
+
top: 15px;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
ul.card-actions.icons li {
|
|
703
|
+
display: inline;
|
|
704
|
+
width: 100%;
|
|
705
|
+
text-align: unset;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
ul.card-actions.icons li {
|
|
709
|
+
display: inline;
|
|
710
|
+
width: 100%;
|
|
711
|
+
text-align: unset;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
.dropdown-menu .dropdown-item, .dropdown-menu li > a {
|
|
715
|
+
position: relative;
|
|
716
|
+
width: auto;
|
|
717
|
+
display: flex;
|
|
718
|
+
flex-flow: nowrap;
|
|
719
|
+
align-items: center;
|
|
720
|
+
color: #333;
|
|
721
|
+
font-weight: normal;
|
|
722
|
+
text-decoration: none;
|
|
723
|
+
font-size: 0.8125rem;
|
|
724
|
+
border-radius: 0.125rem;
|
|
725
|
+
margin: 0 0.3125rem;
|
|
726
|
+
transition: all 150ms linear;
|
|
727
|
+
min-width: 7rem;
|
|
728
|
+
padding: 0.625rem 1.25rem;
|
|
729
|
+
overflow: hidden;
|
|
730
|
+
line-height: 1.42857143;
|
|
731
|
+
text-overflow: ellipsis;
|
|
732
|
+
word-wrap: break-word;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.dropdown-menu .dropdown-item:hover, .dropdown-menu .dropdown-item:focus, .dropdown-menu a:hover, .dropdown-menu a:focus, .dropdown-menu a:active {
|
|
736
|
+
box-shadow: 0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(156, 39, 176, 0.4);
|
|
737
|
+
background-color: #9c27b0;
|
|
738
|
+
color: #FFFFFF;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
.dropdown-menu .dropdown-item, .dropdown-menu li > a {
|
|
742
|
+
padding-right: 1.5rem;
|
|
743
|
+
padding-left: 1.5rem;
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
.dropdown-menu {
|
|
747
|
+
position: absolute;
|
|
748
|
+
top: 100%;
|
|
749
|
+
left: 0;
|
|
750
|
+
z-index: 1000;
|
|
751
|
+
display: none;
|
|
752
|
+
float: left;
|
|
753
|
+
min-width: 10rem;
|
|
754
|
+
padding: 0.5rem 0;
|
|
755
|
+
margin: 0.125rem 0 0;
|
|
756
|
+
font-size: 1rem;
|
|
757
|
+
color: #212529;
|
|
758
|
+
text-align: left;
|
|
759
|
+
list-style: none;
|
|
760
|
+
background-color: #ffffff;
|
|
761
|
+
background-clip: padding-box;
|
|
762
|
+
border: 1px solid rgba(0, 0, 0, 0.15);
|
|
763
|
+
border-radius: 0.25rem;
|
|
764
|
+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
.dropdown-menu {
|
|
768
|
+
border: 0;
|
|
769
|
+
display: none;
|
|
770
|
+
padding: 0.3125rem 0;
|
|
771
|
+
transform: scale(0);
|
|
772
|
+
transform-origin: 0 0;
|
|
773
|
+
will-change: transform, opacity;
|
|
774
|
+
box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
.dropdown-menu {
|
|
778
|
+
margin: 0 !important;
|
|
779
|
+
}
|
|
780
|
+
</style>
|