@recursyve/nice-data-filter-kit 14.2.3 → 14.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/base-list/store/base-list.service.mjs +1 -1
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters-trigger.directive.mjs +83 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.mjs +83 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.mjs +3 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.form.mjs +127 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.mjs +146 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.mjs +42 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.mjs +49 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/models/icons.model.mjs +24 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.mjs +32 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/public-api.mjs +6 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.mjs +40 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/filter.component.mjs +29 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/number/number-filter.component.mjs +28 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/radio/radio-filter.component.mjs +30 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/select/select-filter.component.mjs +56 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/text/text-filter.component.mjs +31 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/rule.component.mjs +71 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.mjs +83 -0
- package/esm2020/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.mjs +10 -7
- package/esm2020/lib/components/nice-filter-view/directives/mat-sort.mjs +4 -1
- package/esm2020/lib/components/nice-filter-view/directives/query-params.directive.mjs +17 -10
- package/esm2020/lib/components/nice-filter-view/nice-base-filter-view.component.mjs +46 -12
- package/esm2020/lib/components/nice-filter-view/pipes/filter-group-icon.pipe.mjs +32 -0
- package/esm2020/lib/components/nice-filter-view/public-api.mjs +2 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.query.mjs +7 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +11 -1
- package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +5 -1
- package/esm2020/lib/components/query-builder/pipes/filter-group-icon.pipe.mjs +9 -4
- package/esm2020/lib/directive/selectable-list/providers/selectable-list-content.service.mjs +11 -1
- package/esm2020/lib/directive/selectable-list/selectable-list-checkbox.directive.mjs +17 -3
- package/esm2020/lib/directive/selectable-list/selectable-list.directive.mjs +55 -12
- package/esm2020/lib/directive/selectable-list/store/selectable-list-state.service.mjs +45 -16
- package/esm2020/lib/directive/selectable-list/store/selectable-list.service.mjs +10 -6
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +1195 -214
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +1190 -213
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/base-list/store/base-list.service.d.ts +1 -1
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters-trigger.directive.d.ts +27 -0
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.d.ts +27 -0
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.d.ts +2 -0
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.form.d.ts +20 -0
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.d.ts +41 -0
- package/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.d.ts +17 -0
- package/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.d.ts +16 -0
- package/lib/components/nice-filter-view/components/advanced-filters/models/icons.model.d.ts +11 -0
- package/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.d.ts +18 -0
- package/lib/components/nice-filter-view/components/advanced-filters/public-api.d.ts +5 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.d.ts +9 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/filter.component.d.ts +13 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/number/number-filter.component.d.ts +6 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/radio/radio-filter.component.d.ts +8 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/select/select-filter.component.d.ts +14 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/text/text-filter.component.d.ts +8 -0
- package/lib/components/nice-filter-view/components/advanced-filters/rule/rule.component.d.ts +26 -0
- package/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.d.ts +11 -0
- package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts +2 -1
- package/lib/components/nice-filter-view/directives/query-params.directive.d.ts +2 -1
- package/lib/components/nice-filter-view/nice-base-filter-view.component.d.ts +7 -0
- package/lib/components/nice-filter-view/pipes/filter-group-icon.pipe.d.ts +11 -0
- package/lib/components/nice-filter-view/public-api.d.ts +1 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.query.d.ts +2 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +1 -0
- package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +1 -0
- package/lib/components/query-builder/pipes/filter-group-icon.pipe.d.ts +3 -3
- package/lib/directive/selectable-list/providers/selectable-list-content.service.d.ts +5 -0
- package/lib/directive/selectable-list/selectable-list-checkbox.directive.d.ts +4 -2
- package/lib/directive/selectable-list/selectable-list.directive.d.ts +13 -4
- package/lib/directive/selectable-list/store/selectable-list-state.service.d.ts +12 -2
- package/lib/directive/selectable-list/store/selectable-list.service.d.ts +5 -2
- package/package.json +1 -1
- package/src/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.theme.scss +25 -0
- package/src/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.theme.scss +29 -0
- package/src/lib/components/nice-filter-view/components/advanced-filters/rule/rule.theme.scss +96 -0
- package/src/lib/nice-data-filter.theme.scss +2 -0
package/src/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.theme.scss
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@import "./filter-selection/filter-selection.theme";
|
|
2
|
+
@import "./rule/rule.theme";
|
|
3
|
+
|
|
4
|
+
@mixin nice-advanced-filters-theme($theme) {
|
|
5
|
+
@include advanced-filter-selection-theme();
|
|
6
|
+
@include advanced-rule-theme($theme);
|
|
7
|
+
|
|
8
|
+
nice-advanced-filters {
|
|
9
|
+
.advanced-filter-title {
|
|
10
|
+
@apply text-xl;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.advanced-filter-condition {
|
|
14
|
+
@apply text-lg;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.add-condition {
|
|
18
|
+
@apply min-h-12 rounded border-accent #{!important};
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.close-button, .refresh-button {
|
|
22
|
+
@apply min-h-12;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@mixin advanced-filter-selection-theme() {
|
|
2
|
+
nice-advanced-filter-selection {
|
|
3
|
+
.filter-selection-container {
|
|
4
|
+
@apply min-h-36 min-w-36 max-h-[600px] max-w-[600px] p-8 overflow-auto;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.filter-group {
|
|
8
|
+
.group-icon {
|
|
9
|
+
@apply text-accent icon-size-8;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.group-name {
|
|
13
|
+
@apply text-lg font-bold;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.filter-item {
|
|
18
|
+
@apply cursor-pointer p-2 pl-4 border border-transparent;
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
@apply bg-accent/10;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mat-ripple-element {
|
|
25
|
+
@apply bg-accent/20 #{!important};
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
@mixin advanced-rule-theme($theme) {
|
|
4
|
+
$isDark: map-get($theme, is-dark);
|
|
5
|
+
$primary: map-get($theme, primary);
|
|
6
|
+
$background: map-get($theme, background);
|
|
7
|
+
$foreground: map-get($theme, foreground);
|
|
8
|
+
|
|
9
|
+
nice-advanced-rule {
|
|
10
|
+
background: transparent;
|
|
11
|
+
|
|
12
|
+
.select-filter {
|
|
13
|
+
@apply w-full min-h-12 rounded;
|
|
14
|
+
|
|
15
|
+
.mat-button-wrapper {
|
|
16
|
+
@apply w-full px-2;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.config-name {
|
|
21
|
+
@apply flex flex-auto max-w-50 truncate;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.mat-form-field {
|
|
25
|
+
@apply w-full min-h-12;
|
|
26
|
+
|
|
27
|
+
.mat-form-field-wrapper {
|
|
28
|
+
@apply m-0 p-0 #{!important};
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.mat-form-field-subscript-wrapper {
|
|
32
|
+
@apply hidden;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.mat-form-field-infix {
|
|
36
|
+
border-top: 0.5em solid transparent;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.mat-form-field-flex {
|
|
40
|
+
@apply rounded #{!important};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.condition-toggle {
|
|
45
|
+
@apply w-full min-h-12 rounded border border-accent #{!important};
|
|
46
|
+
|
|
47
|
+
mat-button-toggle {
|
|
48
|
+
@apply flex-auto border-accent #{!important};
|
|
49
|
+
|
|
50
|
+
&.mat-button-toggle-checked {
|
|
51
|
+
@apply bg-accent/20;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:not(.mat-button-toggle-checked) {
|
|
55
|
+
@apply bg-transparent;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.mat-button-toggle-button {
|
|
59
|
+
@apply h-full text-accent;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.add-button {
|
|
65
|
+
@apply w-12 max-w-12 h-12 max-h-12 rounded;
|
|
66
|
+
|
|
67
|
+
.mat-button-wrapper {
|
|
68
|
+
@apply w-full h-full border border-accent rounded #{!important};
|
|
69
|
+
|
|
70
|
+
.mat-icon {
|
|
71
|
+
@apply text-accent #{!important};
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.mat-ripple-element {
|
|
76
|
+
@apply bg-accent #{!important};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.remove-button {
|
|
81
|
+
@apply w-12 max-w-12 h-12 max-h-12 rounded;
|
|
82
|
+
|
|
83
|
+
.mat-button-wrapper {
|
|
84
|
+
@apply w-full h-full rounded #{!important};
|
|
85
|
+
|
|
86
|
+
.mat-icon {
|
|
87
|
+
@apply text-accent #{!important};
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.mat-ripple-element {
|
|
92
|
+
@apply bg-accent #{!important};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@import "./components/base-list/base-list.theme";
|
|
2
|
+
@import "./components/nice-filter-view/components/advanced-filters/advanced-filters.theme";
|
|
2
3
|
@import "./components/query-builder/query-builder.theme";
|
|
3
4
|
|
|
4
5
|
@mixin nice-data-filter-kit-theme($theme) {
|
|
5
6
|
@include nice-base-list-theme($theme);
|
|
6
7
|
@include nice-query-builder-theme($theme);
|
|
8
|
+
@include nice-advanced-filters-theme($theme);
|
|
7
9
|
|
|
8
10
|
// TODO: Figure out a better way ot use tailwind
|
|
9
11
|
nice-filter-search {
|