@recursyve/nice-ui-kit.v2 14.0.0-beta.95 → 14.0.0-beta.96
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 +24 -12
- package/esm2020/lib/components/alert/alert.module.mjs +4 -4
- package/esm2020/lib/components/alert/alert.service.mjs +3 -3
- package/esm2020/lib/components/alert/alert.types.mjs +1 -1
- package/esm2020/lib/components/assets-carousel/assets-carousel.component.mjs +12 -6
- 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/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 +3 -3
- 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/horizontal/components/basic/basic.component.mjs +3 -3
- package/esm2020/lib/components/navigation/horizontal/components/branch/branch.component.mjs +3 -3
- 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 +3 -3
- package/esm2020/lib/components/navigation/navigation.component.mjs +3 -3
- package/esm2020/lib/components/navigation/navigation.module.mjs +4 -4
- package/esm2020/lib/components/navigation/navigation.service.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/aside/aside.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/basic/basic.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/collapsable/collapsable.component.mjs +6 -16
- package/esm2020/lib/components/navigation/vertical/components/divider/divider.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/group/group.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/components/spacer/spacer.component.mjs +3 -3
- package/esm2020/lib/components/navigation/vertical/vertical.component.mjs +3 -3
- 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/sweet-alert.component.mjs +3 -3
- package/esm2020/lib/components/sweet-alert/sweet-alert.module.mjs +4 -4
- package/esm2020/lib/components/sweet-alert/sweet-alert.service.mjs +3 -3
- 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 +32 -0
- package/esm2020/lib/directives/chip-list/chip-list.directive.mjs +117 -0
- package/esm2020/lib/directives/chip-list/chip-list.module.mjs +21 -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 +647 -446
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +652 -446
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/alert/alert.component.d.ts +3 -2
- package/lib/components/alert/alert.types.d.ts +1 -0
- package/lib/components/assets-carousel/assets-carousel.component.d.ts +4 -1
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +4 -3
- 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 +14 -0
- package/lib/directives/chip-list/chip-list.directive.d.ts +29 -0
- package/lib/directives/chip-list/chip-list.module.d.ts +11 -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 +1 -1
- package/src/lib/components/assets-carousel/assets-carousel.theme.scss +31 -33
- 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/directives/chip-list/chip-list-items/chip-list-items.theme.scss +35 -0
- package/src/lib/nice.theme.scss +5 -0
|
@@ -2,7 +2,7 @@ import { BooleanInput } from "@angular/cdk/coercion";
|
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
3
3
|
import { NiceUtilsService } from "../../providers/utils";
|
|
4
4
|
import { NiceAlertService } from "./alert.service";
|
|
5
|
-
import { NiceAlertType, NiceAlertAppearance } from "./alert.types";
|
|
5
|
+
import { NiceAlertType, NiceAlertAppearance, NiceAlertColor } from "./alert.types";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class NiceAlertComponent implements OnChanges, OnInit, OnDestroy {
|
|
8
8
|
private _changeDetectorRef;
|
|
@@ -19,6 +19,7 @@ export declare class NiceAlertComponent implements OnChanges, OnInit, OnDestroy
|
|
|
19
19
|
name: string;
|
|
20
20
|
showIcon: boolean;
|
|
21
21
|
type: NiceAlertType;
|
|
22
|
+
color?: NiceAlertColor;
|
|
22
23
|
readonly dismissedChanged: EventEmitter<boolean>;
|
|
23
24
|
private _unsubscribeAll;
|
|
24
25
|
/**
|
|
@@ -59,5 +60,5 @@ export declare class NiceAlertComponent implements OnChanges, OnInit, OnDestroy
|
|
|
59
60
|
*/
|
|
60
61
|
private _toggleDismiss;
|
|
61
62
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAlertComponent, never>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAlertComponent, "nice-alert", ["niceAlert"], { "appearance": "appearance"; "dismissed": "dismissed"; "dismissible": "dismissible"; "disableAnimation": "disableAnimation"; "name": "name"; "showIcon": "showIcon"; "type": "type"; }, { "dismissedChanged": "dismissedChanged"; }, never, ["[niceAlertIcon]", "[niceAlertTitle]", "*"], false>;
|
|
63
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAlertComponent, "nice-alert", ["niceAlert"], { "appearance": "appearance"; "dismissed": "dismissed"; "dismissible": "dismissible"; "disableAnimation": "disableAnimation"; "name": "name"; "showIcon": "showIcon"; "type": "type"; "color": "color"; }, { "dismissedChanged": "dismissedChanged"; }, never, ["[niceAlertIcon]", "[niceAlertTitle]", "*"], false>;
|
|
63
64
|
}
|
|
@@ -48,10 +48,13 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
48
48
|
edit: boolean;
|
|
49
49
|
accept: string[];
|
|
50
50
|
customActions: NiceAssetsCarouselActions[];
|
|
51
|
+
multipleUpload: boolean;
|
|
52
|
+
showAddAssetContainer: boolean;
|
|
51
53
|
activeChange: EventEmitter<number>;
|
|
52
54
|
listStyle: {
|
|
53
55
|
transform: string;
|
|
54
56
|
};
|
|
57
|
+
showOverlay: boolean;
|
|
55
58
|
private propagate;
|
|
56
59
|
set activeVideoElement(activeVideoElement: ElementRef<HTMLVideoElement>);
|
|
57
60
|
set assetsElement(assetsElement: QueryList<ElementRef<HTMLDivElement>>);
|
|
@@ -71,5 +74,5 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
71
74
|
clickCustom(action: NiceAssetsCarouselActions): void;
|
|
72
75
|
startSyncVideo(): Promise<void>;
|
|
73
76
|
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>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceAssetsCarouselComponent, "nice-assets-carousel", never, { "color": "color"; "edit": "edit"; "accept": "accept"; "customActions": "customActions"; "multipleUpload": "multipleUpload"; "showAddAssetContainer": "showAddAssetContainer"; "assets": "assets"; }, { "activeChange": "activeChange"; }, never, never, false>;
|
|
75
78
|
}
|
|
@@ -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,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,14 @@
|
|
|
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 class NiceChipListItemsComponent implements CanColor {
|
|
6
|
+
itemLabel: TemplateRef<any>;
|
|
7
|
+
color: ThemePalette;
|
|
8
|
+
removeChip: EventEmitter<number>;
|
|
9
|
+
items$: Observable<any[]>;
|
|
10
|
+
defaultColor: ThemePalette;
|
|
11
|
+
remove(index: number): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListItemsComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceChipListItemsComponent, "nice-chip-list-items", never, { "color": "color"; "items$": "items$"; }, { "removeChip": "removeChip"; }, ["itemLabel"], never, false>;
|
|
14
|
+
}
|
|
@@ -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,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./chip-list.directive";
|
|
3
|
+
import * as i2 from "./chip-list-items/chip-list-items.component";
|
|
4
|
+
import * as i3 from "./chip-list-items/chip-list-item-label.directive";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@angular/material/icon";
|
|
7
|
+
export declare class NiceChipListDirectiveModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListDirectiveModule, never>;
|
|
9
|
+
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]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NiceChipListDirectiveModule>;
|
|
11
|
+
}
|
|
@@ -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 {
|
package/package.json
CHANGED
|
@@ -42,13 +42,10 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.carousel {
|
|
45
|
-
@apply flex flex-row items-center;
|
|
45
|
+
@apply relative flex flex-row items-center;
|
|
46
46
|
|
|
47
47
|
.asset-list-container {
|
|
48
|
-
@apply flex flex-row overflow-x-hidden;
|
|
49
|
-
|
|
50
|
-
min-width: 400px;
|
|
51
|
-
max-width: 400px;
|
|
48
|
+
@apply flex flex-row overflow-x-hidden min-w-full max-w-full;
|
|
52
49
|
|
|
53
50
|
.asset-list {
|
|
54
51
|
@apply flex flex-row;
|
|
@@ -56,33 +53,34 @@
|
|
|
56
53
|
transition: transform 500ms cubic-bezier(0.35, 0, 0.25, 1);
|
|
57
54
|
}
|
|
58
55
|
}
|
|
56
|
+
}
|
|
59
57
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
.left-arrow {
|
|
59
|
+
@apply -left-[10%];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.right-arrow {
|
|
63
|
+
@apply -right-[10%];
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
image, img, video {
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
@apply w-full h-full select-none object-cover rounded;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.action-button {
|
|
71
|
+
@apply absolute w-8 h-8 min-w-8 min-h-8;
|
|
68
72
|
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
border-radius: 4px;
|
|
73
|
+
.mat-button-wrapper {
|
|
74
|
+
@apply w-full;
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
.active-image {
|
|
76
|
-
@apply
|
|
77
|
-
|
|
78
|
-
width: 400px;
|
|
79
|
+
@apply relative cursor-pointer mb-4 w-full rounded;
|
|
79
80
|
height: 280px;
|
|
80
81
|
|
|
81
|
-
margin-bottom: 16px;
|
|
82
|
-
border-radius: 4px;
|
|
83
|
-
|
|
84
82
|
&.empty-state {
|
|
85
|
-
@apply border border-white select-none
|
|
83
|
+
@apply border border-white select-none;
|
|
86
84
|
|
|
87
85
|
.empty-state-content {
|
|
88
86
|
@apply h-full flex flex-col justify-center items-center;
|
|
@@ -101,10 +99,9 @@
|
|
|
101
99
|
@apply absolute top-3 right-3 flex flex-row;
|
|
102
100
|
|
|
103
101
|
.mat-icon-button {
|
|
104
|
-
@apply bg-white ml-2.5;
|
|
102
|
+
@apply bg-white ml-2.5 rounded;
|
|
105
103
|
|
|
106
104
|
@include nice.override-mat-icon-size(32, true);
|
|
107
|
-
border-radius: 4px;
|
|
108
105
|
|
|
109
106
|
&[disabled] * {
|
|
110
107
|
@apply text-black text-opacity-80 #{!important};
|
|
@@ -119,22 +116,26 @@
|
|
|
119
116
|
}
|
|
120
117
|
}
|
|
121
118
|
|
|
119
|
+
.active-image-overlay {
|
|
120
|
+
@apply absolute top-0 w-full h-full bg-default bg-opacity-50;
|
|
121
|
+
|
|
122
|
+
.mat-icon {
|
|
123
|
+
@include nice.override-mat-icon-size(60, true);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
122
127
|
.arrows {
|
|
123
128
|
@include nice.override-mat-icon-size(16, true);
|
|
124
129
|
}
|
|
125
130
|
|
|
126
131
|
.add-asset-container {
|
|
127
|
-
@apply bg-default z-50 cursor-pointer select-none;
|
|
132
|
+
@apply bg-default z-50 cursor-pointer select-none mr-3;
|
|
128
133
|
|
|
129
134
|
min-width: 90px;
|
|
130
135
|
min-height: 60px;
|
|
131
|
-
margin-right: 12px;
|
|
132
136
|
|
|
133
137
|
.add-asset {
|
|
134
|
-
@apply h-full w-full flex justify-center items-center;
|
|
135
|
-
@apply border border-white border-solid;
|
|
136
|
-
|
|
137
|
-
border-radius: 4px;
|
|
138
|
+
@apply h-full w-full flex justify-center items-center border border-white border-solid rounded;
|
|
138
139
|
|
|
139
140
|
.mat-icon {
|
|
140
141
|
@apply text-default text-opacity-50 #{!important};
|
|
@@ -145,11 +146,8 @@
|
|
|
145
146
|
.asset {
|
|
146
147
|
width: 90px;
|
|
147
148
|
height: 60px;
|
|
148
|
-
border-radius: 4px;
|
|
149
|
-
|
|
150
|
-
margin-right: 12px;
|
|
151
149
|
|
|
152
|
-
cursor
|
|
150
|
+
@apply rounded mr-3 cursor-pointer;
|
|
153
151
|
|
|
154
152
|
&.active {
|
|
155
153
|
@apply border border-opacity-100 #{!important};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use "../../nice.utils" as nice;
|
|
2
|
+
@import "components/item-list/item-list.theme";
|
|
3
|
+
|
|
4
|
+
@mixin nice-chip-list-theme($theme) {
|
|
5
|
+
@include nice-item-list-theme($theme);
|
|
6
|
+
|
|
7
|
+
nice-chip-list {
|
|
8
|
+
@apply w-full;
|
|
9
|
+
|
|
10
|
+
.nice-chip-row {
|
|
11
|
+
@apply gap-2;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
@use "../../../../nice.utils" as nice;
|
|
2
|
+
|
|
3
|
+
@mixin nice-item-list-theme($theme) {
|
|
4
|
+
mat-form-field {
|
|
5
|
+
nice-item-list {
|
|
6
|
+
.nice-items-row {
|
|
7
|
+
@apply mt-4;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
nice-item-list {
|
|
13
|
+
.nice-items-row {
|
|
14
|
+
@apply flex flex-row flex-wrap items-center gap-2;
|
|
15
|
+
|
|
16
|
+
.nice-chip {
|
|
17
|
+
@apply flex flex-row items-center justify-start rounded-3xl gap-3 px-3 py-0.5 min-w-24;
|
|
18
|
+
|
|
19
|
+
.close-icon {
|
|
20
|
+
@apply mt-1 opacity-70;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.primary {
|
|
24
|
+
@apply bg-primary;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&.accent {
|
|
28
|
+
@apply bg-accent;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&.warn {
|
|
32
|
+
@apply bg-warn;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
@mixin nice-chip-list-items-theme($theme) {
|
|
2
|
+
mat-form-field {
|
|
3
|
+
nice-chip-list-items {
|
|
4
|
+
.nice-items-row {
|
|
5
|
+
@apply mt-4;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
nice-chip-list-items {
|
|
11
|
+
.nice-items-row {
|
|
12
|
+
@apply flex flex-row flex-wrap items-center gap-2;
|
|
13
|
+
|
|
14
|
+
.nice-chip {
|
|
15
|
+
@apply flex flex-row items-center justify-start rounded-3xl gap-3 px-3 py-0.5 min-w-24;
|
|
16
|
+
|
|
17
|
+
.close-icon {
|
|
18
|
+
@apply mt-1 opacity-70;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.primary {
|
|
22
|
+
@apply bg-primary;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.accent {
|
|
26
|
+
@apply bg-accent;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&.warn {
|
|
30
|
+
@apply bg-warn;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
package/src/lib/nice.theme.scss
CHANGED
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
@import "./components/navigation/horizontal/horizontal.theme";
|
|
14
14
|
@import "./components/navigation/vertical/vertical.theme";
|
|
15
15
|
@import "./components/toggle-button-group/toggle-button-group.theme";
|
|
16
|
+
@import "./components/chip-list/chip-list.theme";
|
|
17
|
+
@import "./directives/chip-list/chip-list-items/chip-list-items.theme";
|
|
18
|
+
|
|
16
19
|
@mixin nice-components-theme($theme) {
|
|
17
20
|
@include nice-alert-theme($theme);
|
|
18
21
|
@include nice-assets-carousel-theme($theme);
|
|
@@ -21,6 +24,8 @@
|
|
|
21
24
|
@include nice-drawer-theme($theme);
|
|
22
25
|
@include nice-horizontal-stepper-theme($theme);
|
|
23
26
|
@include nice-toggle-button-group-theme($theme);
|
|
27
|
+
@include nice-chip-list-theme($theme);
|
|
28
|
+
@include nice-chip-list-items-theme($theme);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
@mixin nice-custom-theme($theme) {
|