@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.
Files changed (76) hide show
  1. package/esm2020/lib/components/base-list/store/base-list.service.mjs +1 -1
  2. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters-trigger.directive.mjs +83 -0
  3. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.mjs +83 -0
  4. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.mjs +3 -0
  5. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.form.mjs +127 -0
  6. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.mjs +146 -0
  7. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.mjs +42 -0
  8. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.mjs +49 -0
  9. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/models/icons.model.mjs +24 -0
  10. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.mjs +32 -0
  11. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/public-api.mjs +6 -0
  12. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.mjs +40 -0
  13. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/filter.component.mjs +29 -0
  14. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/number/number-filter.component.mjs +28 -0
  15. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/radio/radio-filter.component.mjs +30 -0
  16. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/select/select-filter.component.mjs +56 -0
  17. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/text/text-filter.component.mjs +31 -0
  18. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/rule.component.mjs +71 -0
  19. package/esm2020/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.mjs +83 -0
  20. package/esm2020/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.mjs +10 -7
  21. package/esm2020/lib/components/nice-filter-view/directives/mat-sort.mjs +4 -1
  22. package/esm2020/lib/components/nice-filter-view/directives/query-params.directive.mjs +17 -10
  23. package/esm2020/lib/components/nice-filter-view/nice-base-filter-view.component.mjs +46 -12
  24. package/esm2020/lib/components/nice-filter-view/pipes/filter-group-icon.pipe.mjs +32 -0
  25. package/esm2020/lib/components/nice-filter-view/public-api.mjs +2 -1
  26. package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.query.mjs +7 -1
  27. package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.service.mjs +11 -1
  28. package/esm2020/lib/components/nice-filter-view/store/nice-filter-view.store.mjs +5 -1
  29. package/esm2020/lib/components/query-builder/pipes/filter-group-icon.pipe.mjs +9 -4
  30. package/esm2020/lib/directive/selectable-list/providers/selectable-list-content.service.mjs +11 -1
  31. package/esm2020/lib/directive/selectable-list/selectable-list-checkbox.directive.mjs +17 -3
  32. package/esm2020/lib/directive/selectable-list/selectable-list.directive.mjs +55 -12
  33. package/esm2020/lib/directive/selectable-list/store/selectable-list-state.service.mjs +45 -16
  34. package/esm2020/lib/directive/selectable-list/store/selectable-list.service.mjs +10 -6
  35. package/fesm2015/recursyve-nice-data-filter-kit.mjs +1195 -214
  36. package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
  37. package/fesm2020/recursyve-nice-data-filter-kit.mjs +1190 -213
  38. package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
  39. package/lib/components/base-list/store/base-list.service.d.ts +1 -1
  40. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters-trigger.directive.d.ts +27 -0
  41. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.component.d.ts +27 -0
  42. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.d.ts +2 -0
  43. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.form.d.ts +20 -0
  44. package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.d.ts +41 -0
  45. package/lib/components/nice-filter-view/components/advanced-filters/button/advanced-filters-button.component.d.ts +17 -0
  46. package/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.component.d.ts +16 -0
  47. package/lib/components/nice-filter-view/components/advanced-filters/models/icons.model.d.ts +11 -0
  48. package/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.d.ts +18 -0
  49. package/lib/components/nice-filter-view/components/advanced-filters/public-api.d.ts +5 -0
  50. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.d.ts +9 -0
  51. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/filter.component.d.ts +13 -0
  52. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/number/number-filter.component.d.ts +6 -0
  53. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/radio/radio-filter.component.d.ts +8 -0
  54. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/select/select-filter.component.d.ts +14 -0
  55. package/lib/components/nice-filter-view/components/advanced-filters/rule/components/text/text-filter.component.d.ts +8 -0
  56. package/lib/components/nice-filter-view/components/advanced-filters/rule/rule.component.d.ts +26 -0
  57. package/lib/components/nice-filter-view/components/advanced-filters/utils/advanced-filters.utils.d.ts +11 -0
  58. package/lib/components/nice-filter-view/components/export-buttons/export-buttons.component.d.ts +2 -1
  59. package/lib/components/nice-filter-view/directives/query-params.directive.d.ts +2 -1
  60. package/lib/components/nice-filter-view/nice-base-filter-view.component.d.ts +7 -0
  61. package/lib/components/nice-filter-view/pipes/filter-group-icon.pipe.d.ts +11 -0
  62. package/lib/components/nice-filter-view/public-api.d.ts +1 -0
  63. package/lib/components/nice-filter-view/store/nice-filter-view.query.d.ts +2 -0
  64. package/lib/components/nice-filter-view/store/nice-filter-view.service.d.ts +1 -0
  65. package/lib/components/nice-filter-view/store/nice-filter-view.store.d.ts +1 -0
  66. package/lib/components/query-builder/pipes/filter-group-icon.pipe.d.ts +3 -3
  67. package/lib/directive/selectable-list/providers/selectable-list-content.service.d.ts +5 -0
  68. package/lib/directive/selectable-list/selectable-list-checkbox.directive.d.ts +4 -2
  69. package/lib/directive/selectable-list/selectable-list.directive.d.ts +13 -4
  70. package/lib/directive/selectable-list/store/selectable-list-state.service.d.ts +12 -2
  71. package/lib/directive/selectable-list/store/selectable-list.service.d.ts +5 -2
  72. package/package.json +1 -1
  73. package/src/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.theme.scss +25 -0
  74. package/src/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.theme.scss +29 -0
  75. package/src/lib/components/nice-filter-view/components/advanced-filters/rule/rule.theme.scss +96 -0
  76. package/src/lib/nice-data-filter.theme.scss +2 -0
@@ -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 {