@recursyve/nice-data-filter-kit 13.0.1 → 13.0.5
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/base-list.component.mjs +13 -15
- package/esm2020/lib/components/base-list/store/base-list.service.mjs +4 -4
- package/esm2020/lib/components/multi-state-list/multi-state-list.component.mjs +11 -12
- package/esm2020/lib/components/query-builder/filter-selection/filter-selection.component.mjs +3 -3
- package/esm2020/lib/components/query-builder/rule/components/date/date-filter.component.mjs +3 -3
- package/esm2020/lib/components/query-builder/rule/components/number/number-filter.component.mjs +3 -3
- package/esm2020/lib/components/query-builder/rule/components/radio/radio-filter.component.mjs +3 -3
- package/esm2020/lib/components/query-builder/rule/components/select/select-filter.component.mjs +3 -3
- package/esm2020/lib/components/query-builder/rule/components/text/text-filter.component.mjs +3 -3
- package/esm2020/lib/components/query-builder/rule/rule.component.mjs +3 -3
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +34 -35
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +34 -35
- package/fesm2020/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/base-list/base-list.component.d.ts +3 -4
- package/lib/components/multi-state-list/multi-state-list.component.d.ts +2 -2
- package/package.json +7 -8
- package/src/lib/components/query-builder/filter-selection/filter-selection.theme.scss +41 -0
- package/src/lib/components/query-builder/query-builder.theme.scss +2 -0
- package/src/lib/components/query-builder/rule/rule.theme.scss +82 -0
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
-
import { MediaObserver } from "@angular/flex-layout";
|
|
3
2
|
import { MatBottomSheet } from "@angular/material/bottom-sheet";
|
|
4
3
|
import { PageEvent } from "@angular/material/paginator";
|
|
5
4
|
import { Sort } from "@angular/material/sort";
|
|
6
5
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
7
|
-
import { ExportStrategy } from "@recursyve/nice-ui-kit.v2";
|
|
6
|
+
import { ExportStrategy, NiceMediaWatcherService } from "@recursyve/nice-ui-kit.v2";
|
|
8
7
|
import { Observable } from "rxjs";
|
|
9
8
|
import { FilterConfigurationModel } from "../../models/filter.model";
|
|
10
9
|
import { QueryModel, QueryRuleModel } from "../../models/query.model";
|
|
@@ -25,7 +24,7 @@ export declare class NiceBaseListComponent implements OnInit, OnDestroy, OnChang
|
|
|
25
24
|
private readonly activatedRoute;
|
|
26
25
|
private readonly bottomSheet;
|
|
27
26
|
private readonly router;
|
|
28
|
-
private
|
|
27
|
+
private readonly mediaWatcher;
|
|
29
28
|
title: TemplateRef<any>;
|
|
30
29
|
buttons: NiceBaseListButtonsDirective[];
|
|
31
30
|
table: TemplateRef<any>;
|
|
@@ -64,7 +63,7 @@ export declare class NiceBaseListComponent implements OnInit, OnDestroy, OnChang
|
|
|
64
63
|
rules$: Observable<QueryModel[]>;
|
|
65
64
|
rulesCount$: Observable<number>;
|
|
66
65
|
private searchText$;
|
|
67
|
-
constructor(enableQueryBuilder: boolean, listLayout: BaseListLayout, columns: TableColumns[], exportsSettings: ExportSettings, query: NiceBaseListQuery, service: NiceBaseListService, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router,
|
|
66
|
+
constructor(enableQueryBuilder: boolean, listLayout: BaseListLayout, columns: TableColumns[], exportsSettings: ExportSettings, query: NiceBaseListQuery, service: NiceBaseListService, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router, mediaWatcher: NiceMediaWatcherService);
|
|
68
67
|
get prefixButtons(): TemplateRef<any> | undefined;
|
|
69
68
|
get suffixButtons(): TemplateRef<any> | undefined;
|
|
70
69
|
ngOnInit(): Promise<void>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { MediaObserver } from "@angular/flex-layout";
|
|
2
1
|
import { MatBottomSheet } from "@angular/material/bottom-sheet";
|
|
3
2
|
import { ActivatedRoute, Router } from "@angular/router";
|
|
3
|
+
import { NiceMediaWatcherService } from "@recursyve/nice-ui-kit.v2";
|
|
4
4
|
import { NiceBaseListComponent } from "../base-list/base-list.component";
|
|
5
5
|
import { ExportSettings } from "../base-list/models/export.model";
|
|
6
6
|
import { BaseListLayout } from "../base-list/models/layout.model";
|
|
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export declare class NiceMultiStateListComponent extends NiceBaseListComponent {
|
|
11
11
|
private multiStateListService;
|
|
12
12
|
set state(state: string);
|
|
13
|
-
constructor(enableQueryBuilder: boolean, listLayout: BaseListLayout, exportsSetting: ExportSettings, query: NiceMultiStateListQuery, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router,
|
|
13
|
+
constructor(enableQueryBuilder: boolean, listLayout: BaseListLayout, exportsSetting: ExportSettings, query: NiceMultiStateListQuery, activatedRoute: ActivatedRoute, bottomSheet: MatBottomSheet, router: Router, mediaWatcher: NiceMediaWatcherService, multiStateListService: NiceMultiStateListService);
|
|
14
14
|
private switchState;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceMultiStateListComponent, [{ optional: true; }, null, null, null, null, null, null, null, null]>;
|
|
16
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<NiceMultiStateListComponent, "nice-multi-state-list", never, { "state": "state"; }, {}, never, never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@recursyve/nice-data-filter-kit",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.5",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"sass": "./_index.scss",
|
|
@@ -16,15 +16,14 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@angular/cdk": "
|
|
20
|
-
"@angular/common": "
|
|
21
|
-
"@angular/core": "
|
|
22
|
-
"@angular/
|
|
23
|
-
"@angular/
|
|
24
|
-
"@angular/material": "~13.0.0",
|
|
19
|
+
"@angular/cdk": "^13.0.0",
|
|
20
|
+
"@angular/common": "^13.0.0",
|
|
21
|
+
"@angular/core": "^13.0.0",
|
|
22
|
+
"@angular/forms": "^13.0.0",
|
|
23
|
+
"@angular/material": "^13.0.0",
|
|
25
24
|
"@datorama/akita": "^7.0.0",
|
|
26
25
|
"@ngx-translate/core": "^14.0.0",
|
|
27
|
-
"@recursyve/nice-ui-kit.v2": "^13.0.0-beta.
|
|
26
|
+
"@recursyve/nice-ui-kit.v2": "^13.0.0-beta.44",
|
|
28
27
|
"@recursyve/ngx-form-generator": "^13.0.0-beta.19"
|
|
29
28
|
},
|
|
30
29
|
"dependencies": {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@mixin filter-selection-theme() {
|
|
2
|
+
nice-filter-selection {
|
|
3
|
+
.filter-selection-container {
|
|
4
|
+
min-width: 150px;
|
|
5
|
+
min-height: 150px;
|
|
6
|
+
max-width: 600px;
|
|
7
|
+
padding: 8px;
|
|
8
|
+
|
|
9
|
+
.mat-list {
|
|
10
|
+
&.double-groups {
|
|
11
|
+
max-width: 50%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:not(.double-groups) {
|
|
15
|
+
max-width: 100%;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.mat-list-item {
|
|
21
|
+
height: auto !important;
|
|
22
|
+
min-height: 32px !important;
|
|
23
|
+
|
|
24
|
+
strong {
|
|
25
|
+
font-weight: 700 !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&.filter {
|
|
29
|
+
padding: 8px 24px;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
font-size: 14px !important;
|
|
34
|
+
|
|
35
|
+
@screen md {
|
|
36
|
+
padding: 8px 48px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -6,6 +6,88 @@
|
|
|
6
6
|
$background: map-get($theme, background);
|
|
7
7
|
$foreground: map-get($theme, foreground);
|
|
8
8
|
|
|
9
|
+
nice-rule {
|
|
10
|
+
background: transparent;
|
|
11
|
+
|
|
12
|
+
.select-filter {
|
|
13
|
+
@apply flex flex-full;
|
|
14
|
+
|
|
15
|
+
height: 36px;
|
|
16
|
+
max-width: 150px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.config-name {
|
|
20
|
+
@apply flex flex-full flex-grow-0 truncate;
|
|
21
|
+
|
|
22
|
+
max-width: 90px;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.config-name-icon {
|
|
26
|
+
@apply flex flex-full;
|
|
27
|
+
|
|
28
|
+
max-width: 24px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.rule-operator {
|
|
32
|
+
@apply flex flex-full;
|
|
33
|
+
|
|
34
|
+
max-width: 100%;
|
|
35
|
+
|
|
36
|
+
@screen md {
|
|
37
|
+
max-width: 150px;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.aligned-button,
|
|
42
|
+
.select-filter {
|
|
43
|
+
margin-bottom: 1.25em;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.aligned-text {
|
|
47
|
+
margin-bottom: 2em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.filter-select {
|
|
51
|
+
margin-top: -14px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.mat-form-field-infix {
|
|
55
|
+
border: none;
|
|
56
|
+
max-width: 150px;
|
|
57
|
+
|
|
58
|
+
@screen md {
|
|
59
|
+
max-width: none;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.rule-form-field {
|
|
64
|
+
flex: 0 0 188px;
|
|
65
|
+
max-width: 188px;
|
|
66
|
+
min-width: 188px;
|
|
67
|
+
width: 90%;
|
|
68
|
+
|
|
69
|
+
@screen md {
|
|
70
|
+
width: auto;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rule-container {
|
|
75
|
+
padding: 0;
|
|
76
|
+
max-width: 100%;
|
|
77
|
+
|
|
78
|
+
&.is-single-input {
|
|
79
|
+
@screen md {
|
|
80
|
+
max-width: 50%;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
@screen md {
|
|
85
|
+
padding-left: 12px;
|
|
86
|
+
padding-right: 12px;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
9
91
|
.or-button {
|
|
10
92
|
background: map-get($background, card) !important;
|
|
11
93
|
color: map-get($foreground, text) !important;
|