@recursyve/nice-ui-kit.v2 14.0.0-beta.100 → 14.0.0-beta.101
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/collapsable/collapsable.component.mjs +36 -0
- package/esm2020/lib/components/collapsable/collapsable.module.mjs +25 -0
- package/esm2020/lib/components/collapsable/index.mjs +2 -0
- package/esm2020/lib/components/collapsable/public-api.mjs +3 -0
- package/esm2020/lib/components/public-api.mjs +2 -1
- package/esm2020/lib/directives/chip-list/chip-list.directive.mjs +8 -4
- package/esm2020/lib/utils/keyboard.utils.mjs +2 -1
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +82 -11
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +81 -11
- 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/collapsable/collapsable.component.d.ts +15 -0
- package/lib/components/collapsable/collapsable.module.d.ts +9 -0
- package/lib/components/collapsable/index.d.ts +1 -0
- package/lib/components/collapsable/public-api.d.ts +2 -0
- package/lib/components/public-api.d.ts +1 -0
- package/lib/directives/chip-list/chip-list.directive.d.ts +3 -1
- package/lib/utils/keyboard.utils.d.ts +2 -1
- package/package.json +1 -1
- package/src/lib/components/collapsable/collapsable.theme.scss +51 -0
- package/src/lib/nice.theme.scss +3 -1
|
@@ -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, false>;
|
|
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, never, false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
|
|
2
|
+
import { FormControl } from "@angular/forms";
|
|
3
|
+
import { Subject } from "rxjs";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NiceCollapsableComponent implements OnInit, OnChanges, OnDestroy {
|
|
6
|
+
open: boolean;
|
|
7
|
+
openChange: EventEmitter<boolean>;
|
|
8
|
+
unsubscribeAll$: Subject<void>;
|
|
9
|
+
control: FormControl<boolean>;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceCollapsableComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NiceCollapsableComponent, "nice-collapsable", never, { "open": "open"; }, { "openChange": "openChange"; }, never, ["[niceCollapsableTitle]", "[niceCollapsableContent]"], false>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./collapsable.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
export declare class NiceCollapsableModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NiceCollapsableModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NiceCollapsableModule, [typeof i1.NiceCollapsableComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule], [typeof i1.NiceCollapsableComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NiceCollapsableModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./public-api";
|
|
@@ -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, never, false>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NiceChipListDirective, "input[niceChipList], nice-async-typeahead[niceChipList]", never, { "withItemList": "withItemList"; "reloadOnSelected": "reloadOnSelected"; "separatorKeyboardCodes": "separatorKeyboardCodes"; }, {}, never, never, false>;
|
|
29
31
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/* From https://github.com/saadeghi/daisyui/blob/master/src/components/unstyled/collapse.css */
|
|
2
|
+
|
|
3
|
+
@mixin nice-collapsable-theme($theme) {
|
|
4
|
+
nice-collapsable {
|
|
5
|
+
.collapse.collapse {
|
|
6
|
+
@apply visible;
|
|
7
|
+
}
|
|
8
|
+
.collapse {
|
|
9
|
+
@apply relative grid overflow-hidden;
|
|
10
|
+
}
|
|
11
|
+
.collapse-title,
|
|
12
|
+
.collapse > input[type="checkbox"],
|
|
13
|
+
.collapse-content {
|
|
14
|
+
@apply col-start-1 row-start-1;
|
|
15
|
+
}
|
|
16
|
+
.collapse > input[type="checkbox"] {
|
|
17
|
+
@apply opacity-0;
|
|
18
|
+
|
|
19
|
+
appearance: none;
|
|
20
|
+
-webkit-appearance: none;
|
|
21
|
+
-ms-progress-appearance: none;
|
|
22
|
+
}
|
|
23
|
+
.collapse-content {
|
|
24
|
+
@apply row-start-2 overflow-hidden;
|
|
25
|
+
max-height: 0px;
|
|
26
|
+
}
|
|
27
|
+
.collapse-open .collapse-content,
|
|
28
|
+
.collapse:focus:not(.collapse-close) .collapse-content,
|
|
29
|
+
.collapse:not(.collapse-close)
|
|
30
|
+
input[type="checkbox"]:checked
|
|
31
|
+
~ .collapse-content {
|
|
32
|
+
max-height: 9000px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.collapse-title {
|
|
36
|
+
@apply bg-card p-4;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.peer:hover ~ .collapse-title {
|
|
40
|
+
@apply shadow-2xl;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.collapse-content {
|
|
44
|
+
@apply bg-card;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.peer:checked ~ .collapse-content {
|
|
48
|
+
@apply p-4;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
package/src/lib/nice.theme.scss
CHANGED
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
@import "./components/assets-carousel/assets-carousel.theme";
|
|
9
9
|
@import "./components/base-form/base-form.theme";
|
|
10
10
|
@import "./components/card/card.theme";
|
|
11
|
-
@import "components/
|
|
11
|
+
@import "./components/collapsable/collapsable.theme";
|
|
12
|
+
@import "./components/date-range-picker/date-range-picker.theme";
|
|
12
13
|
@import "./components/drawer/drawer.theme";
|
|
13
14
|
@import "./components/horizontal-stepper/horizontal-stepper.theme";
|
|
14
15
|
@import "./components/navigation/horizontal/horizontal.theme";
|
|
@@ -22,6 +23,7 @@
|
|
|
22
23
|
@include nice-assets-carousel-theme($theme);
|
|
23
24
|
@include nice-base-form-theme($theme);
|
|
24
25
|
@include nice-card-theme($theme);
|
|
26
|
+
@include nice-collapsable-theme($theme);
|
|
25
27
|
@include nice-date-picker-theme($theme);
|
|
26
28
|
@include nice-drawer-theme($theme);
|
|
27
29
|
@include nice-horizontal-stepper-theme($theme);
|