@recursyve/nice-ui-kit.v2 13.2.0-beta.98 → 14.0.0-beta.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/api/interceptors/transform-response.interceptor.mjs +3 -3
- package/esm2020/lib/components/alert/alert.component.mjs +3 -3
- package/esm2020/lib/components/alert/alert.module.mjs +4 -4
- package/esm2020/lib/components/alert/alert.service.mjs +3 -3
- package/esm2020/lib/components/assets-carousel/assets-carousel.component.mjs +33 -17
- package/esm2020/lib/components/assets-carousel/assets-carousel.module.mjs +4 -4
- package/esm2020/lib/components/async-typeahead/async-typeahead.component.mjs +15 -9
- package/esm2020/lib/components/async-typeahead/async-typeahead.module.mjs +4 -4
- package/esm2020/lib/components/async-typeahead/providers/async-typeahead.service.mjs +3 -3
- package/esm2020/lib/components/base-form/base-form.component.mjs +3 -3
- package/esm2020/lib/components/base-form/base-form.module.mjs +4 -4
- package/esm2020/lib/components/base-form/form-submit.directive.mjs +3 -3
- package/esm2020/lib/components/card/card.component.mjs +3 -3
- package/esm2020/lib/components/card/card.module.mjs +4 -4
- package/esm2020/lib/components/carousel/carousel.component.mjs +3 -3
- package/esm2020/lib/components/carousel/carousel.module.mjs +4 -4
- package/esm2020/lib/components/carousel/picture-modal/picture-modal.component.mjs +3 -3
- package/esm2020/lib/components/carousel/picture-modal/picture-modal.service.mjs +3 -3
- package/esm2020/lib/components/carousel/pipe/carousel-layout.pipe.mjs +3 -3
- package/esm2020/lib/components/date-range-picker/components/header/header.component.mjs +57 -0
- package/esm2020/lib/components/date-range-picker/components/range-preset/range-preset.component.mjs +107 -0
- package/esm2020/lib/components/date-range-picker/date-range-picker.component.mjs +74 -0
- package/esm2020/lib/components/date-range-picker/date-range-picker.module.mjs +56 -0
- package/esm2020/lib/components/date-range-picker/index.mjs +2 -0
- package/esm2020/lib/components/date-range-picker/providers/date-range-picker.service.mjs +17 -0
- package/esm2020/lib/components/date-range-picker/public-api.mjs +3 -0
- package/esm2020/lib/components/drawer/drawer.component.mjs +3 -3
- package/esm2020/lib/components/drawer/drawer.module.mjs +4 -4
- package/esm2020/lib/components/drawer/drawer.service.mjs +3 -3
- package/esm2020/lib/components/export-bottom-sheet/export-bottom-sheet.component.mjs +3 -3
- package/esm2020/lib/components/export-bottom-sheet/export-bottom-sheet.module.mjs +4 -4
- package/esm2020/lib/components/export-bottom-sheet/providers/export-bottom-sheet.service.mjs +6 -6
- package/esm2020/lib/components/form-error/control-status.directive.mjs +4 -4
- package/esm2020/lib/components/form-error/form-error.component.mjs +3 -3
- package/esm2020/lib/components/form-error/form-error.module.mjs +4 -4
- package/esm2020/lib/components/horizontal-stepper/horizontal-stepper.component.mjs +3 -3
- package/esm2020/lib/components/horizontal-stepper/horizontal-stepper.module.mjs +4 -4
- package/esm2020/lib/components/horizontal-stepper/step.component.mjs +3 -3
- package/esm2020/lib/components/image-cropper/image-cropper.component.mjs +8 -8
- package/esm2020/lib/components/image-cropper/image-cropper.module.mjs +4 -4
- package/esm2020/lib/components/layout/layout.component.mjs +3 -3
- package/esm2020/lib/components/layout/layout.module.mjs +4 -4
- package/esm2020/lib/components/loading-spinner/loading-spinner.component.mjs +3 -3
- package/esm2020/lib/components/loading-spinner/loading-spinner.module.mjs +4 -4
- package/esm2020/lib/components/loading-spinner/loading.directive.mjs +3 -3
- package/esm2020/lib/components/lottie/lottie.component.mjs +3 -3
- package/esm2020/lib/components/lottie/lottie.module.mjs +4 -4
- package/esm2020/lib/components/navigation/directives/show-hint.directive.mjs +163 -0
- package/esm2020/lib/components/navigation/horizontal/components/basic/basic.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/components/branch/branch.component.mjs +6 -5
- package/esm2020/lib/components/navigation/horizontal/components/divider/divider.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/components/spacer/spacer.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/horizontal.component.mjs +6 -5
- package/esm2020/lib/components/navigation/navigation.component.mjs +3 -3
- package/esm2020/lib/components/navigation/navigation.module.mjs +18 -7
- package/esm2020/lib/components/navigation/navigation.service.mjs +3 -3
- package/esm2020/lib/components/navigation/navigation.types.mjs +1 -1
- package/esm2020/lib/components/navigation/pipes/should-hide.pipe.mjs +31 -0
- package/esm2020/lib/components/navigation/pipes/should-show-hint.pipe.mjs +32 -0
- package/esm2020/lib/components/navigation/providers/hide-item.resolver.mjs +3 -0
- package/esm2020/lib/components/navigation/providers/hint.resolver.mjs +3 -0
- package/esm2020/lib/components/navigation/providers/hint.service.mjs +20 -0
- package/esm2020/lib/components/navigation/public-api.mjs +3 -1
- package/esm2020/lib/components/navigation/vertical/components/aside/aside.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/basic/basic.component.mjs +8 -6
- package/esm2020/lib/components/navigation/vertical/components/collapsable/collapsable.component.mjs +9 -17
- package/esm2020/lib/components/navigation/vertical/components/divider/divider.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/group/group.component.mjs +6 -5
- package/esm2020/lib/components/navigation/vertical/components/spacer/spacer.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/vertical.component.mjs +33 -16
- package/esm2020/lib/components/public-api.mjs +2 -1
- package/esm2020/lib/components/search-bar/search-bar.component.mjs +3 -3
- package/esm2020/lib/components/search-bar/search-bar.module.mjs +4 -4
- package/esm2020/lib/components/sweet-alert/public-api.mjs +2 -1
- package/esm2020/lib/components/sweet-alert/sweet-alert.component.mjs +3 -3
- package/esm2020/lib/components/sweet-alert/sweet-alert.directive.mjs +37 -0
- package/esm2020/lib/components/sweet-alert/sweet-alert.module.mjs +9 -7
- package/esm2020/lib/components/sweet-alert/sweet-alert.service.mjs +24 -7
- package/esm2020/lib/components/toast/toast.component.mjs +3 -3
- package/esm2020/lib/components/toast/toast.module.mjs +4 -4
- package/esm2020/lib/components/toast/toast.service.mjs +3 -3
- package/esm2020/lib/components/toggle-button-group/toggle-button-group.component.mjs +3 -3
- package/esm2020/lib/components/toggle-button-group/toggle-button-group.module.mjs +4 -4
- package/esm2020/lib/components/toggle-button-group/toggle-button.component.mjs +3 -3
- package/esm2020/lib/components/typeahead/directives/options-scroll.directive.mjs +3 -3
- package/esm2020/lib/components/typeahead/directives/options-scroll.module.mjs +4 -4
- package/esm2020/lib/components/typeahead/typeahead.component.mjs +3 -3
- package/esm2020/lib/components/typeahead/typeahead.module.mjs +4 -4
- package/esm2020/lib/directives/autofocus/autofocus.directive.mjs +3 -3
- package/esm2020/lib/directives/autofocus/autofocus.module.mjs +4 -4
- package/esm2020/lib/directives/autogrow/autogrow.directive.mjs +3 -3
- package/esm2020/lib/directives/autogrow/autogrow.module.mjs +4 -4
- package/esm2020/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.mjs +39 -0
- package/esm2020/lib/directives/chip-async-typeahead/index.mjs +2 -0
- package/esm2020/lib/directives/chip-async-typeahead/public-api.mjs +2 -0
- package/esm2020/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.mjs +14 -0
- package/esm2020/lib/directives/chip-list/chip-list-items/chip-list-items.component.mjs +46 -0
- package/esm2020/lib/directives/chip-list/chip-list.constant.mjs +3 -0
- package/esm2020/lib/directives/chip-list/chip-list.directive.mjs +127 -0
- package/esm2020/lib/directives/chip-list/chip-list.module.mjs +40 -0
- package/esm2020/lib/directives/chip-list/index.mjs +2 -0
- package/esm2020/lib/directives/chip-list/public-api.mjs +5 -0
- package/esm2020/lib/directives/dropzone/dropzone.directive.mjs +3 -3
- package/esm2020/lib/directives/dropzone/dropzone.module.mjs +4 -4
- package/esm2020/lib/directives/image-error-placeholder/image-error-placeholder.directive.mjs +3 -3
- package/esm2020/lib/directives/image-error-placeholder/image-error-placeholder.module.mjs +4 -4
- package/esm2020/lib/directives/material/material.module.mjs +4 -4
- package/esm2020/lib/directives/material/nice-material-style.directive.mjs +3 -3
- package/esm2020/lib/directives/material/nice-rounded-style.directive.mjs +3 -3
- package/esm2020/lib/directives/modals/modal-on-click.directive.mjs +3 -3
- package/esm2020/lib/directives/modals/modal-opener.directive.mjs +3 -3
- package/esm2020/lib/directives/public-api.mjs +3 -1
- package/esm2020/lib/directives/scroll-reset/scroll-reset.directive.mjs +3 -3
- package/esm2020/lib/directives/scroll-reset/scroll-reset.module.mjs +4 -4
- package/esm2020/lib/directives/scrollbar/scrollbar.directive.mjs +3 -3
- package/esm2020/lib/directives/scrollbar/scrollbar.module.mjs +4 -4
- package/esm2020/lib/directives/stop-propagation/click-stop-propagation.directive.mjs +3 -3
- package/esm2020/lib/directives/stop-propagation/stop-propagation.module.mjs +4 -4
- package/esm2020/lib/directives/window/prevent-close-window.directive.mjs +3 -3
- package/esm2020/lib/directives/window/window-directive.module.mjs +4 -4
- package/esm2020/lib/nice.module.mjs +5 -5
- package/esm2020/lib/pipes/boolean.pipe.mjs +3 -3
- package/esm2020/lib/pipes/capitalize-first-letter.pipe.mjs +3 -3
- package/esm2020/lib/pipes/ceil.pipe.mjs +3 -3
- package/esm2020/lib/pipes/entries.pipe.mjs +3 -3
- package/esm2020/lib/pipes/find-by-key.pipe.mjs +3 -3
- package/esm2020/lib/pipes/first-letter.pipe.mjs +3 -3
- package/esm2020/lib/pipes/floor.pipe.mjs +3 -3
- package/esm2020/lib/pipes/join-if-defined.pipe.mjs +3 -3
- package/esm2020/lib/pipes/link.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-boolean.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-currency.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-date-only.pipe.mjs +3 -3
- package/esm2020/lib/pipes/localized-date.pipe.mjs +3 -3
- package/esm2020/lib/pipes/minutes-to-time.pipe.mjs +3 -3
- package/esm2020/lib/pipes/number-to-ordinal-indicator.pipe.mjs +3 -3
- package/esm2020/lib/pipes/pad.pipe.mjs +3 -3
- package/esm2020/lib/pipes/phone.pipe.mjs +3 -3
- package/esm2020/lib/pipes/pipes.module.mjs +4 -4
- package/esm2020/lib/pipes/postal-code.pipe.mjs +3 -3
- package/esm2020/lib/pipes/range.pipe.mjs +3 -3
- package/esm2020/lib/pipes/round.pipe.mjs +3 -3
- package/esm2020/lib/pipes/sanitize-bypass.pipe.mjs +3 -3
- package/esm2020/lib/pipes/seconds-to-time.pipe.mjs +3 -3
- package/esm2020/lib/providers/config/config.module.mjs +4 -4
- package/esm2020/lib/providers/config/config.service.mjs +3 -3
- package/esm2020/lib/providers/media-watcher/media-watcher.module.mjs +4 -4
- package/esm2020/lib/providers/media-watcher/media-watcher.service.mjs +3 -3
- package/esm2020/lib/providers/overlay/dynamic-overlay-container.service.mjs +3 -3
- package/esm2020/lib/providers/overlay/dynamic-overlay.service.mjs +3 -3
- package/esm2020/lib/providers/splash-screen/splash-screen.module.mjs +4 -4
- package/esm2020/lib/providers/splash-screen/splash-screen.service.mjs +3 -3
- package/esm2020/lib/providers/utils/utils.module.mjs +4 -4
- package/esm2020/lib/providers/utils/utils.service.mjs +3 -3
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +2175 -1354
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +2173 -1361
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/assets-carousel/assets-carousel.component.d.ts +6 -1
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +4 -3
- package/lib/components/date-range-picker/components/header/header.component.d.ts +20 -0
- package/lib/components/date-range-picker/components/range-preset/range-preset.component.d.ts +23 -0
- package/lib/components/date-range-picker/date-range-picker.component.d.ts +29 -0
- package/lib/components/date-range-picker/date-range-picker.module.d.ts +18 -0
- package/lib/components/date-range-picker/index.d.ts +1 -0
- package/lib/components/date-range-picker/providers/date-range-picker.service.d.ts +8 -0
- package/lib/components/date-range-picker/public-api.d.ts +2 -0
- package/lib/components/form-error/control-status.directive.d.ts +3 -5
- package/lib/components/navigation/directives/show-hint.directive.d.ts +36 -0
- package/lib/components/navigation/navigation.module.d.ts +13 -10
- package/lib/components/navigation/navigation.types.d.ts +8 -1
- package/lib/components/navigation/pipes/should-hide.pipe.d.ts +11 -0
- package/lib/components/navigation/pipes/should-show-hint.pipe.d.ts +12 -0
- package/lib/components/navigation/providers/hide-item.resolver.d.ts +5 -0
- package/lib/components/navigation/providers/hint.resolver.d.ts +4 -0
- package/lib/components/navigation/providers/hint.service.d.ts +9 -0
- package/lib/components/navigation/public-api.d.ts +2 -0
- package/lib/components/navigation/vertical/vertical.component.d.ts +6 -2
- package/lib/components/public-api.d.ts +1 -0
- package/lib/components/sweet-alert/public-api.d.ts +1 -0
- package/lib/components/sweet-alert/sweet-alert.directive.d.ts +13 -0
- package/lib/components/sweet-alert/sweet-alert.module.d.ts +7 -6
- package/lib/components/sweet-alert/sweet-alert.service.d.ts +11 -0
- package/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.d.ts +14 -0
- package/lib/directives/chip-async-typeahead/index.d.ts +1 -0
- package/lib/directives/chip-async-typeahead/public-api.d.ts +1 -0
- package/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.d.ts +8 -0
- package/lib/directives/chip-list/chip-list-items/chip-list-items.component.d.ts +26 -0
- package/lib/directives/chip-list/chip-list.constant.d.ts +2 -0
- package/lib/directives/chip-list/chip-list.directive.d.ts +29 -0
- package/lib/directives/chip-list/chip-list.module.d.ts +14 -0
- package/lib/directives/chip-list/index.d.ts +1 -0
- package/lib/directives/chip-list/public-api.d.ts +4 -0
- package/lib/directives/public-api.d.ts +2 -0
- package/lib/utils/array.utils.d.ts +1 -1
- package/package.json +9 -9
- package/src/lib/components/assets-carousel/assets-carousel.theme.scss +44 -38
- package/src/lib/components/chip-list/chip-list.theme.scss +14 -0
- package/src/lib/components/chip-list/components/item-list/item-list.theme.scss +37 -0
- package/src/lib/components/date-range-picker/date-range-picker.theme.scss +47 -0
- package/src/lib/components/navigation/vertical/styles/appearances/default.theme.scss +38 -0
- package/src/lib/components/navigation/vertical/styles/appearances/dense.theme.scss +2 -2
- package/src/lib/directives/chip-list/chip-list-items/chip-list-items.theme.scss +35 -0
- package/src/lib/nice.theme.scss +7 -0
|
@@ -48,10 +48,15 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
48
48
|
edit: boolean;
|
|
49
49
|
accept: string[];
|
|
50
50
|
customActions: NiceAssetsCarouselActions[];
|
|
51
|
+
multipleUpload: boolean;
|
|
52
|
+
visiblePreviewAsset: number;
|
|
53
|
+
showAddAssetContainer: boolean;
|
|
51
54
|
activeChange: EventEmitter<number>;
|
|
55
|
+
removedAsset: EventEmitter<NiceAssets>;
|
|
52
56
|
listStyle: {
|
|
53
57
|
transform: string;
|
|
54
58
|
};
|
|
59
|
+
showOverlay: boolean;
|
|
55
60
|
private propagate;
|
|
56
61
|
set activeVideoElement(activeVideoElement: ElementRef<HTMLVideoElement>);
|
|
57
62
|
set assetsElement(assetsElement: QueryList<ElementRef<HTMLDivElement>>);
|
|
@@ -71,5 +76,5 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
71
76
|
clickCustom(action: NiceAssetsCarouselActions): void;
|
|
72
77
|
startSyncVideo(): Promise<void>;
|
|
73
78
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAssetsCarouselComponent, [{ optional: true; }]>;
|
|
74
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAssetsCarouselComponent, "nice-assets-carousel", never, { "color": "color"; "edit": "edit"; "accept": "accept"; "customActions": "customActions"; "assets": "assets"; }, { "activeChange": "activeChange"; }, never, never, false>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAssetsCarouselComponent, "nice-assets-carousel", never, { "color": "color"; "edit": "edit"; "accept": "accept"; "customActions": "customActions"; "multipleUpload": "multipleUpload"; "visiblePreviewAsset": "visiblePreviewAsset"; "showAddAssetContainer": "showAddAssetContainer"; "assets": "assets"; }, { "activeChange": "activeChange"; "removedAsset": "removedAsset"; }, never, never, false>;
|
|
75
80
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BooleanInput } from "@angular/cdk/coercion";
|
|
2
|
-
import { ChangeDetectorRef, DoCheck, ElementRef, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
2
|
+
import { ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
|
|
3
3
|
import { ControlValueAccessor, FormControl, FormGroupDirective, NgControl, NgForm } from "@angular/forms";
|
|
4
4
|
import { MatAutocompleteActivatedEvent, MatAutocompleteSelectedEvent } from "@angular/material/autocomplete";
|
|
5
5
|
import { ErrorStateMatcher, MatOption } from "@angular/material/core";
|
|
@@ -53,6 +53,7 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
53
53
|
emptyPlaceholder: string;
|
|
54
54
|
optionTemplate: TemplateRef<HTMLElement>;
|
|
55
55
|
filterFn: (value: any) => boolean | Promise<boolean> | Observable<boolean>;
|
|
56
|
+
selected: EventEmitter<any>;
|
|
56
57
|
set labelFormatFn(labelFormatFn: (item: any) => string);
|
|
57
58
|
private _labelFormatFn;
|
|
58
59
|
/**
|
|
@@ -96,7 +97,7 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
96
97
|
onOptionActivated(event: MatAutocompleteActivatedEvent): void;
|
|
97
98
|
onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
98
99
|
updateState(open: boolean): void;
|
|
99
|
-
onRemove(event?: Event): void;
|
|
100
|
+
onRemove(event?: Event, reload?: boolean): void;
|
|
100
101
|
formatLabel(item: any): string;
|
|
101
102
|
onEndScroll(): void;
|
|
102
103
|
focusChanged(isFocused: boolean): void;
|
|
@@ -106,6 +107,6 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
106
107
|
private updateSearchInput;
|
|
107
108
|
private checkIfValueStillExist;
|
|
108
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAsyncTypeaheadComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null, null]>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAsyncTypeaheadComponent, "nice-async-typeahead", never, { "resource": "resource"; "searchOptions": "searchOptions"; "preloadResource": "preloadResource"; "allowNotFoundItems": "allowNotFoundItems"; "panelClass": "panelClass"; "bindValue": "bindValue"; "bindLabel": "bindLabel"; "placeholder": "placeholder"; "emptyPlaceholder": "emptyPlaceholder"; "optionTemplate": "optionTemplate"; "filterFn": "filterFn"; "labelFormatFn": "labelFormatFn"; "disabled": "disabled"; "value": "value"; "required": "required"; }, {}, never, never, false>;
|
|
110
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAsyncTypeaheadComponent, "nice-async-typeahead", never, { "resource": "resource"; "searchOptions": "searchOptions"; "preloadResource": "preloadResource"; "allowNotFoundItems": "allowNotFoundItems"; "panelClass": "panelClass"; "bindValue": "bindValue"; "bindLabel": "bindLabel"; "placeholder": "placeholder"; "emptyPlaceholder": "emptyPlaceholder"; "optionTemplate": "optionTemplate"; "filterFn": "filterFn"; "labelFormatFn": "labelFormatFn"; "disabled": "disabled"; "value": "value"; "required": "required"; }, { "selected": "selected"; }, never, never, false>;
|
|
110
111
|
}
|
|
111
112
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy } from "@angular/core";
|
|
2
|
+
import { DateAdapter, MatDateFormats } from "@angular/material/core";
|
|
3
|
+
import { MatCalendar } from "@angular/material/datepicker";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class HeaderComponent<D> implements OnDestroy {
|
|
6
|
+
private calendar;
|
|
7
|
+
private dateAdapter;
|
|
8
|
+
private dateFormats;
|
|
9
|
+
private readonly destroy$;
|
|
10
|
+
toggled: boolean;
|
|
11
|
+
constructor(calendar: MatCalendar<D>, dateAdapter: DateAdapter<D>, dateFormats: MatDateFormats, cdr: ChangeDetectorRef);
|
|
12
|
+
get periodLabel(): string;
|
|
13
|
+
previousClicked(mode: "month" | "year"): void;
|
|
14
|
+
nextClicked(mode: "month" | "year"): void;
|
|
15
|
+
private changeDate;
|
|
16
|
+
clickOptions(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderComponent<any>, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderComponent<any>, "ng-component", never, {}, {}, never, never, false>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { DateAdapter } from "@angular/material/core";
|
|
2
|
+
import { MatDateRangePicker } from "@angular/material/datepicker";
|
|
3
|
+
import { NiceDateRangePickerServiceService } from "../../providers/date-range-picker.service";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
declare const customPresets: string[];
|
|
6
|
+
declare type CustomPreset = typeof customPresets[number];
|
|
7
|
+
export declare class RangePresetComponent<D> {
|
|
8
|
+
private dateAdapter;
|
|
9
|
+
private picker;
|
|
10
|
+
private service;
|
|
11
|
+
readonly customPresets: string[];
|
|
12
|
+
readonly allowClear$: import("rxjs").BehaviorSubject<boolean>;
|
|
13
|
+
constructor(dateAdapter: DateAdapter<D>, picker: MatDateRangePicker<D>, service: NiceDateRangePickerServiceService);
|
|
14
|
+
clearRange(): void;
|
|
15
|
+
selectRange(rangeName: CustomPreset): void;
|
|
16
|
+
private calculateDateRange;
|
|
17
|
+
private calculateMonth;
|
|
18
|
+
private calculateWeek;
|
|
19
|
+
private get today();
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RangePresetComponent<any>, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RangePresetComponent<any>, "nice-range-preset", never, {}, {}, never, never, false>;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OnInit } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor, FormControl, FormGroup } from "@angular/forms";
|
|
3
|
+
import { HeaderComponent } from "./components/header/header.component";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface NiceDateRangePickerValue {
|
|
6
|
+
from: Date;
|
|
7
|
+
to: Date;
|
|
8
|
+
}
|
|
9
|
+
export declare class NiceDateRangePickerComponent implements OnInit, ControlValueAccessor {
|
|
10
|
+
readonly HeaderComponent: typeof HeaderComponent;
|
|
11
|
+
private picker;
|
|
12
|
+
min: Date;
|
|
13
|
+
max: Date;
|
|
14
|
+
nowIsMax: boolean;
|
|
15
|
+
allowClear: boolean;
|
|
16
|
+
formGroup: FormGroup<{
|
|
17
|
+
from: FormControl<any>;
|
|
18
|
+
to: FormControl<any>;
|
|
19
|
+
}>;
|
|
20
|
+
now: Date;
|
|
21
|
+
value: NiceDateRangePickerValue;
|
|
22
|
+
private propage;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
writeValue(value: NiceDateRangePickerValue): void;
|
|
25
|
+
registerOnChange(fn: (value: NiceDateRangePickerValue) => void): void;
|
|
26
|
+
registerOnTouched(fn: any): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceDateRangePickerComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceDateRangePickerComponent, "nice-date-range-picker", never, { "min": "min"; "max": "max"; "nowIsMax": "nowIsMax"; "allowClear": "allowClear"; }, {}, never, never, false>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./date-range-picker.component";
|
|
3
|
+
import * as i2 from "./components/range-preset/range-preset.component";
|
|
4
|
+
import * as i3 from "./components/header/header.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/material/datepicker";
|
|
7
|
+
import * as i6 from "@angular/material/form-field";
|
|
8
|
+
import * as i7 from "@angular/material/card";
|
|
9
|
+
import * as i8 from "@angular/material/button";
|
|
10
|
+
import * as i9 from "@angular/material/icon";
|
|
11
|
+
import * as i10 from "@ngx-translate/core";
|
|
12
|
+
import * as i11 from "@angular/forms";
|
|
13
|
+
import * as i12 from "../../pipes/pipes.module";
|
|
14
|
+
export declare class NiceDateRangePickerModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceDateRangePickerModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceDateRangePickerModule, [typeof i1.NiceDateRangePickerComponent, typeof i2.RangePresetComponent, typeof i3.HeaderComponent], [typeof i4.CommonModule, typeof i5.MatDatepickerModule, typeof i6.MatFormFieldModule, typeof i7.MatCardModule, typeof i8.MatButtonModule, typeof i9.MatIconModule, typeof i10.TranslateModule, typeof i11.ReactiveFormsModule, typeof i12.NicePipesModule], [typeof i1.NiceDateRangePickerComponent]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NiceDateRangePickerModule>;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./public-api";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NiceDateRangePickerServiceService {
|
|
4
|
+
allowClear$: BehaviorSubject<boolean>;
|
|
5
|
+
setAllowClear(allowClear: boolean): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceDateRangePickerServiceService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NiceDateRangePickerServiceService>;
|
|
8
|
+
}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
2
|
-
import { NgControl } from "@angular/forms";
|
|
1
|
+
import { AfterViewInit, ElementRef, ViewContainerRef } from "@angular/core";
|
|
3
2
|
import { MatFormField } from "@angular/material/form-field";
|
|
4
3
|
import { TranslateService } from "@ngx-translate/core";
|
|
5
|
-
import { NiceFormErrorComponent } from "./form-error.component";
|
|
6
4
|
import * as i0 from "@angular/core";
|
|
7
5
|
export declare class NiceControlStatusDirective implements AfterViewInit {
|
|
8
6
|
private el;
|
|
9
7
|
private vcr;
|
|
10
8
|
private formField;
|
|
11
9
|
private translateService;
|
|
12
|
-
ref
|
|
13
|
-
control
|
|
10
|
+
private ref;
|
|
11
|
+
private control;
|
|
14
12
|
constructor(el: ElementRef<HTMLElement>, vcr: ViewContainerRef, formField: MatFormField, translateService: TranslateService);
|
|
15
13
|
ngAfterViewInit(): void;
|
|
16
14
|
onChange(): void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Overlay } from "@angular/cdk/overlay";
|
|
2
|
+
import { Platform } from "@angular/cdk/platform";
|
|
3
|
+
import { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef } from "@angular/core";
|
|
4
|
+
import { NiceNavigationItem } from "../navigation.types";
|
|
5
|
+
import { NiceNavigationHintService } from "../providers/hint.service";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NiceShowHintDirective implements AfterViewInit, OnDestroy {
|
|
8
|
+
private _overlay;
|
|
9
|
+
private _elementRef;
|
|
10
|
+
private _viewContainerRef;
|
|
11
|
+
private _ngZone;
|
|
12
|
+
private _platform;
|
|
13
|
+
private _hintService;
|
|
14
|
+
shouldShow: boolean;
|
|
15
|
+
item: NiceNavigationItem;
|
|
16
|
+
private _pointerExitEventsInitialized;
|
|
17
|
+
private _portal;
|
|
18
|
+
private _hintInstance;
|
|
19
|
+
private _overlayRef;
|
|
20
|
+
private readonly _passiveListeners;
|
|
21
|
+
private readonly unsubscribeAll$;
|
|
22
|
+
constructor(_overlay: Overlay, _elementRef: ElementRef<HTMLElement>, _viewContainerRef: ViewContainerRef, _ngZone: NgZone, _platform: Platform, _hintService: NiceNavigationHintService);
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
show(): void;
|
|
26
|
+
hide(): void;
|
|
27
|
+
private _createOverlay;
|
|
28
|
+
private _detach;
|
|
29
|
+
private _isHintVisible;
|
|
30
|
+
private _setupPointerEnterEventsIfNeeded;
|
|
31
|
+
private _setupPointerExitEventsIfNeeded;
|
|
32
|
+
private _platformSupportsMouseEvents;
|
|
33
|
+
private _addListeners;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceShowHintDirective, never>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceShowHintDirective, "[niceShowHint]", never, { "shouldShow": "shouldShow"; "item": "item"; }, {}, never, never, false>;
|
|
36
|
+
}
|
|
@@ -12,17 +12,20 @@ import * as i10 from "./vertical/components/divider/divider.component";
|
|
|
12
12
|
import * as i11 from "./vertical/components/group/group.component";
|
|
13
13
|
import * as i12 from "./vertical/components/spacer/spacer.component";
|
|
14
14
|
import * as i13 from "./vertical/vertical.component";
|
|
15
|
-
import * as i14 from "
|
|
16
|
-
import * as i15 from "
|
|
17
|
-
import * as i16 from "
|
|
18
|
-
import * as i17 from "@angular/
|
|
19
|
-
import * as i18 from "@angular/
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
21
|
-
import * as i20 from "@angular/material/
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "@
|
|
15
|
+
import * as i14 from "./pipes/should-hide.pipe";
|
|
16
|
+
import * as i15 from "./pipes/should-show-hint.pipe";
|
|
17
|
+
import * as i16 from "./directives/show-hint.directive";
|
|
18
|
+
import * as i17 from "@angular/common";
|
|
19
|
+
import * as i18 from "@angular/router";
|
|
20
|
+
import * as i19 from "@angular/material/button";
|
|
21
|
+
import * as i20 from "@angular/material/divider";
|
|
22
|
+
import * as i21 from "@angular/material/icon";
|
|
23
|
+
import * as i22 from "@angular/material/menu";
|
|
24
|
+
import * as i23 from "@angular/material/tooltip";
|
|
25
|
+
import * as i24 from "../../directives/scrollbar/scrollbar.module";
|
|
26
|
+
import * as i25 from "@ngx-translate/core";
|
|
24
27
|
export declare class NiceNavigationModule {
|
|
25
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceNavigationModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceNavigationModule, [typeof i1.NiceNavigationComponent, typeof i2.NiceHorizontalNavigationBasicItemComponent, typeof i3.NiceHorizontalNavigationBranchItemComponent, typeof i4.NiceHorizontalNavigationDividerItemComponent, typeof i5.NiceHorizontalNavigationSpacerItemComponent, typeof i6.NiceHorizontalNavigationComponent, typeof i7.NiceVerticalNavigationAsideItemComponent, typeof i8.NiceVerticalNavigationBasicItemComponent, typeof i9.NiceVerticalNavigationCollapsableItemComponent, typeof i10.NiceVerticalNavigationDividerItemComponent, typeof i11.NiceVerticalNavigationGroupItemComponent, typeof i12.NiceVerticalNavigationSpacerItemComponent, typeof i13.NiceVerticalNavigationComponent], [typeof
|
|
29
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceNavigationModule, [typeof i1.NiceNavigationComponent, typeof i2.NiceHorizontalNavigationBasicItemComponent, typeof i3.NiceHorizontalNavigationBranchItemComponent, typeof i4.NiceHorizontalNavigationDividerItemComponent, typeof i5.NiceHorizontalNavigationSpacerItemComponent, typeof i6.NiceHorizontalNavigationComponent, typeof i7.NiceVerticalNavigationAsideItemComponent, typeof i8.NiceVerticalNavigationBasicItemComponent, typeof i9.NiceVerticalNavigationCollapsableItemComponent, typeof i10.NiceVerticalNavigationDividerItemComponent, typeof i11.NiceVerticalNavigationGroupItemComponent, typeof i12.NiceVerticalNavigationSpacerItemComponent, typeof i13.NiceVerticalNavigationComponent, typeof i14.NiceShouldHidePipe, typeof i15.NiceShouldShowHintPipe, typeof i16.NiceShowHintDirective], [typeof i17.CommonModule, typeof i18.RouterModule, typeof i19.MatButtonModule, typeof i20.MatDividerModule, typeof i21.MatIconModule, typeof i22.MatMenuModule, typeof i23.MatTooltipModule, typeof i24.NiceScrollbarModule, typeof i25.TranslateModule], [typeof i6.NiceHorizontalNavigationComponent, typeof i13.NiceVerticalNavigationComponent]>;
|
|
27
30
|
static ɵinj: i0.ɵɵInjectorDeclaration<NiceNavigationModule>;
|
|
28
31
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { Type } from "@angular/core";
|
|
2
|
+
import { NavigationHideItemResolver } from "./providers/hide-item.resolver";
|
|
3
|
+
import { NavigationHintResolver } from "./providers/hint.resolver";
|
|
1
4
|
export declare type IconType = "fontawesome" | "material" | "svg";
|
|
2
5
|
export interface NiceNavigationItem {
|
|
3
6
|
id?: string;
|
|
4
7
|
title?: string;
|
|
5
8
|
subtitle?: string;
|
|
6
9
|
type: "aside" | "basic" | "collapsable" | "divider" | "group" | "spacer";
|
|
7
|
-
hidden?: (item: NiceNavigationItem) => boolean;
|
|
10
|
+
hidden?: Type<NavigationHideItemResolver> | ((item: NiceNavigationItem) => boolean) | boolean;
|
|
8
11
|
active?: boolean;
|
|
9
12
|
disabled?: boolean;
|
|
10
13
|
link?: string;
|
|
@@ -28,6 +31,10 @@ export interface NiceNavigationItem {
|
|
|
28
31
|
};
|
|
29
32
|
children?: NiceNavigationItem[];
|
|
30
33
|
meta?: any;
|
|
34
|
+
hint?: {
|
|
35
|
+
resolver: Type<NavigationHintResolver>;
|
|
36
|
+
component: Type<any>;
|
|
37
|
+
};
|
|
31
38
|
}
|
|
32
39
|
export declare type NiceVerticalNavigationAppearance = "default" | "compact" | "dense" | "thin";
|
|
33
40
|
export declare type NiceVerticalNavigationMode = "over" | "side";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Injector, PipeTransform } from "@angular/core";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { NiceNavigationItem } from "../navigation.types";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NiceShouldHidePipe implements PipeTransform {
|
|
6
|
+
private injector;
|
|
7
|
+
constructor(injector: Injector);
|
|
8
|
+
transform(value: NiceNavigationItem): Observable<boolean>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceShouldHidePipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NiceShouldHidePipe, "niceShouldHide", false>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Injector, PipeTransform } from "@angular/core";
|
|
2
|
+
import { Observable } from "rxjs";
|
|
3
|
+
import { NiceNavigationItem } from "../navigation.types";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NiceShouldShowHintPipe implements PipeTransform {
|
|
6
|
+
private injector;
|
|
7
|
+
constructor(injector: Injector);
|
|
8
|
+
transform(value: NiceNavigationItem | NiceNavigationItem[]): Observable<boolean>;
|
|
9
|
+
private transformHint;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceShouldShowHintPipe, never>;
|
|
11
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NiceShouldShowHintPipe, "niceShouldShowHint", false>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BehaviorSubject } from "rxjs";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NiceNavigationHintService {
|
|
4
|
+
hasActiveHint$: BehaviorSubject<boolean>;
|
|
5
|
+
get hasActiveHint(): boolean;
|
|
6
|
+
setActiveHint(isActive: boolean): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceNavigationHintService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NiceNavigationHintService>;
|
|
9
|
+
}
|
|
@@ -9,6 +9,7 @@ import { NiceUtilsService } from "../../../providers/utils";
|
|
|
9
9
|
import { NiceNavigationComponent } from "../navigation.component";
|
|
10
10
|
import { NiceNavigationService } from "../navigation.service";
|
|
11
11
|
import { NiceNavigationItem, NiceVerticalNavigationAppearance, NiceVerticalNavigationMode, NiceVerticalNavigationPosition } from "../navigation.types";
|
|
12
|
+
import { NiceNavigationHintService } from "../providers/hint.service";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class NiceVerticalNavigationComponent extends NiceNavigationComponent implements OnChanges, OnInit, AfterViewInit {
|
|
14
15
|
private _animationBuilder;
|
|
@@ -16,6 +17,7 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
16
17
|
private _renderer2;
|
|
17
18
|
private _router;
|
|
18
19
|
private _scrollStrategyOptions;
|
|
20
|
+
private _hintService;
|
|
19
21
|
static ngAcceptInputType_inner: BooleanInput;
|
|
20
22
|
static ngAcceptInputType_opened: BooleanInput;
|
|
21
23
|
static ngAcceptInputType_transparentOverlay: BooleanInput;
|
|
@@ -35,11 +37,13 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
35
37
|
mode: NiceVerticalNavigationMode;
|
|
36
38
|
opened: boolean;
|
|
37
39
|
hovered: boolean;
|
|
40
|
+
hasHint: boolean;
|
|
38
41
|
position: NiceVerticalNavigationPosition;
|
|
39
42
|
transparentOverlay: boolean;
|
|
40
43
|
readonly appearanceChanged: EventEmitter<NiceVerticalNavigationAppearance>;
|
|
41
44
|
readonly modeChanged: EventEmitter<NiceVerticalNavigationMode>;
|
|
42
45
|
readonly openedChanged: EventEmitter<boolean>;
|
|
46
|
+
readonly hoveredChanged: EventEmitter<boolean>;
|
|
43
47
|
readonly positionChanged: EventEmitter<NiceVerticalNavigationPosition>;
|
|
44
48
|
private _navigationContentEl;
|
|
45
49
|
set navigation(navigation: NiceNavigationItem[]);
|
|
@@ -50,7 +54,7 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
50
54
|
/**
|
|
51
55
|
* Constructor
|
|
52
56
|
*/
|
|
53
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _niceNavigationService: NiceNavigationService, _niceUtilsService: NiceUtilsService, _animationBuilder: AnimationBuilder, _elementRef: ElementRef, _renderer2: Renderer2, _router: Router, _scrollStrategyOptions: ScrollStrategyOptions);
|
|
57
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _niceNavigationService: NiceNavigationService, _niceUtilsService: NiceUtilsService, _animationBuilder: AnimationBuilder, _elementRef: ElementRef, _renderer2: Renderer2, _router: Router, _scrollStrategyOptions: ScrollStrategyOptions, _hintService: NiceNavigationHintService);
|
|
54
58
|
/**
|
|
55
59
|
* Host binding for component classes
|
|
56
60
|
*/
|
|
@@ -153,5 +157,5 @@ export declare class NiceVerticalNavigationComponent extends NiceNavigationCompo
|
|
|
153
157
|
*/
|
|
154
158
|
private _toggleOpened;
|
|
155
159
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceVerticalNavigationComponent, never>;
|
|
156
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NiceVerticalNavigationComponent, "nice-vertical-navigation", ["niceVerticalNavigation"], { "name": "name"; "appearance": "appearance"; "autoCollapse": "autoCollapse"; "inner": "inner"; "mode": "mode"; "opened": "opened"; "hovered": "hovered"; "position": "position"; "transparentOverlay": "transparentOverlay"; "navigation": "navigation"; }, { "appearanceChanged": "appearanceChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "positionChanged": "positionChanged"; }, never, ["[niceVerticalNavigationHeader]", "[niceVerticalNavigationContentHeader]", "[niceVerticalNavigationContentFooter]", "[niceVerticalNavigationFooter]"], false>;
|
|
160
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceVerticalNavigationComponent, "nice-vertical-navigation", ["niceVerticalNavigation"], { "name": "name"; "appearance": "appearance"; "autoCollapse": "autoCollapse"; "inner": "inner"; "mode": "mode"; "opened": "opened"; "hovered": "hovered"; "hasHint": "hasHint"; "position": "position"; "transparentOverlay": "transparentOverlay"; "navigation": "navigation"; }, { "appearanceChanged": "appearanceChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "hoveredChanged": "hoveredChanged"; "positionChanged": "positionChanged"; }, never, ["[niceVerticalNavigationHeader]", "[niceVerticalNavigationContentHeader]", "[niceVerticalNavigationContentFooter]", "[niceVerticalNavigationFooter]"], false>;
|
|
157
161
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EventEmitter } from "@angular/core";
|
|
2
|
+
import { NiceSweetAlertParams, NiceSweetAlertService } from "./sweet-alert.service";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NiceSweetAlertDirective {
|
|
5
|
+
private service;
|
|
6
|
+
sweetAlertType: "success" | "warning" | "info";
|
|
7
|
+
sweetAlertOptions: NiceSweetAlertParams;
|
|
8
|
+
sweetAlertAfterClosed: EventEmitter<boolean>;
|
|
9
|
+
constructor(service: NiceSweetAlertService);
|
|
10
|
+
onClick(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSweetAlertDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceSweetAlertDirective, "[niceSweetAlert]", never, { "sweetAlertType": "sweetAlertType"; "sweetAlertOptions": "sweetAlertOptions"; }, { "sweetAlertAfterClosed": "sweetAlertAfterClosed"; }, never, never, false>;
|
|
13
|
+
}
|
|
@@ -2,14 +2,15 @@ import { ModuleWithProviders } from "@angular/core";
|
|
|
2
2
|
import { NiceSweetAlertOptions } from "./sweet-alert.service";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./sweet-alert.component";
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
import * as i3 from "@
|
|
7
|
-
import * as i4 from "@
|
|
8
|
-
import * as i5 from "@angular/material/
|
|
9
|
-
import * as i6 from "
|
|
5
|
+
import * as i2 from "./sweet-alert.directive";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@ngx-translate/core";
|
|
8
|
+
import * as i5 from "@angular/material/dialog";
|
|
9
|
+
import * as i6 from "@angular/material/button";
|
|
10
|
+
import * as i7 from "../lottie/lottie.module";
|
|
10
11
|
export declare class NiceSweetAlertModule {
|
|
11
12
|
static forRoot(options?: NiceSweetAlertOptions): ModuleWithProviders<NiceSweetAlertModule>;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSweetAlertModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSweetAlertModule, [typeof i1.NiceSweetAlertComponent], [typeof
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceSweetAlertModule, [typeof i1.NiceSweetAlertComponent, typeof i2.NiceSweetAlertDirective], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.MatDialogModule, typeof i6.MatButtonModule, typeof i7.NiceLottieModule], [typeof i2.NiceSweetAlertDirective]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<NiceSweetAlertModule>;
|
|
15
16
|
}
|
|
@@ -6,16 +6,27 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
export interface NiceSweetAlertOptions {
|
|
7
7
|
customModal?: Type<any>;
|
|
8
8
|
}
|
|
9
|
+
export interface NiceSweetAlertParams {
|
|
10
|
+
translationPath?: string;
|
|
11
|
+
titleKey: string;
|
|
12
|
+
messageKey?: string;
|
|
13
|
+
buttonsKey: string[];
|
|
14
|
+
params?: object;
|
|
15
|
+
}
|
|
9
16
|
export declare class NiceSweetAlertService {
|
|
10
17
|
private options;
|
|
11
18
|
private matDialog;
|
|
12
19
|
private translateService;
|
|
13
20
|
private readonly modal;
|
|
14
21
|
constructor(options: NiceSweetAlertOptions, matDialog: MatDialog, translateService: TranslateService);
|
|
22
|
+
success(params: NiceSweetAlertParams): Observable<boolean>;
|
|
15
23
|
success(titleKey: string, messageKey: string, buttonsKey: string[], params?: object): Observable<boolean>;
|
|
24
|
+
warning(params: NiceSweetAlertParams): Observable<boolean>;
|
|
16
25
|
warning(titleKey: string, messageKey: string, buttonsKey: string[], params?: object): Observable<boolean>;
|
|
26
|
+
info(params: NiceSweetAlertParams): Observable<boolean>;
|
|
17
27
|
info(titleKey: string, messageKey: string, buttonsKey: string[], params?: object): Observable<boolean>;
|
|
18
28
|
private getTranslations;
|
|
29
|
+
private transformArgs;
|
|
19
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceSweetAlertService, [{ optional: true; }, null, null]>;
|
|
20
31
|
static ɵprov: i0.ɵɵInjectableDeclaration<NiceSweetAlertService>;
|
|
21
32
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import { NiceAsyncTypeaheadComponent } from "../../components";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NiceChipAsyncTypeaheadDirective implements OnInit, OnDestroy {
|
|
5
|
+
private typeahead;
|
|
6
|
+
private elementRef;
|
|
7
|
+
niceChipAsyncTypeaheadTokenEnd: EventEmitter<any>;
|
|
8
|
+
private unsubscribeAll$;
|
|
9
|
+
constructor(typeahead: NiceAsyncTypeaheadComponent, elementRef: ElementRef<HTMLElement>);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipAsyncTypeaheadDirective, never>;
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceChipAsyncTypeaheadDirective, "[niceChipAsyncTypeahead]", ["niceChipAsyncTypeahead"], {}, { "niceChipAsyncTypeaheadTokenEnd": "niceChipAsyncTypeaheadTokenEnd"; }, never, never, false>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./public-api";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./chip-async-typeahead.directive";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ChipListItemLabelDirective {
|
|
4
|
+
template: TemplateRef<any>;
|
|
5
|
+
constructor(template: TemplateRef<any>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChipListItemLabelDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ChipListItemLabelDirective, "[niceChipListItemLabel]", never, {}, {}, never, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from "@angular/core";
|
|
2
|
+
import { CanColor, ThemePalette } from "@angular/material/core";
|
|
3
|
+
import { Observable } from "rxjs";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare type NiceChipListActionIcon = {
|
|
6
|
+
matIcon: string;
|
|
7
|
+
svgIcon?: string;
|
|
8
|
+
} | {
|
|
9
|
+
matIcon?: string;
|
|
10
|
+
svgIcon: string;
|
|
11
|
+
};
|
|
12
|
+
export interface NiceChipListOptions {
|
|
13
|
+
closeButtonIcon: NiceChipListActionIcon;
|
|
14
|
+
}
|
|
15
|
+
export declare class NiceChipListItemsComponent implements CanColor {
|
|
16
|
+
readonly options: NiceChipListOptions;
|
|
17
|
+
itemLabel: TemplateRef<any>;
|
|
18
|
+
color: ThemePalette;
|
|
19
|
+
removeChip: EventEmitter<number>;
|
|
20
|
+
items$: Observable<any[]>;
|
|
21
|
+
defaultColor: ThemePalette;
|
|
22
|
+
constructor(options: NiceChipListOptions);
|
|
23
|
+
remove(index: number): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListItemsComponent, [{ optional: true; }]>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceChipListItemsComponent, "nice-chip-list-items", never, { "color": "color"; "items$": "items$"; }, { "removeChip": "removeChip"; }, ["itemLabel"], never, false>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ElementRef, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
3
|
+
import { NiceAsyncTypeaheadComponent } from "../../components";
|
|
4
|
+
import { NiceChipListItemsComponent } from "./chip-list-items/chip-list-items.component";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NiceChipListDirective implements ControlValueAccessor, OnInit, OnChanges {
|
|
7
|
+
private asyncTypeahead;
|
|
8
|
+
private ngControl;
|
|
9
|
+
private elementRef;
|
|
10
|
+
withItemList: NiceChipListItemsComponent;
|
|
11
|
+
reloadOnSelected: boolean;
|
|
12
|
+
private unsubscribeAll$;
|
|
13
|
+
private values$;
|
|
14
|
+
private _values;
|
|
15
|
+
private propagateChanges;
|
|
16
|
+
get values(): any[];
|
|
17
|
+
constructor(asyncTypeahead: NiceAsyncTypeaheadComponent, ngControl: NgControl, elementRef: ElementRef<HTMLInputElement>);
|
|
18
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
21
|
+
writeValue(obj: any[]): void;
|
|
22
|
+
registerOnChange(fn: any): void;
|
|
23
|
+
registerOnTouched(fn: any): void;
|
|
24
|
+
private setupAsyncTypeahead;
|
|
25
|
+
private addValue;
|
|
26
|
+
private updateTypeaheadSearchOptions;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListDirective, [{ optional: true; }, { optional: true; }, null]>;
|
|
28
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceChipListDirective, "input[niceChipList], nice-async-typeahead[niceChipList]", never, { "withItemList": "withItemList"; "reloadOnSelected": "reloadOnSelected"; }, {}, never, never, false>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ModuleWithProviders } from "@angular/core";
|
|
2
|
+
import { NiceChipListOptions } from "./chip-list-items/chip-list-items.component";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./chip-list.directive";
|
|
5
|
+
import * as i2 from "./chip-list-items/chip-list-items.component";
|
|
6
|
+
import * as i3 from "./chip-list-items/chip-list-item-label.directive";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
8
|
+
import * as i5 from "@angular/material/icon";
|
|
9
|
+
export declare class NiceChipListDirectiveModule {
|
|
10
|
+
static forRoot(options?: NiceChipListOptions): ModuleWithProviders<NiceChipListDirectiveModule>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListDirectiveModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceChipListDirectiveModule, [typeof i1.NiceChipListDirective, typeof i2.NiceChipListItemsComponent, typeof i3.ChipListItemLabelDirective], [typeof i4.CommonModule, typeof i5.MatIconModule], [typeof i1.NiceChipListDirective, typeof i2.NiceChipListItemsComponent, typeof i3.ChipListItemLabelDirective]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NiceChipListDirectiveModule>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./public-api";
|
|
@@ -8,7 +8,7 @@ export declare class ArrayUtils {
|
|
|
8
8
|
}): boolean;
|
|
9
9
|
private static unorderedShallowEquals;
|
|
10
10
|
static sortByKey(array: any[], key: string): any[];
|
|
11
|
-
static sortByKeyFn(key: string): (a: any, b: any) =>
|
|
11
|
+
static sortByKeyFn(key: string): (a: any, b: any) => 1 | -1 | 0;
|
|
12
12
|
static groupBy<Item, Key, Value>(array: Item[], keySelector: (item: Item) => Key, valueSelector: (item: Item) => Value[] | Value): Map<Key, Value[]>;
|
|
13
13
|
}
|
|
14
14
|
declare global {
|