@recursyve/nice-ui-kit.v2 13.2.0-beta.122 → 13.2.0-beta.124
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/components/assets-carousel/assets-carousel.component.mjs +8 -4
- package/esm2020/lib/components/assets-carousel/assets-carousel.module.mjs +6 -5
- package/esm2020/lib/components/assets-carousel/directives/assets-carousel-active-content.directive.mjs +14 -0
- package/esm2020/lib/components/assets-carousel/public-api.mjs +2 -1
- package/esm2020/lib/components/async-typeahead/async-typeahead.component.mjs +6 -2
- package/esm2020/lib/components/collapsable/collapsable.component.mjs +3 -3
- package/esm2020/lib/components/form-error/control-status.directive.mjs +2 -2
- package/esm2020/lib/components/typeahead/typeahead.component.mjs +2 -2
- package/esm2020/lib/directives/chip-list/chip-list.directive.mjs +8 -4
- package/esm2020/lib/pipes/pipes.module.mjs +10 -5
- package/esm2020/lib/pipes/public-api.mjs +2 -1
- package/esm2020/lib/pipes/track-by-prop.pipe.mjs +14 -0
- package/esm2020/lib/utils/keyboard.utils.mjs +2 -1
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +61 -20
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +60 -20
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/assets-carousel/assets-carousel.component.d.ts +3 -2
- package/lib/components/assets-carousel/assets-carousel.module.d.ts +9 -8
- package/lib/components/assets-carousel/directives/assets-carousel-active-content.directive.d.ts +8 -0
- package/lib/components/assets-carousel/public-api.d.ts +1 -0
- package/lib/components/async-typeahead/async-typeahead.component.d.ts +2 -1
- package/lib/directives/chip-list/chip-list.directive.d.ts +3 -1
- package/lib/pipes/pipes.module.d.ts +2 -1
- package/lib/pipes/public-api.d.ts +1 -0
- package/lib/pipes/track-by-prop.pipe.d.ts +7 -0
- package/lib/utils/keyboard.utils.d.ts +2 -1
- package/package.json +1 -1
- package/src/lib/components/collapsable/collapsable.theme.scss +6 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, QueryList } from "@angular/core";
|
|
1
|
+
import { ElementRef, EventEmitter, QueryList, TemplateRef } from "@angular/core";
|
|
2
2
|
import { ControlValueAccessor } from "@angular/forms";
|
|
3
3
|
import { CanColor, ThemePalette } from "@angular/material/core";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -51,6 +51,7 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
51
51
|
multipleUpload: boolean;
|
|
52
52
|
visiblePreviewAsset: number;
|
|
53
53
|
showAddAssetContainer: boolean;
|
|
54
|
+
activeContent: TemplateRef<any>;
|
|
54
55
|
activeChange: EventEmitter<number>;
|
|
55
56
|
removedAsset: EventEmitter<NiceAssets>;
|
|
56
57
|
listStyle: {
|
|
@@ -76,5 +77,5 @@ export declare class NiceAssetsCarouselComponent implements ControlValueAccessor
|
|
|
76
77
|
clickCustom(action: NiceAssetsCarouselActions): void;
|
|
77
78
|
startSyncVideo(): Promise<void>;
|
|
78
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAssetsCarouselComponent, [{ optional: true; }]>;
|
|
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"; },
|
|
80
|
+
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"; }, ["activeContent"], never>;
|
|
80
81
|
}
|
|
@@ -2,16 +2,17 @@ import { ModuleWithProviders } from "@angular/core";
|
|
|
2
2
|
import { NiceAssetsCarouselOptions } from "./assets-carousel.component";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./assets-carousel.component";
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
import * as i3 from "@angular/
|
|
7
|
-
import * as i4 from "@angular/material/
|
|
8
|
-
import * as i5 from "@angular/material/
|
|
9
|
-
import * as i6 from "@angular/material/
|
|
10
|
-
import * as i7 from "
|
|
11
|
-
import * as i8 from "
|
|
5
|
+
import * as i2 from "./directives/assets-carousel-active-content.directive";
|
|
6
|
+
import * as i3 from "@angular/common";
|
|
7
|
+
import * as i4 from "@angular/material/icon";
|
|
8
|
+
import * as i5 from "@angular/material/button";
|
|
9
|
+
import * as i6 from "@angular/material/menu";
|
|
10
|
+
import * as i7 from "@angular/material/core";
|
|
11
|
+
import * as i8 from "../../directives/dropzone/dropzone.module";
|
|
12
|
+
import * as i9 from "@ngx-translate/core";
|
|
12
13
|
export declare class NiceAssetsCarouselModule {
|
|
13
14
|
static forRoot(options?: NiceAssetsCarouselOptions): ModuleWithProviders<NiceAssetsCarouselModule>;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAssetsCarouselModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceAssetsCarouselModule, [typeof i1.NiceAssetsCarouselComponent], [typeof
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceAssetsCarouselModule, [typeof i1.NiceAssetsCarouselComponent, typeof i2.NiceAssetsCarouselActiveContentDirective], [typeof i3.CommonModule, typeof i4.MatIconModule, typeof i5.MatButtonModule, typeof i6.MatMenuModule, typeof i7.MatRippleModule, typeof i8.NiceDropzoneModule, typeof i9.TranslateModule], [typeof i1.NiceAssetsCarouselComponent, typeof i2.NiceAssetsCarouselActiveContentDirective]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<NiceAssetsCarouselModule>;
|
|
17
18
|
}
|
package/lib/components/assets-carousel/directives/assets-carousel-active-content.directive.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NiceAssetsCarouselActiveContentDirective {
|
|
4
|
+
template: TemplateRef<any>;
|
|
5
|
+
constructor(template: TemplateRef<any>);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAssetsCarouselActiveContentDirective, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceAssetsCarouselActiveContentDirective, "[niceAssetsCarouselActiveContent]", never, {}, {}, never>;
|
|
8
|
+
}
|
|
@@ -42,6 +42,7 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
42
42
|
active$: Observable<any>;
|
|
43
43
|
input: ElementRef<HTMLInputElement>;
|
|
44
44
|
options: MatOption[];
|
|
45
|
+
entityRemoved: EventEmitter<void>;
|
|
45
46
|
resource: string;
|
|
46
47
|
searchOptions: any;
|
|
47
48
|
preloadResource: boolean;
|
|
@@ -107,6 +108,6 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
|
|
|
107
108
|
private updateSearchInput;
|
|
108
109
|
private checkIfValueStillExist;
|
|
109
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<NiceAsyncTypeaheadComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null, null]>;
|
|
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>;
|
|
111
|
+
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"; }, { "entityRemoved": "entityRemoved"; "selected": "selected"; }, never, never>;
|
|
111
112
|
}
|
|
112
113
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ElementRef, OnChanges, OnInit, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { ControlValueAccessor, NgControl } from "@angular/forms";
|
|
3
3
|
import { NiceAsyncTypeaheadComponent } from "../../components";
|
|
4
|
+
import { KeyboardCodes } from "../../utils";
|
|
4
5
|
import { NiceChipListItemsComponent } from "./chip-list-items/chip-list-items.component";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NiceChipListDirective implements ControlValueAccessor, OnInit, OnChanges {
|
|
@@ -9,6 +10,7 @@ export declare class NiceChipListDirective implements ControlValueAccessor, OnIn
|
|
|
9
10
|
private elementRef;
|
|
10
11
|
withItemList: NiceChipListItemsComponent;
|
|
11
12
|
reloadOnSelected: boolean;
|
|
13
|
+
separatorKeyboardCodes: KeyboardCodes[];
|
|
12
14
|
private unsubscribeAll$;
|
|
13
15
|
private values$;
|
|
14
16
|
private _values;
|
|
@@ -25,5 +27,5 @@ export declare class NiceChipListDirective implements ControlValueAccessor, OnIn
|
|
|
25
27
|
private addValue;
|
|
26
28
|
private updateTypeaheadSearchOptions;
|
|
27
29
|
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>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceChipListDirective, "input[niceChipList], nice-async-typeahead[niceChipList]", never, { "withItemList": "withItemList"; "reloadOnSelected": "reloadOnSelected"; "separatorKeyboardCodes": "separatorKeyboardCodes"; }, {}, never>;
|
|
29
31
|
}
|
|
@@ -21,8 +21,9 @@ import * as i19 from "./range.pipe";
|
|
|
21
21
|
import * as i20 from "./round.pipe";
|
|
22
22
|
import * as i21 from "./sanitize-bypass.pipe";
|
|
23
23
|
import * as i22 from "./seconds-to-time.pipe";
|
|
24
|
+
import * as i23 from "./track-by-prop.pipe";
|
|
24
25
|
export declare class NicePipesModule {
|
|
25
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<NicePipesModule, never>;
|
|
26
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NicePipesModule, [typeof i1.BooleanPipe, typeof i2.CapitalizeFirstLetterPipe, typeof i3.CeilPipe, typeof i4.FindByKeyPipe, typeof i5.FirstLetterPipe, typeof i6.FloorPipe, typeof i7.JoinPipe, typeof i8.EntriesPipe, typeof i9.LinkPipe, typeof i10.LocalizedBooleanPipe, typeof i11.LocalizedCurrencyPipe, typeof i12.LocalizedDatePipe, typeof i13.LocalizedDateOnlyPipe, typeof i14.MinutesToTimePipe, typeof i15.NumberToOrdinalIndicatorPipe, typeof i16.PadPipe, typeof i17.PhonePipe, typeof i18.PostalCodePipe, typeof i19.RangePipe, typeof i20.RoundPipe, typeof i21.SanitizeBypassPipe, typeof i22.SecondsToTimePipe], never, [typeof i1.BooleanPipe, typeof i2.CapitalizeFirstLetterPipe, typeof i3.CeilPipe, typeof i4.FindByKeyPipe, typeof i5.FirstLetterPipe, typeof i6.FloorPipe, typeof i7.JoinPipe, typeof i8.EntriesPipe, typeof i9.LinkPipe, typeof i10.LocalizedBooleanPipe, typeof i11.LocalizedCurrencyPipe, typeof i12.LocalizedDatePipe, typeof i13.LocalizedDateOnlyPipe, typeof i14.MinutesToTimePipe, typeof i15.NumberToOrdinalIndicatorPipe, typeof i16.PadPipe, typeof i17.PhonePipe, typeof i18.PostalCodePipe, typeof i19.RangePipe, typeof i20.RoundPipe, typeof i21.SanitizeBypassPipe, typeof i22.SecondsToTimePipe]>;
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NicePipesModule, [typeof i1.BooleanPipe, typeof i2.CapitalizeFirstLetterPipe, typeof i3.CeilPipe, typeof i4.FindByKeyPipe, typeof i5.FirstLetterPipe, typeof i6.FloorPipe, typeof i7.JoinPipe, typeof i8.EntriesPipe, typeof i9.LinkPipe, typeof i10.LocalizedBooleanPipe, typeof i11.LocalizedCurrencyPipe, typeof i12.LocalizedDatePipe, typeof i13.LocalizedDateOnlyPipe, typeof i14.MinutesToTimePipe, typeof i15.NumberToOrdinalIndicatorPipe, typeof i16.PadPipe, typeof i17.PhonePipe, typeof i18.PostalCodePipe, typeof i19.RangePipe, typeof i20.RoundPipe, typeof i21.SanitizeBypassPipe, typeof i22.SecondsToTimePipe, typeof i23.TrackByPropPipe], never, [typeof i1.BooleanPipe, typeof i2.CapitalizeFirstLetterPipe, typeof i3.CeilPipe, typeof i4.FindByKeyPipe, typeof i5.FirstLetterPipe, typeof i6.FloorPipe, typeof i7.JoinPipe, typeof i8.EntriesPipe, typeof i9.LinkPipe, typeof i10.LocalizedBooleanPipe, typeof i11.LocalizedCurrencyPipe, typeof i12.LocalizedDatePipe, typeof i13.LocalizedDateOnlyPipe, typeof i14.MinutesToTimePipe, typeof i15.NumberToOrdinalIndicatorPipe, typeof i16.PadPipe, typeof i17.PhonePipe, typeof i18.PostalCodePipe, typeof i19.RangePipe, typeof i20.RoundPipe, typeof i21.SanitizeBypassPipe, typeof i22.SecondsToTimePipe, typeof i23.TrackByPropPipe]>;
|
|
27
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<NicePipesModule>;
|
|
28
29
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform, TrackByFunction } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TrackByPropPipe<T = any> implements PipeTransform {
|
|
4
|
+
transform(prop: keyof T & string): TrackByFunction<T>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackByPropPipe<any>, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TrackByPropPipe<any>, "trackByProp">;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -2,18 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
@mixin nice-collapsable-theme($theme) {
|
|
4
4
|
nice-collapsable {
|
|
5
|
-
.collapse
|
|
6
|
-
@apply visible;
|
|
7
|
-
}
|
|
8
|
-
.collapse {
|
|
9
|
-
@apply relative grid overflow-hidden;
|
|
5
|
+
.nice-collapse {
|
|
6
|
+
@apply relative visible grid overflow-hidden;
|
|
10
7
|
}
|
|
11
8
|
.collapse-title,
|
|
12
|
-
.collapse > input[type="checkbox"],
|
|
9
|
+
.nice-collapse > input[type="checkbox"],
|
|
13
10
|
.collapse-content {
|
|
14
11
|
@apply col-start-1 row-start-1;
|
|
15
12
|
}
|
|
16
|
-
.collapse > input[type="checkbox"] {
|
|
13
|
+
.nice-collapse > input[type="checkbox"] {
|
|
17
14
|
@apply opacity-0;
|
|
18
15
|
|
|
19
16
|
appearance: none;
|
|
@@ -25,8 +22,8 @@
|
|
|
25
22
|
max-height: 0px;
|
|
26
23
|
}
|
|
27
24
|
.collapse-open .collapse-content,
|
|
28
|
-
.collapse:focus:not(.collapse-close) .collapse-content,
|
|
29
|
-
.collapse:not(.collapse-close)
|
|
25
|
+
.nice-collapse:focus:not(.collapse-close) .collapse-content,
|
|
26
|
+
.nice-collapse:not(.collapse-close)
|
|
30
27
|
input[type="checkbox"]:checked
|
|
31
28
|
~ .collapse-content {
|
|
32
29
|
max-height: 9000px;
|