@firestitch/filter 16.0.0 → 16.0.1
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 -17
- 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 -19
- 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 -21
- 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 +129 -129
- package/esm2022/app/components/action-button/action-button.component.mjs +20 -20
- package/esm2022/app/components/action-kebab-actions/action-kebab-actions.component.mjs +17 -17
- package/esm2022/app/components/actions/actions.component.mjs +39 -39
- package/esm2022/app/components/filter/filter.component.mjs +625 -625
- package/esm2022/app/components/filter-chip/filter-chip.component.mjs +91 -91
- package/esm2022/app/components/filter-chip-content/filter-chip-content.component.mjs +82 -82
- package/esm2022/app/components/filter-chips/filter-chips.component.mjs +17 -17
- package/esm2022/app/components/filter-drawer/filter-drawer.component.mjs +77 -77
- package/esm2022/app/components/filter-drawer-actions/filter-drawer-actions.component.mjs +26 -26
- package/esm2022/app/components/filters-item/autocomplete/autocomplete.component.mjs +28 -28
- package/esm2022/app/components/filters-item/autocompletechips/autocompletechips.component.mjs +43 -43
- package/esm2022/app/components/filters-item/base-item/base-item.component.mjs +67 -67
- package/esm2022/app/components/filters-item/checkbox/checkbox.component.mjs +22 -22
- package/esm2022/app/components/filters-item/chips/chips.component.mjs +29 -29
- package/esm2022/app/components/filters-item/date/date.component.mjs +44 -44
- package/esm2022/app/components/filters-item/date-range/date-range.component.mjs +35 -35
- package/esm2022/app/components/filters-item/filter-item.component.mjs +81 -81
- package/esm2022/app/components/filters-item/range/range.component.mjs +48 -48
- package/esm2022/app/components/filters-item/select/backdrop/backdrop.component.mjs +11 -11
- package/esm2022/app/components/filters-item/select/groups/groups.component.mjs +32 -32
- package/esm2022/app/components/filters-item/select/multiple/multiple.component.mjs +59 -59
- package/esm2022/app/components/filters-item/select/select.component.mjs +54 -54
- package/esm2022/app/components/filters-item/select/simple/simple.component.mjs +45 -45
- package/esm2022/app/components/filters-item/text/text.component.mjs +50 -50
- package/esm2022/app/components/filters-item/week/week.component.mjs +25 -25
- package/esm2022/app/components/saved-filter/index.mjs +3 -3
- package/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 +54 -54
- package/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 +44 -44
- package/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 +60 -60
- package/esm2022/app/consts/query-param-delimiter.mjs +1 -1
- package/esm2022/app/directives/focus-to-item/focus-to-item.directive.mjs +140 -140
- package/esm2022/app/directives/status-bar/status-bar.directive.mjs +16 -16
- package/esm2022/app/enums/action-mode.enum.mjs +7 -7
- package/esm2022/app/enums/action-type.enum.mjs +10 -10
- package/esm2022/app/enums/button-style.mjs +10 -10
- package/esm2022/app/enums/index.mjs +6 -6
- package/esm2022/app/enums/item-date-mode.enum.mjs +6 -6
- package/esm2022/app/enums/item-type.enum.mjs +16 -16
- package/esm2022/app/enums/picker-view-type.enum.mjs +8 -8
- package/esm2022/app/fs-filter.module.mjs +260 -260
- package/esm2022/app/helpers/build-query-params.mjs +32 -32
- package/esm2022/app/helpers/compare.mjs +37 -37
- package/esm2022/app/helpers/create-filter-item.mjs +54 -54
- package/esm2022/app/helpers/find-value.mjs +12 -12
- package/esm2022/app/helpers/get-range-name.mjs +3 -3
- package/esm2022/app/helpers/parse-date.mjs +7 -7
- package/esm2022/app/helpers/parse-item-value-from-stored.mjs +76 -76
- package/esm2022/app/helpers/query-param-transformers.mjs +8 -8
- package/esm2022/app/helpers/restore-items.mjs +48 -48
- package/esm2022/app/injectors/filter-config.mjs +2 -2
- package/esm2022/app/injectors/filter-drawer-data.mjs +2 -2
- package/esm2022/app/injectors/filter-drawer-overlay.mjs +2 -2
- package/esm2022/app/interfaces/action.interface.mjs +1 -1
- package/esm2022/app/interfaces/config.interface.mjs +1 -1
- package/esm2022/app/interfaces/external-params.interface.mjs +1 -1
- package/esm2022/app/interfaces/filter.interface.mjs +1 -1
- package/esm2022/app/interfaces/index.mjs +6 -6
- package/esm2022/app/interfaces/items/autocomplete-chips.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/autocomplete.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/base.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/checkbox.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/chips.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/date-range.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/date.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/range.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/select.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/text.interface.mjs +1 -1
- package/esm2022/app/interfaces/items/week.interface.mjs +1 -1
- package/esm2022/app/interfaces/saved-filters.interface.mjs +1 -1
- package/esm2022/app/interfaces/update-filter-item.interface.mjs +1 -1
- package/esm2022/app/models/action-menu-item.model.mjs +72 -72
- package/esm2022/app/models/action.model.mjs +155 -155
- package/esm2022/app/models/filter-config.mjs +78 -78
- package/esm2022/app/models/items/autocomplete/base-autocomplete-item.mjs +15 -15
- package/esm2022/app/models/items/autocomplete-chips-item.mjs +66 -66
- package/esm2022/app/models/items/autocomplete-item.mjs +32 -32
- package/esm2022/app/models/items/base-item.mjs +250 -250
- package/esm2022/app/models/items/checkbox-item.mjs +51 -51
- package/esm2022/app/models/items/chips-item.mjs +89 -89
- package/esm2022/app/models/items/date/base-date-item.mjs +49 -49
- package/esm2022/app/models/items/date-item.mjs +18 -18
- package/esm2022/app/models/items/date-range/base-date-range-item.mjs +123 -123
- package/esm2022/app/models/items/date-range-item.mjs +6 -6
- package/esm2022/app/models/items/date-time-item.mjs +9 -9
- package/esm2022/app/models/items/date-time-range-item.mjs +6 -6
- package/esm2022/app/models/items/range-item.mjs +84 -84
- package/esm2022/app/models/items/select/base-select-item.mjs +39 -39
- package/esm2022/app/models/items/select/multiple-select-item.mjs +87 -87
- package/esm2022/app/models/items/select/simple-select-item.mjs +65 -65
- package/esm2022/app/models/items/select-item.mjs +11 -11
- package/esm2022/app/models/items/text-item.mjs +35 -35
- package/esm2022/app/models/items/week-item.mjs +94 -94
- package/esm2022/app/pipes/remove-isolate-value.pipe.mjs +20 -20
- package/esm2022/app/providers/filter-meta.mjs +9 -9
- package/esm2022/app/services/external-params/persistance-params-controller.service.mjs +61 -61
- package/esm2022/app/services/external-params/query-params-controller.service.mjs +65 -65
- package/esm2022/app/services/external-params/saved-filters-controller.service.mjs +166 -166
- package/esm2022/app/services/external-params-controller.service.mjs +184 -184
- package/esm2022/app/services/filter-overlay.service.mjs +129 -129
- package/esm2022/app/services/focus-controller.service.mjs +28 -28
- package/esm2022/app/services/items-store.service.mjs +346 -346
- package/esm2022/firestitch-filter.mjs +4 -4
- package/esm2022/public_api.mjs +35 -35
- package/fesm2022/firestitch-filter.mjs +4516 -4516
- package/index.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +40 -40
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { Injector, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Overlay } from '@angular/cdk/overlay';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
4
|
-
import { HtmlClassRenderer } from '@firestitch/html';
|
|
5
|
-
import { FilterDrawerComponent } from '../components/filter-drawer/filter-drawer.component';
|
|
6
|
-
import { FsFilterMeta } from '../providers/filter-meta';
|
|
7
|
-
import { FocusControllerService } from './focus-controller.service';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class FsFilterOverlayService implements OnDestroy {
|
|
10
|
-
private _filterMeta;
|
|
11
|
-
private _injector;
|
|
12
|
-
private _overlay;
|
|
13
|
-
private _focusController;
|
|
14
|
-
private _htmlClassRenderer;
|
|
15
|
-
detach$: Subject<unknown>;
|
|
16
|
-
attach$: Subject<unknown>;
|
|
17
|
-
private _clearFn;
|
|
18
|
-
private _doneFn;
|
|
19
|
-
private _destroy$;
|
|
20
|
-
private _overlayRef;
|
|
21
|
-
constructor(_filterMeta: FsFilterMeta, _injector: Injector, _overlay: Overlay, _focusController: FocusControllerService, _htmlClassRenderer: HtmlClassRenderer);
|
|
22
|
-
get isOpened(): boolean;
|
|
23
|
-
setClearFn(fn: Function): void;
|
|
24
|
-
setDoneFn(fn: Function): void;
|
|
25
|
-
close(): void;
|
|
26
|
-
open(): FilterDrawerComponent;
|
|
27
|
-
ngOnDestroy(): void;
|
|
28
|
-
private _createOverlay;
|
|
29
|
-
private _openPortalPreview;
|
|
30
|
-
private _createInjector;
|
|
31
|
-
private _removeFilterClass;
|
|
32
|
-
private _addFilterClass;
|
|
33
|
-
private _openWhenChipClicked;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterOverlayService, never>;
|
|
35
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FsFilterOverlayService>;
|
|
36
|
-
}
|
|
1
|
+
import { Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { Overlay } from '@angular/cdk/overlay';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { HtmlClassRenderer } from '@firestitch/html';
|
|
5
|
+
import { FilterDrawerComponent } from '../components/filter-drawer/filter-drawer.component';
|
|
6
|
+
import { FsFilterMeta } from '../providers/filter-meta';
|
|
7
|
+
import { FocusControllerService } from './focus-controller.service';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class FsFilterOverlayService implements OnDestroy {
|
|
10
|
+
private _filterMeta;
|
|
11
|
+
private _injector;
|
|
12
|
+
private _overlay;
|
|
13
|
+
private _focusController;
|
|
14
|
+
private _htmlClassRenderer;
|
|
15
|
+
detach$: Subject<unknown>;
|
|
16
|
+
attach$: Subject<unknown>;
|
|
17
|
+
private _clearFn;
|
|
18
|
+
private _doneFn;
|
|
19
|
+
private _destroy$;
|
|
20
|
+
private _overlayRef;
|
|
21
|
+
constructor(_filterMeta: FsFilterMeta, _injector: Injector, _overlay: Overlay, _focusController: FocusControllerService, _htmlClassRenderer: HtmlClassRenderer);
|
|
22
|
+
get isOpened(): boolean;
|
|
23
|
+
setClearFn(fn: Function): void;
|
|
24
|
+
setDoneFn(fn: Function): void;
|
|
25
|
+
close(): void;
|
|
26
|
+
open(): FilterDrawerComponent;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
private _createOverlay;
|
|
29
|
+
private _openPortalPreview;
|
|
30
|
+
private _createInjector;
|
|
31
|
+
private _removeFilterClass;
|
|
32
|
+
private _addFilterClass;
|
|
33
|
+
private _openWhenChipClicked;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterOverlayService, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsFilterOverlayService>;
|
|
36
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { BaseItem } from '../models/items/base-item';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class FocusControllerService {
|
|
4
|
-
private _focusOn;
|
|
5
|
-
constructor();
|
|
6
|
-
get focusOn$(): import("rxjs").Observable<{
|
|
7
|
-
item: BaseItem<any>;
|
|
8
|
-
type: "from" | "to";
|
|
9
|
-
}>;
|
|
10
|
-
click(item: BaseItem<any>, type?: 'from' | 'to'): void;
|
|
11
|
-
listenFocusFor$(targetItem: BaseItem<any>, targetType?: 'from' | 'to'): import("rxjs").Observable<{
|
|
12
|
-
item: BaseItem<any>;
|
|
13
|
-
type: "from" | "to";
|
|
14
|
-
}>;
|
|
15
|
-
clearFocus(): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FocusControllerService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FocusControllerService>;
|
|
18
|
-
}
|
|
1
|
+
import { BaseItem } from '../models/items/base-item';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FocusControllerService {
|
|
4
|
+
private _focusOn;
|
|
5
|
+
constructor();
|
|
6
|
+
get focusOn$(): import("rxjs").Observable<{
|
|
7
|
+
item: BaseItem<any>;
|
|
8
|
+
type: "from" | "to";
|
|
9
|
+
}>;
|
|
10
|
+
click(item: BaseItem<any>, type?: 'from' | 'to'): void;
|
|
11
|
+
listenFocusFor$(targetItem: BaseItem<any>, targetType?: 'from' | 'to'): import("rxjs").Observable<{
|
|
12
|
+
item: BaseItem<any>;
|
|
13
|
+
type: "from" | "to";
|
|
14
|
+
}>;
|
|
15
|
+
clearFocus(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FocusControllerService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FocusControllerService>;
|
|
18
|
+
}
|
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import type { FilterComponent } from '../components/filter/filter.component';
|
|
4
|
-
import { FilterSort, IFilterConfigItem, SortItem } from '../interfaces/config.interface';
|
|
5
|
-
import { IFilterExternalParams } from '../interfaces/external-params.interface';
|
|
6
|
-
import { ISortingChangeEvent } from '../interfaces/filter.interface';
|
|
7
|
-
import { BaseItem } from '../models/items/base-item';
|
|
8
|
-
import { TextItem } from '../models/items/text-item';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
interface IValueAsQuery {
|
|
11
|
-
onlyPresented?: boolean;
|
|
12
|
-
items?: BaseItem<IFilterConfigItem>[];
|
|
13
|
-
persisted?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export declare class FsFilterItemsStore implements OnDestroy {
|
|
16
|
-
sortByItem: BaseItem<IFilterConfigItem>;
|
|
17
|
-
sortDirectionItem: BaseItem<IFilterConfigItem>;
|
|
18
|
-
keywordItem: TextItem;
|
|
19
|
-
filter: FilterComponent;
|
|
20
|
-
private _ready$;
|
|
21
|
-
private _items;
|
|
22
|
-
private _visibleItems$;
|
|
23
|
-
private _itemsByName;
|
|
24
|
-
private _itemsValuesLoaded;
|
|
25
|
-
private _hasKeyword;
|
|
26
|
-
private _config;
|
|
27
|
-
private _itemsChange$;
|
|
28
|
-
private _destroy$;
|
|
29
|
-
constructor();
|
|
30
|
-
get items(): BaseItem<IFilterConfigItem>[];
|
|
31
|
-
get itemNames(): string[];
|
|
32
|
-
get visibleItems(): BaseItem<IFilterConfigItem>[];
|
|
33
|
-
set visibleItems(items: BaseItem<IFilterConfigItem>[]);
|
|
34
|
-
get visibleItems$(): Observable<BaseItem<IFilterConfigItem>[]>;
|
|
35
|
-
get hasKeyword(): boolean;
|
|
36
|
-
get itemsChange$(): Observable<unknown>;
|
|
37
|
-
get ready$(): Observable<boolean>;
|
|
38
|
-
ngOnDestroy(): void;
|
|
39
|
-
setConfig(config: any): void;
|
|
40
|
-
getItemByName(name: string): BaseItem<IFilterConfigItem>;
|
|
41
|
-
initItems(items: IFilterConfigItem[]): void;
|
|
42
|
-
filtersClear(): void;
|
|
43
|
-
loadAsyncValues(): void;
|
|
44
|
-
loadAsyncDefaults(): void;
|
|
45
|
-
getSort(): FilterSort;
|
|
46
|
-
getSortByValue(): any;
|
|
47
|
-
getSortDirectionValue(): any;
|
|
48
|
-
updateSort(sort: ISortingChangeEvent): void;
|
|
49
|
-
values(onlyPresented?: boolean): Record<string, unknown>;
|
|
50
|
-
valuesAsQuery({ onlyPresented, items, persisted, }?: IValueAsQuery): Record<string, unknown>;
|
|
51
|
-
init(p: IFilterExternalParams): void;
|
|
52
|
-
updateItemsWithValues(values: IFilterExternalParams): void;
|
|
53
|
-
updateSortingItemsValues(items: SortItem[]): void;
|
|
54
|
-
destroyItems(): void;
|
|
55
|
-
/**
|
|
56
|
-
* Some items might need to load async values before they will be shown
|
|
57
|
-
*/
|
|
58
|
-
prepareItems(): void;
|
|
59
|
-
updateItemsVisiblity(): void;
|
|
60
|
-
private _createItems;
|
|
61
|
-
private _subscribeToItemsChanges;
|
|
62
|
-
private _lazyInit;
|
|
63
|
-
private _initSortingItems;
|
|
64
|
-
private _createSortingItems;
|
|
65
|
-
private _setKeywordItem;
|
|
66
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterItemsStore, never>;
|
|
67
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FsFilterItemsStore>;
|
|
68
|
-
}
|
|
69
|
-
export {};
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import type { FilterComponent } from '../components/filter/filter.component';
|
|
4
|
+
import { FilterSort, IFilterConfigItem, SortItem } from '../interfaces/config.interface';
|
|
5
|
+
import { IFilterExternalParams } from '../interfaces/external-params.interface';
|
|
6
|
+
import { ISortingChangeEvent } from '../interfaces/filter.interface';
|
|
7
|
+
import { BaseItem } from '../models/items/base-item';
|
|
8
|
+
import { TextItem } from '../models/items/text-item';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
interface IValueAsQuery {
|
|
11
|
+
onlyPresented?: boolean;
|
|
12
|
+
items?: BaseItem<IFilterConfigItem>[];
|
|
13
|
+
persisted?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare class FsFilterItemsStore implements OnDestroy {
|
|
16
|
+
sortByItem: BaseItem<IFilterConfigItem>;
|
|
17
|
+
sortDirectionItem: BaseItem<IFilterConfigItem>;
|
|
18
|
+
keywordItem: TextItem;
|
|
19
|
+
filter: FilterComponent;
|
|
20
|
+
private _ready$;
|
|
21
|
+
private _items;
|
|
22
|
+
private _visibleItems$;
|
|
23
|
+
private _itemsByName;
|
|
24
|
+
private _itemsValuesLoaded;
|
|
25
|
+
private _hasKeyword;
|
|
26
|
+
private _config;
|
|
27
|
+
private _itemsChange$;
|
|
28
|
+
private _destroy$;
|
|
29
|
+
constructor();
|
|
30
|
+
get items(): BaseItem<IFilterConfigItem>[];
|
|
31
|
+
get itemNames(): string[];
|
|
32
|
+
get visibleItems(): BaseItem<IFilterConfigItem>[];
|
|
33
|
+
set visibleItems(items: BaseItem<IFilterConfigItem>[]);
|
|
34
|
+
get visibleItems$(): Observable<BaseItem<IFilterConfigItem>[]>;
|
|
35
|
+
get hasKeyword(): boolean;
|
|
36
|
+
get itemsChange$(): Observable<unknown>;
|
|
37
|
+
get ready$(): Observable<boolean>;
|
|
38
|
+
ngOnDestroy(): void;
|
|
39
|
+
setConfig(config: any): void;
|
|
40
|
+
getItemByName(name: string): BaseItem<IFilterConfigItem>;
|
|
41
|
+
initItems(items: IFilterConfigItem[]): void;
|
|
42
|
+
filtersClear(): void;
|
|
43
|
+
loadAsyncValues(): void;
|
|
44
|
+
loadAsyncDefaults(): void;
|
|
45
|
+
getSort(): FilterSort;
|
|
46
|
+
getSortByValue(): any;
|
|
47
|
+
getSortDirectionValue(): any;
|
|
48
|
+
updateSort(sort: ISortingChangeEvent): void;
|
|
49
|
+
values(onlyPresented?: boolean): Record<string, unknown>;
|
|
50
|
+
valuesAsQuery({ onlyPresented, items, persisted, }?: IValueAsQuery): Record<string, unknown>;
|
|
51
|
+
init(p: IFilterExternalParams): void;
|
|
52
|
+
updateItemsWithValues(values: IFilterExternalParams): void;
|
|
53
|
+
updateSortingItemsValues(items: SortItem[]): void;
|
|
54
|
+
destroyItems(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Some items might need to load async values before they will be shown
|
|
57
|
+
*/
|
|
58
|
+
prepareItems(): void;
|
|
59
|
+
updateItemsVisiblity(): void;
|
|
60
|
+
private _createItems;
|
|
61
|
+
private _subscribeToItemsChanges;
|
|
62
|
+
private _lazyInit;
|
|
63
|
+
private _initSortingItems;
|
|
64
|
+
private _createSortingItems;
|
|
65
|
+
private _setKeywordItem;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsFilterItemsStore, never>;
|
|
67
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FsFilterItemsStore>;
|
|
68
|
+
}
|
|
69
|
+
export {};
|
|
@@ -1,130 +1,130 @@
|
|
|
1
|
-
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
-
import { Injectable } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
-
import { skip, takeUntil } from 'rxjs/operators';
|
|
5
|
-
import { Action } from '../models/action.model';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/cdk/layout";
|
|
8
|
-
export class ActionsController {
|
|
9
|
-
_breakpointObserver;
|
|
10
|
-
_visible$ = new BehaviorSubject(false);
|
|
11
|
-
_actions$ = new BehaviorSubject([]);
|
|
12
|
-
_menuActions$ = new BehaviorSubject([]);
|
|
13
|
-
_destroy$ = new Subject();
|
|
14
|
-
_config;
|
|
15
|
-
_mobileMedia = '(max-width: 799px)';
|
|
16
|
-
_allActions = [];
|
|
17
|
-
_reorderAction;
|
|
18
|
-
constructor(_breakpointObserver) {
|
|
19
|
-
this._breakpointObserver = _breakpointObserver;
|
|
20
|
-
this._listenMobileMedia();
|
|
21
|
-
}
|
|
22
|
-
get menuActions() {
|
|
23
|
-
return this._menuActions$.value;
|
|
24
|
-
}
|
|
25
|
-
get actions() {
|
|
26
|
-
return this._actions$.value;
|
|
27
|
-
}
|
|
28
|
-
get actions$() {
|
|
29
|
-
return this._actions$.asObservable();
|
|
30
|
-
}
|
|
31
|
-
get menuActions$() {
|
|
32
|
-
return this._menuActions$.asObservable();
|
|
33
|
-
}
|
|
34
|
-
get visible$() {
|
|
35
|
-
return this._visible$.asObservable();
|
|
36
|
-
}
|
|
37
|
-
get mobileMode() {
|
|
38
|
-
return this._breakpointObserver.isMatched(this._mobileMedia);
|
|
39
|
-
}
|
|
40
|
-
ngOnDestroy() {
|
|
41
|
-
this._destroy$.next();
|
|
42
|
-
this._destroy$.complete();
|
|
43
|
-
}
|
|
44
|
-
setConfig(config) {
|
|
45
|
-
this._config = config;
|
|
46
|
-
this.initActions(config.actions);
|
|
47
|
-
}
|
|
48
|
-
initActions(rawActions) {
|
|
49
|
-
if (!rawActions || !Array.isArray(rawActions)) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
this.show();
|
|
53
|
-
this._allActions = rawActions
|
|
54
|
-
.map((action) => new Action(this._config, action));
|
|
55
|
-
if (this._reorderAction) {
|
|
56
|
-
this._allActions.unshift(this._reorderAction);
|
|
57
|
-
}
|
|
58
|
-
this._classifyActions();
|
|
59
|
-
}
|
|
60
|
-
show() {
|
|
61
|
-
this._visible$.next(true);
|
|
62
|
-
}
|
|
63
|
-
hide() {
|
|
64
|
-
this._visible$.next(false);
|
|
65
|
-
}
|
|
66
|
-
addReorderAction(action) {
|
|
67
|
-
this._allActions.unshift(action);
|
|
68
|
-
action.isReorderAction = true;
|
|
69
|
-
this._classifyAction(action);
|
|
70
|
-
this._reorderAction = action;
|
|
71
|
-
}
|
|
72
|
-
clearActions() {
|
|
73
|
-
this._allActions = [];
|
|
74
|
-
this._setActions([]);
|
|
75
|
-
this._setKebabActions([]);
|
|
76
|
-
}
|
|
77
|
-
updateActionsVisibility() {
|
|
78
|
-
this._allActions.forEach((action) => action.updateVisibility());
|
|
79
|
-
this._classifyActions();
|
|
80
|
-
}
|
|
81
|
-
updateDisabledState() {
|
|
82
|
-
this.actions.forEach((action) => action.updateDisabledState());
|
|
83
|
-
}
|
|
84
|
-
_setKebabActions(actions) {
|
|
85
|
-
this._menuActions$.next(actions);
|
|
86
|
-
}
|
|
87
|
-
_setActions(actions) {
|
|
88
|
-
this._actions$.next(actions);
|
|
89
|
-
}
|
|
90
|
-
_classifyActions() {
|
|
91
|
-
const kebabActions = [];
|
|
92
|
-
const actions = [];
|
|
93
|
-
const mobileMode = this.mobileMode;
|
|
94
|
-
this._allActions
|
|
95
|
-
.filter((action) => {
|
|
96
|
-
return action.visible;
|
|
97
|
-
})
|
|
98
|
-
.forEach((action) => {
|
|
99
|
-
if (action.menu !== false && (action.menu || mobileMode)) {
|
|
100
|
-
kebabActions.push(action);
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
actions.push(action);
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
this._setKebabActions(kebabActions);
|
|
107
|
-
this._setActions(actions);
|
|
108
|
-
}
|
|
109
|
-
_classifyAction(action) {
|
|
110
|
-
if (action.menu) {
|
|
111
|
-
this._setKebabActions([...this.menuActions, action]);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
this._setActions([...this.actions, action]);
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
_listenMobileMedia() {
|
|
118
|
-
this._breakpointObserver.observe(this._mobileMedia)
|
|
119
|
-
.pipe(skip(1), takeUntil(this._destroy$))
|
|
120
|
-
.subscribe(() => {
|
|
121
|
-
this._classifyActions();
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsController, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
125
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsController });
|
|
126
|
-
}
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsController, decorators: [{
|
|
128
|
-
type: Injectable
|
|
129
|
-
}], ctorParameters: function () { return [{ type: i1.BreakpointObserver }]; } });
|
|
1
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
+
import { skip, takeUntil } from 'rxjs/operators';
|
|
5
|
+
import { Action } from '../models/action.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
import * as i1 from "@angular/cdk/layout";
|
|
8
|
+
export class ActionsController {
|
|
9
|
+
_breakpointObserver;
|
|
10
|
+
_visible$ = new BehaviorSubject(false);
|
|
11
|
+
_actions$ = new BehaviorSubject([]);
|
|
12
|
+
_menuActions$ = new BehaviorSubject([]);
|
|
13
|
+
_destroy$ = new Subject();
|
|
14
|
+
_config;
|
|
15
|
+
_mobileMedia = '(max-width: 799px)';
|
|
16
|
+
_allActions = [];
|
|
17
|
+
_reorderAction;
|
|
18
|
+
constructor(_breakpointObserver) {
|
|
19
|
+
this._breakpointObserver = _breakpointObserver;
|
|
20
|
+
this._listenMobileMedia();
|
|
21
|
+
}
|
|
22
|
+
get menuActions() {
|
|
23
|
+
return this._menuActions$.value;
|
|
24
|
+
}
|
|
25
|
+
get actions() {
|
|
26
|
+
return this._actions$.value;
|
|
27
|
+
}
|
|
28
|
+
get actions$() {
|
|
29
|
+
return this._actions$.asObservable();
|
|
30
|
+
}
|
|
31
|
+
get menuActions$() {
|
|
32
|
+
return this._menuActions$.asObservable();
|
|
33
|
+
}
|
|
34
|
+
get visible$() {
|
|
35
|
+
return this._visible$.asObservable();
|
|
36
|
+
}
|
|
37
|
+
get mobileMode() {
|
|
38
|
+
return this._breakpointObserver.isMatched(this._mobileMedia);
|
|
39
|
+
}
|
|
40
|
+
ngOnDestroy() {
|
|
41
|
+
this._destroy$.next();
|
|
42
|
+
this._destroy$.complete();
|
|
43
|
+
}
|
|
44
|
+
setConfig(config) {
|
|
45
|
+
this._config = config;
|
|
46
|
+
this.initActions(config.actions);
|
|
47
|
+
}
|
|
48
|
+
initActions(rawActions) {
|
|
49
|
+
if (!rawActions || !Array.isArray(rawActions)) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
this.show();
|
|
53
|
+
this._allActions = rawActions
|
|
54
|
+
.map((action) => new Action(this._config, action));
|
|
55
|
+
if (this._reorderAction) {
|
|
56
|
+
this._allActions.unshift(this._reorderAction);
|
|
57
|
+
}
|
|
58
|
+
this._classifyActions();
|
|
59
|
+
}
|
|
60
|
+
show() {
|
|
61
|
+
this._visible$.next(true);
|
|
62
|
+
}
|
|
63
|
+
hide() {
|
|
64
|
+
this._visible$.next(false);
|
|
65
|
+
}
|
|
66
|
+
addReorderAction(action) {
|
|
67
|
+
this._allActions.unshift(action);
|
|
68
|
+
action.isReorderAction = true;
|
|
69
|
+
this._classifyAction(action);
|
|
70
|
+
this._reorderAction = action;
|
|
71
|
+
}
|
|
72
|
+
clearActions() {
|
|
73
|
+
this._allActions = [];
|
|
74
|
+
this._setActions([]);
|
|
75
|
+
this._setKebabActions([]);
|
|
76
|
+
}
|
|
77
|
+
updateActionsVisibility() {
|
|
78
|
+
this._allActions.forEach((action) => action.updateVisibility());
|
|
79
|
+
this._classifyActions();
|
|
80
|
+
}
|
|
81
|
+
updateDisabledState() {
|
|
82
|
+
this.actions.forEach((action) => action.updateDisabledState());
|
|
83
|
+
}
|
|
84
|
+
_setKebabActions(actions) {
|
|
85
|
+
this._menuActions$.next(actions);
|
|
86
|
+
}
|
|
87
|
+
_setActions(actions) {
|
|
88
|
+
this._actions$.next(actions);
|
|
89
|
+
}
|
|
90
|
+
_classifyActions() {
|
|
91
|
+
const kebabActions = [];
|
|
92
|
+
const actions = [];
|
|
93
|
+
const mobileMode = this.mobileMode;
|
|
94
|
+
this._allActions
|
|
95
|
+
.filter((action) => {
|
|
96
|
+
return action.visible;
|
|
97
|
+
})
|
|
98
|
+
.forEach((action) => {
|
|
99
|
+
if (action.menu !== false && (action.menu || mobileMode)) {
|
|
100
|
+
kebabActions.push(action);
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
actions.push(action);
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
this._setKebabActions(kebabActions);
|
|
107
|
+
this._setActions(actions);
|
|
108
|
+
}
|
|
109
|
+
_classifyAction(action) {
|
|
110
|
+
if (action.menu) {
|
|
111
|
+
this._setKebabActions([...this.menuActions, action]);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this._setActions([...this.actions, action]);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
_listenMobileMedia() {
|
|
118
|
+
this._breakpointObserver.observe(this._mobileMedia)
|
|
119
|
+
.pipe(skip(1), takeUntil(this._destroy$))
|
|
120
|
+
.subscribe(() => {
|
|
121
|
+
this._classifyActions();
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsController, deps: [{ token: i1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
125
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsController });
|
|
126
|
+
}
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActionsController, decorators: [{
|
|
128
|
+
type: Injectable
|
|
129
|
+
}], ctorParameters: function () { return [{ type: i1.BreakpointObserver }]; } });
|
|
130
130
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9ucy1jb250cm9sbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9jbGFzc2VzL2FjdGlvbnMtY29udHJvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN6RCxPQUFPLEVBQUUsVUFBVSxFQUFhLE1BQU0sZUFBZSxDQUFDO0FBRXRELE9BQU8sRUFBRSxlQUFlLEVBQWMsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzVELE9BQU8sRUFBRSxJQUFJLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHakQsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLHdCQUF3QixDQUFDOzs7QUFLaEQsTUFBTSxPQUFPLGlCQUFpQjtJQWFsQjtJQVhGLFNBQVMsR0FBRyxJQUFJLGVBQWUsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUN2QyxTQUFTLEdBQUcsSUFBSSxlQUFlLENBQVcsRUFBRSxDQUFDLENBQUM7SUFDOU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BlKFxuICAgICAgICBza2lwKDEpLFxuICAgICAgICB0YWtlVW50aWwodGhpcy5fZGVzdHJveSQpLFxuICAgICAgKVxuICAgICAgLnN1YnNjcmliZSgoKSA9PiB7XG4gICAgICAgIHRoaXMuX2NsYXNzaWZ5QWN0aW9ucygpO1xuICAgICAgfSlcbiAgfVxufVxuIl19
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
-
import { ActionType } from '../../enums/action-type.enum';
|
|
3
|
-
import { Action } from '../../models/action.model';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/common";
|
|
6
|
-
import * as i2 from "@angular/material/icon";
|
|
7
|
-
import * as i3 from "@angular/material/button";
|
|
8
|
-
import * as i4 from "@firestitch/form";
|
|
9
|
-
export class FsFilterActionButtonComponent {
|
|
10
|
-
ActionType = ActionType;
|
|
11
|
-
action;
|
|
12
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFilterActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FsFilterActionButtonComponent, selector: "fs-filter-action-button", inputs: { action: "action" }, host: { classAttribute: "action-button" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"action.type\">\n <button\n type=\"button\"\n *ngSwitchCase=\"ActionType.Icon\"\n mat-icon-button\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.Fab\"\n mat-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Mini Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.MiniFab\"\n mat-mini-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <button \n type=\"button\"\n *ngSwitchDefault\n mat-button\n [ngClass]=\"{ \n 'mat-raised-button': action.type === ActionType.Raised,\n 'mat-flat-button': action.type === ActionType.Flat,\n 'mat-stroked-button': action.type === ActionType.Stroked,\n 'mat-button': action.type === ActionType.Basic,\n 'mat-icon-button': action.type === ActionType.Icon\n }\"\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [class]=\"action.classArray.join(' ')\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <ng-template #buttonContent>\n <ng-container *ngIf=\"!action.icon else withIcon\">\n {{action.label}}\n </ng-container>\n\n <ng-template #withIcon>\n <mat-icon *ngIf=\"!action.iconPlacement || action.iconPlacement === 'left'\">{{action.icon}}</mat-icon>\n {{action.label}}\n <mat-icon *ngIf=\"action.iconPlacement === 'right'\">{{action.icon}}</mat-icon>\n </ng-template>\n </ng-template>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }, { kind: "directive", type: i4.FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: ["name", "dirtySubmit", "form"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14
|
-
}
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFilterActionButtonComponent, decorators: [{
|
|
16
|
-
type: Component,
|
|
17
|
-
args: [{ selector: 'fs-filter-action-button', host: { class: 'action-button' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"action.type\">\n <button\n type=\"button\"\n *ngSwitchCase=\"ActionType.Icon\"\n mat-icon-button\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.Fab\"\n mat-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Mini Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.MiniFab\"\n mat-mini-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <button \n type=\"button\"\n *ngSwitchDefault\n mat-button\n [ngClass]=\"{ \n 'mat-raised-button': action.type === ActionType.Raised,\n 'mat-flat-button': action.type === ActionType.Flat,\n 'mat-stroked-button': action.type === ActionType.Stroked,\n 'mat-button': action.type === ActionType.Basic,\n 'mat-icon-button': action.type === ActionType.Icon\n }\"\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [class]=\"action.classArray.join(' ')\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <ng-template #buttonContent>\n <ng-container *ngIf=\"!action.icon else withIcon\">\n {{action.label}}\n </ng-container>\n\n <ng-template #withIcon>\n <mat-icon *ngIf=\"!action.iconPlacement || action.iconPlacement === 'left'\">{{action.icon}}</mat-icon>\n {{action.label}}\n <mat-icon *ngIf=\"action.iconPlacement === 'right'\">{{action.icon}}</mat-icon>\n </ng-template>\n </ng-template>\n</ng-container>\n" }]
|
|
18
|
-
}], propDecorators: { action: [{
|
|
19
|
-
type: Input
|
|
20
|
-
}] } });
|
|
1
|
+
import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
|
|
2
|
+
import { ActionType } from '../../enums/action-type.enum';
|
|
3
|
+
import { Action } from '../../models/action.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/material/icon";
|
|
7
|
+
import * as i3 from "@angular/material/button";
|
|
8
|
+
import * as i4 from "@firestitch/form";
|
|
9
|
+
export class FsFilterActionButtonComponent {
|
|
10
|
+
ActionType = ActionType;
|
|
11
|
+
action;
|
|
12
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFilterActionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FsFilterActionButtonComponent, selector: "fs-filter-action-button", inputs: { action: "action" }, host: { classAttribute: "action-button" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"action.type\">\n <button\n type=\"button\"\n *ngSwitchCase=\"ActionType.Icon\"\n mat-icon-button\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.Fab\"\n mat-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Mini Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.MiniFab\"\n mat-mini-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <button \n type=\"button\"\n *ngSwitchDefault\n mat-button\n [ngClass]=\"{ \n 'mat-raised-button': action.type === ActionType.Raised,\n 'mat-flat-button': action.type === ActionType.Flat,\n 'mat-stroked-button': action.type === ActionType.Stroked,\n 'mat-button': action.type === ActionType.Basic,\n 'mat-icon-button': action.type === ActionType.Icon\n }\"\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [class]=\"action.classArray.join(' ')\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <ng-template #buttonContent>\n <ng-container *ngIf=\"!action.icon else withIcon\">\n {{action.label}}\n </ng-container>\n\n <ng-template #withIcon>\n <mat-icon *ngIf=\"!action.iconPlacement || action.iconPlacement === 'left'\">{{action.icon}}</mat-icon>\n {{action.label}}\n <mat-icon *ngIf=\"action.iconPlacement === 'right'\">{{action.icon}}</mat-icon>\n </ng-template>\n </ng-template>\n</ng-container>\n", dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i3.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }, { kind: "directive", type: i4.FsButtonDirective, selector: "[mat-raised-button]:not([fsFormButtonStandalone]),[mat-button]:not([fsFormButtonStandalone]),[mat-flat-button]:not([fsFormButtonStandalone]),[mat-stroked-button]:not([fsFormButtonStandalone])", inputs: ["name", "dirtySubmit", "form"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
14
|
+
}
|
|
15
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FsFilterActionButtonComponent, decorators: [{
|
|
16
|
+
type: Component,
|
|
17
|
+
args: [{ selector: 'fs-filter-action-button', host: { class: 'action-button' }, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"action.type\">\n <button\n type=\"button\"\n *ngSwitchCase=\"ActionType.Icon\"\n mat-icon-button\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.Fab\"\n mat-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <!-- Mini Fab button -->\n <button \n type=\"button\"\n *ngSwitchCase=\"ActionType.MiniFab\"\n mat-mini-fab\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [ngClass]=\"action.classArray\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <button \n type=\"button\"\n *ngSwitchDefault\n mat-button\n [ngClass]=\"{ \n 'mat-raised-button': action.type === ActionType.Raised,\n 'mat-flat-button': action.type === ActionType.Flat,\n 'mat-stroked-button': action.type === ActionType.Stroked,\n 'mat-button': action.type === ActionType.Basic,\n 'mat-icon-button': action.type === ActionType.Icon\n }\"\n (click)=\"action.click && action.click($event)\"\n [color]=\"action.color\"\n [class]=\"action.classArray.join(' ')\"\n [disabled]=\"action.disabled$ | async\"\n [tabIndex]=\"action.tabIndex\">\n <ng-template [ngTemplateOutlet]=\"buttonContent\"></ng-template>\n </button>\n\n <ng-template #buttonContent>\n <ng-container *ngIf=\"!action.icon else withIcon\">\n {{action.label}}\n </ng-container>\n\n <ng-template #withIcon>\n <mat-icon *ngIf=\"!action.iconPlacement || action.iconPlacement === 'left'\">{{action.icon}}</mat-icon>\n {{action.label}}\n <mat-icon *ngIf=\"action.iconPlacement === 'right'\">{{action.icon}}</mat-icon>\n </ng-template>\n </ng-template>\n</ng-container>\n" }]
|
|
18
|
+
}], propDecorators: { action: [{
|
|
19
|
+
type: Input
|
|
20
|
+
}] } });
|
|
21
21
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWN0aW9uLWJ1dHRvbi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi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