@recursyve/nice-ui-kit.v2 14.0.0-beta.111 → 14.0.0-beta.113
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 +15 -4
- package/esm2020/lib/components/navigation/directives/show-hint.directive.mjs +2 -1
- package/esm2020/lib/components/navigation/vertical/vertical.component.mjs +11 -5
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs +26 -6
- package/fesm2015/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs +24 -6
- package/fesm2020/recursyve-nice-ui-kit.v2.mjs.map +1 -1
- package/lib/components/assets-carousel/assets-carousel.component.d.ts +3 -1
- package/lib/components/navigation/vertical/vertical.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1840,7 +1840,10 @@ class NiceAssetsCarouselComponent {
|
|
|
1840
1840
|
onFilesChange(event) {
|
|
1841
1841
|
var _a;
|
|
1842
1842
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1843
|
-
|
|
1843
|
+
let files = (_a = event.target) === null || _a === void 0 ? void 0 : _a.files;
|
|
1844
|
+
if (this.imagesProcessor) {
|
|
1845
|
+
files = yield this.getProcessedFiles(files);
|
|
1846
|
+
}
|
|
1844
1847
|
yield this.onFilesDrop(files);
|
|
1845
1848
|
this.inputElement.nativeElement.value = "";
|
|
1846
1849
|
});
|
|
@@ -1899,9 +1902,17 @@ class NiceAssetsCarouselComponent {
|
|
|
1899
1902
|
yield this._assetsElement.get(this._active).nativeElement.firstElementChild.play();
|
|
1900
1903
|
});
|
|
1901
1904
|
}
|
|
1905
|
+
getProcessedFiles(files) {
|
|
1906
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1907
|
+
try {
|
|
1908
|
+
return yield this.imagesProcessor(files);
|
|
1909
|
+
}
|
|
1910
|
+
catch (e) { }
|
|
1911
|
+
});
|
|
1912
|
+
}
|
|
1902
1913
|
}
|
|
1903
1914
|
NiceAssetsCarouselComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.3", ngImport: i0, type: NiceAssetsCarouselComponent, deps: [{ token: NICE_ASSETS_CAROUSEL_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
1904
|
-
NiceAssetsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceAssetsCarouselComponent, selector: "nice-assets-carousel", inputs: { color: "color", edit: "edit", accept: "accept", customActions: "customActions", multipleUpload: "multipleUpload", visiblePreviewAsset: "visiblePreviewAsset", showAddAssetContainer: "showAddAssetContainer", assets: "assets" }, outputs: { activeChange: "activeChange", removedAsset: "removedAsset" }, providers: [
|
|
1915
|
+
NiceAssetsCarouselComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.3", type: NiceAssetsCarouselComponent, selector: "nice-assets-carousel", inputs: { color: "color", edit: "edit", accept: "accept", customActions: "customActions", imagesProcessor: "imagesProcessor", multipleUpload: "multipleUpload", visiblePreviewAsset: "visiblePreviewAsset", showAddAssetContainer: "showAddAssetContainer", assets: "assets" }, outputs: { activeChange: "activeChange", removedAsset: "removedAsset" }, providers: [
|
|
1905
1916
|
{
|
|
1906
1917
|
provide: NG_VALUE_ACCESSOR,
|
|
1907
1918
|
useExisting: forwardRef(() => NiceAssetsCarouselComponent),
|
|
@@ -1935,6 +1946,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.3", ngImpor
|
|
|
1935
1946
|
type: Input
|
|
1936
1947
|
}], customActions: [{
|
|
1937
1948
|
type: Input
|
|
1949
|
+
}], imagesProcessor: [{
|
|
1950
|
+
type: Input
|
|
1938
1951
|
}], multipleUpload: [{
|
|
1939
1952
|
type: Input
|
|
1940
1953
|
}], visiblePreviewAsset: [{
|
|
@@ -8170,6 +8183,7 @@ class NiceShowHintDirective {
|
|
|
8170
8183
|
this._overlayRef.detach();
|
|
8171
8184
|
}
|
|
8172
8185
|
this._hintInstance = null;
|
|
8186
|
+
this._hintService.setActiveHint(false);
|
|
8173
8187
|
}
|
|
8174
8188
|
_isHintVisible() {
|
|
8175
8189
|
return !!this._hintInstance;
|
|
@@ -8834,6 +8848,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8834
8848
|
this._router = _router;
|
|
8835
8849
|
this._scrollStrategyOptions = _scrollStrategyOptions;
|
|
8836
8850
|
this._hintService = _hintService;
|
|
8851
|
+
this._forceHovered = false;
|
|
8837
8852
|
this._animationsEnabled = false;
|
|
8838
8853
|
this._scrollStrategy = this._scrollStrategyOptions.block();
|
|
8839
8854
|
this.name = this._niceUtilsService.randomId();
|
|
@@ -8868,6 +8883,11 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8868
8883
|
get navigation() {
|
|
8869
8884
|
return this._navigation;
|
|
8870
8885
|
}
|
|
8886
|
+
set forceHovered(forceHovered) {
|
|
8887
|
+
this._forceHovered = forceHovered;
|
|
8888
|
+
this.hoveredChanged.next((this.hovered || this._forceHovered) || this.hasHint);
|
|
8889
|
+
this._changeDetectorRef.markForCheck();
|
|
8890
|
+
}
|
|
8871
8891
|
// -----------------------------------------------------------------------------------------------------
|
|
8872
8892
|
// @ Accessors
|
|
8873
8893
|
// -----------------------------------------------------------------------------------------------------
|
|
@@ -8878,7 +8898,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
8878
8898
|
return {
|
|
8879
8899
|
"nice-vertical-navigation-animations-enabled": this._animationsEnabled,
|
|
8880
8900
|
[`nice-vertical-navigation-appearance-${this.appearance}`]: true,
|
|
8881
|
-
"nice-vertical-navigation-hover": this.hovered,
|
|
8901
|
+
"nice-vertical-navigation-hover": this.hovered || this._forceHovered,
|
|
8882
8902
|
"nice-vertical-navigation-inner": this.inner,
|
|
8883
8903
|
"nice-vertical-navigation-mode-over": this.mode === "over",
|
|
8884
8904
|
"nice-vertical-navigation-mode-side": this.mode === "side",
|
|
@@ -9016,7 +9036,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
9016
9036
|
});
|
|
9017
9037
|
this._hintService.hasActiveHint$.pipe(takeUntil(this._unsubscribeAll)).subscribe(hasHint => {
|
|
9018
9038
|
this.hasHint = hasHint;
|
|
9019
|
-
this.hoveredChanged.next(this.hovered || this.hasHint);
|
|
9039
|
+
this.hoveredChanged.next((this.hovered || this._forceHovered) || this.hasHint);
|
|
9020
9040
|
});
|
|
9021
9041
|
}
|
|
9022
9042
|
/**
|
|
@@ -9282,7 +9302,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
9282
9302
|
this._enableAnimations();
|
|
9283
9303
|
// Set the hovered
|
|
9284
9304
|
this.hovered = true;
|
|
9285
|
-
this.hoveredChanged.next(this.hovered);
|
|
9305
|
+
this.hoveredChanged.next(this.hovered || this._forceHovered);
|
|
9286
9306
|
}
|
|
9287
9307
|
/**
|
|
9288
9308
|
* On mouseleave
|
|
@@ -9292,7 +9312,7 @@ class NiceVerticalNavigationComponent extends NiceNavigationComponent {
|
|
|
9292
9312
|
this._enableAnimations();
|
|
9293
9313
|
// Set the hovered
|
|
9294
9314
|
this.hovered = false;
|
|
9295
|
-
this.hoveredChanged.next(this.hovered || this.hasHint);
|
|
9315
|
+
this.hoveredChanged.next(this.hovered || this._forceHovered || this.hasHint);
|
|
9296
9316
|
}
|
|
9297
9317
|
/**
|
|
9298
9318
|
* Open/close the navigation
|