@firestitch/filter 14.0.3 → 16.0.0
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/app/classes/actions-controller.d.ts +41 -41
- package/app/components/action-button/action-button.component.d.ts +9 -9
- package/app/components/action-kebab-actions/action-kebab-actions.component.d.ts +7 -7
- package/app/components/actions/actions.component.d.ts +13 -13
- package/app/components/filter/filter.component.d.ts +204 -204
- package/app/components/filter-chip/filter-chip.component.d.ts +26 -26
- package/app/components/filter-chip-content/filter-chip-content.component.d.ts +18 -18
- package/app/components/filter-chips/filter-chips.component.d.ts +9 -9
- package/app/components/filter-drawer/filter-drawer.component.d.ts +30 -30
- package/app/components/filter-drawer-actions/filter-drawer-actions.component.d.ts +9 -9
- package/app/components/filters-item/autocomplete/autocomplete.component.d.ts +14 -14
- package/app/components/filters-item/autocompletechips/autocompletechips.component.d.ts +16 -16
- package/app/components/filters-item/base-item/base-item.component.d.ts +25 -25
- package/app/components/filters-item/checkbox/checkbox.component.d.ts +11 -11
- package/app/components/filters-item/chips/chips.component.d.ts +13 -13
- package/app/components/filters-item/date/date.component.d.ts +20 -20
- package/app/components/filters-item/date-range/date-range.component.d.ts +15 -15
- package/app/components/filters-item/filter-item.component.d.ts +39 -39
- package/app/components/filters-item/range/range.component.d.ts +15 -15
- package/app/components/filters-item/select/backdrop/backdrop.component.d.ts +6 -6
- package/app/components/filters-item/select/groups/groups.component.d.ts +12 -12
- package/app/components/filters-item/select/multiple/multiple.component.d.ts +15 -15
- package/app/components/filters-item/select/select.component.d.ts +23 -23
- package/app/components/filters-item/select/simple/simple.component.d.ts +14 -14
- package/app/components/filters-item/text/text.component.d.ts +19 -19
- package/app/components/filters-item/week/week.component.d.ts +12 -12
- package/app/components/saved-filter/index.d.ts +3 -3
- package/app/components/saved-filter/saved-filter-edit/index.d.ts +1 -1
- package/app/components/saved-filter/saved-filter-edit/saved-filter-edit.component.d.ts +18 -18
- package/app/components/saved-filter/saved-filter-manage/index.d.ts +1 -1
- package/app/components/saved-filter/saved-filter-manage/saved-filter-manage.component.d.ts +16 -16
- package/app/components/saved-filter/saved-filters-menu/index.d.ts +1 -1
- package/app/components/saved-filter/saved-filters-menu/saved-filters-menu.component.d.ts +24 -24
- package/app/consts/query-param-delimiter.d.ts +1 -1
- package/app/directives/focus-to-item/focus-to-item.directive.d.ts +27 -27
- package/app/directives/status-bar/status-bar.directive.d.ts +8 -8
- package/app/enums/action-mode.enum.d.ts +6 -6
- package/app/enums/action-type.enum.d.ts +9 -9
- package/app/enums/button-style.d.ts +9 -9
- package/app/enums/index.d.ts +6 -6
- package/app/enums/item-date-mode.enum.d.ts +5 -5
- package/app/enums/item-type.enum.d.ts +15 -15
- package/app/enums/picker-view-type.enum.d.ts +7 -7
- package/app/fs-filter.module.d.ts +70 -70
- package/app/helpers/build-query-params.d.ts +3 -3
- package/app/helpers/compare.d.ts +2 -2
- package/app/helpers/create-filter-item.d.ts +14 -14
- package/app/helpers/find-value.d.ts +1 -1
- package/app/helpers/get-range-name.d.ts +1 -1
- package/app/helpers/parse-date.d.ts +1 -1
- package/app/helpers/parse-item-value-from-stored.d.ts +1 -1
- package/app/helpers/query-param-transformers.d.ts +2 -2
- package/app/helpers/restore-items.d.ts +12 -12
- package/app/injectors/filter-config.d.ts +2 -2
- package/app/injectors/filter-drawer-data.d.ts +2 -2
- package/app/injectors/filter-drawer-overlay.d.ts +2 -2
- package/app/interfaces/action.interface.d.ts +81 -81
- package/app/interfaces/config.interface.d.ts +66 -66
- package/app/interfaces/external-params.interface.d.ts +3 -3
- package/app/interfaces/filter.interface.d.ts +4 -4
- package/app/interfaces/index.d.ts +6 -6
- package/app/interfaces/items/autocomplete-chips.interface.d.ts +15 -15
- package/app/interfaces/items/autocomplete.interface.d.ts +9 -9
- package/app/interfaces/items/base.interface.d.ts +29 -29
- package/app/interfaces/items/checkbox.interface.d.ts +7 -7
- package/app/interfaces/items/chips.interface.d.ts +6 -6
- package/app/interfaces/items/date-range.interface.d.ts +8 -8
- package/app/interfaces/items/date.interface.d.ts +7 -7
- package/app/interfaces/items/range.interface.d.ts +13 -13
- package/app/interfaces/items/select.interface.d.ts +20 -20
- package/app/interfaces/items/text.interface.d.ts +9 -9
- package/app/interfaces/items/week.interface.d.ts +7 -7
- package/app/interfaces/saved-filters.interface.d.ts +18 -18
- package/app/interfaces/update-filter-item.interface.d.ts +4 -4
- package/app/models/action-menu-item.model.d.ts +23 -23
- package/app/models/action.model.d.ts +54 -54
- package/app/models/filter-config.d.ts +31 -31
- package/app/models/items/autocomplete/base-autocomplete-item.d.ts +12 -12
- package/app/models/items/autocomplete-chips-item.d.ts +20 -20
- package/app/models/items/autocomplete-item.d.ts +11 -11
- package/app/models/items/base-item.d.ts +80 -80
- package/app/models/items/checkbox-item.d.ts +17 -17
- package/app/models/items/chips-item.d.ts +18 -18
- package/app/models/items/date/base-date-item.d.ts +14 -14
- package/app/models/items/date-item.d.ts +8 -8
- package/app/models/items/date-range/base-date-range-item.d.ts +17 -21
- package/app/models/items/date-range-item.d.ts +6 -6
- package/app/models/items/date-time-item.d.ts +7 -7
- package/app/models/items/date-time-range-item.d.ts +6 -6
- package/app/models/items/range-item.d.ts +19 -23
- package/app/models/items/select/base-select-item.d.ts +13 -13
- package/app/models/items/select/multiple-select-item.d.ts +14 -14
- package/app/models/items/select/simple-select-item.d.ts +14 -14
- package/app/models/items/select-item.d.ts +8 -8
- package/app/models/items/text-item.d.ts +15 -15
- package/app/models/items/week-item.d.ts +18 -18
- package/app/pipes/remove-isolate-value.pipe.d.ts +8 -8
- package/app/providers/filter-meta.d.ts +5 -5
- package/app/services/external-params/persistance-params-controller.service.d.ts +21 -22
- package/app/services/external-params/query-params-controller.service.d.ts +22 -22
- package/app/services/external-params/saved-filters-controller.service.d.ts +40 -40
- package/app/services/external-params-controller.service.d.ts +42 -42
- package/app/services/filter-overlay.service.d.ts +36 -36
- package/app/services/focus-controller.service.d.ts +18 -18
- package/app/services/items-store.service.d.ts +69 -69
- package/esm2022/app/classes/actions-controller.mjs +130 -0
- package/esm2022/app/components/action-button/action-button.component.mjs +21 -0
- package/esm2022/app/components/action-kebab-actions/action-kebab-actions.component.mjs +18 -0
- package/esm2022/app/components/actions/actions.component.mjs +40 -0
- package/esm2022/app/components/filter/filter.component.mjs +626 -0
- package/esm2022/app/components/filter-chip/filter-chip.component.mjs +92 -0
- package/esm2022/app/components/filter-chip-content/filter-chip-content.component.mjs +83 -0
- package/esm2022/app/components/filter-chips/filter-chips.component.mjs +18 -0
- package/esm2022/app/components/filter-drawer/filter-drawer.component.mjs +78 -0
- package/esm2022/app/components/filter-drawer-actions/filter-drawer-actions.component.mjs +27 -0
- package/esm2022/app/components/filters-item/autocomplete/autocomplete.component.mjs +29 -0
- package/esm2022/app/components/filters-item/autocompletechips/autocompletechips.component.mjs +44 -0
- package/esm2022/app/components/filters-item/base-item/base-item.component.mjs +68 -0
- package/esm2022/app/components/filters-item/checkbox/checkbox.component.mjs +23 -0
- package/esm2022/app/components/filters-item/chips/chips.component.mjs +30 -0
- package/esm2022/app/components/filters-item/date/date.component.mjs +45 -0
- package/esm2022/app/components/filters-item/date-range/date-range.component.mjs +36 -0
- package/esm2022/app/components/filters-item/filter-item.component.mjs +82 -0
- package/esm2022/app/components/filters-item/range/range.component.mjs +49 -0
- package/{esm2020 → esm2022}/app/components/filters-item/select/backdrop/backdrop.component.mjs +12 -12
- package/esm2022/app/components/filters-item/select/groups/groups.component.mjs +33 -0
- package/esm2022/app/components/filters-item/select/multiple/multiple.component.mjs +60 -0
- package/esm2022/app/components/filters-item/select/select.component.mjs +55 -0
- package/esm2022/app/components/filters-item/select/simple/simple.component.mjs +46 -0
- package/esm2022/app/components/filters-item/text/text.component.mjs +51 -0
- package/esm2022/app/components/filters-item/week/week.component.mjs +26 -0
- package/{esm2020 → esm2022}/app/components/saved-filter/index.mjs +3 -3
- package/{esm2020 → esm2022}/app/components/saved-filter/saved-filter-edit/index.mjs +1 -1
- package/esm2022/app/components/saved-filter/saved-filter-edit/saved-filter-edit.component.mjs +55 -0
- package/{esm2020 → esm2022}/app/components/saved-filter/saved-filter-manage/index.mjs +1 -1
- package/esm2022/app/components/saved-filter/saved-filter-manage/saved-filter-manage.component.mjs +45 -0
- package/{esm2020 → esm2022}/app/components/saved-filter/saved-filters-menu/index.mjs +1 -1
- package/esm2022/app/components/saved-filter/saved-filters-menu/saved-filters-menu.component.mjs +61 -0
- package/{esm2020 → esm2022}/app/consts/query-param-delimiter.mjs +1 -1
- package/esm2022/app/directives/focus-to-item/focus-to-item.directive.mjs +141 -0
- package/esm2022/app/directives/status-bar/status-bar.directive.mjs +17 -0
- package/{esm2020 → esm2022}/app/enums/action-mode.enum.mjs +7 -7
- package/esm2022/app/enums/action-type.enum.mjs +11 -0
- package/{esm2020 → esm2022}/app/enums/button-style.mjs +10 -10
- package/{esm2020 → esm2022}/app/enums/index.mjs +6 -6
- package/{esm2020 → esm2022}/app/enums/item-date-mode.enum.mjs +6 -6
- package/{esm2020 → esm2022}/app/enums/item-type.enum.mjs +16 -16
- package/{esm2020 → esm2022}/app/enums/picker-view-type.enum.mjs +8 -8
- package/{esm2020 → esm2022}/app/fs-filter.module.mjs +261 -261
- package/{esm2020 → esm2022}/app/helpers/build-query-params.mjs +32 -32
- package/{esm2020 → esm2022}/app/helpers/compare.mjs +37 -37
- package/{esm2020 → esm2022}/app/helpers/create-filter-item.mjs +54 -54
- package/{esm2020 → esm2022}/app/helpers/find-value.mjs +12 -12
- package/esm2022/app/helpers/get-range-name.mjs +4 -0
- package/{esm2020 → esm2022}/app/helpers/parse-date.mjs +7 -7
- package/esm2022/app/helpers/parse-item-value-from-stored.mjs +77 -0
- package/{esm2020 → esm2022}/app/helpers/query-param-transformers.mjs +8 -8
- package/esm2022/app/helpers/restore-items.mjs +49 -0
- package/{esm2020 → esm2022}/app/injectors/filter-config.mjs +2 -2
- package/{esm2020 → esm2022}/app/injectors/filter-drawer-data.mjs +2 -2
- package/{esm2020 → esm2022}/app/injectors/filter-drawer-overlay.mjs +2 -2
- package/{esm2020 → esm2022}/app/interfaces/action.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/config.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/external-params.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/filter.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/index.mjs +6 -6
- package/{esm2020 → esm2022}/app/interfaces/items/autocomplete-chips.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/autocomplete.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/base.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/checkbox.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/chips.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/date-range.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/date.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/range.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/select.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/text.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/items/week.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/saved-filters.interface.mjs +1 -1
- package/{esm2020 → esm2022}/app/interfaces/update-filter-item.interface.mjs +1 -1
- package/esm2022/app/models/action-menu-item.model.mjs +73 -0
- package/esm2022/app/models/action.model.mjs +156 -0
- package/esm2022/app/models/filter-config.mjs +79 -0
- package/esm2022/app/models/items/autocomplete/base-autocomplete-item.mjs +16 -0
- package/{esm2020 → esm2022}/app/models/items/autocomplete-chips-item.mjs +67 -61
- package/{esm2020 → esm2022}/app/models/items/autocomplete-item.mjs +32 -32
- package/{esm2020 → esm2022}/app/models/items/base-item.mjs +251 -234
- package/esm2022/app/models/items/checkbox-item.mjs +52 -0
- package/esm2022/app/models/items/chips-item.mjs +90 -0
- package/esm2022/app/models/items/date/base-date-item.mjs +50 -0
- package/{esm2020 → esm2022}/app/models/items/date-item.mjs +18 -18
- package/esm2022/app/models/items/date-range/base-date-range-item.mjs +124 -0
- package/{esm2020 → esm2022}/app/models/items/date-range-item.mjs +6 -6
- package/{esm2020 → esm2022}/app/models/items/date-time-item.mjs +9 -9
- package/{esm2020 → esm2022}/app/models/items/date-time-range-item.mjs +6 -6
- package/esm2022/app/models/items/range-item.mjs +85 -0
- package/esm2022/app/models/items/select/base-select-item.mjs +40 -0
- package/{esm2020 → esm2022}/app/models/items/select/multiple-select-item.mjs +87 -87
- package/{esm2020 → esm2022}/app/models/items/select/simple-select-item.mjs +65 -65
- package/esm2022/app/models/items/select-item.mjs +12 -0
- package/esm2022/app/models/items/text-item.mjs +36 -0
- package/esm2022/app/models/items/week-item.mjs +95 -0
- package/{esm2020 → esm2022}/app/pipes/remove-isolate-value.pipe.mjs +21 -21
- package/{esm2020 → esm2022}/app/providers/filter-meta.mjs +9 -9
- package/esm2022/app/services/external-params/persistance-params-controller.service.mjs +62 -0
- package/esm2022/app/services/external-params/query-params-controller.service.mjs +66 -0
- package/{esm2020 → esm2022}/app/services/external-params/saved-filters-controller.service.mjs +167 -163
- package/esm2022/app/services/external-params-controller.service.mjs +185 -0
- package/esm2022/app/services/filter-overlay.service.mjs +130 -0
- package/esm2022/app/services/focus-controller.service.mjs +29 -0
- package/esm2022/app/services/items-store.service.mjs +347 -0
- package/{esm2020 → esm2022}/firestitch-filter.mjs +4 -4
- package/{esm2020 → esm2022}/public_api.mjs +35 -35
- package/{fesm2020 → fesm2022}/firestitch-filter.mjs +4528 -4344
- package/fesm2022/firestitch-filter.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/package.json +5 -11
- package/public_api.d.ts +40 -40
- package/esm2020/app/classes/actions-controller.mjs +0 -127
- package/esm2020/app/components/action-button/action-button.component.mjs +0 -22
- package/esm2020/app/components/action-kebab-actions/action-kebab-actions.component.mjs +0 -17
- package/esm2020/app/components/actions/actions.component.mjs +0 -42
- package/esm2020/app/components/filter/filter.component.mjs +0 -614
- package/esm2020/app/components/filter-chip/filter-chip.component.mjs +0 -86
- package/esm2020/app/components/filter-chip-content/filter-chip-content.component.mjs +0 -79
- package/esm2020/app/components/filter-chips/filter-chips.component.mjs +0 -19
- package/esm2020/app/components/filter-drawer/filter-drawer.component.mjs +0 -71
- package/esm2020/app/components/filter-drawer-actions/filter-drawer-actions.component.mjs +0 -29
- package/esm2020/app/components/filters-item/autocomplete/autocomplete.component.mjs +0 -27
- package/esm2020/app/components/filters-item/autocompletechips/autocompletechips.component.mjs +0 -42
- package/esm2020/app/components/filters-item/base-item/base-item.component.mjs +0 -63
- package/esm2020/app/components/filters-item/checkbox/checkbox.component.mjs +0 -21
- package/esm2020/app/components/filters-item/chips/chips.component.mjs +0 -28
- package/esm2020/app/components/filters-item/date/date.component.mjs +0 -43
- package/esm2020/app/components/filters-item/date-range/date-range.component.mjs +0 -34
- package/esm2020/app/components/filters-item/filter-item.component.mjs +0 -80
- package/esm2020/app/components/filters-item/range/range.component.mjs +0 -45
- package/esm2020/app/components/filters-item/select/groups/groups.component.mjs +0 -30
- package/esm2020/app/components/filters-item/select/multiple/multiple.component.mjs +0 -57
- package/esm2020/app/components/filters-item/select/select.component.mjs +0 -51
- package/esm2020/app/components/filters-item/select/simple/simple.component.mjs +0 -43
- package/esm2020/app/components/filters-item/text/text.component.mjs +0 -49
- package/esm2020/app/components/filters-item/week/week.component.mjs +0 -25
- package/esm2020/app/components/saved-filter/saved-filter-edit/saved-filter-edit.component.mjs +0 -50
- package/esm2020/app/components/saved-filter/saved-filter-manage/saved-filter-manage.component.mjs +0 -40
- package/esm2020/app/components/saved-filter/saved-filters-menu/saved-filters-menu.component.mjs +0 -57
- package/esm2020/app/directives/focus-to-item/focus-to-item.directive.mjs +0 -130
- package/esm2020/app/directives/status-bar/status-bar.directive.mjs +0 -16
- package/esm2020/app/enums/action-type.enum.mjs +0 -12
- package/esm2020/app/helpers/get-range-name.mjs +0 -9
- package/esm2020/app/helpers/parse-item-value-from-stored.mjs +0 -81
- package/esm2020/app/helpers/restore-items.mjs +0 -49
- package/esm2020/app/models/action-menu-item.model.mjs +0 -67
- package/esm2020/app/models/action.model.mjs +0 -130
- package/esm2020/app/models/filter-config.mjs +0 -67
- package/esm2020/app/models/items/autocomplete/base-autocomplete-item.mjs +0 -14
- package/esm2020/app/models/items/checkbox-item.mjs +0 -50
- package/esm2020/app/models/items/chips-item.mjs +0 -89
- package/esm2020/app/models/items/date/base-date-item.mjs +0 -48
- package/esm2020/app/models/items/date-range/base-date-range-item.mjs +0 -135
- package/esm2020/app/models/items/range-item.mjs +0 -83
- package/esm2020/app/models/items/select/base-select-item.mjs +0 -37
- package/esm2020/app/models/items/select-item.mjs +0 -11
- package/esm2020/app/models/items/text-item.mjs +0 -34
- package/esm2020/app/models/items/week-item.mjs +0 -94
- package/esm2020/app/services/external-params/persistance-params-controller.service.mjs +0 -58
- package/esm2020/app/services/external-params/query-params-controller.service.mjs +0 -62
- package/esm2020/app/services/external-params-controller.service.mjs +0 -179
- package/esm2020/app/services/filter-overlay.service.mjs +0 -122
- package/esm2020/app/services/focus-controller.service.mjs +0 -30
- package/esm2020/app/services/items-store.service.mjs +0 -345
- package/fesm2015/firestitch-filter.mjs +0 -4585
- package/fesm2015/firestitch-filter.mjs.map +0 -1
- package/fesm2020/firestitch-filter.mjs.map +0 -1
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
-
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { FsFilterAction } from '../interfaces/action.interface';
|
|
5
|
-
import { Action } from '../models/action.model';
|
|
6
|
-
import { FsFilterConfig } from '../models/filter-config';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ActionsController implements OnDestroy {
|
|
9
|
-
private _breakpointObserver;
|
|
10
|
-
private _visible$;
|
|
11
|
-
private _actions$;
|
|
12
|
-
private _menuActions$;
|
|
13
|
-
private _destroy$;
|
|
14
|
-
private _config;
|
|
15
|
-
private readonly _mobileMedia;
|
|
16
|
-
private _allActions;
|
|
17
|
-
private _reorderAction;
|
|
18
|
-
constructor(_breakpointObserver: BreakpointObserver);
|
|
19
|
-
get menuActions(): Action[];
|
|
20
|
-
get actions(): Action[];
|
|
21
|
-
get actions$(): Observable<Action[]>;
|
|
22
|
-
get menuActions$(): Observable<Action[]>;
|
|
23
|
-
get visible$(): Observable<boolean>;
|
|
24
|
-
get mobileMode(): boolean;
|
|
25
|
-
ngOnDestroy(): void;
|
|
26
|
-
setConfig(config: FsFilterConfig): void;
|
|
27
|
-
initActions(rawActions: FsFilterAction[]): void;
|
|
28
|
-
show(): void;
|
|
29
|
-
hide(): void;
|
|
30
|
-
addReorderAction(action: Action): void;
|
|
31
|
-
clearActions(): void;
|
|
32
|
-
updateActionsVisibility(): void;
|
|
33
|
-
updateDisabledState(): void;
|
|
34
|
-
private _setKebabActions;
|
|
35
|
-
private _setActions;
|
|
36
|
-
private _classifyActions;
|
|
37
|
-
private _classifyAction;
|
|
38
|
-
private _listenMobileMedia;
|
|
39
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsController, never>;
|
|
40
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ActionsController>;
|
|
41
|
-
}
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { FsFilterAction } from '../interfaces/action.interface';
|
|
5
|
+
import { Action } from '../models/action.model';
|
|
6
|
+
import { FsFilterConfig } from '../models/filter-config';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ActionsController implements OnDestroy {
|
|
9
|
+
private _breakpointObserver;
|
|
10
|
+
private _visible$;
|
|
11
|
+
private _actions$;
|
|
12
|
+
private _menuActions$;
|
|
13
|
+
private _destroy$;
|
|
14
|
+
private _config;
|
|
15
|
+
private readonly _mobileMedia;
|
|
16
|
+
private _allActions;
|
|
17
|
+
private _reorderAction;
|
|
18
|
+
constructor(_breakpointObserver: BreakpointObserver);
|
|
19
|
+
get menuActions(): Action[];
|
|
20
|
+
get actions(): Action[];
|
|
21
|
+
get actions$(): Observable<Action[]>;
|
|
22
|
+
get menuActions$(): Observable<Action[]>;
|
|
23
|
+
get visible$(): Observable<boolean>;
|
|
24
|
+
get mobileMode(): boolean;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
setConfig(config: FsFilterConfig): void;
|
|
27
|
+
initActions(rawActions: FsFilterAction[]): void;
|
|
28
|
+
show(): void;
|
|
29
|
+
hide(): void;
|
|
30
|
+
addReorderAction(action: Action): void;
|
|
31
|
+
clearActions(): void;
|
|
32
|
+
updateActionsVisibility(): void;
|
|
33
|
+
updateDisabledState(): void;
|
|
34
|
+
private _setKebabActions;
|
|
35
|
+
private _setActions;
|
|
36
|
+
private _classifyActions;
|
|
37
|
+
private _classifyAction;
|
|
38
|
+
private _listenMobileMedia;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionsController, never>;
|
|
40
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ActionsController>;
|
|
41
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ActionType } from '../../enums/action-type.enum';
|
|
2
|
-
import { Action } from '../../models/action.model';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FsFilterActionButtonComponent {
|
|
5
|
-
ActionType: typeof ActionType;
|
|
6
|
-
action: Action;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterActionButtonComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterActionButtonComponent, "fs-filter-action-button", never, { "action": "action"; }, {}, never, never, false>;
|
|
9
|
-
}
|
|
1
|
+
import { ActionType } from '../../enums/action-type.enum';
|
|
2
|
+
import { Action } from '../../models/action.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FsFilterActionButtonComponent {
|
|
5
|
+
ActionType: typeof ActionType;
|
|
6
|
+
action: Action;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterActionButtonComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterActionButtonComponent, "fs-filter-action-button", never, { "action": { "alias": "action"; "required": false; }; }, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Action } from '../../models/action.model';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FsFilterActionKebabActionsComponent {
|
|
4
|
-
kebabActions: Action[];
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterActionKebabActionsComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterActionKebabActionsComponent, "fs-filter-action-kebab-actions", never, { "kebabActions": "kebabActions"; }, {}, never, never, false>;
|
|
7
|
-
}
|
|
1
|
+
import { Action } from '../../models/action.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FsFilterActionKebabActionsComponent {
|
|
4
|
+
kebabActions: Action[];
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterActionKebabActionsComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterActionKebabActionsComponent, "fs-filter-action-kebab-actions", never, { "kebabActions": { "alias": "kebabActions"; "required": false; }; }, {}, never, never, false, never>;
|
|
7
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { MatSelect } from '@angular/material/select';
|
|
2
|
-
import { ActionMode, ActionType } from '../../enums';
|
|
3
|
-
import { Action } from '../../models/action.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsFilterActionsComponent {
|
|
6
|
-
kebabActions: Action[];
|
|
7
|
-
actions: Action[];
|
|
8
|
-
ActionType: typeof ActionType;
|
|
9
|
-
ActionMode: typeof ActionMode;
|
|
10
|
-
actionChange(action: Action, value: any, selectButton: MatSelect): void;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterActionsComponent, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterActionsComponent, "fs-filter-actions", never, { "kebabActions": "kebabActions"; "actions": "actions"; }, {}, never, never, false>;
|
|
13
|
-
}
|
|
1
|
+
import { MatSelect } from '@angular/material/select';
|
|
2
|
+
import { ActionMode, ActionType } from '../../enums';
|
|
3
|
+
import { Action } from '../../models/action.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FsFilterActionsComponent {
|
|
6
|
+
kebabActions: Action[];
|
|
7
|
+
actions: Action[];
|
|
8
|
+
ActionType: typeof ActionType;
|
|
9
|
+
ActionMode: typeof ActionMode;
|
|
10
|
+
actionChange(action: Action, value: any, selectButton: MatSelect): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterActionsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterActionsComponent, "fs-filter-actions", never, { "kebabActions": { "alias": "kebabActions"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
+
}
|
|
@@ -1,204 +1,204 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { MatInput } from '@angular/material/input';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import { ActionsController } from '../../classes/actions-controller';
|
|
5
|
-
import { IFilterSavedFilter, ISortingChangeEvent } from '../../interfaces';
|
|
6
|
-
import { FsFilterAction } from '../../interfaces/action.interface';
|
|
7
|
-
import { IFilterConfigItem, SortItem } from '../../interfaces/config.interface';
|
|
8
|
-
import { IUpdateFilterItemConfig } from '../../interfaces/update-filter-item.interface';
|
|
9
|
-
import { FsFilterConfig } from '../../models/filter-config';
|
|
10
|
-
import { BaseItem } from '../../models/items/base-item';
|
|
11
|
-
import { TextItem } from '../../models/items/text-item';
|
|
12
|
-
import { ExternalParamsController } from '../../services/external-params-controller.service';
|
|
13
|
-
import { SavedFiltersController } from '../../services/external-params/saved-filters-controller.service';
|
|
14
|
-
import { FsFilterOverlayService } from '../../services/filter-overlay.service';
|
|
15
|
-
import { FsFilterItemsStore } from '../../services/items-store.service';
|
|
16
|
-
import { FilterStatusBarDirective } from './../../directives/status-bar/status-bar.directive';
|
|
17
|
-
import * as i0 from "@angular/core";
|
|
18
|
-
export declare class FilterComponent implements OnInit, OnDestroy {
|
|
19
|
-
private _defaultConfig;
|
|
20
|
-
private _filterOverlay;
|
|
21
|
-
private _zone;
|
|
22
|
-
private _externalParams;
|
|
23
|
-
private _filterItems;
|
|
24
|
-
private _actions;
|
|
25
|
-
private _savedFiltersController;
|
|
26
|
-
private _externalParamsController;
|
|
27
|
-
set setConfig(config: any);
|
|
28
|
-
set setFilter(config: any);
|
|
29
|
-
showSortBy: any;
|
|
30
|
-
showFilterInput: boolean;
|
|
31
|
-
closed: EventEmitter<any>;
|
|
32
|
-
opened: EventEmitter<any>;
|
|
33
|
-
ready: EventEmitter<void>;
|
|
34
|
-
statusBar: FilterStatusBarDirective;
|
|
35
|
-
keywordMatInput: MatInput;
|
|
36
|
-
reloadEl: ElementRef;
|
|
37
|
-
showFilterMenu: boolean;
|
|
38
|
-
windowDesktop: boolean;
|
|
39
|
-
fsFilterClass: boolean;
|
|
40
|
-
get hasKeyword(): boolean;
|
|
41
|
-
searchPlaceholder: string;
|
|
42
|
-
keyword: string;
|
|
43
|
-
autoReload: boolean;
|
|
44
|
-
protected _config: FsFilterConfig;
|
|
45
|
-
private _sort;
|
|
46
|
-
private _filtersBtnVisible$;
|
|
47
|
-
private _keywordVisible$;
|
|
48
|
-
private _hasFilterChips$;
|
|
49
|
-
private _keyword$;
|
|
50
|
-
private _destroy$;
|
|
51
|
-
constructor(_defaultConfig: FsFilterConfig, _filterOverlay: FsFilterOverlayService, _zone: NgZone, _externalParams: ExternalParamsController, _filterItems: FsFilterItemsStore, _actions: ActionsController, _savedFiltersController: SavedFiltersController, _externalParamsController: ExternalParamsController);
|
|
52
|
-
get config(): FsFilterConfig;
|
|
53
|
-
get filterParams(): Record<string, unknown>;
|
|
54
|
-
get filterParamsQuery(): Record<string, unknown>;
|
|
55
|
-
get items(): BaseItem<IFilterConfigItem>[];
|
|
56
|
-
get visibleItems(): BaseItem<IFilterConfigItem>[];
|
|
57
|
-
get keywordItem(): TextItem | null;
|
|
58
|
-
get itemsReady$(): Observable<boolean>;
|
|
59
|
-
get hasFilterChips$(): Observable<boolean>;
|
|
60
|
-
get hasVisibleItemOrSorting(): boolean;
|
|
61
|
-
get filtersBtnVisible$(): Observable<boolean>;
|
|
62
|
-
get keywordVisible$(): Observable<boolean>;
|
|
63
|
-
get actionsVisible$(): Observable<boolean>;
|
|
64
|
-
get actions$(): Observable<import("../../models/action.model").Action[]>;
|
|
65
|
-
get menuActions$(): Observable<import("../../models/action.model").Action[]>;
|
|
66
|
-
set activeSavedFilter(savedFilter: IFilterSavedFilter);
|
|
67
|
-
get activeSavedFilter(): IFilterSavedFilter;
|
|
68
|
-
get savedFilters(): IFilterSavedFilter[];
|
|
69
|
-
ngOnInit(): void;
|
|
70
|
-
ngOnDestroy(): void;
|
|
71
|
-
focus(): void;
|
|
72
|
-
updateSort(sort: ISortingChangeEvent): void;
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* Do update value of some field
|
|
76
|
-
*
|
|
77
|
-
* @param values - values for update
|
|
78
|
-
*
|
|
79
|
-
* To update text value just pass new text value
|
|
80
|
-
*
|
|
81
|
-
* public updateSelectValue(val) {
|
|
82
|
-
* this.filterEl.updateValues({ keyword: val });
|
|
83
|
-
* }
|
|
84
|
-
*
|
|
85
|
-
* To update select or observable select you could pass suitable value
|
|
86
|
-
*
|
|
87
|
-
* public updateSelectValue(val: number) {
|
|
88
|
-
* this.filterEl.updateValues({ simple_select: val }, { observable_select: val });
|
|
89
|
-
* }
|
|
90
|
-
*
|
|
91
|
-
* To update checkbox value just pass true/false as value
|
|
92
|
-
*
|
|
93
|
-
* public updateCheckox(val: boolean) {
|
|
94
|
-
* this.filterEl.updateValues({ checkbox: val });
|
|
95
|
-
* }
|
|
96
|
-
*
|
|
97
|
-
* To update range value just pass object with min&max object or just with one of targets
|
|
98
|
-
*
|
|
99
|
-
* Ex.: { min: 10, max 15 }, { min: 5 }, { max 5 }
|
|
100
|
-
*
|
|
101
|
-
* public updateRange(val) {
|
|
102
|
-
* this.filterEl.updateValues({ range: val });
|
|
103
|
-
* }
|
|
104
|
-
*
|
|
105
|
-
* To update autocomplete just pass object with name/value fields
|
|
106
|
-
*
|
|
107
|
-
* Ex.: { name: 'John Doe', value: 1 }
|
|
108
|
-
*
|
|
109
|
-
* public updateAutocomplete(val) {
|
|
110
|
-
* this.filterEl.updateValues({ autocomplete_user_id: val });
|
|
111
|
-
* }
|
|
112
|
-
*
|
|
113
|
-
* To update autocompletechips just pass:
|
|
114
|
-
*
|
|
115
|
-
* 1) object with name/value fields - will be appended to existing set of values
|
|
116
|
-
*
|
|
117
|
-
* { name: 'John Doe', value: 1 }
|
|
118
|
-
*
|
|
119
|
-
* 2) array of objects - will be appended to existing set of values
|
|
120
|
-
*
|
|
121
|
-
* [{ name: 'John Doe', value: 1 }, { name: 'Darya Filipova', value: 2 }]
|
|
122
|
-
*
|
|
123
|
-
* 3) null - clear existing set of values
|
|
124
|
-
*
|
|
125
|
-
* public updateAutocomplete(val) {
|
|
126
|
-
* this.filterEl.updateValues({ autocompletechips_user_id: val });
|
|
127
|
-
* }
|
|
128
|
-
*
|
|
129
|
-
*/
|
|
130
|
-
updateValues(values: any): void;
|
|
131
|
-
hide(): void;
|
|
132
|
-
show(): void;
|
|
133
|
-
changeVisibilityClick(value: any, event?: any): void;
|
|
134
|
-
get itemValues(): any[];
|
|
135
|
-
get nonEmptyItemValues(): any[];
|
|
136
|
-
get hasItemValues(): boolean;
|
|
137
|
-
getItemValue(name: string): any;
|
|
138
|
-
showItem(name: string): void;
|
|
139
|
-
hideItem(name: string): void;
|
|
140
|
-
clearItem(name: string): void;
|
|
141
|
-
updateItemConfig(name: string, params: IUpdateFilterItemConfig): void;
|
|
142
|
-
getItemValueChange$(name: string): Observable<any> | null;
|
|
143
|
-
changeVisibility(state: boolean): void;
|
|
144
|
-
init(): void;
|
|
145
|
-
clear(event?: any): void;
|
|
146
|
-
/**
|
|
147
|
-
* Close filter window and do change callback
|
|
148
|
-
*/
|
|
149
|
-
search(event: any): void;
|
|
150
|
-
reload(event?: any): void;
|
|
151
|
-
getItem(name: any): BaseItem<any>;
|
|
152
|
-
fetchQueryParams(): void;
|
|
153
|
-
/**
|
|
154
|
-
* Call change callback and apply new filter values
|
|
155
|
-
*/
|
|
156
|
-
change(): void;
|
|
157
|
-
/**
|
|
158
|
-
* Update filter actions config
|
|
159
|
-
*
|
|
160
|
-
* @param actions
|
|
161
|
-
*/
|
|
162
|
-
updateActions(actions: FsFilterAction[]): void;
|
|
163
|
-
/**
|
|
164
|
-
* Show "Filters" button
|
|
165
|
-
*/
|
|
166
|
-
showFiltersBtn(): void;
|
|
167
|
-
/**
|
|
168
|
-
* Hide "Filters" button
|
|
169
|
-
*/
|
|
170
|
-
hideFiltersBtn(): void;
|
|
171
|
-
/**
|
|
172
|
-
* Show "Keyword" field if it present
|
|
173
|
-
*/
|
|
174
|
-
showKeywordField(): void;
|
|
175
|
-
/**
|
|
176
|
-
* Hide "Keyword" field if it present
|
|
177
|
-
*/
|
|
178
|
-
hideKeywordField(): void;
|
|
179
|
-
/**
|
|
180
|
-
* Go through actions and check show() callback and update visible actions
|
|
181
|
-
*/
|
|
182
|
-
updateActionsVisibility(): void;
|
|
183
|
-
/**
|
|
184
|
-
* Go through actions and check disabled() callback and update disabled state
|
|
185
|
-
*/
|
|
186
|
-
updateDisabledState(): void;
|
|
187
|
-
setItems(items: IFilterConfigItem[]): void;
|
|
188
|
-
keywordChange(keyword: any): void;
|
|
189
|
-
updateSortings(items: SortItem[]): void;
|
|
190
|
-
private _initFilterWithConfig;
|
|
191
|
-
private _destroyFilterDrawer;
|
|
192
|
-
private _updateWindowWidth;
|
|
193
|
-
private _listenEscButton;
|
|
194
|
-
private _listenWindowResize;
|
|
195
|
-
private _initAutoReload;
|
|
196
|
-
private _listenInputChanges;
|
|
197
|
-
private _syncSearchInputWithKeyword;
|
|
198
|
-
private _listenInternalItemsChange;
|
|
199
|
-
private _initOverlay;
|
|
200
|
-
private _listenWhenFilterReady;
|
|
201
|
-
private _updateChipsVisibility;
|
|
202
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, [{ optional: true; }, null, null, null, null, null, null, null]>;
|
|
203
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "fs-filter", never, { "setConfig": "config"; "setFilter": "filter"; "showSortBy": "showSortBy"; "showFilterInput": "showFilterInput"; }, { "closed": "closed"; "opened": "opened"; "ready": "ready"; }, ["statusBar"], never, false>;
|
|
204
|
-
}
|
|
1
|
+
import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatInput } from '@angular/material/input';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ActionsController } from '../../classes/actions-controller';
|
|
5
|
+
import { IFilterSavedFilter, ISortingChangeEvent } from '../../interfaces';
|
|
6
|
+
import { FsFilterAction } from '../../interfaces/action.interface';
|
|
7
|
+
import { IFilterConfigItem, SortItem } from '../../interfaces/config.interface';
|
|
8
|
+
import { IUpdateFilterItemConfig } from '../../interfaces/update-filter-item.interface';
|
|
9
|
+
import { FsFilterConfig } from '../../models/filter-config';
|
|
10
|
+
import { BaseItem } from '../../models/items/base-item';
|
|
11
|
+
import { TextItem } from '../../models/items/text-item';
|
|
12
|
+
import { ExternalParamsController } from '../../services/external-params-controller.service';
|
|
13
|
+
import { SavedFiltersController } from '../../services/external-params/saved-filters-controller.service';
|
|
14
|
+
import { FsFilterOverlayService } from '../../services/filter-overlay.service';
|
|
15
|
+
import { FsFilterItemsStore } from '../../services/items-store.service';
|
|
16
|
+
import { FilterStatusBarDirective } from './../../directives/status-bar/status-bar.directive';
|
|
17
|
+
import * as i0 from "@angular/core";
|
|
18
|
+
export declare class FilterComponent implements OnInit, OnDestroy {
|
|
19
|
+
private _defaultConfig;
|
|
20
|
+
private _filterOverlay;
|
|
21
|
+
private _zone;
|
|
22
|
+
private _externalParams;
|
|
23
|
+
private _filterItems;
|
|
24
|
+
private _actions;
|
|
25
|
+
private _savedFiltersController;
|
|
26
|
+
private _externalParamsController;
|
|
27
|
+
set setConfig(config: any);
|
|
28
|
+
set setFilter(config: any);
|
|
29
|
+
showSortBy: any;
|
|
30
|
+
showFilterInput: boolean;
|
|
31
|
+
closed: EventEmitter<any>;
|
|
32
|
+
opened: EventEmitter<any>;
|
|
33
|
+
ready: EventEmitter<void>;
|
|
34
|
+
statusBar: FilterStatusBarDirective;
|
|
35
|
+
keywordMatInput: MatInput;
|
|
36
|
+
reloadEl: ElementRef;
|
|
37
|
+
showFilterMenu: boolean;
|
|
38
|
+
windowDesktop: boolean;
|
|
39
|
+
fsFilterClass: boolean;
|
|
40
|
+
get hasKeyword(): boolean;
|
|
41
|
+
searchPlaceholder: string;
|
|
42
|
+
keyword: string;
|
|
43
|
+
autoReload: boolean;
|
|
44
|
+
protected _config: FsFilterConfig;
|
|
45
|
+
private _sort;
|
|
46
|
+
private _filtersBtnVisible$;
|
|
47
|
+
private _keywordVisible$;
|
|
48
|
+
private _hasFilterChips$;
|
|
49
|
+
private _keyword$;
|
|
50
|
+
private _destroy$;
|
|
51
|
+
constructor(_defaultConfig: FsFilterConfig, _filterOverlay: FsFilterOverlayService, _zone: NgZone, _externalParams: ExternalParamsController, _filterItems: FsFilterItemsStore, _actions: ActionsController, _savedFiltersController: SavedFiltersController, _externalParamsController: ExternalParamsController);
|
|
52
|
+
get config(): FsFilterConfig;
|
|
53
|
+
get filterParams(): Record<string, unknown>;
|
|
54
|
+
get filterParamsQuery(): Record<string, unknown>;
|
|
55
|
+
get items(): BaseItem<IFilterConfigItem>[];
|
|
56
|
+
get visibleItems(): BaseItem<IFilterConfigItem>[];
|
|
57
|
+
get keywordItem(): TextItem | null;
|
|
58
|
+
get itemsReady$(): Observable<boolean>;
|
|
59
|
+
get hasFilterChips$(): Observable<boolean>;
|
|
60
|
+
get hasVisibleItemOrSorting(): boolean;
|
|
61
|
+
get filtersBtnVisible$(): Observable<boolean>;
|
|
62
|
+
get keywordVisible$(): Observable<boolean>;
|
|
63
|
+
get actionsVisible$(): Observable<boolean>;
|
|
64
|
+
get actions$(): Observable<import("../../models/action.model").Action[]>;
|
|
65
|
+
get menuActions$(): Observable<import("../../models/action.model").Action[]>;
|
|
66
|
+
set activeSavedFilter(savedFilter: IFilterSavedFilter);
|
|
67
|
+
get activeSavedFilter(): IFilterSavedFilter;
|
|
68
|
+
get savedFilters(): IFilterSavedFilter[];
|
|
69
|
+
ngOnInit(): void;
|
|
70
|
+
ngOnDestroy(): void;
|
|
71
|
+
focus(): void;
|
|
72
|
+
updateSort(sort: ISortingChangeEvent): void;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* Do update value of some field
|
|
76
|
+
*
|
|
77
|
+
* @param values - values for update
|
|
78
|
+
*
|
|
79
|
+
* To update text value just pass new text value
|
|
80
|
+
*
|
|
81
|
+
* public updateSelectValue(val) {
|
|
82
|
+
* this.filterEl.updateValues({ keyword: val });
|
|
83
|
+
* }
|
|
84
|
+
*
|
|
85
|
+
* To update select or observable select you could pass suitable value
|
|
86
|
+
*
|
|
87
|
+
* public updateSelectValue(val: number) {
|
|
88
|
+
* this.filterEl.updateValues({ simple_select: val }, { observable_select: val });
|
|
89
|
+
* }
|
|
90
|
+
*
|
|
91
|
+
* To update checkbox value just pass true/false as value
|
|
92
|
+
*
|
|
93
|
+
* public updateCheckox(val: boolean) {
|
|
94
|
+
* this.filterEl.updateValues({ checkbox: val });
|
|
95
|
+
* }
|
|
96
|
+
*
|
|
97
|
+
* To update range value just pass object with min&max object or just with one of targets
|
|
98
|
+
*
|
|
99
|
+
* Ex.: { min: 10, max 15 }, { min: 5 }, { max 5 }
|
|
100
|
+
*
|
|
101
|
+
* public updateRange(val) {
|
|
102
|
+
* this.filterEl.updateValues({ range: val });
|
|
103
|
+
* }
|
|
104
|
+
*
|
|
105
|
+
* To update autocomplete just pass object with name/value fields
|
|
106
|
+
*
|
|
107
|
+
* Ex.: { name: 'John Doe', value: 1 }
|
|
108
|
+
*
|
|
109
|
+
* public updateAutocomplete(val) {
|
|
110
|
+
* this.filterEl.updateValues({ autocomplete_user_id: val });
|
|
111
|
+
* }
|
|
112
|
+
*
|
|
113
|
+
* To update autocompletechips just pass:
|
|
114
|
+
*
|
|
115
|
+
* 1) object with name/value fields - will be appended to existing set of values
|
|
116
|
+
*
|
|
117
|
+
* { name: 'John Doe', value: 1 }
|
|
118
|
+
*
|
|
119
|
+
* 2) array of objects - will be appended to existing set of values
|
|
120
|
+
*
|
|
121
|
+
* [{ name: 'John Doe', value: 1 }, { name: 'Darya Filipova', value: 2 }]
|
|
122
|
+
*
|
|
123
|
+
* 3) null - clear existing set of values
|
|
124
|
+
*
|
|
125
|
+
* public updateAutocomplete(val) {
|
|
126
|
+
* this.filterEl.updateValues({ autocompletechips_user_id: val });
|
|
127
|
+
* }
|
|
128
|
+
*
|
|
129
|
+
*/
|
|
130
|
+
updateValues(values: any): void;
|
|
131
|
+
hide(): void;
|
|
132
|
+
show(): void;
|
|
133
|
+
changeVisibilityClick(value: any, event?: any): void;
|
|
134
|
+
get itemValues(): any[];
|
|
135
|
+
get nonEmptyItemValues(): any[];
|
|
136
|
+
get hasItemValues(): boolean;
|
|
137
|
+
getItemValue(name: string): any;
|
|
138
|
+
showItem(name: string): void;
|
|
139
|
+
hideItem(name: string): void;
|
|
140
|
+
clearItem(name: string): void;
|
|
141
|
+
updateItemConfig(name: string, params: IUpdateFilterItemConfig): void;
|
|
142
|
+
getItemValueChange$(name: string): Observable<any> | null;
|
|
143
|
+
changeVisibility(state: boolean): void;
|
|
144
|
+
init(): void;
|
|
145
|
+
clear(event?: any): void;
|
|
146
|
+
/**
|
|
147
|
+
* Close filter window and do change callback
|
|
148
|
+
*/
|
|
149
|
+
search(event: any): void;
|
|
150
|
+
reload(event?: any): void;
|
|
151
|
+
getItem(name: any): BaseItem<any>;
|
|
152
|
+
fetchQueryParams(): void;
|
|
153
|
+
/**
|
|
154
|
+
* Call change callback and apply new filter values
|
|
155
|
+
*/
|
|
156
|
+
change(): void;
|
|
157
|
+
/**
|
|
158
|
+
* Update filter actions config
|
|
159
|
+
*
|
|
160
|
+
* @param actions
|
|
161
|
+
*/
|
|
162
|
+
updateActions(actions: FsFilterAction[]): void;
|
|
163
|
+
/**
|
|
164
|
+
* Show "Filters" button
|
|
165
|
+
*/
|
|
166
|
+
showFiltersBtn(): void;
|
|
167
|
+
/**
|
|
168
|
+
* Hide "Filters" button
|
|
169
|
+
*/
|
|
170
|
+
hideFiltersBtn(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Show "Keyword" field if it present
|
|
173
|
+
*/
|
|
174
|
+
showKeywordField(): void;
|
|
175
|
+
/**
|
|
176
|
+
* Hide "Keyword" field if it present
|
|
177
|
+
*/
|
|
178
|
+
hideKeywordField(): void;
|
|
179
|
+
/**
|
|
180
|
+
* Go through actions and check show() callback and update visible actions
|
|
181
|
+
*/
|
|
182
|
+
updateActionsVisibility(): void;
|
|
183
|
+
/**
|
|
184
|
+
* Go through actions and check disabled() callback and update disabled state
|
|
185
|
+
*/
|
|
186
|
+
updateDisabledState(): void;
|
|
187
|
+
setItems(items: IFilterConfigItem[]): void;
|
|
188
|
+
keywordChange(keyword: any): void;
|
|
189
|
+
updateSortings(items: SortItem[]): void;
|
|
190
|
+
private _initFilterWithConfig;
|
|
191
|
+
private _destroyFilterDrawer;
|
|
192
|
+
private _updateWindowWidth;
|
|
193
|
+
private _listenEscButton;
|
|
194
|
+
private _listenWindowResize;
|
|
195
|
+
private _initAutoReload;
|
|
196
|
+
private _listenInputChanges;
|
|
197
|
+
private _syncSearchInputWithKeyword;
|
|
198
|
+
private _listenInternalItemsChange;
|
|
199
|
+
private _initOverlay;
|
|
200
|
+
private _listenWhenFilterReady;
|
|
201
|
+
private _updateChipsVisibility;
|
|
202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterComponent, [{ optional: true; }, null, null, null, null, null, null, null]>;
|
|
203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterComponent, "fs-filter", never, { "setConfig": { "alias": "config"; "required": false; }; "setFilter": { "alias": "filter"; "required": false; }; "showSortBy": { "alias": "showSortBy"; "required": false; }; "showFilterInput": { "alias": "showFilterInput"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; "ready": "ready"; }, ["statusBar"], never, false, never>;
|
|
204
|
+
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { IFilterConfigItem } from '../../interfaces/config.interface';
|
|
4
|
-
import { BaseItem } from '../../models/items/base-item';
|
|
5
|
-
import { FocusControllerService } from '../../services/focus-controller.service';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class FsFilterChipComponent implements OnInit, OnDestroy {
|
|
8
|
-
private _cdRef;
|
|
9
|
-
private _focusController;
|
|
10
|
-
item: BaseItem<IFilterConfigItem>;
|
|
11
|
-
itemVisible: boolean;
|
|
12
|
-
rangeItem: boolean;
|
|
13
|
-
chipDelayedRender$: Observable<boolean>;
|
|
14
|
-
private _chipRenderTimer$;
|
|
15
|
-
private _destroy$;
|
|
16
|
-
constructor(_cdRef: ChangeDetectorRef, _focusController: FocusControllerService);
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
ngOnDestroy(): void;
|
|
19
|
-
focusOnItem(type?: any): void;
|
|
20
|
-
removeItem(event: MouseEvent, type?: any): void;
|
|
21
|
-
listenValueChangesForRanges(): void;
|
|
22
|
-
private _updateVisibility;
|
|
23
|
-
private _initDelayRender;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterChipComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterChipComponent, "fs-filter-chip", never, { "item": "item"; }, {}, never, never, false>;
|
|
26
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { IFilterConfigItem } from '../../interfaces/config.interface';
|
|
4
|
+
import { BaseItem } from '../../models/items/base-item';
|
|
5
|
+
import { FocusControllerService } from '../../services/focus-controller.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FsFilterChipComponent implements OnInit, OnDestroy {
|
|
8
|
+
private _cdRef;
|
|
9
|
+
private _focusController;
|
|
10
|
+
item: BaseItem<IFilterConfigItem>;
|
|
11
|
+
itemVisible: boolean;
|
|
12
|
+
rangeItem: boolean;
|
|
13
|
+
chipDelayedRender$: Observable<boolean>;
|
|
14
|
+
private _chipRenderTimer$;
|
|
15
|
+
private _destroy$;
|
|
16
|
+
constructor(_cdRef: ChangeDetectorRef, _focusController: FocusControllerService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
focusOnItem(type?: any): void;
|
|
20
|
+
removeItem(event: MouseEvent, type?: any): void;
|
|
21
|
+
listenValueChangesForRanges(): void;
|
|
22
|
+
private _updateVisibility;
|
|
23
|
+
private _initDelayRender;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterChipComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterChipComponent, "fs-filter-chip", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { BaseItem } from '../../models/items/base-item';
|
|
3
|
-
import { IFilterConfigItem } from '../../interfaces/config.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FsFilterChipContentComponent implements OnInit, OnDestroy {
|
|
6
|
-
private _cdRef;
|
|
7
|
-
item: BaseItem<IFilterConfigItem>;
|
|
8
|
-
type: 'from' | 'to';
|
|
9
|
-
content: any;
|
|
10
|
-
private _destroy$;
|
|
11
|
-
constructor(_cdRef: ChangeDetectorRef);
|
|
12
|
-
ngOnInit(): void;
|
|
13
|
-
ngOnDestroy(): void;
|
|
14
|
-
listenValueChangesForRanges(): void;
|
|
15
|
-
private _getContent;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterChipContentComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterChipContentComponent, "fs-filter-chip-content", never, { "item": "item"; "type": "type"; }, {}, never, never, false>;
|
|
18
|
-
}
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BaseItem } from '../../models/items/base-item';
|
|
3
|
+
import { IFilterConfigItem } from '../../interfaces/config.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FsFilterChipContentComponent implements OnInit, OnDestroy {
|
|
6
|
+
private _cdRef;
|
|
7
|
+
item: BaseItem<IFilterConfigItem>;
|
|
8
|
+
type: 'from' | 'to';
|
|
9
|
+
content: any;
|
|
10
|
+
private _destroy$;
|
|
11
|
+
constructor(_cdRef: ChangeDetectorRef);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnDestroy(): void;
|
|
14
|
+
listenValueChangesForRanges(): void;
|
|
15
|
+
private _getContent;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterChipContentComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsFilterChipContentComponent, "fs-filter-chip-content", never, { "item": { "alias": "item"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
}
|