@recursyve/nice-data-filter-kit 16.1.5 → 16.1.7
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/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.mjs +2 -1
- package/esm2022/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.mjs +6 -2
- package/esm2022/lib/components/nice-filter-view/components/advanced-filters/models/advanced-date-filter-options.model.mjs +2 -0
- package/esm2022/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.mjs +15 -6
- package/esm2022/lib/components/nice-filter-view/components/advanced-filters/public-api.mjs +3 -2
- package/esm2022/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.mjs +18 -6
- package/esm2022/lib/directive/selectable-list/selectable-list-checkbox.directive.mjs +8 -4
- package/fesm2022/recursyve-nice-data-filter-kit.mjs +42 -13
- package/fesm2022/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.constant.d.ts +1 -0
- package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.d.ts +2 -0
- package/lib/components/nice-filter-view/components/advanced-filters/models/advanced-date-filter-options.model.d.ts +3 -0
- package/lib/components/nice-filter-view/components/advanced-filters/providers/async-typeahead.provider.d.ts +1 -0
- package/lib/components/nice-filter-view/components/advanced-filters/public-api.d.ts +2 -1
- package/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.d.ts +6 -2
- package/lib/directive/selectable-list/selectable-list-checkbox.directive.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/components/nice-filter-view/components/advanced-filters/filter-selection/filter-selection.theme.scss +2 -2
package/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ModuleWithProviders, Type } from "@angular/core";
|
|
2
2
|
import { NiceFilterGroupService } from "../../../query-builder/providers/filter-group.service";
|
|
3
3
|
import { NiceAdvancedFilterIconOptions } from "./models/icons.model";
|
|
4
|
+
import { AdvancedDateFilterOptions } from "./models/advanced-date-filter-options.model";
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
import * as i1 from "./advanced-filters.component";
|
|
6
7
|
import * as i2 from "./button/advanced-filters-button.component";
|
|
@@ -33,6 +34,7 @@ import * as i28 from "ngx-mask";
|
|
|
33
34
|
export interface NiceAdvancedFiltersOptions {
|
|
34
35
|
icons?: NiceAdvancedFilterIconOptions;
|
|
35
36
|
filterGroupService?: Type<NiceFilterGroupService<any>>;
|
|
37
|
+
advancedDateFilter?: AdvancedDateFilterOptions;
|
|
36
38
|
}
|
|
37
39
|
export declare class NiceAdvancedFiltersModule {
|
|
38
40
|
static forRoot(options?: NiceAdvancedFiltersOptions): ModuleWithProviders<NiceAdvancedFiltersModule>;
|
|
@@ -9,6 +9,7 @@ interface AdvancedFiltersAsyncTypeaheadOptions {
|
|
|
9
9
|
export declare class AdvancedFiltersAsyncTypeaheadProvider extends NiceAsyncTypeaheadProvider<SelectFilterValue> {
|
|
10
10
|
private filterService;
|
|
11
11
|
resource: string;
|
|
12
|
+
private pageSize;
|
|
12
13
|
constructor(filterService: NiceFilterService<any>);
|
|
13
14
|
getById(id: number, options: AdvancedFiltersAsyncTypeaheadOptions): Promise<SelectFilterValue>;
|
|
14
15
|
search(searchQuery: string, page: number, options: AdvancedFiltersAsyncTypeaheadOptions): Promise<NiceAsyncTypeaheadSearchResult<SelectFilterValue>>;
|
|
@@ -3,6 +3,7 @@ export * from "./advanced-filters.component";
|
|
|
3
3
|
export * from "./advanced-filters.module";
|
|
4
4
|
export * from "./advanced-filters.form";
|
|
5
5
|
export * from "./advanced-filters-trigger.directive";
|
|
6
|
-
export * from "./utils/advanced-filters.utils";
|
|
7
6
|
export * from "./rule/rule.component";
|
|
7
|
+
export * from "./rule/components/date/date-filter.component";
|
|
8
|
+
export * from "./utils/advanced-filters.utils";
|
|
8
9
|
export * from "./providers/async-typeahead.provider";
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { NiceAdvancedFilterIconOptions } from "../../../models/icons.model";
|
|
2
2
|
import { FilterComponent } from "../filter.component";
|
|
3
|
+
import { AdvancedDateFilterOptions } from "../../../models/advanced-date-filter-options.model";
|
|
4
|
+
import { MatDatepicker } from "@angular/material/datepicker";
|
|
3
5
|
import * as i0 from "@angular/core";
|
|
4
6
|
export declare class NiceAdvancedDateFilterComponent extends FilterComponent<string> {
|
|
5
7
|
icons: NiceAdvancedFilterIconOptions;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
advancedDateFilterOptions: AdvancedDateFilterOptions;
|
|
9
|
+
constructor(icons: NiceAdvancedFilterIconOptions, advancedDateFilterOptions: AdvancedDateFilterOptions);
|
|
10
|
+
onInputClick(picker: MatDatepicker<any>): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAdvancedDateFilterComponent, [{ optional: true; }, { optional: true; }]>;
|
|
8
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAdvancedDateFilterComponent, "nice-advanced-date-filter", never, {}, {}, never, never, false, never>;
|
|
9
13
|
}
|
|
@@ -21,6 +21,7 @@ export declare class NiceSelectableListCheckboxDirective implements OnInit, OnDe
|
|
|
21
21
|
private handleSelectableEntity;
|
|
22
22
|
private handleSelectPage;
|
|
23
23
|
private updateCheckboxState;
|
|
24
|
+
private propageCheckedValue;
|
|
24
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSelectableListCheckboxDirective, never>;
|
|
25
26
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSelectableListCheckboxDirective, "mat-checkbox[niceSelectableListCheckbox]", never, { "selectableEntity": { "alias": "selectableEntity"; "required": false; }; "selectPage": { "alias": "selectPage"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
27
|
}
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
.filter-group {
|
|
8
8
|
.group-icon {
|
|
9
|
-
@apply text-accent icon-size-
|
|
9
|
+
@apply text-accent icon-size-6;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.group-name {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.filter-item {
|
|
18
|
-
@apply cursor-pointer p-2 pl-4 border border-transparent;
|
|
18
|
+
@apply cursor-pointer ml-6 p-2 pl-4 border border-transparent;
|
|
19
19
|
|
|
20
20
|
&:hover {
|
|
21
21
|
@apply bg-accent/10;
|