elixir-toolkit-theme 3.2.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/_includes/contributor-carousel-selection.html +71 -72
- data/_includes/contributor-tiles-all.html +7 -4
- data/_includes/footer.html +23 -21
- data/_includes/head.html +15 -2
- data/_includes/section-navigation-tiles-simple.html +1 -1
- data/_includes/section-navigation-tiles.html +14 -2
- data/_includes/toc.html +15 -2
- data/_includes/topnav.html +4 -4
- data/_layouts/default.html +5 -5
- data/_layouts/page.html +4 -4
- data/assets/css/dataTables.dateTime.min.css +1 -0
- data/assets/css/main.scss +17 -3
- data/assets/css/searchBuilder.bootstrap5.min.css +1 -0
- data/assets/js/dataTables.dateTime.min.js +6 -0
- data/assets/js/dataTables.searchBuilder.min.js +4 -0
- data/assets/js/searchBuilder.bootstrap5.min.js +4 -0
- data/assets/js/toc.js +6 -4
- metadata +17 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a07e1cb623cc5fb4841e057ef9883239b178a68e3f136c0bddc2859ce8bef101
|
4
|
+
data.tar.gz: 7d0c44d9b271d3ebefd6910576338490ec30dfa752b2343b10c2bccc3f19eba8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5edebe68e889102d4e0e1dbbd2002067e957d9747ad0b4549f93d8414baa7a332c257130ac9b95e9b88a849f5209e21e3654af071467e7d9a26ca4731a81d2b
|
7
|
+
data.tar.gz: 51a9028a3e61ace267ef51620dfde4bedaf0e499dc0b239e0a8da0a023265128b9d4aa00ecc60551a9f2e6548cddcee12421ffdd17994371f9afba94ca1e66b0
|
data/README.md
CHANGED
@@ -37,7 +37,7 @@ remote_theme: ELIXIR-Belgium/elixir-toolkit-theme
|
|
37
37
|
You can lock it onto a specific version using:
|
38
38
|
|
39
39
|
```yaml
|
40
|
-
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@
|
40
|
+
remote_theme: ELIXIR-Belgium/elixir-toolkit-theme@4.0.0
|
41
41
|
```
|
42
42
|
|
43
43
|
### Using Ruby Gems (alternative)
|
@@ -50,7 +50,7 @@ gem "elixir-toolkit-theme"
|
|
50
50
|
You can lock it onto a specific version like this:
|
51
51
|
|
52
52
|
```ruby
|
53
|
-
gem "elixir-toolkit-theme", "~>
|
53
|
+
gem "elixir-toolkit-theme", "~> 4.0.0"
|
54
54
|
```
|
55
55
|
|
56
56
|
And add this line to your Jekyll site's `_config.yml`:
|
@@ -1,4 +1,5 @@
|
|
1
1
|
{%- assign contributors = site.data.CONTRIBUTORS %}
|
2
|
+
{%- assign allcontrstr = nil %}
|
2
3
|
{%- assign nr = include.col | default: 5 %}
|
3
4
|
{%- if include.custom %}
|
4
5
|
{%- assign allcontrstr = include.custom %}
|
@@ -6,11 +7,11 @@
|
|
6
7
|
{%- assign rolefilter = include.role | downcase %}
|
7
8
|
{%- for contr in contributors %}
|
8
9
|
{%- assign contrrole = contr[1]['role'] | downcase %}
|
9
|
-
{%- if
|
10
|
+
{%- if rolefilter == contrrole %}
|
10
11
|
{%- if allcontrstr %}
|
11
12
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
|
12
13
|
{%- else %}
|
13
|
-
{%- assign allcontrstr =
|
14
|
+
{%- assign allcontrstr = contr[0] %}
|
14
15
|
{%- endif %}
|
15
16
|
{%- endif %}
|
16
17
|
{%- endfor %}
|
@@ -21,7 +22,7 @@
|
|
21
22
|
{%- if allcontrstr %}
|
22
23
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: pagecontr %}
|
23
24
|
{%- else %}
|
24
|
-
{%- assign allcontrstr =
|
25
|
+
{%- assign allcontrstr = pagecontr %}
|
25
26
|
{%- endif %}
|
26
27
|
{%- endif %}
|
27
28
|
{%- endfor %}
|
@@ -29,7 +30,7 @@
|
|
29
30
|
{%- if allcontrstr %}
|
30
31
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
|
31
32
|
{%- else %}
|
32
|
-
{%- assign allcontrstr =
|
33
|
+
{%- assign allcontrstr = contr[0] %}
|
33
34
|
{%- endif %}
|
34
35
|
{%- endfor %}
|
35
36
|
{%- endif %}
|
@@ -37,89 +38,87 @@
|
|
37
38
|
{%- unless include.sort == false %}
|
38
39
|
{%- assign allcontributors = allcontributors | sort %}
|
39
40
|
{%- endunless %}
|
41
|
+
{%- unless allcontributors.size == 0 %}
|
40
42
|
<div id="contributors-carousel" class="carousel carousel-dark slide my-4" data-ride="carousel" data-bs-interval="7000">
|
41
43
|
<div class="carousel-inner">
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
{%- if contributors[contributor].image_url %}
|
58
|
-
<div class="p-3">
|
59
|
-
<div class="ratio ratio-1x1">
|
60
|
-
<div class="contr-placeholder rounded-circle" style="background-image: url({{ contributors[contributor].image_url }});">
|
44
|
+
{%- assign counter = 0 %}
|
45
|
+
{%- for contributor in allcontributors %}
|
46
|
+
{%- if modulo == '0' or counter == 0 %}
|
47
|
+
<div class="carousel-item {% if counter == 0 %}active{% endif %}">
|
48
|
+
<div class="row row-cols-{{nr}} contributor-cards g-1 g-xl-4 ">
|
49
|
+
{%- endif %}
|
50
|
+
<div class="col">
|
51
|
+
<div class="card h-100">
|
52
|
+
{%- assign id = contributors[contributor].git | default: 'no_github' %}
|
53
|
+
<div class="position-relative">
|
54
|
+
{%- if contributors[contributor].image_url %}
|
55
|
+
<div class="p-3">
|
56
|
+
<div class="ratio ratio-1x1">
|
57
|
+
<div class="contr-placeholder rounded-circle" style="background-image: url({{ contributors[contributor].image_url }});">
|
58
|
+
</div>
|
61
59
|
</div>
|
62
60
|
</div>
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
61
|
+
{%- else %}
|
62
|
+
{%- if contributors[contributor].git %}
|
63
|
+
<img src="https://avatars.githubusercontent.com/{{id}}" class="card-img-top p-3 rounded-circle" alt="{{ contributor }}">
|
64
|
+
{%- else %}
|
65
|
+
<div class="p-3">
|
66
|
+
<div class="ratio ratio-1x1">
|
67
|
+
<div class="contr-placeholder rounded-circle d-flex justify-content-center align-items-center">
|
68
|
+
{%- assign contr_name = contributor | split: " " %}
|
69
|
+
{%- assign initials = "" %}
|
70
|
+
{%- for name in contr_name %}
|
71
|
+
{%- assign initial = name | slice: 0,1 | capitalize %}
|
72
|
+
{%- assign initials = initials | append: initial %}
|
73
|
+
{%- endfor %}
|
74
|
+
<span class="fs-2 fw-bold">{{ initials }}</span>
|
75
|
+
</div>
|
78
76
|
</div>
|
79
77
|
</div>
|
80
|
-
</div>
|
81
|
-
{%- endif %}
|
82
|
-
{%- endif %}
|
83
|
-
{%- if contributors[contributor].role %}
|
84
|
-
<span class="badge position-absolute top-0 end-0">{{ contributors[contributor].role | capitalize }}</span>
|
85
|
-
{%- endif %}
|
86
|
-
</div>
|
87
|
-
<div class="card-body text-center py-0">
|
88
|
-
<p class="card-title">{{ contributor }}</p>
|
89
|
-
{%- if contributors[contributor].affiliation %}
|
90
|
-
<p class="card-affiliation">{{ contributors[contributor].affiliation }}</p>
|
91
|
-
{%- endif %}
|
92
|
-
</div>
|
93
|
-
{%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
|
94
|
-
<div class="card-footer">
|
95
|
-
<div class="d-flex justify-content-center gap-1 gap-md-2">
|
96
|
-
{%- if contributors[contributor].git %}
|
97
|
-
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://github.com/{{id}}"><i class="fa-brands fa-github"></i></a>
|
98
78
|
{%- endif %}
|
99
|
-
{%- if contributors[contributor].email %}
|
100
|
-
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="mailto:{{contributors[contributor].email}}"><i class="fa-solid fa-envelope"></i></a>
|
101
79
|
{%- endif %}
|
102
|
-
{%- if contributors[contributor].
|
103
|
-
<
|
80
|
+
{%- if contributors[contributor].role %}
|
81
|
+
<span class="badge position-absolute top-0 end-0">{{ contributors[contributor].role | capitalize }}</span>
|
82
|
+
{%- endif %}
|
83
|
+
</div>
|
84
|
+
<div class="card-body text-center py-0">
|
85
|
+
<p class="card-title">{{ contributor }}</p>
|
86
|
+
{%- if contributors[contributor].affiliation %}
|
87
|
+
<p class="card-affiliation">{{ contributors[contributor].affiliation }}</p>
|
104
88
|
{%- endif %}
|
105
89
|
</div>
|
90
|
+
{%- if contributors[contributor].git or contributors[contributor].email or contributors[contributor].orcid %}
|
91
|
+
<div class="card-footer">
|
92
|
+
<div class="d-flex justify-content-center gap-1 gap-md-2">
|
93
|
+
{%- if contributors[contributor].git %}
|
94
|
+
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://github.com/{{id}}"><i class="fa-brands fa-github"></i></a>
|
95
|
+
{%- endif %}
|
96
|
+
{%- if contributors[contributor].email %}
|
97
|
+
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="mailto:{{contributors[contributor].email}}"><i class="fa-solid fa-envelope"></i></a>
|
98
|
+
{%- endif %}
|
99
|
+
{%- if contributors[contributor].orcid %}
|
100
|
+
<a class="btn bg-white text-primary hover-primary rounded-circle social-icons p-0" href="https://orcid.org/{{contributors[contributor].orcid}}"><i class="fa-brands fa-orcid"></i></a>
|
101
|
+
{%- endif %}
|
102
|
+
</div>
|
103
|
+
</div>
|
104
|
+
{%- endif %}
|
106
105
|
</div>
|
107
|
-
{%- endif %}
|
108
106
|
</div>
|
107
|
+
{%- assign counter = counter | plus:1 %}
|
108
|
+
{%- capture modulo %}{{ counter | modulo:nr }}{% endcapture %}
|
109
|
+
{%- if forloop.last or modulo == '0' and counter != 0 %}
|
109
110
|
</div>
|
110
|
-
{%- assign counter = counter | plus:1 %}
|
111
|
-
{%- if forloop.last %}
|
112
111
|
</div>
|
113
112
|
{%- endif %}
|
114
113
|
{%- endfor %}
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
</button>
|
114
|
+
<button class="carousel-control-prev" type="button" data-bs-target="#contributors-carousel" data-bs-slide="prev">
|
115
|
+
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
|
116
|
+
<span class="visually-hidden">Previous</span>
|
117
|
+
</button>
|
118
|
+
<button class="carousel-control-next" type="button" data-bs-target="#contributors-carousel" data-bs-slide="next">
|
119
|
+
<span class="carousel-control-next-icon" aria-hidden="true"></span>
|
120
|
+
<span class="visually-hidden">Next</span>
|
121
|
+
</button>
|
124
122
|
</div>
|
125
123
|
</div>
|
124
|
+
{%- endunless %}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
{%- assign contributors = site.data.CONTRIBUTORS %}
|
2
|
+
{%- assign allcontrstr = nil %}
|
2
3
|
{%- assign nr = include.col | default: 5 %}
|
3
4
|
{%- if include.custom %}
|
4
5
|
{%- assign allcontrstr = include.custom %}
|
@@ -6,11 +7,11 @@
|
|
6
7
|
{%- assign rolefilter = include.role | downcase %}
|
7
8
|
{%- for contr in contributors %}
|
8
9
|
{%- assign contrrole = contr[1]['role'] | downcase %}
|
9
|
-
{%- if
|
10
|
+
{%- if rolefilter == contrrole %}
|
10
11
|
{%- if allcontrstr %}
|
11
12
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
|
12
13
|
{%- else %}
|
13
|
-
{%- assign allcontrstr =
|
14
|
+
{%- assign allcontrstr = contr[0] %}
|
14
15
|
{%- endif %}
|
15
16
|
{%- endif %}
|
16
17
|
{%- endfor %}
|
@@ -21,7 +22,7 @@
|
|
21
22
|
{%- if allcontrstr %}
|
22
23
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: pagecontr %}
|
23
24
|
{%- else %}
|
24
|
-
{%- assign allcontrstr =
|
25
|
+
{%- assign allcontrstr = pagecontr %}
|
25
26
|
{%- endif %}
|
26
27
|
{%- endif %}
|
27
28
|
{%- endfor %}
|
@@ -29,7 +30,7 @@
|
|
29
30
|
{%- if allcontrstr %}
|
30
31
|
{%- assign allcontrstr = allcontrstr | append: ", " | append: contr[0] %}
|
31
32
|
{%- else %}
|
32
|
-
{%- assign allcontrstr =
|
33
|
+
{%- assign allcontrstr = contr[0] %}
|
33
34
|
{%- endif %}
|
34
35
|
{%- endfor %}
|
35
36
|
{%- endif %}
|
@@ -37,6 +38,7 @@
|
|
37
38
|
{%- unless include.sort == false %}
|
38
39
|
{%- assign allcontributors = allcontributors | sort %}
|
39
40
|
{%- endunless %}
|
41
|
+
{%- unless allcontributors.size == 0 %}
|
40
42
|
<div class="row row-cols-2 row-cols-sm-3 row-cols-md-4 row-cols-xl-{{nr}} g-4 contributor-cards mb-4">
|
41
43
|
{%- for contributor in allcontributors %}
|
42
44
|
<div class="col">
|
@@ -98,3 +100,4 @@
|
|
98
100
|
</div>
|
99
101
|
{%- endfor %}
|
100
102
|
</div>
|
103
|
+
{%- endunless %}
|
data/_includes/footer.html
CHANGED
@@ -1,30 +1,32 @@
|
|
1
1
|
<footer id="footer">
|
2
|
-
<div class="container py-
|
2
|
+
<div class="container py-4 g-lg-5">
|
3
3
|
<div class="row g-4 d-flex justify-content-between">
|
4
4
|
{%- for column in site.data.footer.columns %}
|
5
5
|
{%- if column.type == "image" %}
|
6
|
-
<div class="col-lg-{{column.width}}
|
7
|
-
<img class="my-auto" width="{{column.image_width}}" src="{{ column.src | relative_url }}" alt="{{column.alt}}"
|
6
|
+
<div class="col-6 col-lg-{{column.width}} d-flex justify-content-lg-{% if forloop.first == true %}start{% elsif forloop.last == true %}end{% else %}center{% endif %}">
|
7
|
+
<img class="my-auto" width="{{column.image_width}}" src="{{ column.src | relative_url }}" alt="{{column.alt}}"/>
|
8
8
|
</div>
|
9
9
|
{%- elsif column.type == "links" %}
|
10
|
-
<div class="col-lg-{{column.width}}
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
<ul class="mb-0 list-unstyled">
|
15
|
-
{%- for link in column.children %}
|
16
|
-
{%- if link.url != nil and link.external_url == nil%}
|
17
|
-
<li><a href="{{ link.url | relative_url }}">{{link.url_text}}</a></li>
|
18
|
-
{%- elsif link.external_url != nil and link.url == nil %}
|
19
|
-
<li><a href="{{link.external_url}}">{{link.url_text}}</a></li>
|
20
|
-
{%- else %}
|
21
|
-
<li>{{link.url_text}}</li>
|
10
|
+
<div class="col-6 col-lg-{{column.width}} d-flex justify-content-lg-{% if forloop.first == true %}start{% elsif forloop.last == true %}end{% else %}center{% endif %}">
|
11
|
+
<div>
|
12
|
+
{%- if column.title != nil %}
|
13
|
+
<span class="footer-title">{{column.title}}</span>
|
22
14
|
{%- endif %}
|
23
|
-
|
24
|
-
|
15
|
+
<ul class="mb-0 list-unstyled">
|
16
|
+
{%- for link in column.children %}
|
17
|
+
{%- if link.url != nil and link.external_url == nil%}
|
18
|
+
<li><a href="{{ link.url | relative_url }}">{{link.url_text}}</a></li>
|
19
|
+
{%- elsif link.external_url != nil and link.url == nil %}
|
20
|
+
<li><a href="{{link.external_url}}">{{link.url_text}}</a></li>
|
21
|
+
{%- else %}
|
22
|
+
<li>{{link.url_text}}</li>
|
23
|
+
{%- endif %}
|
24
|
+
{%- endfor %}
|
25
|
+
</ul>
|
26
|
+
</div>
|
25
27
|
</div>
|
26
28
|
{%- elsif column.type == "text" %}
|
27
|
-
<div class="col-lg-{{column.width}}
|
29
|
+
<div class="col-6 col-lg-{{column.width}} d-flex justify-content-lg-{% if forloop.first == true %}start{% elsif forloop.last == true %}end{% else %}center{% endif %}">
|
28
30
|
{{column.content | markdownify }}
|
29
31
|
</div>
|
30
32
|
{%- endif %}
|
@@ -38,13 +40,13 @@
|
|
38
40
|
</div>
|
39
41
|
{%- endunless %}
|
40
42
|
</div>
|
41
|
-
<div class="copyright
|
42
|
-
<div class="container d-flex justify-content-between flex-column flex-lg-row">
|
43
|
+
<div class="copyright py-4">
|
44
|
+
<div class="container g-lg-5 d-flex justify-content-between flex-column flex-lg-row">
|
43
45
|
{%- unless site.data.footer.copyright == nil %}
|
44
46
|
<div class="d-flex align-items-center mb-3 mb-lg-0 mx-auto mx-lg-0 text-center">{{ site.data.footer.copyright | markdownify }}</div>
|
45
47
|
{%- endunless %}
|
46
48
|
<div class="d-flex align-items-center mx-auto ms-lg-4 me-lg-0">
|
47
|
-
<a id="ett-logo" class="text-nowrap me-lg-5 me-
|
49
|
+
<a id="ett-logo" class="text-nowrap me-lg-5 me-xxlg-0" href="https://elixir-belgium.github.io/elixir-toolkit-theme">Built with
|
48
50
|
<svg data-name="ETT logo" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 77.2 77.12">
|
49
51
|
<defs>
|
50
52
|
<style>
|
data/_includes/head.html
CHANGED
@@ -52,9 +52,9 @@
|
|
52
52
|
<script src="{{ 'assets/js/lunr.min.js' | relative_url }}"></script>
|
53
53
|
<script src="{{ 'assets/js/bootstrap.bundle.min.js' | relative_url }}"></script>
|
54
54
|
<script src="{{ 'assets/js/anchor.min.js' | relative_url }}"></script>
|
55
|
-
{%
|
55
|
+
{% if page.toc or page.toc == nil %}<script src="{{ 'assets/js/toc.js' | relative_url }}?{{site.time | date: '%s'}}"></script>{% endif %}
|
56
56
|
<script src="{{ 'assets/js/jquery.navgoco.js' | relative_url }}"></script>
|
57
|
-
<script src="{{ 'assets/js/main.js' | relative_url }}"></script>
|
57
|
+
<script src="{{ 'assets/js/main.js' | relative_url }}?{{site.time | date: '%s'}}"></script>
|
58
58
|
<script src="{{ 'assets/js/search.js' | relative_url }}"></script>
|
59
59
|
<script src="{{ 'assets/js/clipboard.min.js' | relative_url }}"></script>
|
60
60
|
{%- if page.datatable == true %}
|
@@ -62,6 +62,13 @@
|
|
62
62
|
<link rel="stylesheet" type="text/css" href="{{ 'assets/css/dataTables.bootstrap5.min.css' | relative_url }}">
|
63
63
|
<script type="text/javascript" charset="utf8" src="{{ 'assets/js/jquery.dataTables.min.js' | relative_url }}"></script>
|
64
64
|
<script type="text/javascript" charset="utf8" src="{{ 'assets/js/dataTables.bootstrap5.min.js' | relative_url }}"></script>
|
65
|
+
{%- if site.theme_variables.datatables.searchbuilder %}
|
66
|
+
<link rel="stylesheet" type="text/css" href="{{ 'assets/css/dataTables.dateTime.min.css' | relative_url }}">
|
67
|
+
<link rel="stylesheet" type="text/css" href="{{ 'assets/css/searchBuilder.bootstrap5.min.css' | relative_url }}">
|
68
|
+
<script type="text/javascript" charset="utf8" src="{{ 'assets/js/dataTables.searchBuilder.min.js' | relative_url }}"></script>
|
69
|
+
<script type="text/javascript" charset="utf8" src="{{ 'assets/js/dataTables.dateTime.min.js' | relative_url }}"></script>
|
70
|
+
<script type="text/javascript" charset="utf8" src="{{ 'assets/js/searchBuilder.bootstrap5.min.js' | relative_url }}"></script>
|
71
|
+
{%- endif %}
|
65
72
|
<script type="text/javascript">
|
66
73
|
$(document).ready(function () {
|
67
74
|
$('table.display').each(function() {
|
@@ -69,6 +76,11 @@
|
|
69
76
|
lengthMenu: [[10, 25, 50, 100, -1], [10, 25, 50, 100, "All"]],
|
70
77
|
stateSave: true,
|
71
78
|
searching: true,
|
79
|
+
{%- if site.theme_variables.datatables.searchbuilder %}
|
80
|
+
layout: {
|
81
|
+
top1Start: 'searchBuilder'
|
82
|
+
},
|
83
|
+
{%- endif %}
|
72
84
|
info: true,
|
73
85
|
pageLength: 10,
|
74
86
|
language: {
|
@@ -82,6 +94,7 @@
|
|
82
94
|
$('#'+tableId+'_wrapper .dt-search').hide();
|
83
95
|
$('#'+tableId+'_wrapper .dt-info').hide();
|
84
96
|
}
|
97
|
+
$('.dt-layout-table .dt-layout-full').addClass('table-responsive');
|
85
98
|
}
|
86
99
|
});
|
87
100
|
})
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{%- assign allcountries = site.data.countries %}
|
2
2
|
{%- assign except = include.except | split: ", " %}
|
3
|
-
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} gy-
|
3
|
+
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-{{ include.col | default: 2 }} gy-4 navigation-tiles">
|
4
4
|
{%- for current_page in site.pages | sorted %}
|
5
5
|
{%- if current_page.title and current_page.search_exclude != true and current_page.type == include.type %}
|
6
6
|
{%- unless except contains current_page.name %}
|
@@ -36,8 +36,8 @@
|
|
36
36
|
{%- if include.search == true %}
|
37
37
|
<div class="col">
|
38
38
|
<div class="input-group">
|
39
|
-
<span class="input-group-text" id="search-label"
|
40
|
-
<input type="text" id="title-search" class="form-control" onkeyup="StartSearch();" placeholder="
|
39
|
+
<span class="input-group-text" id="search-label-tiles"><i class="fa-solid fa-magnifying-glass"></i></span>
|
40
|
+
<input type="text" id="title-search" class="form-control" onkeyup="StartSearch();" placeholder="Find your page..." aria-label="{{page.type | replace: '_', ' ' |}}" aria-describedby="search-label-tiles">
|
41
41
|
<button class="btn btn-primary" title="Button to clear search" type="button" id="clearsearch">
|
42
42
|
<i class="fa-solid fa-backspace"></i>
|
43
43
|
</button>
|
@@ -81,6 +81,9 @@
|
|
81
81
|
{%- endif %}
|
82
82
|
<div class="col" data-affiliations="{{affiliations_classes}}">
|
83
83
|
<div class="card h-100">
|
84
|
+
{%- if current_page.page_img %}
|
85
|
+
<div class="d-flex">
|
86
|
+
{%- endif %}
|
84
87
|
<div class="card-body d-flex flex-column">
|
85
88
|
<div class="d-flex align-items-center">
|
86
89
|
{%- if current_page.type_img %}
|
@@ -129,6 +132,13 @@
|
|
129
132
|
</div>
|
130
133
|
{%- endif %}
|
131
134
|
</div>
|
135
|
+
{%- if current_page.page_img %}
|
136
|
+
{%- capture file_url -%}
|
137
|
+
{{ "/images/" | append: current_page.page_img | relative_url }}
|
138
|
+
{%- endcapture -%}
|
139
|
+
<img alt="logo of {{current_page.title}}" src="{{ file_url }}" class="page-img-sm pt-3 pe-3" />
|
140
|
+
</div>
|
141
|
+
{%- endif %}
|
132
142
|
</div>
|
133
143
|
</div>
|
134
144
|
{% endunless %}
|
@@ -137,6 +147,7 @@
|
|
137
147
|
</div>
|
138
148
|
|
139
149
|
|
150
|
+
{%- if include.affiliations == true or include.search == true %}
|
140
151
|
<script type="text/javascript">
|
141
152
|
/**
|
142
153
|
* Filter cards by affiliation
|
@@ -218,3 +229,4 @@
|
|
218
229
|
});
|
219
230
|
|
220
231
|
</script>
|
232
|
+
{%- endif %}
|
data/_includes/toc.html
CHANGED
@@ -1,10 +1,22 @@
|
|
1
|
+
|
2
|
+
{%- if page.page_img %}
|
3
|
+
<div id="page-img" class="d-flex flex-column">
|
4
|
+
{%- capture file_url -%}
|
5
|
+
{{ "/images/" | append: page.page_img | relative_url }}
|
6
|
+
{%- endcapture -%}
|
7
|
+
<div class="mb-4"><img src="{{ file_url }}" alt="Page image" class="page-img-lg"/></div>
|
8
|
+
{% endif %}
|
9
|
+
{%- if page.page_img %}
|
10
|
+
</div>
|
11
|
+
{% endif %}
|
12
|
+
{%- if page.toc or page.toc == nil %}
|
1
13
|
<script>
|
2
14
|
$(document).ready(function () {
|
3
15
|
// Ensure that the TOC is generated after the document is fully loaded
|
4
16
|
$('#toc-contents').toc({
|
5
17
|
minimumHeaders: {{ site.theme_variables.toc.min_headings | default: 1 }},
|
6
18
|
listType: 'ul',
|
7
|
-
classes: { list: 'list-unstyled' },
|
19
|
+
classes: { list: 'list-unstyled mb-4' },
|
8
20
|
showSpeed: 0,
|
9
21
|
headers: '{{site.theme_variables.toc.headings | default: "main h2" }}',
|
10
22
|
title: '<strong class="my-2">On this page</strong><hr class="my-2">'
|
@@ -33,7 +45,8 @@
|
|
33
45
|
|
34
46
|
});
|
35
47
|
</script>
|
36
|
-
<button id="btn-toc-hide" class="btn bg-light d-xl-none hover-primary mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#toc-contents" aria-expanded="true" aria-controls="toc-contents">
|
48
|
+
<button id="btn-toc-hide" class="btn bg-light me-auto d-xl-none hover-primary mb-3" type="button" data-bs-toggle="collapse" data-bs-target="#toc-contents" aria-expanded="true" aria-controls="toc-contents">
|
37
49
|
<i class="fa-solid fa-up-right-and-down-left-from-center me-2"></i>On this page
|
38
50
|
</button>
|
39
51
|
<nav id="toc-contents" class="collapse" aria-label="Table of contents"></nav>
|
52
|
+
{% endif %}
|
data/_includes/topnav.html
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
<a class="visually-hidden-focusable" href='#main'>Skip to content</a>
|
4
4
|
<a class="visually-hidden-focusable" href='#footer'>Skip to footer</a>
|
5
5
|
<nav class="navbar navbar-{{ site.theme_variables.topnav.theme | default: 'light' }} navbar-expand-lg mb-3 mb-lg-5">
|
6
|
-
<div class="container">
|
7
|
-
<a class="navbar-brand overflow-x-auto" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ site.theme_variables.topnav.brand_logo | default: 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
|
6
|
+
<div class="container g-lg-5">
|
7
|
+
<a class="navbar-brand flex-grow-1 overflow-x-auto" href="{{ '/' | relative_url }}"><img class="{% if site.topnav_title %}me-3 {% endif %}img-fluid" alt="{{site.title}} logo" src="{{ site.theme_variables.topnav.brand_logo | default: 'assets/img/main_logo.svg' | relative_url }}">{% if site.topnav_title %}<span class="me-0 me-lg-3">{{site.topnav_title}}</span>{% endif %}</a>
|
8
8
|
<button class="navbar-toggler text-primary" type="button" data-bs-toggle="collapse" data-bs-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
9
9
|
<i title="navbar-toggler" class="fa-solid fa-bars"></i>
|
10
10
|
</button>
|
@@ -53,7 +53,7 @@
|
|
53
53
|
{%- endif %}
|
54
54
|
{%- if site.theme_variables.topnav.twitter %}
|
55
55
|
<li class="nav-item">
|
56
|
-
<a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.twitter}}"><i class="fa-brands fa-twitter me-2"></i>Twitter</a>
|
56
|
+
<a class="nav-link ps-2 d-flex align-items-center" href="{{site.theme_variables.topnav.twitter}}"><i class="fa-brands fa-x-twitter me-2"></i>Twitter</a>
|
57
57
|
</li>
|
58
58
|
{%- endif %}
|
59
59
|
{%- if site.theme_variables.topnav.github or site.theme_variables.topnav.github == nil %}
|
@@ -74,7 +74,7 @@
|
|
74
74
|
<li class="nav-item">
|
75
75
|
<div class="position-relative">
|
76
76
|
<form role="search" class="input-group">
|
77
|
-
<span class="input-group-text" id="search-label"><i class="fa-solid fa-magnifying-glass"></i></span><input type="search" id="search-input" class="search-input form-control" tabindex="0" placeholder="Search
|
77
|
+
<span class="input-group-text" id="search-label"><i class="fa-solid fa-magnifying-glass"></i></span><input type="search" id="search-input" class="search-input form-control" tabindex="0" placeholder="Search..." aria-label="Search..." autocomplete="off">
|
78
78
|
</form>
|
79
79
|
<div id="search-results" class="search-results"></div>
|
80
80
|
</div>
|
data/_layouts/default.html
CHANGED
@@ -1,20 +1,20 @@
|
|
1
1
|
<!doctype html>
|
2
2
|
<html lang="en">
|
3
3
|
{% include head.html %}
|
4
|
-
<body class="d-flex flex-column min-vh-100"{%
|
4
|
+
<body class="d-flex flex-column min-vh-100"{% if page.toc or page.toc == nil %} data-bs-spy="scroll" data-bs-target="#toc-contents" data-bs-smooth-scroll="true" tabindex="0"{% endif %}>
|
5
5
|
{% if site.topnav_banner %}{% include banner.html %}{% endif %}
|
6
6
|
{% if jekyll.environment == "development" and site.theme_variables.dev-info-banner == true %}{% include dev-info.html %}{% endif %}
|
7
7
|
{% include topnav.html %}
|
8
8
|
<!-- Page Content -->
|
9
|
-
<div class="container flex-grow-1">
|
9
|
+
<div class="container g-lg-5 flex-grow-1">
|
10
10
|
<!-- Content Row -->
|
11
|
-
<div {%
|
11
|
+
<div {% if page.sidebar %}id="layout" class="gap-5"{% endif %}>
|
12
12
|
<!-- Sidebar -->
|
13
|
-
{%-
|
13
|
+
{%- if page.sidebar%}
|
14
14
|
<aside id="sidebar">
|
15
15
|
{% include sidebar.html %}
|
16
16
|
</aside>
|
17
|
-
{
|
17
|
+
{%- endif %}
|
18
18
|
<!-- Content -->
|
19
19
|
{{content}}
|
20
20
|
</div>
|
data/_layouts/page.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
---
|
2
2
|
layout: default
|
3
3
|
---
|
4
|
-
<main id="main" class="order-1{
|
4
|
+
<main id="main" class="order-1{%- if page.toc or page.toc == nil or page.page_img %} add-grid{% endif %}">
|
5
5
|
<div id="intro">
|
6
6
|
{%- if page.title %}
|
7
7
|
{%- if page.type %}
|
8
8
|
{%- assign subtitle = page.type | replace: "_", " " | capitalize %}
|
9
|
-
<h1 class="has-subtitle"><span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {{ page.title }}
|
9
|
+
<h1 class="has-subtitle order-1 order-md-0"><span class="d-block text-secondary fs-4 ff-body">{{subtitle}}</span><span class="visually-hidden">:</span> {{ page.title }}
|
10
10
|
{%- else %}
|
11
11
|
<h1>{{ page.title }}
|
12
12
|
{%- endif %}
|
@@ -19,11 +19,11 @@ layout: default
|
|
19
19
|
<div class="summary">{{page.summary}}</div>
|
20
20
|
{%- endif %}
|
21
21
|
</div>
|
22
|
-
{%-
|
22
|
+
{%- if page.toc or page.toc == nil or page.page_img %}
|
23
23
|
<div id="toc" class="text-muted sticky-xl-top">
|
24
24
|
{%- include toc.html %}
|
25
25
|
</div>
|
26
|
-
{%-
|
26
|
+
{%- endif %}
|
27
27
|
<div id="content" class="mb-5">
|
28
28
|
{{content}}
|
29
29
|
{% include resource-table-page.html %}
|
@@ -0,0 +1 @@
|
|
1
|
+
div.dt-datetime{position:absolute;background-color:white;z-index:2050;border:1px solid #ccc;box-shadow:0 5px 15px -5px rgba(0, 0, 0, 0.5);padding:6px 20px;width:275px;border-radius:5px}div.dt-datetime.inline{position:relative;box-shadow:none}div.dt-datetime div.dt-datetime-title{text-align:center;padding:5px 0px 3px}div.dt-datetime div.dt-datetime-buttons{text-align:center}div.dt-datetime div.dt-datetime-buttons a{display:inline-block;padding:0 .5em .5em .5em;margin:0;font-size:.9em}div.dt-datetime div.dt-datetime-buttons a:hover{text-decoration:underline}div.dt-datetime table{border-spacing:0;margin:12px 0;width:100%}div.dt-datetime table.dt-datetime-table-nospace{margin-top:-12px}div.dt-datetime table th{font-size:.8em;color:#777;font-weight:normal;width:14.285714286%;padding:0 0 4px 0;text-align:center}div.dt-datetime table td{font-size:.9em;color:#444;padding:0}div.dt-datetime table td.selectable{text-align:center;background:#f5f5f5}div.dt-datetime table td.selectable.disabled{color:#aaa;background:white}div.dt-datetime table td.selectable.disabled button:hover{color:#aaa;background:white}div.dt-datetime table td.selectable.now{background-color:#ddd}div.dt-datetime table td.selectable.now button{font-weight:bold}div.dt-datetime table td.selectable.selected button{background:#4e6ca3;color:white;border-radius:2px}div.dt-datetime table td.selectable button:hover{background:#ff8000;color:white;border-radius:2px}div.dt-datetime table td.dt-datetime-week{font-size:.7em}div.dt-datetime table button{width:100%;box-sizing:border-box;border:none;background:transparent;font-size:inherit;color:inherit;text-align:center;padding:4px 0;cursor:pointer;margin:0}div.dt-datetime table button span{display:inline-block;min-width:14px;text-align:right}div.dt-datetime table.weekNumber th{width:12.5%}div.dt-datetime div.dt-datetime-calendar table{margin-top:0}div.dt-datetime div.dt-datetime-label{position:relative;display:inline-block;height:30px;padding:5px 6px;border:1px solid transparent;box-sizing:border-box;cursor:pointer}div.dt-datetime div.dt-datetime-label:hover{border:1px solid #ddd;border-radius:2px;background-color:#f5f5f5}div.dt-datetime div.dt-datetime-label select{position:absolute;top:6px;left:0;cursor:pointer;opacity:0}div.dt-datetime.horizontal{width:550px}div.dt-datetime.horizontal div.dt-datetime-date,div.dt-datetime.horizontal div.dt-datetime-time{width:48%}div.dt-datetime.horizontal div.dt-datetime-time{margin-left:4%}div.dt-datetime div.dt-datetime-date{position:relative;float:left;width:100%}div.dt-datetime div.dt-datetime-time{position:relative;float:left;width:100%;text-align:center}div.dt-datetime div.dt-datetime-time>span{vertical-align:middle}div.dt-datetime div.dt-datetime-time th{text-align:left}div.dt-datetime div.dt-datetime-time div.dt-datetime-timeblock{display:inline-block;vertical-align:middle}div.dt-datetime div.dt-datetime-iconLeft,div.dt-datetime div.dt-datetime-iconRight{width:30px;height:30px;background-position:center;background-repeat:no-repeat;opacity:.3;overflow:hidden;box-sizing:border-box;border:1px solid transparent}div.dt-datetime div.dt-datetime-iconLeft:hover,div.dt-datetime div.dt-datetime-iconRight:hover{border:1px solid #ccc;border-radius:2px;background-color:#f0f0f0;opacity:.6}div.dt-datetime div.dt-datetime-iconLeft button,div.dt-datetime div.dt-datetime-iconRight button{border:none;background:transparent;text-indent:30px;height:100%;width:100%;cursor:pointer}div.dt-datetime div.dt-datetime-iconLeft{position:absolute;top:5px;left:5px}div.dt-datetime div.dt-datetime-iconLeft button{position:relative;z-index:1}div.dt-datetime div.dt-datetime-iconLeft:after{position:absolute;top:7px;left:10px;display:block;content:"";border-top:7px solid transparent;border-right:7px solid black;border-bottom:7px solid transparent}div.dt-datetime div.dt-datetime-iconRight{position:absolute;top:5px;right:5px}div.dt-datetime div.dt-datetime-iconRight button{position:relative;z-index:1}div.dt-datetime div.dt-datetime-iconRight:after{position:absolute;top:7px;left:12px;display:block;content:"";border-top:7px solid transparent;border-left:7px solid black;border-bottom:7px solid transparent}div.dt-datetime-error{clear:both;padding:0 1em;max-width:240px;font-size:11px;line-height:1.25em;text-align:center;color:#b11f1f}html.dark input.dt-datetime,:root[data-theme=dark] input.dt-datetime,:root[data-bs-theme=dark] input.dt-datetime{color-scheme:dark}html.dark div.dt-datetime,:root[data-theme=dark] div.dt-datetime,:root[data-bs-theme=dark] div.dt-datetime{border:1px solid #595b5e;background-color:#212529;box-shadow:3px 4px 10px 1px rgba(0, 0, 0, 0.8)}html.dark div.dt-datetime table th,:root[data-theme=dark] div.dt-datetime table th,:root[data-bs-theme=dark] div.dt-datetime table th{color:#ccc}html.dark div.dt-datetime table td,:root[data-theme=dark] div.dt-datetime table td,:root[data-bs-theme=dark] div.dt-datetime table td{color:#eee}html.dark div.dt-datetime table td.selectable,:root[data-theme=dark] div.dt-datetime table td.selectable,:root[data-bs-theme=dark] div.dt-datetime table td.selectable{background:#373c41}html.dark div.dt-datetime table td.selectable.disabled,:root[data-theme=dark] div.dt-datetime table td.selectable.disabled,:root[data-bs-theme=dark] div.dt-datetime table td.selectable.disabled{color:#aaa;background:#171b1f}html.dark div.dt-datetime table td.selectable.disabled button:hover,:root[data-theme=dark] div.dt-datetime table td.selectable.disabled button:hover,:root[data-bs-theme=dark] div.dt-datetime table td.selectable.disabled button:hover{color:#aaa;background:#171b1f}html.dark div.dt-datetime table td.selectable.now,:root[data-theme=dark] div.dt-datetime table td.selectable.now,:root[data-bs-theme=dark] div.dt-datetime table td.selectable.now{background:#4b5055}html.dark div.dt-datetime table td.selectable.selected button,:root[data-theme=dark] div.dt-datetime table td.selectable.selected button,:root[data-bs-theme=dark] div.dt-datetime table td.selectable.selected button{background:#6ea8fe;color:black}html.dark div.dt-datetime table td.selectable button:hover,:root[data-theme=dark] div.dt-datetime table td.selectable button:hover,:root[data-bs-theme=dark] div.dt-datetime table td.selectable button:hover{background:#ff8000;color:black}html.dark div.dt-datetime div.dt-datetime-label:hover,:root[data-theme=dark] div.dt-datetime div.dt-datetime-label:hover,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-label:hover{border:1px solid transparent;background-color:rgba(255, 255, 255, 0.1)}html.dark div.dt-datetime div.dt-datetime-iconLeft:hover,html.dark div.dt-datetime div.dt-datetime-iconRight:hover,html.dark div.dt-datetime div.dt-datetime-iconUp:hover,html.dark div.dt-datetime div.dt-datetime-iconDown:hover,:root[data-theme=dark] div.dt-datetime div.dt-datetime-iconLeft:hover,:root[data-theme=dark] div.dt-datetime div.dt-datetime-iconRight:hover,:root[data-theme=dark] div.dt-datetime div.dt-datetime-iconUp:hover,:root[data-theme=dark] div.dt-datetime div.dt-datetime-iconDown:hover,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-iconLeft:hover,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-iconRight:hover,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-iconUp:hover,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-iconDown:hover{border:1px solid transparent;background-color:rgba(255, 255, 255, 0.1)}html.dark div.dt-datetime div.dt-datetime-iconLeft:after,:root[data-theme=dark] div.dt-datetime div.dt-datetime-iconLeft:after,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-iconLeft:after{border-right-color:white}html.dark div.dt-datetime div.dt-datetime-iconRight:after,:root[data-theme=dark] div.dt-datetime div.dt-datetime-iconRight:after,:root[data-bs-theme=dark] div.dt-datetime div.dt-datetime-iconRight:after{border-left-color:white}html.dark div.dt-datetime select,:root[data-theme=dark] div.dt-datetime select,:root[data-bs-theme=dark] div.dt-datetime select{color-scheme:dark}html.dark div.dt-datetime-error,:root[data-theme=dark] div.dt-datetime-error,:root[data-bs-theme=dark] div.dt-datetime-error{color:#b11f1f}
|
data/assets/css/main.scss
CHANGED
@@ -124,6 +124,16 @@ body img {
|
|
124
124
|
|
125
125
|
#toc {
|
126
126
|
grid-area: toc;
|
127
|
+
/*-----Page image-----*/
|
128
|
+
.page-img-lg {
|
129
|
+
max-height: 9em;
|
130
|
+
}
|
131
|
+
|
132
|
+
@include media-breakpoint-down(xl) {
|
133
|
+
.page-img-lg {
|
134
|
+
max-width: 17em;
|
135
|
+
}
|
136
|
+
}
|
127
137
|
}
|
128
138
|
|
129
139
|
@include media-breakpoint-up(xl) {
|
@@ -598,8 +608,8 @@ footer {
|
|
598
608
|
|
599
609
|
@media (min-width: 1850px) {
|
600
610
|
.me-xxxl-0 {
|
601
|
-
|
602
|
-
|
611
|
+
margin-right: 0 !important;
|
612
|
+
}
|
603
613
|
}
|
604
614
|
|
605
615
|
#ett-logo {
|
@@ -807,7 +817,8 @@ footer {
|
|
807
817
|
border-radius: $border-radius;
|
808
818
|
padding: 0.1rem 0.25rem;
|
809
819
|
|
810
|
-
&:hover
|
820
|
+
&:hover,
|
821
|
+
&:active {
|
811
822
|
text-decoration: none !important;
|
812
823
|
color: $primary;
|
813
824
|
}
|
@@ -1000,6 +1011,9 @@ a.info-collapse[aria-expanded="true"]:last-of-type + .show {
|
|
1000
1011
|
.type-icon {
|
1001
1012
|
height: 1.2rem;
|
1002
1013
|
}
|
1014
|
+
.page-img-sm {
|
1015
|
+
max-height: 3.2em;
|
1016
|
+
}
|
1003
1017
|
}
|
1004
1018
|
}
|
1005
1019
|
|
@@ -0,0 +1 @@
|
|
1
|
+
div.dt-button-collection{overflow:visible !important;z-index:2002 !important}div.dt-button-collection div.dtsb-searchBuilder{box-sizing:border-box;padding-left:1em !important;padding-right:1em !important}div.dt-button-collection.dtb-collection-closeable div.dtsb-titleRow{padding-right:40px}.dtsb-greyscale{border:1px solid #cecece !important}div.dtsb-logicContainer .dtsb-greyscale{border:none !important}div.dtsb-searchBuilder{justify-content:space-evenly;cursor:default;margin-bottom:1em;text-align:left;width:100%}div.dtsb-searchBuilder button.dtsb-button,div.dtsb-searchBuilder select{font-size:1em}div.dtsb-searchBuilder div.dtsb-titleRow{justify-content:space-evenly;margin-bottom:.5em}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title{display:inline-block;padding-top:14px}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title:empty{display:inline}div.dtsb-searchBuilder div.dtsb-titleRow button.dtsb-clearAll{float:right;margin-bottom:.8em}div.dtsb-searchBuilder div.dtsb-vertical .dtsb-value,div.dtsb-searchBuilder div.dtsb-vertical .dtsb-data,div.dtsb-searchBuilder div.dtsb-vertical .dtsb-condition{display:block}div.dtsb-searchBuilder div.dtsb-group{position:relative;clear:both;margin-bottom:.8em}div.dtsb-searchBuilder div.dtsb-group button.dtsb-search{float:right}div.dtsb-searchBuilder div.dtsb-group button.dtsb-clearGroup{margin:2px;text-align:center;padding:0}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg);position:absolute;margin-top:.8em;margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria{margin-bottom:.8em;display:flex;justify-content:start;flex-flow:row wrap}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input{padding:.4em;margin-right:.8em;min-width:5em;max-width:20em;color:inherit;font-size:1em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown option.dtsb-notItalic,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input option.dtsb-notItalic{font-style:normal}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-italic{font-style:italic}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont{flex:1;white-space:nowrap}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont span.dtsb-joiner{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont input.dtsb-value{width:33%}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont select,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont input{height:100%;box-sizing:border-box}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer{margin-left:auto;display:inline-block}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-delete,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-right,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-left{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-delete:last-child,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-right:last-child,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button.dtsb-left:last-child{margin-right:0}@media screen and (max-width: 550px){div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria{display:flex;flex-flow:none;flex-direction:column;justify-content:start;padding-right:calc(35px + .8em);margin-bottom:0px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:not(:first-child),div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:not(:nth-child(2)),div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:not(:last-child){padding-top:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:first-child,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:nth-child(2),div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria:last-child{padding-top:0em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-dropDown,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-input{max-width:none;width:100%;margin-bottom:.8em;margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-inputCont{margin-right:.8em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer{position:absolute;width:35px;display:flex;flex-wrap:wrap-reverse;right:0}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria div.dtsb-buttonContainer button{margin-right:0px !important}}div.dtsb-searchBuilder div.dtsb-titleRow{height:40px}div.dtsb-searchBuilder div.dtsb-titleRow div.dtsb-title{padding-top:10px}div.dtsb-searchBuilder div.dtsb-group button.dtsb-clearGroup{margin-right:8px}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria .form-select{width:auto;display:inline-block;padding-right:30px !important}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-condition{border-color:#28a745}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-data{border-color:#dc3545}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria select.dtsb-value,div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria input.dtsb-value{border-color:#007bff}div.dtsb-searchBuilder div.dtsb-group div.dtsb-criteria .form-control{display:inline-block;font-size:1em}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer{border-radius:4px;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start;margin-top:10px;overflow:hidden}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-logic{border:none;border-radius:0px;flex-grow:1;flex-shrink:0;flex-basis:3em;margin:0px;padding:.375rem .7rem}div.dtsb-searchBuilder div.dtsb-group div.dtsb-logicContainer button.dtsb-clearGroup{border:none;border-radius:0px;width:2em;margin:0px}div.dt-button-collection div.dtsb-searchBuilder{padding-left:10px;padding-right:10px}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
/*! DateTime picker for DataTables.net v1.5.4
|
2
|
+
*
|
3
|
+
* © SpryMedia Ltd, all rights reserved.
|
4
|
+
* License: MIT datatables.net/license/mit
|
5
|
+
*/
|
6
|
+
!function(s){var i;"function"==typeof define&&define.amd?define(["jquery"],function(t){return s(t,window,document)}):"object"==typeof exports?(i=require("jquery"),"undefined"==typeof window?module.exports=function(t,e){return t=t||window,e=e||i(t),s(e,t,t.document)}:module.exports=s(i,window,window.document)):s(jQuery,window,document)}(function(g,o,i){"use strict";function n(t,e){if(n.factory(t,e))return n;if(void 0===a&&(a=o.moment||o.dayjs||o.luxon||null),this.c=g.extend(!0,{},n.defaults,e),e=this.c.classPrefix,!a&&"YYYY-MM-DD"!==this.c.format)throw"DateTime: Without momentjs, dayjs or luxon only the format 'YYYY-MM-DD' can be used";"string"==typeof this.c.minDate&&(this.c.minDate=new Date(this.c.minDate)),"string"==typeof this.c.maxDate&&(this.c.maxDate=new Date(this.c.maxDate));var s=g('<div class="'+e+'"><div class="'+e+'-date"><div class="'+e+'-title"><div class="'+e+'-iconLeft"><button type="button"></button></div><div class="'+e+'-iconRight"><button type="button"></button></div><div class="'+e+'-label"><span></span><select class="'+e+'-month"></select></div><div class="'+e+'-label"><span></span><select class="'+e+'-year"></select></div></div><div class="'+e+'-buttons"><a class="'+e+'-clear"></a><a class="'+e+'-today"></a></div><div class="'+e+'-calendar"></div></div><div class="'+e+'-time"><div class="'+e+'-hours"></div><div class="'+e+'-minutes"></div><div class="'+e+'-seconds"></div></div><div class="'+e+'-error"></div></div>');this.dom={container:s,date:s.find("."+e+"-date"),title:s.find("."+e+"-title"),calendar:s.find("."+e+"-calendar"),time:s.find("."+e+"-time"),error:s.find("."+e+"-error"),buttons:s.find("."+e+"-buttons"),clear:s.find("."+e+"-clear"),today:s.find("."+e+"-today"),previous:s.find("."+e+"-iconLeft"),next:s.find("."+e+"-iconRight"),input:g(t)},this.s={d:null,display:null,minutesRange:null,secondsRange:null,namespace:"dateime-"+n._instance++,parts:{date:null!==this.c.format.match(/[YMD]|L(?!T)|l/),time:null!==this.c.format.match(/[Hhm]|LT|LTS/),seconds:-1!==this.c.format.indexOf("s"),hours12:null!==this.c.format.match(/[haA]/)},showTo:null},this.dom.container.append(this.dom.date).append(this.dom.time).append(this.dom.error),this.dom.date.append(this.dom.title).append(this.dom.buttons).append(this.dom.calendar),this.dom.input.addClass("dt-datetime"),this._constructor()}var a;return g.extend(n.prototype,{destroy:function(){clearTimeout(this.s.showTo),this._hide(!0),this.dom.container.off().empty(),this.dom.input.removeClass("dt-datetime").removeAttr("autocomplete").off(".datetime")},display:function(t,e){return void 0!==t&&this.s.display.setUTCFullYear(t),void 0!==e&&this.s.display.setUTCMonth(e-1),void 0!==t||void 0!==e?(this._setTitle(),this._setCalander(),this):{month:this.s.display.getUTCMonth()+1,year:this.s.display.getUTCFullYear()}},errorMsg:function(t){var e=this.dom.error;return t?e.html(t):e.empty(),this},hide:function(){return this._hide(),this},max:function(t){return this.c.maxDate="string"==typeof t?new Date(t):t,this._optionsTitle(),this._setCalander(),this},min:function(t){return this.c.minDate="string"==typeof t?new Date(t):t,this._optionsTitle(),this._setCalander(),this},owns:function(t){return 0<g(t).parents().filter(this.dom.container).length},val:function(t,e){var s;return void 0===t?this.s.d:(s=this.s.d,t instanceof Date?this.s.d=this._dateToUtc(t):null===t||""===t?this.s.d=null:"--now"===t?this.s.d=this._dateToUtc(new Date):"string"==typeof t&&(this.s.d=this._dateToUtc(this._convert(t,this.c.format,null))),!e&&void 0!==e||(this.s.d?this._writeOutput(!1,null===s&&null!==this.s.d||null!==s&&null===this.s.d||s.toString()!==this.s.d.toString()):this.dom.input.val(t)),this.s.display=this.s.d?new Date(this.s.d.toString()):new Date,this.s.display.setUTCDate(1),this._setTitle(),this._setCalander(),this._setTime(),this)},valFormat:function(t,e){return e?(this.val(this._convert(e,t,null)),this):this._convert(this.val(),null,t)},_constructor:function(){function a(){var t=o.dom.input.val();t!==e&&(o.c.onChange.call(o,t,o.s.d,o.dom.input),e=t)}var o=this,r=this.c.classPrefix,e=this.dom.input.val();this.s.parts.date||this.dom.date.css("display","none"),this.s.parts.time||this.dom.time.css("display","none"),this.s.parts.seconds||(this.dom.time.children("div."+r+"-seconds").remove(),this.dom.time.children("span").eq(1).remove()),this.c.buttons.clear||this.dom.clear.css("display","none"),this.c.buttons.today||this.dom.today.css("display","none"),this._optionsTitle(),g(i).on("i18n.dt",function(t,e){e.oLanguage.datetime&&(g.extend(!0,o.c.i18n,e.oLanguage.datetime),o._optionsTitle())}),"hidden"===this.dom.input.attr("type")&&(this.dom.container.addClass("inline"),this.c.attachTo="input",this.val(this.dom.input.val(),!1),this._show()),e&&this.val(e,!1),this.dom.input.attr("autocomplete","off").on("focus.datetime click.datetime",function(){o.dom.container.is(":visible")||o.dom.input.is(":disabled")||(o.val(o.dom.input.val(),!1),o._show())}).on("keyup.datetime",function(){o.dom.container.is(":visible")&&o.val(o.dom.input.val(),!1)}),this.dom.container[0].addEventListener("focusin",function(t){t.stopPropagation()}),this.dom.container.on("change","select",function(){var t,e,s=g(this),i=s.val();s.hasClass(r+"-month")?(o._correctMonth(o.s.display,i),o._setTitle(),o._setCalander()):s.hasClass(r+"-year")?(o.s.display.setUTCFullYear(i),o._setTitle(),o._setCalander()):s.hasClass(r+"-hours")||s.hasClass(r+"-ampm")?(o.s.parts.hours12?(t=+g(o.dom.container).find("."+r+"-hours").val(),e="pm"===g(o.dom.container).find("."+r+"-ampm").val(),o.s.d.setUTCHours(12!=t||e?e&&12!=t?12+t:t:0)):o.s.d.setUTCHours(i),o._setTime(),o._writeOutput(!0),a()):s.hasClass(r+"-minutes")?(o.s.d.setUTCMinutes(i),o._setTime(),o._writeOutput(!0),a()):s.hasClass(r+"-seconds")&&(o.s.d.setSeconds(i),o._setTime(),o._writeOutput(!0),a()),o.dom.input.focus(),o._position()}).on("click",function(t){var e=o.s.d,s="span"===t.target.nodeName.toLowerCase()?t.target.parentNode:t.target,i=s.nodeName.toLowerCase();if("select"!==i)if(t.stopPropagation(),"a"===i&&(t.preventDefault(),g(s).hasClass(r+"-clear")?(o.s.d=null,o.dom.input.val(""),o._writeOutput(),o._setCalander(),o._setTime(),a()):g(s).hasClass(r+"-today")&&(o.s.display=new Date,o._setTitle(),o._setCalander())),"button"===i){t=g(s),i=t.parent();if(i.hasClass("disabled")&&!i.hasClass("range"))t.blur();else if(i.hasClass(r+"-iconLeft"))o.s.display.setUTCMonth(o.s.display.getUTCMonth()-1),o._setTitle(),o._setCalander(),o.dom.input.focus();else if(i.hasClass(r+"-iconRight"))o._correctMonth(o.s.display,o.s.display.getUTCMonth()+1),o._setTitle(),o._setCalander(),o.dom.input.focus();else{if(t.parents("."+r+"-time").length){var s=t.data("value"),n=t.data("unit"),e=o._needValue();if("minutes"===n){if(i.hasClass("disabled")&&i.hasClass("range"))return o.s.minutesRange=s,void o._setTime();o.s.minutesRange=null}if("seconds"===n){if(i.hasClass("disabled")&&i.hasClass("range"))return o.s.secondsRange=s,void o._setTime();o.s.secondsRange=null}if("am"===s){if(!(12<=e.getUTCHours()))return;s=e.getUTCHours()-12}else if("pm"===s){if(!(e.getUTCHours()<12))return;s=e.getUTCHours()+12}e["hours"===n?"setUTCHours":"minutes"===n?"setUTCMinutes":"setSeconds"](s),o._setCalander(),o._setTime(),o._writeOutput(!0)}else(e=o._needValue()).setUTCDate(1),e.setUTCFullYear(t.data("year")),e.setUTCMonth(t.data("month")),e.setUTCDate(t.data("day")),o._writeOutput(!0),o.s.parts.time?(o._setCalander(),o._setTime()):setTimeout(function(){o._hide()},10);a()}}else o.dom.input.focus()})},_compareDates:function(t,e){return this._isLuxon()?a.DateTime.fromJSDate(t).toUTC().toISODate()===a.DateTime.fromJSDate(e).toUTC().toISODate():this._dateToUtcString(t)===this._dateToUtcString(e)},_convert:function(t,e,s){var i;return t&&(a?this._isLuxon()?(i=t instanceof Date?a.DateTime.fromJSDate(t).toUTC():a.DateTime.fromFormat(t,e)).isValid?s?i.toFormat(s):i.toJSDate():null:(i=t instanceof Date?a.utc(t,void 0,this.c.locale,this.c.strict):a(t,e,this.c.locale,this.c.strict)).isValid()?s?i.format(s):i.toDate():null:!e&&!s||e&&s?t:e?(i=t.match(/(\d{4})\-(\d{2})\-(\d{2})/))?new Date(i[1],i[2]-1,i[3]):null:t.getUTCFullYear()+"-"+this._pad(t.getUTCMonth()+1)+"-"+this._pad(t.getUTCDate()))},_correctMonth:function(t,e){var s=this._daysInMonth(t.getUTCFullYear(),e),i=t.getUTCDate()>s;t.setUTCMonth(e),i&&(t.setUTCDate(s),t.setUTCMonth(e))},_daysInMonth:function(t,e){return[31,t%4==0&&(t%100!=0||t%400==0)?29:28,31,30,31,30,31,31,30,31,30,31][e]},_dateToUtc:function(t){return t&&new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds()))},_dateToUtcString:function(t){return this._isLuxon()?a.DateTime.fromJSDate(t).toUTC().toISODate():t.getUTCFullYear()+"-"+this._pad(t.getUTCMonth()+1)+"-"+this._pad(t.getUTCDate())},_hide:function(t){!t&&"hidden"===this.dom.input.attr("type")||(t=this.s.namespace,this.dom.container.detach(),g(o).off("."+t),g(i).off("keydown."+t),g("div.dataTables_scrollBody").off("scroll."+t),g("div.DTE_Body_Content").off("scroll."+t),g(i).off("click."+t),g(this.dom.input[0].offsetParent).off("."+t))},_hours24To12:function(t){return 0===t?12:12<t?t-12:t},_htmlDay:function(t){var e,s;return t.empty?'<td class="empty"></td>':(e=["selectable"],s=this.c.classPrefix,t.disabled&&e.push("disabled"),t.today&&e.push("now"),t.selected&&e.push("selected"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'"><button class="'+s+"-button "+s+'-day" type="button" data-year="'+t.year+'" data-month="'+t.month+'" data-day="'+t.day+'"><span>'+t.day+"</span></button></td>")},_htmlMonth:function(t,e){for(var s=this._dateToUtc(new Date),i=this._daysInMonth(t,e),n=new Date(Date.UTC(t,e,1)).getUTCDay(),a=[],o=[],r=(0<this.c.firstDay&&(n-=this.c.firstDay)<0&&(n+=7),i+n),d=r;7<d;)d-=7;r+=7-d;var l=this.c.minDate,h=this.c.maxDate;l&&(l.setUTCHours(0),l.setUTCMinutes(0),l.setSeconds(0)),h&&(h.setUTCHours(23),h.setUTCMinutes(59),h.setSeconds(59));for(var u=0,c=0;u<r;u++){var m=new Date(Date.UTC(t,e,u-n+1)),f=!!this.s.d&&this._compareDates(m,this.s.d),p=this._compareDates(m,s),T=u<n||i+n<=u,y=l&&m<l||h&&h<m,v=this.c.disableDays,f={day:u-n+1,month:e,year:t,selected:f,today:p,disabled:y=Array.isArray(v)&&-1!==g.inArray(m.getUTCDay(),v)||"function"==typeof v&&!0===v(m)?!0:y,empty:T};o.push(this._htmlDay(f)),7==++c&&(this.c.showWeekNumber&&o.unshift(this._htmlWeekOfYear(u-n,e,t)),a.push("<tr>"+o.join("")+"</tr>"),o=[],c=0)}var _,D=this.c.classPrefix,C=D+"-table";return this.c.showWeekNumber&&(C+=" weekNumber"),l&&(_=l>=new Date(Date.UTC(t,e,1,0,0,0)),this.dom.title.find("div."+D+"-iconLeft").css("display",_?"none":"block")),h&&(_=h<new Date(Date.UTC(t,e+1,1,0,0,0)),this.dom.title.find("div."+D+"-iconRight").css("display",_?"none":"block")),'<table class="'+C+'"><thead>'+this._htmlMonthHead()+"</thead><tbody>"+a.join("")+"</tbody></table>"},_htmlMonthHead:function(){var t=[],e=this.c.firstDay,s=this.c.i18n;this.c.showWeekNumber&&t.push("<th></th>");for(var i=0;i<7;i++)t.push("<th>"+function(t){for(t+=e;7<=t;)t-=7;return s.weekdays[t]}(i)+"</th>");return t.join("")},_htmlWeekOfYear:function(t,e,s){e=new Date(s,e,t,0,0,0,0),e.setDate(e.getDate()+4-(e.getDay()||7)),t=new Date(s,0,1),s=Math.ceil(((e-t)/864e5+1)/7);return'<td class="'+this.c.classPrefix+'-week">'+s+"</td>"},_isLuxon:function(){return!!(a&&a.DateTime&&a.Duration&&a.Settings)},_needValue:function(){return this.s.d||(this.s.d=this._dateToUtc(new Date),this.s.parts.time)||(this.s.d.setUTCHours(0),this.s.d.setUTCMinutes(0),this.s.d.setSeconds(0),this.s.d.setMilliseconds(0)),this.s.d},_options:function(t,e,s){s=s||e;var i=this.dom.container.find("select."+this.c.classPrefix+"-"+t);i.empty();for(var n=0,a=e.length;n<a;n++)i.append('<option value="'+e[n]+'">'+s[n]+"</option>")},_optionSet:function(t,e){var t=this.dom.container.find("select."+this.c.classPrefix+"-"+t),s=t.parent().children("span"),e=(t.val(e),t.find("option:selected"));s.html(0!==e.length?e.text():this.c.i18n.unknown)},_optionsTime:function(n,a,o,r,t){var e,d=this.c.classPrefix,s=this.dom.container.find("div."+d+"-"+n),i=12===a?function(t){return t}:this._pad,l=d+"-table",h=this.c.i18n;if(s.length){var u="",c=10,m=function(t,e,s){12===a&&"number"==typeof t&&(12<=o&&(t+=12),12==t?t=0:24==t&&(t=12));var i=o===t||"am"===t&&o<12||"pm"===t&&12<=o?"selected":"";return"number"==typeof t&&r&&-1===g.inArray(t,r)&&(i+=" disabled"),s&&(i+=" "+s),'<td class="selectable '+i+'"><button class="'+d+"-button "+d+'-day" type="button" data-unit="'+n+'" data-value="'+t+'"><span>'+e+"</span></button></td>"};if(12===a){for(u+="<tr>",e=1;e<=6;e++)u+=m(e,i(e));for(u=(u+=m("am",h.amPm[0]))+"</tr>"+"<tr>",e=7;e<=12;e++)u+=m(e,i(e));u=u+m("pm",h.amPm[1])+"</tr>",c=7}else{if(24===a)for(var f=0,p=0;p<4;p++){for(u+="<tr>",e=0;e<6;e++)u+=m(f,i(f)),f++;u+="</tr>"}else{for(u+="<tr>",p=0;p<60;p+=10)u+=m(p,i(p),"range");var u=u+"</tr>"+('</tbody></thead><table class="'+l+" "+l+'-nospace"><tbody>'),T=null!==t?t:-1===o?0:10*Math.floor(o/10);for(u+="<tr>",p=T+1;p<T+10;p++)u+=m(p,i(p));u+="</tr>"}c=6}s.empty().append('<table class="'+l+'"><thead><tr><th colspan="'+c+'">'+h[n]+"</th></tr></thead><tbody>"+u+"</tbody></table>")}},_optionsTitle:function(){var t=this.c.i18n,e=this.c.minDate,s=this.c.maxDate,e=e?e.getFullYear():null,s=s?s.getFullYear():null,e=null!==e?e:(new Date).getFullYear()-this.c.yearRange,s=null!==s?s:(new Date).getFullYear()+this.c.yearRange;this._options("month",this._range(0,11),t.months),this._options("year",this._range(e,s)),this.dom.today.text(t.today).text(t.today),this.dom.clear.text(t.clear).text(t.clear),this.dom.previous.attr("title",t.previous).children("button").text(t.previous),this.dom.next.attr("title",t.next).children("button").text(t.next)},_pad:function(t){return t<10?"0"+t:t},_position:function(){var t,e,s,i="input"===this.c.attachTo?this.dom.input.position():this.dom.input.offset(),n=this.dom.container,a=this.dom.input.outerHeight();n.hasClass("inline")?n.insertAfter(this.dom.input):(this.s.parts.date&&this.s.parts.time&&550<g(o).width()?n.addClass("horizontal"):n.removeClass("horizontal"),"input"===this.c.attachTo?n.css({top:i.top+a,left:i.left}).insertAfter(this.dom.input):n.css({top:i.top+a,left:i.left}).appendTo("body"),t=n.outerHeight(),e=n.outerWidth(),s=g(o).scrollTop(),i.top+a+t-s>g(o).height()&&(a=i.top-t,n.css("top",a<0?0:a)),e+i.left>g(o).width()&&(s=g(o).width()-e-5,"input"===this.c.attachTo&&(s-=g(n).offsetParent().offset().left),n.css("left",s<0?0:s)))},_range:function(t,e,s){var i=[];s=s||1;for(var n=t;n<=e;n+=s)i.push(n);return i},_setCalander:function(){this.s.display&&this.dom.calendar.empty().append(this._htmlMonth(this.s.display.getUTCFullYear(),this.s.display.getUTCMonth()))},_setTitle:function(){this._optionSet("month",this.s.display.getUTCMonth()),this._optionSet("year",this.s.display.getUTCFullYear())},_setTime:function(){function t(t){return e.c[t+"Available"]||e._range(0,59,e.c[t+"Increment"])}var e=this,s=this.s.d,i=null,n=null!=(i=this._isLuxon()?a.DateTime.fromJSDate(s).toUTC():i)?i.hour:s?s.getUTCHours():-1;this._optionsTime("hours",this.s.parts.hours12?12:24,n,this.c.hoursAvailable),this._optionsTime("minutes",60,null!=i?i.minute:s?s.getUTCMinutes():-1,t("minutes"),this.s.minutesRange),this._optionsTime("seconds",60,null!=i?i.second:s?s.getSeconds():-1,t("seconds"),this.s.secondsRange)},_show:function(){var e=this,t=this.s.namespace,s=(this._position(),g(o).on("scroll."+t+" resize."+t,function(){e._position()}),g("div.DTE_Body_Content").on("scroll."+t,function(){e._position()}),g("div.dataTables_scrollBody").on("scroll."+t,function(){e._position()}),this.dom.input[0].offsetParent);s!==i.body&&g(s).on("scroll."+t,function(){e._position()}),g(i).on("keydown."+t,function(t){9!==t.keyCode&&27!==t.keyCode&&13!==t.keyCode||e._hide()}),clearTimeout(this.s.showTo),this.dom.input.on("blur",function(t){e.s.showTo=setTimeout(function(){var t=i.activeElement.tagName.toLowerCase();i.activeElement===e.dom.input[0]||e.dom.container.find(i.activeElement).length||["input","select","button"].includes(t)&&e.hide()},10)}),setTimeout(function(){g(i).on("click."+t,function(t){g(t.target).parents().filter(e.dom.container).length||t.target===e.dom.input[0]||e._hide()})},10)},_writeOutput:function(t,e){var s=this.s.d,i="",n=this.dom.input;s&&(i=this._convert(s,null,this.c.format)),n.val(i),void 0!==e&&!e||(s=new Event("change",{bubbles:!0}),n[0].dispatchEvent(s)),"hidden"===n.attr("type")&&this.val(i,!1),t&&n.focus()}}),n.use=function(t){a=t},n._instance=0,n.type="DateTime",n.defaults={attachTo:"body",buttons:{clear:!1,today:!1},classPrefix:"dt-datetime",disableDays:null,firstDay:1,format:"YYYY-MM-DD",hoursAvailable:null,i18n:{clear:"Clear",previous:"Previous",next:"Next",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amPm:["am","pm"],hours:"Hour",minutes:"Minute",seconds:"Second",unknown:"-",today:"Today"},maxDate:null,minDate:null,minutesAvailable:null,minutesIncrement:1,strict:!0,locale:"en",onChange:function(){},secondsAvailable:null,secondsIncrement:1,showWeekNumber:!1,yearRange:25},n.version="1.5.4",n.factory=function(t,e){var s=!1;return t&&t.document&&(i=(o=t).document),e&&e.fn&&e.fn.jquery&&(g=e,s=!0),s},o.DateTime||(o.DateTime=n),o.DataTable&&(o.DataTable.DateTime=n),g.fn.dtDateTime=function(t){return this.each(function(){new n(this,t)})},g.fn.dataTable&&(g.fn.dataTable.DateTime=n,g.fn.DataTable.DateTime=n,g.fn.dataTable.Editor)&&(g.fn.dataTable.Editor.DateTime=n),n});
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! SearchBuilder 1.8.1
|
2
|
+
* ©SpryMedia Ltd - datatables.net/license/mit
|
3
|
+
*/
|
4
|
+
!function(e){var n,s;"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function(t){return e(t,window,document)}):"object"==typeof exports?(n=require("jquery"),s=function(t,i){i.fn.dataTable||require("datatables.net")(t,i)},"undefined"==typeof window?module.exports=function(t,i){return t=t||window,i=i||n(t),s(t,i),e(i,t,t.document)}:(s(window,n),module.exports=e(n,window,window.document))):e(jQuery,window,document)}(function(s,u,t){"use strict";var w,c,a,d,l,h,p,e,i,B=s.fn.dataTable;function o(){var t=B.use("moment");return t||u.moment}function r(){var t=B.use("luxon");return t||u.luxon}function D(t,i,e,n,s,o,r){void 0===n&&(n=0),void 0===s&&(s=1),void 0===o&&(o=void 0),void 0===r&&(r=!1);var a=this,i=(this.classes=w.extend(!0,{},D.classes),this.c=w.extend(!0,{},D.defaults,w.fn.dataTable.ext.searchBuilder,i),this.c.i18n);if(this.s={condition:void 0,conditions:{},data:void 0,dataIdx:-1,dataPoints:[],dateFormat:!1,depth:s,dt:t,filled:!1,index:n,liveSearch:r,origData:void 0,preventRedraw:!1,serverData:o,topGroup:e,type:"",value:[]},this.dom={buttons:w("<div/>").addClass(this.classes.buttonContainer),condition:w("<select disabled/>").addClass(this.classes.condition).addClass(this.classes.dropDown).addClass(this.classes.italic).attr("autocomplete","hacking"),conditionTitle:w('<option value="" disabled selected hidden/>').html(this.s.dt.i18n("searchBuilder.condition",i.condition)),container:w("<div/>").addClass(this.classes.container),data:w("<select/>").addClass(this.classes.data).addClass(this.classes.dropDown).addClass(this.classes.italic),dataTitle:w('<option value="" disabled selected hidden/>').html(this.s.dt.i18n("searchBuilder.data",i.data)),defaultValue:w("<select disabled/>").addClass(this.classes.value).addClass(this.classes.dropDown).addClass(this.classes.select).addClass(this.classes.italic),delete:w("<button/>").html(this.s.dt.i18n("searchBuilder.delete",i.delete)).addClass(this.classes.delete).addClass(this.classes.button).attr("title",this.s.dt.i18n("searchBuilder.deleteTitle",i.deleteTitle)).attr("type","button"),inputCont:w("<div/>").addClass(this.classes.inputCont),left:w("<button/>").html(this.s.dt.i18n("searchBuilder.left",i.left)).addClass(this.classes.left).addClass(this.classes.button).attr("title",this.s.dt.i18n("searchBuilder.leftTitle",i.leftTitle)).attr("type","button"),right:w("<button/>").html(this.s.dt.i18n("searchBuilder.right",i.right)).addClass(this.classes.right).addClass(this.classes.button).attr("title",this.s.dt.i18n("searchBuilder.rightTitle",i.rightTitle)).attr("type","button"),value:[w("<select disabled/>").addClass(this.classes.value).addClass(this.classes.dropDown).addClass(this.classes.italic).addClass(this.classes.select)],valueTitle:w('<option value="--valueTitle--" disabled selected hidden/>').html(this.s.dt.i18n("searchBuilder.value",i.value))},this.c.greyscale){this.dom.data.addClass(this.classes.greyscale),this.dom.condition.addClass(this.classes.greyscale),this.dom.defaultValue.addClass(this.classes.greyscale);for(var d=0,l=this.dom.value;d<l.length;d++)l[d].addClass(this.classes.greyscale)}return w(u).on("resize.dtsb",c.util.throttle(function(){a.s.topGroup.trigger("dtsb-redrawLogic")})),this._buildCriteria(),this}function m(t,i,e,n,s,o,r){return void 0===n&&(n=0),void 0===s&&(s=!1),void 0===o&&(o=1),void 0===r&&(r=void 0),this.classes=a.extend(!0,{},m.classes),this.c=a.extend(!0,{},m.defaults,i),this.s={criteria:[],depth:o,dt:t,index:n,isChild:s,logic:void 0,opts:i,preventRedraw:!1,serverData:r,toDrop:void 0,topGroup:e},this.dom={add:a("<button/>").addClass(this.classes.add).addClass(this.classes.button).attr("type","button"),clear:a("<button>×</button>").addClass(this.classes.button).addClass(this.classes.clearGroup).attr("type","button"),container:a("<div/>").addClass(this.classes.group),logic:a("<button><div/></button>").addClass(this.classes.logic).addClass(this.classes.button).attr("type","button"),logicContainer:a("<div/>").addClass(this.classes.logicContainer),search:a("<button/>").addClass(this.classes.search).addClass(this.classes.button).attr("type","button").css("display","none")},void 0===this.s.topGroup&&(this.s.topGroup=this.dom.container),this._setup(),this}function n(t,i){var s=this;if(!h||!h.versionCheck||!h.versionCheck("2"))throw new Error("SearchBuilder requires DataTables 2 or newer");t=new h.Api(t);if(this.classes=l.extend(!0,{},n.classes),this.c=l.extend(!0,{},n.defaults,i),this.dom={clearAll:l('<button type="button">'+t.i18n("searchBuilder.clearAll",this.c.i18n.clearAll)+"</button>").addClass(this.classes.clearAll).addClass(this.classes.button).attr("type","button"),container:l("<div/>").addClass(this.classes.container),title:l("<div/>").addClass(this.classes.title),titleRow:l("<div/>").addClass(this.classes.titleRow),topGroup:void 0},this.s={dt:t,opts:i,search:void 0,serverData:void 0,topGroup:void 0},void 0===t.settings()[0]._searchBuilder)return(t.settings()[0]._searchBuilder=this).s.dt.page.info().serverSide&&(this.s.dt.on("preXhr.dtsb",function(t,i,e){var n=s.s.dt.state.loaded();n&&n.searchBuilder&&(e.searchBuilder=s._collapseArray(n.searchBuilder))}),this.s.dt.on("xhr.dtsb",function(t,i,e){e&&e.searchBuilder&&e.searchBuilder.options&&(s.s.serverData=e.searchBuilder.options)})),this.s.dt.settings()[0]._bInitComplete?this._setUp():t.one("init.dt",function(){s._setUp()}),this}function f(t,i){t=new B.Api(t),i=i||t.init().searchBuilder||B.defaults.searchBuilder;return new e(t,i).getNode()}return D._escapeHTML=function(t){return t.toString().replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/&/g,"&")},D.prototype.doSearch=function(){this.c.liveSearch&&this.s.dt.draw()},D.parseNumFmt=function(t){return+t.replace(/(?!^-)[^0-9.]/g,"")},D.prototype.updateArrows=function(t){void 0===t&&(t=!1),this.dom.container.children().detach(),this.dom.container.append(this.dom.data).append(this.dom.condition).append(this.dom.inputCont),this.setListeners(),void 0!==this.dom.value[0]&&w(this.dom.value[0]).trigger("dtsb-inserted");for(var i=1;i<this.dom.value.length;i++)this.dom.inputCont.append(this.dom.value[i]),w(this.dom.value[i]).trigger("dtsb-inserted");1<this.s.depth&&this.dom.buttons.append(this.dom.left),(!1===this.c.depthLimit||this.s.depth<this.c.depthLimit)&&t?this.dom.buttons.append(this.dom.right):this.dom.right.remove(),this.dom.buttons.append(this.dom.delete),this.dom.container.append(this.dom.buttons)},D.prototype.destroy=function(){this.dom.data.off(".dtsb"),this.dom.condition.off(".dtsb"),this.dom.delete.off(".dtsb");for(var t=0,i=this.dom.value;t<i.length;t++)i[t].off(".dtsb");this.dom.container.remove()},D.prototype.search=function(t,i){var e=this.s.dt.settings()[0],n=this.s.conditions[this.s.condition];if(void 0!==this.s.condition&&void 0!==n){var s=t[this.s.dataIdx];if(this.s.type&&this.s.type.includes("num")&&(""!==e.oLanguage.sDecimal||""!==e.oLanguage.sThousands)){var o=[t[this.s.dataIdx]];if(""!==e.oLanguage.sDecimal&&(o=t[this.s.dataIdx].split(e.oLanguage.sDecimal)),""!==e.oLanguage.sThousands)for(var r=0;r<o.length;r++)o[r]=o[r].replace(e.oLanguage.sThousands,",");s=o.join(".")}if("filter"!==this.c.orthogonal.search&&(s=e.fastData(i,this.s.dataIdx,"string"==typeof this.c.orthogonal?this.c.orthogonal:this.c.orthogonal.search)),"array"===this.s.type){(s=Array.isArray(s)?s:[s]).sort();for(var a=0,d=s;a<d.length;a++){var l=d[a];l&&"string"==typeof l&&(l=l.replace(/[\r\n\u2028]/g," "))}}else null!==s&&"string"==typeof s&&(s=s.replace(/[\r\n\u2028]/g," "));return this.s.type.includes("html")&&"string"==typeof s&&(s=s.replace(/(<([^>]+)>)/gi,"")),n.search(s=null===s?"":s,this.s.value,this)}},D.prototype.getDetails=function(t){void 0===t&&(t=!1);var i,e=this.s.dt.settings()[0];if(null===this.s.type||!["num","num-fmt","html-num","html-num-fmt"].includes(this.s.type)||""===e.oLanguage.sDecimal&&""===e.oLanguage.sThousands){if(null!==this.s.type&&t)if(this.s.type.includes("date")||this.s.type.includes("time"))for(i=0;i<this.s.value.length;i++)null===this.s.value[i].match(/^\d{4}-([0]\d|1[0-2])-([0-2]\d|3[01])$/g)&&(this.s.value[i]="");else if(this.s.type.includes("moment"))for(i=0;i<this.s.value.length;i++)this.s.value[i]&&0<this.s.value[i].length&&o()(this.s.value[i],this.s.dateFormat,!0).isValid()&&(this.s.value[i]=o()(this.s.value[i],this.s.dateFormat).format("YYYY-MM-DD HH:mm:ss"));else if(this.s.type.includes("luxon"))for(i=0;i<this.s.value.length;i++)this.s.value[i]&&0<this.s.value[i].length&&null===r().DateTime.fromFormat(this.s.value[i],this.s.dateFormat).invalid&&(this.s.value[i]=r().DateTime.fromFormat(this.s.value[i],this.s.dateFormat).toFormat("yyyy-MM-dd HH:mm:ss"))}else for(i=0;i<this.s.value.length;i++){var n=[this.s.value[i].toString()];if(""!==e.oLanguage.sDecimal&&(n=this.s.value[i].split(e.oLanguage.sDecimal)),""!==e.oLanguage.sThousands)for(var s=0;s<n.length;s++)n[s]=n[s].replace(e.oLanguage.sThousands,",");this.s.value[i]=n.join(".")}if(this.s.type&&this.s.type.includes("num")&&this.s.dt.page.info().serverSide)for(i=0;i<this.s.value.length;i++)this.s.value[i]=this.s.value[i].replace(/[^0-9.\-]/g,"");return{condition:this.s.condition,data:this.s.data,origData:this.s.origData,type:this.s.type,value:this.s.value.map(function(t){return null!=t?t.toString():t})}},D.prototype.getNode=function(){return this.dom.container},D.prototype.parseNumber=function(t){var i=this.s.dt.i18n("decimal");return+(t=i&&"."!==i?t.replace(/\./g,"").replace(i,"."):t).replace(/(?!^-)[^0-9.]/g,"")},D.prototype.populate=function(){this._populateData(),-1!==this.s.dataIdx&&(this._populateCondition(),void 0!==this.s.condition)&&this._populateValue()},D.prototype.rebuild=function(t){var i,e,n,s=!1;if(this._populateData(),void 0!==t.data&&(e=this.classes.italic,n=this.dom.data,this.dom.data.children("option").each(function(){!s&&(w(this).text()===t.data||t.origData&&w(this).prop("origData")===t.origData)?(w(this).prop("selected",!0),n.removeClass(e),s=!0,i=parseInt(w(this).val(),10)):w(this).removeProp("selected")})),s){this.s.data=t.data,this.s.origData=t.origData,this.s.dataIdx=i,this.c.orthogonal=this._getOptions().orthogonal,this.dom.dataTitle.remove(),this._populateCondition(),this.dom.conditionTitle.remove();for(var o=void 0,r=this.dom.condition.children("option"),a=0;a<r.length;a++){var d=w(r[a]);void 0!==t.condition&&d.val()===t.condition&&"string"==typeof t.condition?(d.prop("selected",!0),o=d.val()):d.removeProp("selected")}if(this.s.condition=o,void 0!==this.s.condition){for(this.dom.conditionTitle.removeProp("selected"),this.dom.conditionTitle.remove(),this.dom.condition.removeClass(this.classes.italic),a=0;a<r.length;a++){var l=w(r[a]);l.val()!==this.s.condition&&l.removeProp("selected")}this._populateValue(t)}else this.dom.conditionTitle.prependTo(this.dom.condition).prop("selected",!0)}},D.prototype.setListeners=function(){var l=this;this.dom.data.unbind("change").on("change.dtsb",function(){l.dom.dataTitle.removeProp("selected");for(var t=l.dom.data.children("option."+l.classes.option),i=0;i<t.length;i++){var e=w(t[i]);e.val()===l.dom.data.val()?(l.dom.data.removeClass(l.classes.italic),e.prop("selected",!0),l.s.dataIdx=+e.val(),l.s.data=e.text(),l.s.origData=e.prop("origData"),l.c.orthogonal=l._getOptions().orthogonal,l._clearCondition(),l._clearValue(),l._populateCondition(),l.s.filled&&(l.s.filled=!1,l.doSearch(),l.setListeners()),l.s.dt.state.save()):e.removeProp("selected")}}),this.dom.condition.unbind("change").on("change.dtsb",function(){l.dom.conditionTitle.removeProp("selected");for(var t=l.dom.condition.children("option."+l.classes.option),i=0;i<t.length;i++){var e=w(t[i]);if(e.val()===l.dom.condition.val()){l.dom.condition.removeClass(l.classes.italic),e.prop("selected",!0);for(var n=e.val(),s=0,o=Object.keys(l.s.conditions);s<o.length;s++)if(o[s]===n){l.s.condition=n;break}l._clearValue(),l._populateValue();for(var r=0,a=l.dom.value;r<a.length;r++){var d=a[r];l.s.filled&&void 0!==d&&0!==l.dom.inputCont.has(d[0]).length&&(l.s.filled=!1,l.doSearch(),l.setListeners())}(0===l.dom.value.length||1===l.dom.value.length&&void 0===l.dom.value[0])&&l.doSearch()}else e.removeProp("selected")}})},D.prototype.setupButtons=function(){550<u.innerWidth?(this.dom.container.removeClass(this.classes.vertical),this.dom.buttons.css("left",null),this.dom.buttons.css("top",null)):(this.dom.container.addClass(this.classes.vertical),this.dom.buttons.css("left",this.dom.data.innerWidth()),this.dom.buttons.css("top",this.dom.data.position().top))},D.prototype._buildCriteria=function(){this.dom.data.append(this.dom.dataTitle),this.dom.condition.append(this.dom.conditionTitle),this.dom.container.append(this.dom.data).append(this.dom.condition),this.dom.inputCont.empty();for(var t=0,i=this.dom.value;t<i.length;t++){var e=i[t];e.append(this.dom.valueTitle),this.dom.inputCont.append(e)}this.dom.buttons.append(this.dom.delete).append(this.dom.right),this.dom.container.append(this.dom.inputCont).append(this.dom.buttons),this.setListeners()},D.prototype._clearCondition=function(){this.dom.condition.empty(),this.dom.conditionTitle.prop("selected",!0).attr("disabled","true"),this.dom.condition.prepend(this.dom.conditionTitle).prop("selectedIndex",0),this.s.conditions={},this.s.condition=void 0},D.prototype._clearValue=function(){var t;if(void 0!==this.s.condition){if(0<this.dom.value.length&&void 0!==this.dom.value[0])for(var i=0,e=this.dom.value;i<e.length;i++)void 0!==(t=e[i])&&setTimeout(function(){t.remove()},50);if(this.dom.value=[].concat(this.s.conditions[this.s.condition].init(this,D.updateListener)),0<this.dom.value.length&&void 0!==this.dom.value[0]){this.dom.inputCont.empty().append(this.dom.value[0]).insertAfter(this.dom.condition),w(this.dom.value[0]).trigger("dtsb-inserted");for(var n=1;n<this.dom.value.length;n++)this.dom.inputCont.append(this.dom.value[n]),w(this.dom.value[n]).trigger("dtsb-inserted")}}else{for(var s=0,o=this.dom.value;s<o.length;s++)void 0!==(t=o[s])&&setTimeout(function(){t.remove()},50);this.dom.valueTitle.prop("selected",!0),this.dom.defaultValue.append(this.dom.valueTitle).insertAfter(this.dom.condition)}this.s.value=[],this.dom.value=[w("<select disabled/>").addClass(this.classes.value).addClass(this.classes.dropDown).addClass(this.classes.italic).addClass(this.classes.select).append(this.dom.valueTitle.clone())]},D.prototype._getOptions=function(){var t=this.s.dt;return w.extend(!0,{},D.defaults,t.settings()[0].aoColumns[this.s.dataIdx].searchBuilder)},D.prototype._populateCondition=function(){var t=[],i=Object.keys(this.s.conditions).length,e=this.s.dt,n=e.settings()[0].aoColumns,s=+this.dom.data.children("option:selected").val();if(0===i){this.s.type=e.column(s).type(),void 0!==n&&(void 0!==(o=n[s]).searchBuilderType&&null!==o.searchBuilderType?this.s.type=o.searchBuilderType:void 0!==this.s.type&&null!==this.s.type||(this.s.type=o.sType)),null!==this.s.type&&void 0!==this.s.type||(w.fn.dataTable.ext.oApi&&w.fn.dataTable.ext.oApi._fnColumnTypes(e.settings()[0]),this.s.type=e.column(s).type()),this.dom.condition.removeAttr("disabled").empty().append(this.dom.conditionTitle).addClass(this.classes.italic),this.dom.conditionTitle.prop("selected",!0);var o=e.settings()[0].oLanguage.sDecimal,r=(""!==o&&this.s.type&&this.s.type.indexOf(o)===this.s.type.length-o.length&&(this.s.type.includes("num-fmt")||this.s.type.includes("num"))&&(this.s.type=this.s.type.replace(o,"")),void 0);void 0!==this.c.conditions[this.s.type]?r=this.c.conditions[this.s.type]:this.s.type&&this.s.type.includes("datetime-")?(r=B.use("moment")?this.c.conditions.moment:this.c.conditions.luxon,this.s.dateFormat=this.s.type.replace(/datetime-/g,"")):this.s.type&&this.s.type.includes("moment")?(r=this.c.conditions.moment,this.s.dateFormat=this.s.type.replace(/moment-/g,"")):this.s.type&&this.s.type.includes("luxon")?(r=this.c.conditions.luxon,this.s.dateFormat=this.s.type.replace(/luxon-/g,"")):r=this.c.conditions.string;for(var a,d,l=0,u=Object.keys(r);l<u.length;l++)null!==r[d=u[l]]&&(e.page.info().serverSide&&r[d].init===D.initSelect&&(a=n[s],this.s.serverData&&this.s.serverData[a.data]?(r[d].init=D.initSelectSSP,r[d].inputValue=D.inputValueSelect,r[d].isInputValid=D.isInputValidSelect):(r[d].init=D.initInput,r[d].inputValue=D.inputValueInput,r[d].isInputValid=D.isInputValidInput)),this.s.conditions[d]=r[d],"function"==typeof(V=r[d].conditionName)&&(V=V(e,this.c.i18n)),t.push(w("<option>",{text:V,value:d}).addClass(this.classes.option).addClass(this.classes.notItalic)))}else{if(!(0<i))return void this.dom.condition.attr("disabled","true").addClass(this.classes.italic);this.dom.condition.empty().removeAttr("disabled").addClass(this.classes.italic);for(var c=0,h=Object.keys(this.s.conditions);c<h.length;c++){d=h[c];var p=this.s.conditions[d].conditionName,m=("function"==typeof p&&(p=p(e,this.c.i18n)),w("<option>",{text:p,value:d}).addClass(this.classes.option).addClass(this.classes.notItalic));void 0!==this.s.condition&&this.s.condition===p&&(m.prop("selected",!0),this.dom.condition.removeClass(this.classes.italic)),t.push(m)}}for(var f=0,g=t;f<g.length;f++)this.dom.condition.append(g[f]);if(n[s].searchBuilder&&n[s].searchBuilder.defaultCondition){var v=n[s].searchBuilder.defaultCondition;if("number"==typeof v)this.dom.condition.prop("selectedIndex",v),this.dom.condition.trigger("change");else if("string"==typeof v)for(var b=0;b<t.length;b++)for(var y=0,C=Object.keys(this.s.conditions);y<C.length;y++){var V,I=C[y];if(("string"==typeof(V=this.s.conditions[I].conditionName)?V:V(e,this.c.i18n))===t[b].text()&&I===v){this.dom.condition.prop("selectedIndex",this.dom.condition.children().toArray().indexOf(t[b][0])).removeClass(this.classes.italic),this.dom.condition.trigger("change"),b=t.length;break}}}else this.dom.condition.prop("selectedIndex",0)},D.prototype._populateData=function(){var t=this.s.dt.settings()[0].aoColumns,i=this.s.dt.columns(this.c.columns).indexes().toArray();this.dom.data.empty().append(this.dom.dataTitle);for(var e,n,s=0;s<t.length;s++)!0!==this.c.columns&&!i.includes(s)||(n={index:s,origData:(e=t[s]).data,text:(e.searchBuilderTitle||e.sTitle).replace(/(<([^>]+)>)/gi,"")},this.dom.data.append(w("<option>",{text:n.text,value:n.index}).addClass(this.classes.option).addClass(this.classes.notItalic).prop("origData",e.data).prop("selected",this.s.dataIdx===n.index)),this.s.dataIdx!==n.index)||this.dom.dataTitle.removeProp("selected")},D.prototype._populateValue=function(i){for(var t,e=this,n=this.s.filled,s=(this.s.filled=!1,setTimeout(function(){e.dom.defaultValue.remove()},50),0),o=this.dom.value;s<o.length;s++)!function(t){setTimeout(function(){void 0!==t&&t.remove()},50)}(o[s]);var r=this.dom.inputCont.children();if(1<r.length)for(t=0;t<r.length;t++)w(r[t]).remove();for(void 0!==i&&this.s.dt.columns().every(function(t){e.s.dt.settings()[0].aoColumns[t].sTitle===i.data&&(e.s.dataIdx=t)}),this.dom.value=[].concat(this.s.conditions[this.s.condition].init(this,D.updateListener,void 0!==i?i.value:void 0)),void 0!==i&&void 0!==i.value&&(this.s.value=i.value),this.dom.inputCont.empty(),void 0!==this.dom.value[0]&&w(this.dom.value[0]).appendTo(this.dom.inputCont).trigger("dtsb-inserted"),t=1;t<this.dom.value.length;t++)w(this.dom.value[t]).insertAfter(this.dom.value[t-1]).trigger("dtsb-inserted");this.s.filled=this.s.conditions[this.s.condition].isInputValid(this.dom.value,this),this.setListeners(),this.s.preventRedraw||n===this.s.filled||(this.s.dt.page.info().serverSide||this.doSearch(),this.setListeners())},D.prototype._throttle=function(n,s){var o=null,r=null,a=this;return null===(s=void 0===s?200:s)&&(s=200),function(){for(var t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];var e=+new Date;null!==o&&e<o+s?clearTimeout(r):o=e,r=setTimeout(function(){o=null,n.apply(a,t)},s)}},D.version="1.1.0",D.classes={button:"dtsb-button",buttonContainer:"dtsb-buttonContainer",condition:"dtsb-condition",container:"dtsb-criteria",data:"dtsb-data",delete:"dtsb-delete",dropDown:"dtsb-dropDown",greyscale:"dtsb-greyscale",input:"dtsb-input",inputCont:"dtsb-inputCont",italic:"dtsb-italic",joiner:"dtsb-joiner",left:"dtsb-left",notItalic:"dtsb-notItalic",option:"dtsb-option",right:"dtsb-right",select:"dtsb-select",value:"dtsb-value",vertical:"dtsb-vertical"},D.initSelect=function(e,t,n,i){void 0===n&&(n=null),void 0===i&&(i=!1);for(var s=e.dom.data.children("option:selected").val(),o=e.s.dt.rows().indexes().toArray(),r=e.s.dt.settings()[0].fastData,a=(e.dom.valueTitle.prop("selected",!0),w("<select/>").addClass(D.classes.value).addClass(D.classes.dropDown).addClass(D.classes.italic).addClass(D.classes.select).append(e.dom.valueTitle).on("change.dtsb",function(){w(this).removeClass(D.classes.italic),t(e,this)})),d=(e.c.greyscale&&a.addClass(D.classes.greyscale),[]),l=[],u=0,c=o;u<c.length;u++){var h=c[u],p=r(h,s,"string"==typeof e.c.orthogonal?e.c.orthogonal:e.c.orthogonal.search),m={filter:"string"==typeof p?p.replace(/[\r\n\u2028]/g," "):p,index:h,text:r(h,s,"string"==typeof e.c.orthogonal?e.c.orthogonal:e.c.orthogonal.display)},f=("array"===e.s.type&&(m.filter=Array.isArray(m.filter)?m.filter:[m.filter],m.text=Array.isArray(m.text)?m.text:[m.text]),function(t,i){e.s.type.includes("html")&&null!==t&&"string"==typeof t&&t.replace(/(<([^>]+)>)/gi,"");t=w("<option>",{type:Array.isArray(t)?"Array":"String",value:t}).data("sbv",t).addClass(e.classes.option).addClass(e.classes.notItalic).html("string"==typeof i?i.replace(/(<([^>]+)>)/gi,""):i),i=t.val();-1===d.indexOf(i)&&(d.push(i),l.push(t),null!==n&&Array.isArray(n[0])&&(n[0]=n[0].sort().join(",")),null!==n)&&t.val()===n[0]&&(t.prop("selected",!0),a.removeClass(D.classes.italic),e.dom.valueTitle.removeProp("selected"))});if(i)for(var g=0;g<m.filter.length;g++)f(m.filter[g],m.text[g]);else f(m.filter,Array.isArray(m.text)?m.text.join(", "):m.text)}l.sort(function(t,i){return"array"===e.s.type||"string"===e.s.type||"html"===e.s.type?t.val()<i.val()?-1:t.val()>i.val()?1:0:"num"===e.s.type||"html-num"===e.s.type?+t.val().replace(/(<([^>]+)>)/gi,"")<+i.val().replace(/(<([^>]+)>)/gi,"")?-1:+t.val().replace(/(<([^>]+)>)/gi,"")>+i.val().replace(/(<([^>]+)>)/gi,"")?1:0:"num-fmt"===e.s.type||"html-num-fmt"===e.s.type?+t.val().replace(/[^0-9.]/g,"")<+i.val().replace(/[^0-9.]/g,"")?-1:+t.val().replace(/[^0-9.]/g,"")>+i.val().replace(/[^0-9.]/g,"")?1:0:void 0});for(var v=0,b=l;v<b.length;v++)a.append(b[v]);return a},D.initSelectSSP=function(t,i,e){void 0===e&&(e=null),t.dom.valueTitle.prop("selected",!0);for(var n=w("<select/>").addClass(D.classes.value).addClass(D.classes.dropDown).addClass(D.classes.italic).addClass(D.classes.select).append(t.dom.valueTitle).on("change.dtsb",function(){w(this).removeClass(D.classes.italic),i(t,this)}),s=(t.c.greyscale&&n.addClass(D.classes.greyscale),[]),o=0,r=t.s.serverData[t.s.origData];o<r.length;o++){var a=r[o],d=a.value,a=a.label;t.s.type.includes("html")&&null!==d&&"string"==typeof d&&d.replace(/(<([^>]+)>)/gi,""),d=w("<option>",{type:Array.isArray(d)?"Array":"String",value:d}).data("sbv",d).addClass(t.classes.option).addClass(t.classes.notItalic).html("string"==typeof a?a.replace(/(<([^>]+)>)/gi,""):a),s.push(d),null!==e&&d.val()===e[0]&&(d.prop("selected",!0),n.removeClass(D.classes.italic),t.dom.valueTitle.removeProp("selected"))}for(var l=0,u=s;l<u.length;l++)n.append(u[l]);return n},D.initSelectArray=function(t,i,e){return D.initSelect(t,i,e=void 0===e?null:e,!0)},D.initInput=function(i,e,t){void 0===t&&(t=null);var n=i.s.dt.settings()[0].searchDelay,n=w("<input/>").addClass(D.classes.value).addClass(D.classes.input).on("input.dtsb keypress.dtsb",i._throttle(function(t){t=t.keyCode||t.which;return e(i,this,t)},null===n?100:n));return i.c.greyscale&&n.addClass(D.classes.greyscale),null!==t&&n.val(t[0]),i.s.dt.one("draw.dtsb",function(){i.s.topGroup.trigger("dtsb-redrawLogic")}),n},D.init2Input=function(i,e,t){void 0===t&&(t=null);var n=i.s.dt.settings()[0].searchDelay,n=[w("<input/>").addClass(D.classes.value).addClass(D.classes.input).on("input.dtsb keypress.dtsb",i._throttle(function(t){t=t.keyCode||t.which;return e(i,this,t)},null===n?100:n)),w("<span>").addClass(i.classes.joiner).html(i.s.dt.i18n("searchBuilder.valueJoiner",i.c.i18n.valueJoiner)),w("<input/>").addClass(D.classes.value).addClass(D.classes.input).on("input.dtsb keypress.dtsb",i._throttle(function(t){t=t.keyCode||t.which;return e(i,this,t)},null===n?100:n))];return i.c.greyscale&&(n[0].addClass(D.classes.greyscale),n[2].addClass(D.classes.greyscale)),null!==t&&(n[0].val(t[0]),n[2].val(t[1])),i.s.dt.one("draw.dtsb",function(){i.s.topGroup.trigger("dtsb-redrawLogic")}),n},D.initDate=function(e,n,t){void 0===t&&(t=null);var s=e.s.dt.settings()[0].searchDelay,i=e.s.dt.i18n("datetime",{}),i=w("<input/>").addClass(D.classes.value).addClass(D.classes.input).dtDateTime({attachTo:"input",format:e.s.dateFormat||void 0,i18n:i}).on("change.dtsb",e._throttle(function(){return n(e,this)},null===s?100:s)).on("input.dtsb keypress.dtsb",function(i){e._throttle(function(){var t=i.keyCode||i.which;return n(e,this,t)},null===s?100:s)});return e.c.greyscale&&i.addClass(D.classes.greyscale),null!==t&&i.val(t[0]),e.s.dt.one("draw.dtsb",function(){e.s.topGroup.trigger("dtsb-redrawLogic")}),i},D.initNoValue=function(t){return t.s.dt.one("draw.dtsb",function(){t.s.topGroup.trigger("dtsb-redrawLogic")}),[]},D.init2Date=function(e,n,t){var i=this,s=(void 0===t&&(t=null),e.s.dt.settings()[0].searchDelay),o=e.s.dt.i18n("datetime",{}),o=[w("<input/>").addClass(D.classes.value).addClass(D.classes.input).dtDateTime({attachTo:"input",format:e.s.dateFormat||void 0,i18n:o}).on("change.dtsb",null!==s?B.util.throttle(function(){return n(e,this)},s):function(){n(e,i)}).on("input.dtsb keypress.dtsb",function(i){B.util.throttle(function(){var t=i.keyCode||i.which;return n(e,this,t)},null===s?0:s)}),w("<span>").addClass(e.classes.joiner).html(e.s.dt.i18n("searchBuilder.valueJoiner",e.c.i18n.valueJoiner)),w("<input/>").addClass(D.classes.value).addClass(D.classes.input).dtDateTime({attachTo:"input",format:e.s.dateFormat||void 0,i18n:o}).on("change.dtsb",null!==s?B.util.throttle(function(){return n(e,this)},s):function(){n(e,i)}).on("input.dtsb keypress.dtsb",e.c.enterSearch||void 0!==e.s.dt.settings()[0].oInit.search&&e.s.dt.settings()[0].oInit.search.return||null===s?function(t){t=t.keyCode||t.which;n(e,i,t)}:B.util.throttle(function(){return n(e,this)},s))];return e.c.greyscale&&(o[0].addClass(D.classes.greyscale),o[2].addClass(D.classes.greyscale)),null!==t&&0<t.length&&(o[0].val(t[0]),o[2].val(t[1])),e.s.dt.one("draw.dtsb",function(){e.s.topGroup.trigger("dtsb-redrawLogic")}),o},D.isInputValidSelect=function(t){for(var i=!0,e=0,n=t;e<n.length;e++){var s=n[e];s.children("option:selected").length===s.children("option").length-s.children("option."+D.classes.notItalic).length&&1===s.children("option:selected").length&&s.children("option:selected")[0]===s.children("option")[0]&&(i=!1)}return i},D.isInputValidInput=function(t){for(var i=!0,e=0,n=t;e<n.length;e++){var s=n[e];s.is("input")&&0===s.val().length&&(i=!1)}return i},D.inputValueSelect=function(t){for(var i=[],e=0,n=t;e<n.length;e++){var s=n[e];s.is("select")&&i.push(D._escapeHTML(s.children("option:selected").data("sbv")))}return i},D.inputValueInput=function(t){for(var i=[],e=0,n=t;e<n.length;e++){var s=n[e];s.is("input")&&i.push(D._escapeHTML(s.val()))}return i.map(c.util.diacritics)},D.updateListener=function(t,i,e){var n=t.s.conditions[t.s.condition];if(t.s.filled=n.isInputValid(t.dom.value,t),t.s.value=n.inputValue(t.dom.value,t),t.s.filled){for(Array.isArray(t.s.value)||(t.s.value=[t.s.value]),r=0;r<t.s.value.length;r++)Array.isArray(t.s.value[r])&&t.s.value[r].sort();for(var s=null,o=null,r=0;r<t.dom.value.length;r++)i===t.dom.value[r][0]&&(s=r,void 0!==i.selectionStart)&&(o=i.selectionStart);(t.c.enterSearch||void 0!==t.s.dt.settings()[0].oInit.search&&t.s.dt.settings()[0].oInit.search.return)&&13!==e||t.doSearch(),null!==s&&(t.dom.value[s].removeClass(t.classes.italic),t.dom.value[s].focus(),null!==o)&&t.dom.value[s][0].setSelectionRange(o,o)}else(t.c.enterSearch||void 0!==t.s.dt.settings()[0].oInit.search&&t.s.dt.settings()[0].oInit.search.return)&&13!==e||t.doSearch()},D.dateConditions={"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.equals",i.conditions.date.equals)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return(t=t.replace(/(\/|-|,)/g,"-"))===i[0]}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.not",i.conditions.date.not)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return(t=t.replace(/(\/|-|,)/g,"-"))!==i[0]}},"<":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.before",i.conditions.date.before)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return(t=t.replace(/(\/|-|,)/g,"-"))<i[0]}},">":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.after",i.conditions.date.after)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return(t=t.replace(/(\/|-|,)/g,"-"))>i[0]}},between:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.between",i.conditions.date.between)},init:D.init2Date,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return t=t.replace(/(\/|-|,)/g,"-"),i[0]<i[1]?i[0]<=t&&t<=i[1]:i[1]<=t&&t<=i[0]}},"!between":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.notBetween",i.conditions.date.notBetween)},init:D.init2Date,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return t=t.replace(/(\/|-|,)/g,"-"),i[0]<i[1]?!(i[0]<=t&&t<=i[1]):!(i[1]<=t&&t<=i[0])}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.empty",i.conditions.date.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.notEmpty",i.conditions.date.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return!(null==t||0===t.length)}}},D.momentDateConditions={"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.equals",i.conditions.date.equals)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return o()(t,e.s.dateFormat).valueOf()===o()(i[0],e.s.dateFormat).valueOf()}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.not",i.conditions.date.not)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return o()(t,e.s.dateFormat).valueOf()!==o()(i[0],e.s.dateFormat).valueOf()}},"<":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.before",i.conditions.date.before)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return o()(t,e.s.dateFormat).valueOf()<o()(i[0],e.s.dateFormat).valueOf()}},">":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.after",i.conditions.date.after)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return o()(t,e.s.dateFormat).valueOf()>o()(i[0],e.s.dateFormat).valueOf()}},between:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.between",i.conditions.date.between)},init:D.init2Date,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){var t=o()(t,e.s.dateFormat).valueOf(),n=o()(i[0],e.s.dateFormat).valueOf(),i=o()(i[1],e.s.dateFormat).valueOf();return n<i?n<=t&&t<=i:i<=t&&t<=n}},"!between":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.notBetween",i.conditions.date.notBetween)},init:D.init2Date,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){var t=o()(t,e.s.dateFormat).valueOf(),n=o()(i[0],e.s.dateFormat).valueOf(),i=o()(i[1],e.s.dateFormat).valueOf();return n<i?!(+n<=+t&&+t<=+i):!(+i<=+t&&+t<=+n)}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.empty",i.conditions.date.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.notEmpty",i.conditions.date.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return!(null==t||0===t.length)}}},D.luxonDateConditions={"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.equals",i.conditions.date.equals)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return r().DateTime.fromFormat(t,e.s.dateFormat).ts===r().DateTime.fromFormat(i[0],e.s.dateFormat).ts}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.not",i.conditions.date.not)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return r().DateTime.fromFormat(t,e.s.dateFormat).ts!==r().DateTime.fromFormat(i[0],e.s.dateFormat).ts}},"<":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.before",i.conditions.date.before)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return r().DateTime.fromFormat(t,e.s.dateFormat).ts<r().DateTime.fromFormat(i[0],e.s.dateFormat).ts}},">":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.after",i.conditions.date.after)},init:D.initDate,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return r().DateTime.fromFormat(t,e.s.dateFormat).ts>r().DateTime.fromFormat(i[0],e.s.dateFormat).ts}},between:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.between",i.conditions.date.between)},init:D.init2Date,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){var t=r().DateTime.fromFormat(t,e.s.dateFormat).ts,n=r().DateTime.fromFormat(i[0],e.s.dateFormat).ts,i=r().DateTime.fromFormat(i[1],e.s.dateFormat).ts;return n<i?n<=t&&t<=i:i<=t&&t<=n}},"!between":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.notBetween",i.conditions.date.notBetween)},init:D.init2Date,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){var t=r().DateTime.fromFormat(t,e.s.dateFormat).ts,n=r().DateTime.fromFormat(i[0],e.s.dateFormat).ts,i=r().DateTime.fromFormat(i[1],e.s.dateFormat).ts;return n<i?!(+n<=+t&&+t<=+i):!(+i<=+t&&+t<=+n)}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.empty",i.conditions.date.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.date.notEmpty",i.conditions.date.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return!(null==t||0===t.length)}}},D.numConditions={"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.equals",i.conditions.number.equals)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){return+t==+i[0]}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.not",i.conditions.number.not)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){return+t!=+i[0]}},"<":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.lt",i.conditions.number.lt)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return+t<+i[0]}},"<=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.lte",i.conditions.number.lte)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return+t<=+i[0]}},">=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.gte",i.conditions.number.gte)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return+t>=+i[0]}},">":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.gt",i.conditions.number.gt)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return+t>+i[0]}},between:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.between",i.conditions.number.between)},init:D.init2Input,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return+i[0]<+i[1]?+i[0]<=+t&&+t<=+i[1]:+i[1]<=+t&&+t<=+i[0]}},"!between":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.notBetween",i.conditions.number.notBetween)},init:D.init2Input,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return+i[0]<+i[1]?!(+i[0]<=+t&&+t<=+i[1]):!(+i[1]<=+t&&+t<=+i[0])}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.empty",i.conditions.number.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.notEmpty",i.conditions.number.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return!(null==t||0===t.length)}}},D.numFmtConditions={"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.equals",i.conditions.number.equals)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i,e){return e.parseNumber(t)===e.parseNumber(i[0])}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.not",i.conditions.number.not)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i,e){return e.parseNumber(t)!==e.parseNumber(i[0])}},"<":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.lt",i.conditions.number.lt)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return e.parseNumber(t)<e.parseNumber(i[0])}},"<=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.lte",i.conditions.number.lte)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return e.parseNumber(t)<=e.parseNumber(i[0])}},">=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.gte",i.conditions.number.gte)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return e.parseNumber(t)>=e.parseNumber(i[0])}},">":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.gt",i.conditions.number.gt)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){return e.parseNumber(t)>e.parseNumber(i[0])}},between:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.between",i.conditions.number.between)},init:D.init2Input,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){var t=e.parseNumber(t),n=e.parseNumber(i[0]),e=e.parseNumber(i[1]);return+n<+e?+n<=+t&&+t<=+e:+e<=+t&&+t<=+n}},"!between":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.notBetween",i.conditions.number.notBetween)},init:D.init2Input,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i,e){var t=e.parseNumber(t),n=e.parseNumber(i[0]),e=e.parseNumber(i[1]);return+n<+e?!(+n<=+t&&+t<=+e):!(+e<=+t&&+t<=+n)}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.empty",i.conditions.number.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.number.notEmpty",i.conditions.number.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return!(null==t||0===t.length)}}},D.stringConditions={"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.equals",i.conditions.string.equals)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){return t===i[0]}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.not",i.conditions.string.not)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidInput,search:function(t,i){return t!==i[0]}},starts:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.startsWith",i.conditions.string.startsWith)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return 0===t.toLowerCase().indexOf(i[0].toLowerCase())}},"!starts":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.notStartsWith",i.conditions.string.notStartsWith)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return 0!==t.toLowerCase().indexOf(i[0].toLowerCase())}},contains:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.contains",i.conditions.string.contains)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return t.toLowerCase().includes(i[0].toLowerCase())}},"!contains":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.notContains",i.conditions.string.notContains)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return!t.toLowerCase().includes(i[0].toLowerCase())}},ends:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.endsWith",i.conditions.string.endsWith)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return t.toLowerCase().endsWith(i[0].toLowerCase())}},"!ends":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.notEndsWith",i.conditions.string.notEndsWith)},init:D.initInput,inputValue:D.inputValueInput,isInputValid:D.isInputValidInput,search:function(t,i){return!t.toLowerCase().endsWith(i[0].toLowerCase())}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.empty",i.conditions.string.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.string.notEmpty",i.conditions.string.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return!(null==t||0===t.length)}}},D.defaults={columns:!0,conditions:{array:D.arrayConditions={contains:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.array.contains",i.conditions.array.contains)},init:D.initSelectArray,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){return t.includes(i[0])}},without:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.array.without",i.conditions.array.without)},init:D.initSelectArray,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){return-1===t.indexOf(i[0])}},"=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.array.equals",i.conditions.array.equals)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){if(t.length!==i[0].length)return!1;for(var e=0;e<t.length;e++)if(t[e]!==i[0][e])return!1;return!0}},"!=":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.array.not",i.conditions.array.not)},init:D.initSelect,inputValue:D.inputValueSelect,isInputValid:D.isInputValidSelect,search:function(t,i){if(t.length!==i[0].length)return!0;for(var e=0;e<t.length;e++)if(t[e]!==i[0][e])return!0;return!1}},null:{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.array.empty",i.conditions.array.empty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null==t||0===t.length}},"!null":{conditionName:function(t,i){return t.i18n("searchBuilder.conditions.array.notEmpty",i.conditions.array.notEmpty)},init:D.initNoValue,inputValue:function(){},isInputValid:function(){return!0},search:function(t){return null!=t&&0!==t.length}}},date:D.dateConditions,html:D.stringConditions,"html-num":D.numConditions,"html-num-fmt":D.numFmtConditions,luxon:D.luxonDateConditions,moment:D.momentDateConditions,num:D.numConditions,"num-fmt":D.numFmtConditions,string:D.stringConditions},depthLimit:!1,enterSearch:!1,filterChanged:void 0,greyscale:!1,i18n:{add:"Add Condition",button:{0:"Search Builder",_:"Search Builder (%d)"},clearAll:"Clear All",condition:"Condition",data:"Data",delete:"×",deleteTitle:"Delete filtering rule",left:"<",leftTitle:"Outdent criteria",logicAnd:"And",logicOr:"Or",right:">",rightTitle:"Indent criteria",search:"Search",title:{0:"Custom Search Builder",_:"Custom Search Builder (%d)"},value:"Value",valueJoiner:"and"},liveSearch:!0,logic:"AND",orthogonal:{display:"display",search:"filter"},preDefined:!1},d=D,m.prototype.destroy=function(){this.dom.add.off(".dtsb"),this.dom.logic.off(".dtsb"),this.dom.search.off(".dtsb"),this.dom.container.trigger("dtsb-destroy").remove(),this.s.criteria=[]},m.prototype.getDetails=function(t){if(void 0===t&&(t=!1),0===this.s.criteria.length)return{};for(var i={criteria:[],logic:this.s.logic},e=0,n=this.s.criteria;e<n.length;e++){var s=n[e];i.criteria.push(s.criteria.getDetails(t))}return i},m.prototype.getNode=function(){return this.dom.container},m.prototype.rebuild=function(t){var i;if(!(void 0===t.criteria||null===t.criteria||Array.isArray(t.criteria)&&0===t.criteria.length)){if(this.s.logic=t.logic,this.dom.logic.children().first().html("OR"===this.s.logic?this.s.dt.i18n("searchBuilder.logicOr",this.c.i18n.logicOr):this.s.dt.i18n("searchBuilder.logicAnd",this.c.i18n.logicAnd)),Array.isArray(t.criteria))for(var e=0,n=t.criteria;e<n.length;e++)void 0!==(i=n[e]).logic?this._addPrevGroup(i):void 0===i.logic&&this._addPrevCriteria(i);for(var s=0,o=this.s.criteria;s<o.length;s++)(i=o[s]).criteria instanceof d&&(i.criteria.updateArrows(1<this.s.criteria.length),this._setCriteriaListeners(i.criteria))}},m.prototype.redrawContents=function(){if(!this.s.preventRedraw){this.dom.container.children().detach(),this.dom.container.append(this.dom.logicContainer).append(this.dom.add),this.c.liveSearch||this.dom.container.append(this.dom.search),this.s.criteria.sort(function(t,i){return t.criteria.s.index<i.criteria.s.index?-1:t.criteria.s.index>i.criteria.s.index?1:0}),this.setListeners();for(var t=0;t<this.s.criteria.length;t++){var i=this.s.criteria[t].criteria;i instanceof d?(this.s.criteria[t].index=t,this.s.criteria[t].criteria.s.index=t,this.s.criteria[t].criteria.dom.container.insertBefore(this.dom.add),this._setCriteriaListeners(i),this.s.criteria[t].criteria.s.preventRedraw=this.s.preventRedraw,this.s.criteria[t].criteria.rebuild(this.s.criteria[t].criteria.getDetails()),this.s.criteria[t].criteria.s.preventRedraw=!1):i instanceof m&&0<i.s.criteria.length?(this.s.criteria[t].index=t,this.s.criteria[t].criteria.s.index=t,this.s.criteria[t].criteria.dom.container.insertBefore(this.dom.add),i.s.preventRedraw=this.s.preventRedraw,i.redrawContents(),i.s.preventRedraw=!1,this._setGroupListeners(i)):(this.s.criteria.splice(t,1),t--)}this.setupLogic()}},m.prototype.redrawLogic=function(){for(var t=0,i=this.s.criteria;t<i.length;t++){var e=i[t];e.criteria instanceof m&&e.criteria.redrawLogic()}this.setupLogic()},m.prototype.search=function(t,i){return"AND"===this.s.logic?this._andSearch(t,i):"OR"!==this.s.logic||this._orSearch(t,i)},m.prototype.setupLogic=function(){if(this.dom.logicContainer.remove(),this.dom.clear.remove(),this.s.criteria.length<1)this.s.isChild||(this.dom.container.trigger("dtsb-destroy"),this.dom.container.css("margin-left",0)),this.dom.search.css("display","none");else{this.dom.clear.height("0px"),this.dom.logicContainer.append(this.dom.clear),this.s.isChild||this.dom.search.css("display","inline-block"),this.dom.container.prepend(this.dom.logicContainer);for(var t=0,i=this.s.criteria;t<i.length;t++){var e=i[t];e.criteria instanceof d&&e.criteria.setupButtons()}var n=this.dom.container.outerHeight()-1,n=(this.dom.logicContainer.width(n),this._setLogicListener(),this.dom.container.css("margin-left",this.dom.logicContainer.outerHeight(!0)),this.dom.logicContainer.offset()),s=n.left,s=s-(s-this.dom.container.offset().left)-this.dom.logicContainer.outerHeight(!0),s=(this.dom.logicContainer.offset({left:s}),this.dom.logicContainer.next()),n=n.top,s=a(s).offset().top;this.dom.logicContainer.offset({top:n-(n-s)}),this.dom.clear.outerHeight(this.dom.logicContainer.height()),this._setClearListener()}},m.prototype.setListeners=function(){var t=this;this.dom.add.unbind("click"),this.dom.add.on("click.dtsb",function(){return t.s.isChild||t.dom.container.prepend(t.dom.logicContainer),t.addCriteria(),t.dom.container.trigger("dtsb-add"),t.s.dt.state.save(),!1}),this.dom.search.off("click.dtsb").on("click.dtsb",function(){t.s.dt.draw()});for(var i=0,e=this.s.criteria;i<e.length;i++)e[i].criteria.setListeners();this._setClearListener(),this._setLogicListener()},m.prototype.addCriteria=function(t){for(var i=null===(t=void 0===t?null:t)?this.s.criteria.length:t.s.index,e=new d(this.s.dt,this.s.opts,this.s.topGroup,i,this.s.depth,this.s.serverData,this.c.liveSearch),n=(null!==t&&(e.c=t.c,e.s=t.s,e.s.depth=this.s.depth,e.classes=t.classes),e.populate(),!1),s=0;s<this.s.criteria.length;s++)0===s&&this.s.criteria[s].criteria.s.index>e.s.index?(e.getNode().insertBefore(this.s.criteria[s].criteria.dom.container),n=!0):s<this.s.criteria.length-1&&this.s.criteria[s].criteria.s.index<e.s.index&&this.s.criteria[s+1].criteria.s.index>e.s.index&&(e.getNode().insertAfter(this.s.criteria[s].criteria.dom.container),n=!0);n||e.getNode().insertBefore(this.dom.add),this.s.criteria.push({criteria:e,index:i}),this.s.criteria=this.s.criteria.sort(function(t,i){return t.criteria.s.index-i.criteria.s.index});for(var o=0,r=this.s.criteria;o<r.length;o++){var a=r[o];a.criteria instanceof d&&a.criteria.updateArrows(1<this.s.criteria.length)}this._setCriteriaListeners(e),e.setListeners(),this.setupLogic()},m.prototype.checkFilled=function(){for(var t=0,i=this.s.criteria;t<i.length;t++){var e=i[t];if(e.criteria instanceof d&&e.criteria.s.filled||e.criteria instanceof m&&e.criteria.checkFilled())return!0}return!1},m.prototype.count=function(){for(var t=0,i=0,e=this.s.criteria;i<e.length;i++){var n=e[i];n.criteria instanceof m?t+=n.criteria.count():t++}return t},m.prototype._addPrevGroup=function(t){var i=this.s.criteria.length,e=new m(this.s.dt,this.c,this.s.topGroup,i,!0,this.s.depth+1,this.s.serverData);this.s.criteria.push({criteria:e,index:i,logic:e.s.logic}),e.rebuild(t),this.s.criteria[i].criteria=e,this.s.topGroup.trigger("dtsb-redrawContents"),this._setGroupListeners(e)},m.prototype._addPrevCriteria=function(t){var i=this.s.criteria.length,e=new d(this.s.dt,this.s.opts,this.s.topGroup,i,this.s.depth,this.s.serverData);e.populate(),this.s.criteria.push({criteria:e,index:i}),e.s.preventRedraw=this.s.preventRedraw,e.rebuild(t),e.s.preventRedraw=!1,this.s.criteria[i].criteria=e,this.s.preventRedraw||this.s.topGroup.trigger("dtsb-redrawContents")},m.prototype._andSearch=function(t,i){if(0!==this.s.criteria.length)for(var e=0,n=this.s.criteria;e<n.length;e++){var s=n[e];if((!(s.criteria instanceof d)||s.criteria.s.filled)&&!s.criteria.search(t,i))return!1}return!0},m.prototype._orSearch=function(t,i){if(0===this.s.criteria.length)return!0;for(var e=!1,n=0,s=this.s.criteria;n<s.length;n++){var o=s[n];if(o.criteria instanceof d&&o.criteria.s.filled){if(e=!0,o.criteria.search(t,i))return!0}else if(o.criteria instanceof m&&o.criteria.checkFilled()&&(e=!0,o.criteria.search(t,i)))return!0}return!e},m.prototype._removeCriteria=function(t,i){if(void 0===i&&(i=!1),this.s.criteria.length<=1&&this.s.isChild)this.destroy();else{for(var e=void 0,n=0;n<this.s.criteria.length;n++)this.s.criteria[n].index===t.s.index&&(!i||this.s.criteria[n].criteria instanceof m)&&(e=n);for(void 0!==e&&this.s.criteria.splice(e,1),n=0;n<this.s.criteria.length;n++)this.s.criteria[n].index=n,this.s.criteria[n].criteria.s.index=n}},m.prototype._setCriteriaListeners=function(n){var s=this;n.dom.delete.unbind("click").on("click.dtsb",function(){s._removeCriteria(n),n.dom.container.remove();for(var t=0,i=s.s.criteria;t<i.length;t++){var e=i[t];e.criteria instanceof d&&e.criteria.updateArrows(1<s.s.criteria.length)}return n.destroy(),s.s.dt.draw(),s.s.topGroup.trigger("dtsb-redrawContents"),!1}),n.dom.right.unbind("click").on("click.dtsb",function(){var t=n.s.index,i=new m(s.s.dt,s.s.opts,s.s.topGroup,n.s.index,!0,s.s.depth+1,s.s.serverData);return i.addCriteria(n),s.s.criteria[t].criteria=i,s.s.criteria[t].logic="AND",s.s.topGroup.trigger("dtsb-redrawContents"),s._setGroupListeners(i),!1}),n.dom.left.unbind("click").on("click.dtsb",function(){s.s.toDrop=new d(s.s.dt,s.s.opts,s.s.topGroup,n.s.index,void 0,s.s.serverData),s.s.toDrop.s=n.s,s.s.toDrop.c=n.c,s.s.toDrop.classes=n.classes,s.s.toDrop.populate();var t=s.s.toDrop.s.index;return s.dom.container.trigger("dtsb-dropCriteria"),n.s.index=t,s._removeCriteria(n),s.s.topGroup.trigger("dtsb-redrawContents"),s.s.dt.draw(),!1})},m.prototype._setClearListener=function(){var t=this;this.dom.clear.unbind("click").on("click.dtsb",function(){return t.s.isChild?(t.destroy(),t.s.topGroup.trigger("dtsb-redrawContents")):t.dom.container.trigger("dtsb-clearContents"),!1})},m.prototype._setGroupListeners=function(i){var e=this;i.dom.add.unbind("click").on("click.dtsb",function(){return e.setupLogic(),e.dom.container.trigger("dtsb-add"),!1}),i.dom.container.unbind("dtsb-add").on("dtsb-add.dtsb",function(){return e.setupLogic(),e.dom.container.trigger("dtsb-add"),!1}),i.dom.container.unbind("dtsb-destroy").on("dtsb-destroy.dtsb",function(){return e._removeCriteria(i,!0),i.dom.container.remove(),e.setupLogic(),!1}),i.dom.container.unbind("dtsb-dropCriteria").on("dtsb-dropCriteria.dtsb",function(){var t=i.s.toDrop;return t.s.index=i.s.index,t.updateArrows(1<e.s.criteria.length),e.addCriteria(t),!1}),i.setListeners()},m.prototype._setup=function(){this.setListeners(),this.dom.add.html(this.s.dt.i18n("searchBuilder.add",this.c.i18n.add)),this.dom.search.html(this.s.dt.i18n("searchBuilder.search",this.c.i18n.search)),this.dom.logic.children().first().html("OR"===this.c.logic?this.s.dt.i18n("searchBuilder.logicOr",this.c.i18n.logicOr):this.s.dt.i18n("searchBuilder.logicAnd",this.c.i18n.logicAnd)),this.s.logic="OR"===this.c.logic?"OR":"AND",this.c.greyscale&&this.dom.logic.addClass(this.classes.greyscale),this.dom.logicContainer.append(this.dom.logic).append(this.dom.clear),this.s.isChild&&this.dom.container.append(this.dom.logicContainer),this.dom.container.append(this.dom.add),this.c.liveSearch||this.dom.container.append(this.dom.search)},m.prototype._setLogicListener=function(){var e=this;this.dom.logic.unbind("click").on("click.dtsb",function(){e._toggleLogic(),e.s.dt.draw();for(var t=0,i=e.s.criteria;t<i.length;t++)i[t].criteria.setListeners()})},m.prototype._toggleLogic=function(){"OR"===this.s.logic?(this.s.logic="AND",this.dom.logic.children().first().html(this.s.dt.i18n("searchBuilder.logicAnd",this.c.i18n.logicAnd))):"AND"===this.s.logic&&(this.s.logic="OR",this.dom.logic.children().first().html(this.s.dt.i18n("searchBuilder.logicOr",this.c.i18n.logicOr)))},m.version="1.1.0",m.classes={add:"dtsb-add",button:"dtsb-button",clearGroup:"dtsb-clearGroup",greyscale:"dtsb-greyscale",group:"dtsb-group",inputButton:"dtsb-iptbtn",logic:"dtsb-logic",logicContainer:"dtsb-logicContainer",search:"dtsb-search"},m.defaults={columns:!0,conditions:{date:d.dateConditions,html:d.stringConditions,"html-num":d.numConditions,"html-num-fmt":d.numFmtConditions,luxon:d.luxonDateConditions,moment:d.momentDateConditions,num:d.numConditions,"num-fmt":d.numFmtConditions,string:d.stringConditions},depthLimit:!1,enterSearch:!1,filterChanged:void 0,greyscale:!1,liveSearch:!0,i18n:{add:"Add Condition",button:{0:"Search Builder",_:"Search Builder (%d)"},clearAll:"Clear All",condition:"Condition",data:"Data",delete:"×",deleteTitle:"Delete filtering rule",left:"<",leftTitle:"Outdent criteria",logicAnd:"And",logicOr:"Or",right:">",rightTitle:"Indent criteria",search:"Search",title:{0:"Custom Search Builder",_:"Custom Search Builder (%d)"},value:"Value",valueJoiner:"and"},logic:"AND",orthogonal:{display:"display",search:"filter"},preDefined:!1},p=m,n.prototype.getDetails=function(t){return void 0===t&&(t=!1),this.s.topGroup?this.s.topGroup.getDetails(t):{}},n.prototype.getNode=function(){return this.dom.container},n.prototype.rebuild=function(t){return this.dom.clearAll.click(),null!=t&&(this.s.topGroup.s.preventRedraw=!0,this.s.topGroup.rebuild(t),this.s.topGroup.s.preventRedraw=!1,this._checkClear(),this._updateTitle(this.s.topGroup.count()),this.s.topGroup.redrawContents(),this.s.dt.draw(!1),this.s.topGroup.setListeners()),this},n.prototype._applyPreDefDefaults=function(t){for(var e=this,n=(void 0!==t.criteria&&void 0===t.logic&&(t.logic="AND"),this),i=0,s=t.criteria;i<s.length;i++)!function(i){void 0!==i.criteria?i=n._applyPreDefDefaults(i):n.s.dt.columns().every(function(t){e.s.dt.settings()[0].aoColumns[t].sTitle===i.data&&(i.dataIdx=t)})}(s[i]);return t},n.prototype._setUp=function(t){var n=this;if(void 0===t&&(t=!0),"function"!=typeof this.s.dt.column().type&&B.Api.registerPlural("columns().types()","column().type()",function(){return this.iterator("column",function(t,i){return t.aoColumns[i].sType},1)}),!h.DateTime){if(void 0===(i=this.s.dt.columns().types().toArray())||i.includes(void 0)||i.includes(null))for(var i=[],e=0,s=this.s.dt.settings()[0].aoColumns;e<s.length;e++){var o=s[e];i.push(void 0!==o.searchBuilderType?o.searchBuilderType:o.sType)}var r=this.s.dt.columns().toArray();(void 0===i||i.includes(void 0)||i.includes(null))&&(l.fn.dataTable.ext.oApi&&l.fn.dataTable.ext.oApi._fnColumnTypes(this.s.dt.settings()[0]),i=this.s.dt.columns().types().toArray());for(var a=0;a<r[0].length;a++){var d=i[r[0][a]];if((!0===this.c.columns||Array.isArray(this.c.columns)&&this.c.columns.includes(a))&&(d.includes("date")||d.includes("moment")||d.includes("luxon")))throw alert("SearchBuilder Requires DateTime when used with dates."),new Error("SearchBuilder requires DateTime")}}this.s.topGroup=new p(this.s.dt,this.c,void 0,void 0,void 0,void 0,this.s.serverData),this._setClearListener(),this.s.dt.on("stateSaveParams.dtsb",function(t,i,e){e.searchBuilder=n.getDetails(),e.scroller?e.start=n.s.dt.state().start:e.page=n.s.dt.page()}),this.s.dt.on("stateLoadParams.dtsb",function(t,i,e){n.rebuild(e.searchBuilder)}),this._build(),this.s.dt.on("preXhr.dtsb",function(t,i,e){n.s.dt.page.info().serverSide&&(e.searchBuilder=n._collapseArray(n.getDetails(!0)))}),this.s.dt.on("columns-reordered",function(){n.rebuild(n.getDetails())}),t&&(null!==(t=this.s.dt.state.loaded())&&void 0!==t.searchBuilder?(this.s.topGroup.rebuild(t.searchBuilder),this.s.topGroup.dom.container.trigger("dtsb-redrawContents"),this.s.dt.page.info().serverSide||(t.page?this.s.dt.page(t.page).draw("page"):this.s.dt.scroller&&t.scroller&&this.s.dt.scroller().scrollToRow(t.scroller.topRow)),this.s.topGroup.setListeners()):!1!==this.c.preDefined&&(this.c.preDefined=this._applyPreDefDefaults(this.c.preDefined),this.rebuild(this.c.preDefined))),this._setEmptyListener(),this.s.dt.state.save()},n.prototype._collapseArray=function(t){if(void 0===t.logic)void 0!==t.value&&(t.value.sort(function(t,i){return isNaN(+t)||(t=+t,i=+i),t<i?-1:i<t?1:0}),t.value1=t.value[0],t.value2=t.value[1]);else for(var i=0;i<t.criteria.length;i++)t.criteria[i]=this._collapseArray(t.criteria[i]);return t},n.prototype._updateTitle=function(t){this.dom.title.html(this.s.dt.i18n("searchBuilder.title",this.c.i18n.title,t))},n.prototype._build=function(){var n=this,t=(this.dom.clearAll.remove(),this.dom.container.empty(),this.s.topGroup.count()),s=(this._updateTitle(t),this.dom.titleRow.append(this.dom.title),this.dom.container.append(this.dom.titleRow),this.dom.topGroup=this.s.topGroup.getNode(),this.dom.container.append(this.dom.topGroup),this._setRedrawListener(),this.s.dt.table(0).node());l.fn.dataTable.ext.search.includes(this.s.search)||(this.s.search=function(t,i,e){return t.nTable!==s||n.s.topGroup.search(i,e)},l.fn.dataTable.ext.search.push(this.s.search)),this.s.dt.on("destroy.dtsb",function(){n.dom.container.remove(),n.dom.clearAll.remove();for(var t=l.fn.dataTable.ext.search.indexOf(n.s.search);-1!==t;)l.fn.dataTable.ext.search.splice(t,1),t=l.fn.dataTable.ext.search.indexOf(n.s.search);n.s.dt.off(".dtsb"),l(n.s.dt.table().node()).off(".dtsb")})},n.prototype._checkClear=function(){0<this.s.topGroup.s.criteria.length?(this.dom.clearAll.insertAfter(this.dom.title),this._setClearListener()):this.dom.clearAll.remove()},n.prototype._filterChanged=function(t){var i=this.c.filterChanged;"function"==typeof i&&i(t,this.s.dt.i18n("searchBuilder.button",this.c.i18n.button,t))},n.prototype._setClearListener=function(){var t=this;this.dom.clearAll.unbind("click"),this.dom.clearAll.on("click.dtsb",function(){return t.s.topGroup=new p(t.s.dt,t.c,void 0,void 0,void 0,void 0,t.s.serverData),t._build(),t.s.dt.draw(),t.s.topGroup.setListeners(),t.dom.clearAll.remove(),t._setEmptyListener(),t._filterChanged(0),!1})},n.prototype._setRedrawListener=function(){var i=this;this.s.topGroup.dom.container.unbind("dtsb-redrawContents"),this.s.topGroup.dom.container.on("dtsb-redrawContents.dtsb",function(){i._checkClear(),i.s.topGroup.redrawContents(),i.s.topGroup.setupLogic(),i._setEmptyListener();var t=i.s.topGroup.count();i._updateTitle(t),i._filterChanged(t),i.s.dt.page.info().serverSide||i.s.dt.draw(),i.s.dt.state.save()}),this.s.topGroup.dom.container.unbind("dtsb-redrawContents-noDraw"),this.s.topGroup.dom.container.on("dtsb-redrawContents-noDraw.dtsb",function(){i._checkClear(),i.s.topGroup.s.preventRedraw=!0,i.s.topGroup.redrawContents(),i.s.topGroup.s.preventRedraw=!1,i.s.topGroup.setupLogic(),i._setEmptyListener();var t=i.s.topGroup.count();i._updateTitle(t),i._filterChanged(t)}),this.s.topGroup.dom.container.unbind("dtsb-redrawLogic"),this.s.topGroup.dom.container.on("dtsb-redrawLogic.dtsb",function(){i.s.topGroup.redrawLogic();var t=i.s.topGroup.count();i._updateTitle(t),i._filterChanged(t)}),this.s.topGroup.dom.container.unbind("dtsb-add"),this.s.topGroup.dom.container.on("dtsb-add.dtsb",function(){var t=i.s.topGroup.count();i._updateTitle(t),i._filterChanged(t),i._checkClear()}),this.s.dt.on("postEdit.dtsb postCreate.dtsb postRemove.dtsb",function(){i.s.topGroup.redrawContents()}),this.s.topGroup.dom.container.unbind("dtsb-clearContents"),this.s.topGroup.dom.container.on("dtsb-clearContents.dtsb",function(){i._setUp(!1),i._filterChanged(0),i.s.dt.draw()})},n.prototype._setEmptyListener=function(){var t=this;this.s.topGroup.dom.add.on("click.dtsb",function(){t._checkClear()}),this.s.topGroup.dom.container.on("dtsb-destroy.dtsb",function(){t.dom.clearAll.remove()})},n.version="1.8.1",n.classes={button:"dtsb-button",clearAll:"dtsb-clearAll",container:"dtsb-searchBuilder",inputButton:"dtsb-iptbtn",title:"dtsb-title",titleRow:"dtsb-titleRow"},n.defaults={columns:!0,conditions:{date:d.dateConditions,html:d.stringConditions,"html-num":d.numConditions,"html-num-fmt":d.numFmtConditions,luxon:d.luxonDateConditions,moment:d.momentDateConditions,num:d.numConditions,"num-fmt":d.numFmtConditions,string:d.stringConditions},depthLimit:!1,enterSearch:!1,filterChanged:void 0,greyscale:!1,liveSearch:!0,i18n:{add:"Add Condition",button:{0:"Search Builder",_:"Search Builder (%d)"},clearAll:"Clear All",condition:"Condition",conditions:{array:{contains:"Contains",empty:"Empty",equals:"Equals",not:"Not",notEmpty:"Not Empty",without:"Without"},date:{after:"After",before:"Before",between:"Between",empty:"Empty",equals:"Equals",not:"Not",notBetween:"Not Between",notEmpty:"Not Empty"},number:{between:"Between",empty:"Empty",equals:"Equals",gt:"Greater Than",gte:"Greater Than Equal To",lt:"Less Than",lte:"Less Than Equal To",not:"Not",notBetween:"Not Between",notEmpty:"Not Empty"},string:{contains:"Contains",empty:"Empty",endsWith:"Ends With",equals:"Equals",not:"Not",notContains:"Does Not Contain",notEmpty:"Not Empty",notEndsWith:"Does Not End With",notStartsWith:"Does Not Start With",startsWith:"Starts With"}},data:"Data",delete:"×",deleteTitle:"Delete filtering rule",left:"<",leftTitle:"Outdent criteria",logicAnd:"And",logicOr:"Or",right:">",rightTitle:"Indent criteria",search:"Search",title:{0:"Custom Search Builder",_:"Custom Search Builder (%d)"},value:"Value",valueJoiner:"and"},logic:"AND",orthogonal:{display:"display",search:"filter"},preDefined:!1},e=n,h=(l=s).fn.DataTable,(a=s).fn.dataTable,c=(w=s).fn.dataTable,i=s.fn.dataTable,B.SearchBuilder=e,i.SearchBuilder=e,B.Group=p,i.Group=p,B.Criteria=d,i.Criteria=d,i=B.Api.register,B.ext.searchBuilder={conditions:{}},B.ext.buttons.searchBuilder={action:function(t,i,e,n){this.popover(n._searchBuilder.getNode(),{align:"container",span:"container"});n=n._searchBuilder.s.topGroup;void 0!==n&&n.dom.container.trigger("dtsb-redrawContents-noDraw"),0===n.s.criteria.length&&s("."+s.fn.dataTable.Group.classes.add.replace(/ /g,".")).click()},config:{},init:function(i,t,e){var n=this,s=new B.SearchBuilder(i,e.config);i.on("draw",function(){var t=s.s.topGroup?s.s.topGroup.count():0;n.text(i.i18n("searchBuilder.button",s.c.i18n.button,t))}),n.text(e.text||i.i18n("searchBuilder.button",s.c.i18n.button,0)),e._searchBuilder=s},text:null},i("searchBuilder.getDetails()",function(t){void 0===t&&(t=!1);var i=this.context[0];return i._searchBuilder?i._searchBuilder.getDetails(t):null}),i("searchBuilder.rebuild()",function(t){var i=this.context[0];return void 0===i._searchBuilder?null:(i._searchBuilder.rebuild(t),this)}),i("searchBuilder.container()",function(){var t=this.context[0];return t._searchBuilder?t._searchBuilder.getNode():null}),s(t).on("preInit.dt.dtsp",function(t,i){"dt"!==t.namespace||!i.oInit.searchBuilder&&!B.defaults.searchBuilder||i._searchBuilder||f(i)}),B.ext.feature.push({cFeature:"Q",fnInit:f}),B.feature&&B.feature.register("searchBuilder",f),B});
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/*! Bootstrap 5 ui integration for DataTables' SearchBuilder
|
2
|
+
* © SpryMedia Ltd - datatables.net/license
|
3
|
+
*/
|
4
|
+
!function(n){var d,r;"function"==typeof define&&define.amd?define(["jquery","datatables.net-bs5","datatables.net-searchbuilder"],function(e){return n(e,window,document)}):"object"==typeof exports?(d=require("jquery"),r=function(e,t){t.fn.dataTable||require("datatables.net-bs5")(e,t),t.fn.dataTable.SearchBuilder||require("datatables.net-searchbuilder")(e,t)},"undefined"==typeof window?module.exports=function(e,t){return e=e||window,t=t||d(e),r(e,t),n(t,0,e.document)}:(r(window,d),module.exports=n(d,window,window.document))):n(jQuery,window,document)}(function(e,t,n){"use strict";var d=e.fn.dataTable;return e.extend(!0,d.SearchBuilder.classes,{clearAll:"btn btn-secondary dtsb-clearAll"}),e.extend(!0,d.Group.classes,{add:"btn btn-secondary dtsb-add",clearGroup:"btn btn-secondary dtsb-clearGroup",logic:"btn btn-secondary dtsb-logic",search:"btn btn-secondary dtsb-search"}),e.extend(!0,d.Criteria.classes,{condition:"form-select dtsb-condition",data:"dtsb-data form-select",delete:"btn btn-secondary dtsb-delete",input:"form-control dtsb-input",left:"btn btn-secondary dtsb-left",right:"btn btn-secondary dtsb-right",select:"form-select",value:"dtsb-value"}),d});
|
data/assets/js/toc.js
CHANGED
@@ -39,10 +39,12 @@
|
|
39
39
|
var output = $(this);
|
40
40
|
|
41
41
|
// Check if there are any headers
|
42
|
-
if (
|
43
|
-
|
44
|
-
|
45
|
-
|
42
|
+
if (!$('#page-img .page-img-lg').length ) {
|
43
|
+
if ( !headers.length || headers.length < settings.minimumHeaders || !output.length ) {
|
44
|
+
$('#main').removeClass("add-grid");
|
45
|
+
$("#toc").hide();
|
46
|
+
return; // Exit early if there are no headers
|
47
|
+
}
|
46
48
|
}
|
47
49
|
|
48
50
|
if (settings.showSpeed === 0) {
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elixir-toolkit-theme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bedroesb
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: elixir-toolkit-theme-plugins
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,11 +66,9 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '12.0'
|
69
|
-
description:
|
69
|
+
description:
|
70
70
|
email:
|
71
|
-
-
|
72
|
-
|
73
|
-
'
|
71
|
+
- bert.droesbeke@vib.be
|
74
72
|
executables: []
|
75
73
|
extensions: []
|
76
74
|
extra_rdoc_files: []
|
@@ -215,8 +213,10 @@ files:
|
|
215
213
|
- _sass/bootstrap/vendor/_rfs.scss
|
216
214
|
- assets/css/all.min.css
|
217
215
|
- assets/css/dataTables.bootstrap5.min.css
|
216
|
+
- assets/css/dataTables.dateTime.min.css
|
218
217
|
- assets/css/flag-icon.min.css
|
219
218
|
- assets/css/main.scss
|
219
|
+
- assets/css/searchBuilder.bootstrap5.min.css
|
220
220
|
- assets/css/syntax.css
|
221
221
|
- assets/flags/ad.svg
|
222
222
|
- assets/flags/ae.svg
|
@@ -502,6 +502,8 @@ files:
|
|
502
502
|
- assets/js/bootstrap.bundle.min.js.map
|
503
503
|
- assets/js/clipboard.min.js
|
504
504
|
- assets/js/dataTables.bootstrap5.min.js
|
505
|
+
- assets/js/dataTables.dateTime.min.js
|
506
|
+
- assets/js/dataTables.searchBuilder.min.js
|
505
507
|
- assets/js/jquery.dataTables.min.js
|
506
508
|
- assets/js/jquery.min.js
|
507
509
|
- assets/js/jquery.min.map
|
@@ -510,6 +512,7 @@ files:
|
|
510
512
|
- assets/js/main.js
|
511
513
|
- assets/js/search-data.json
|
512
514
|
- assets/js/search.js
|
515
|
+
- assets/js/searchBuilder.bootstrap5.min.js
|
513
516
|
- assets/js/toc.js
|
514
517
|
- assets/webfonts/fa-brands-400.ttf
|
515
518
|
- assets/webfonts/fa-brands-400.woff2
|
@@ -523,7 +526,7 @@ homepage: https://elixir-belgium.github.io/elixir-toolkit-theme/
|
|
523
526
|
licenses:
|
524
527
|
- MIT
|
525
528
|
metadata: {}
|
526
|
-
post_install_message:
|
529
|
+
post_install_message:
|
527
530
|
rdoc_options: []
|
528
531
|
require_paths:
|
529
532
|
- lib
|
@@ -538,8 +541,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
538
541
|
- !ruby/object:Gem::Version
|
539
542
|
version: '0'
|
540
543
|
requirements: []
|
541
|
-
rubygems_version: 3.
|
542
|
-
signing_key:
|
544
|
+
rubygems_version: 3.5.22
|
545
|
+
signing_key:
|
543
546
|
specification_version: 4
|
544
547
|
summary: Flexible Jekyll theme using bootstrap 5 as CSS framework.
|
545
548
|
test_files: []
|