@recursyve/nice-data-filter-kit 14.5.8 → 14.5.9
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/nice-filter-view/components/advanced-filters/advanced-filters.constant.mjs +2 -1
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/advanced-filters.module.mjs +6 -2
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/models/advanced-date-filter-options.model.mjs +2 -0
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/public-api.mjs +3 -2
- package/esm2020/lib/components/nice-filter-view/components/advanced-filters/rule/components/date/date-filter.component.mjs +18 -6
- package/fesm2015/recursyve-nice-data-filter-kit.mjs +23 -6
- package/fesm2015/recursyve-nice-data-filter-kit.mjs.map +1 -1
- package/fesm2020/recursyve-nice-data-filter-kit.mjs +22 -5
- package/fesm2020/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/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/package.json +1 -1
|
@@ -3282,6 +3282,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
3282
3282
|
}] }]; }, propDecorators: { resetResult: [] } });
|
|
3283
3283
|
|
|
3284
3284
|
const ADVANCED_FILTER_ICONS = new InjectionToken("advanced_filter_icons");
|
|
3285
|
+
const ADVANCED_DATE_FILTER_OPTIONS = new InjectionToken("advanced_date_filter_options");
|
|
3285
3286
|
|
|
3286
3287
|
class NiceFilterGroupIconPipe {
|
|
3287
3288
|
constructor(service) {
|
|
@@ -3697,19 +3698,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
3697
3698
|
}] });
|
|
3698
3699
|
|
|
3699
3700
|
class NiceAdvancedDateFilterComponent extends FilterComponent {
|
|
3700
|
-
constructor(icons) {
|
|
3701
|
+
constructor(icons, advancedDateFilterOptions) {
|
|
3701
3702
|
super();
|
|
3702
3703
|
this.icons = icons;
|
|
3704
|
+
this.advancedDateFilterOptions = advancedDateFilterOptions;
|
|
3705
|
+
}
|
|
3706
|
+
onInputClick(picker) {
|
|
3707
|
+
if (!this.advancedDateFilterOptions.openDatePickerOnClick) {
|
|
3708
|
+
return;
|
|
3709
|
+
}
|
|
3710
|
+
picker.open();
|
|
3703
3711
|
}
|
|
3704
3712
|
}
|
|
3705
|
-
NiceAdvancedDateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAdvancedDateFilterComponent, deps: [{ token: ADVANCED_FILTER_ICONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3713
|
+
NiceAdvancedDateFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAdvancedDateFilterComponent, deps: [{ token: ADVANCED_FILTER_ICONS, optional: true }, { token: ADVANCED_DATE_FILTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
3706
3714
|
NiceAdvancedDateFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceAdvancedDateFilterComponent, selector: "nice-advanced-date-filter", providers: [
|
|
3707
3715
|
{
|
|
3708
3716
|
provide: NG_VALUE_ACCESSOR,
|
|
3709
3717
|
useExisting: forwardRef(() => NiceAdvancedDateFilterComponent),
|
|
3710
3718
|
multi: true
|
|
3711
3719
|
}
|
|
3712
|
-
], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"outline\" class=\"flex-auto\">\n <input
|
|
3720
|
+
], usesInheritance: true, ngImport: i0, template: "<mat-form-field appearance=\"outline\" class=\"flex-auto\">\n <input\n matInput\n [matDatepicker]=\"picker\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n (click)=\"onInputClick(picker)\"\n />\n <mat-datepicker-toggle matSuffix [for]=\"picker\">\n <mat-icon\n matDatepickerToggleIcon\n [svgIcon]=\"icons.datePicker.svgIcon\"\n >\n {{ icons.datePicker.matIcon }}\n </mat-icon>\n </mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n</mat-form-field>\n", dependencies: [{ kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["color", "appearance", "hideRequiredMarker", "hintLabel", "floatLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatSuffix, selector: "[matSuffix]" }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3$2.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i5$2.MatDatepicker, selector: "mat-datepicker", exportAs: ["matDatepicker"] }, { kind: "directive", type: i5$2.MatDatepickerInput, selector: "input[matDatepicker]", inputs: ["matDatepicker", "min", "max", "matDatepickerFilter"], exportAs: ["matDatepickerInput"] }, { kind: "component", type: i5$2.MatDatepickerToggle, selector: "mat-datepicker-toggle", inputs: ["for", "tabIndex", "aria-label", "disabled", "disableRipple"], exportAs: ["matDatepickerToggle"] }, { kind: "directive", type: i5$2.MatDatepickerToggleIcon, selector: "[matDatepickerToggleIcon]" }], encapsulation: i0.ViewEncapsulation.None });
|
|
3713
3721
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAdvancedDateFilterComponent, decorators: [{
|
|
3714
3722
|
type: Component,
|
|
3715
3723
|
args: [{ selector: "nice-advanced-date-filter", encapsulation: ViewEncapsulation.None, providers: [
|
|
@@ -3718,12 +3726,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
3718
3726
|
useExisting: forwardRef(() => NiceAdvancedDateFilterComponent),
|
|
3719
3727
|
multi: true
|
|
3720
3728
|
}
|
|
3721
|
-
], template: "<mat-form-field appearance=\"outline\" class=\"flex-auto\">\n <input
|
|
3729
|
+
], template: "<mat-form-field appearance=\"outline\" class=\"flex-auto\">\n <input\n matInput\n [matDatepicker]=\"picker\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onValueChange($event)\"\n (click)=\"onInputClick(picker)\"\n />\n <mat-datepicker-toggle matSuffix [for]=\"picker\">\n <mat-icon\n matDatepickerToggleIcon\n [svgIcon]=\"icons.datePicker.svgIcon\"\n >\n {{ icons.datePicker.matIcon }}\n </mat-icon>\n </mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n</mat-form-field>\n" }]
|
|
3722
3730
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
3723
3731
|
type: Optional
|
|
3724
3732
|
}, {
|
|
3725
3733
|
type: Inject,
|
|
3726
3734
|
args: [ADVANCED_FILTER_ICONS]
|
|
3735
|
+
}] }, { type: undefined, decorators: [{
|
|
3736
|
+
type: Optional
|
|
3737
|
+
}, {
|
|
3738
|
+
type: Inject,
|
|
3739
|
+
args: [ADVANCED_DATE_FILTER_OPTIONS]
|
|
3727
3740
|
}] }]; } });
|
|
3728
3741
|
|
|
3729
3742
|
class NiceAdvancedNumberFilterComponent extends FilterComponent {
|
|
@@ -4024,6 +4037,10 @@ class NiceAdvancedFiltersModule {
|
|
|
4024
4037
|
...(options?.icons ?? {})
|
|
4025
4038
|
}
|
|
4026
4039
|
},
|
|
4040
|
+
{
|
|
4041
|
+
provide: ADVANCED_DATE_FILTER_OPTIONS,
|
|
4042
|
+
useValue: { ...(options?.advancedDateFilter ?? {}) }
|
|
4043
|
+
},
|
|
4027
4044
|
options?.filterGroupService ? {
|
|
4028
4045
|
provide: NiceFilterGroupService,
|
|
4029
4046
|
useClass: options.filterGroupService
|
|
@@ -5439,5 +5456,5 @@ String.prototype.toTableColumn = function (sortableOrOptions, nullLast) {
|
|
|
5439
5456
|
* Generated bundle index. Do not edit.
|
|
5440
5457
|
*/
|
|
5441
5458
|
|
|
5442
|
-
export { AdvancedFiltersAsyncTypeaheadProvider, AdvancedFiltersForm, AdvancedFiltersTriggerDirective, AdvancedFiltersUtils, DateFilterComponent, FilterComponent$1 as FilterComponent, FilterForm, FilterFormValues, FilterGroupIconPipe, FilterOperatorTypes, FilterSelectionComponent, FilterType, FilterUtils, LayoutContent, NiceAdvancedFiltersButtonComponent, NiceAdvancedFiltersComponent, NiceAdvancedFiltersModule, NiceAdvancedRuleComponent, NiceBaseFilterViewComponent, NiceBaseListButtonsDirective, NiceBaseListCardsDirective, NiceBaseListComponent, NiceBaseListCustomContentDirective, NiceBaseListDirectiveModule, NiceBaseListEmptySearchResultStateDirective, NiceBaseListEmptyStateDirective, NiceBaseListFiltersDirective, NiceBaseListModule, NiceBaseListQuery, NiceBaseListService, NiceBaseListStore, NiceBaseListTableDirective, NiceBaseListTitleDirective, NiceCustomDateAdapter, NiceFilterApi, NiceFilterCustomDataViewComponent, NiceFilterDataDirective, NiceFilterExportButtonsComponent, NiceFilterExportDirective, NiceFilterGroupService, NiceFilterInfiniteScrollDataViewComponent, NiceFilterMatPaginatorPaginationDirective, NiceFilterMatSortSortingDirective, NiceFilterMatTableViewDirective, NiceFilterQueryParamsDirective, NiceFilterSearchComponent, NiceFilterService, NiceFilterViewComponent, NiceFilterViewModule, NiceFilterViewQuery, NiceFilterViewService, NiceListState, NiceMultiStateFilterService, NiceMultiStateListComponent, NiceMultiStateListModule, NiceMultiStateListQuery, NiceMultiStateListService, NiceMultiStateListStore, NicePreloadSelectedEntitiesProvider, NiceQueryBuilderComponent, NiceQueryBuilderModule, NiceSavedReportService, NiceSelectableListCheckboxDirective, NiceSelectableListDirective, NiceSelectableListModule, NiceSelectableListSelectAllDirective, NiceSelectableListService, NiceSelectableListStateQuery, NiceSelectableListStateService, NumberFilterComponent, OrderUtils, QBFilterUtils, QueryBuilderTriggerDirective, RadioFilterComponent, RuleComponent, SelectFilterComponent, StringUtils, TableColumns, TextFilterComponent, defaultLayout, initialBaseListState, initialValue$1 as initialValue, mixinNiceFilterApi };
|
|
5459
|
+
export { AdvancedFiltersAsyncTypeaheadProvider, AdvancedFiltersForm, AdvancedFiltersTriggerDirective, AdvancedFiltersUtils, DateFilterComponent, FilterComponent$1 as FilterComponent, FilterForm, FilterFormValues, FilterGroupIconPipe, FilterOperatorTypes, FilterSelectionComponent, FilterType, FilterUtils, LayoutContent, NiceAdvancedDateFilterComponent, NiceAdvancedFiltersButtonComponent, NiceAdvancedFiltersComponent, NiceAdvancedFiltersModule, NiceAdvancedRuleComponent, NiceBaseFilterViewComponent, NiceBaseListButtonsDirective, NiceBaseListCardsDirective, NiceBaseListComponent, NiceBaseListCustomContentDirective, NiceBaseListDirectiveModule, NiceBaseListEmptySearchResultStateDirective, NiceBaseListEmptyStateDirective, NiceBaseListFiltersDirective, NiceBaseListModule, NiceBaseListQuery, NiceBaseListService, NiceBaseListStore, NiceBaseListTableDirective, NiceBaseListTitleDirective, NiceCustomDateAdapter, NiceFilterApi, NiceFilterCustomDataViewComponent, NiceFilterDataDirective, NiceFilterExportButtonsComponent, NiceFilterExportDirective, NiceFilterGroupService, NiceFilterInfiniteScrollDataViewComponent, NiceFilterMatPaginatorPaginationDirective, NiceFilterMatSortSortingDirective, NiceFilterMatTableViewDirective, NiceFilterQueryParamsDirective, NiceFilterSearchComponent, NiceFilterService, NiceFilterViewComponent, NiceFilterViewModule, NiceFilterViewQuery, NiceFilterViewService, NiceListState, NiceMultiStateFilterService, NiceMultiStateListComponent, NiceMultiStateListModule, NiceMultiStateListQuery, NiceMultiStateListService, NiceMultiStateListStore, NicePreloadSelectedEntitiesProvider, NiceQueryBuilderComponent, NiceQueryBuilderModule, NiceSavedReportService, NiceSelectableListCheckboxDirective, NiceSelectableListDirective, NiceSelectableListModule, NiceSelectableListSelectAllDirective, NiceSelectableListService, NiceSelectableListStateQuery, NiceSelectableListStateService, NumberFilterComponent, OrderUtils, QBFilterUtils, QueryBuilderTriggerDirective, RadioFilterComponent, RuleComponent, SelectFilterComponent, StringUtils, TableColumns, TextFilterComponent, defaultLayout, initialBaseListState, initialValue$1 as initialValue, mixinNiceFilterApi };
|
|
5443
5460
|
//# sourceMappingURL=recursyve-nice-data-filter-kit.mjs.map
|