@firestitch/filter 13.0.10 → 13.0.11

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