@lenne.tech/ng-base 13.31.1 → 13.32.2
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/base-components/components/loading-bar/loading-bar.component.d.ts +14 -2
- package/base-components/components/model-form/model-form.component.d.ts +3 -0
- package/base-prototype/pages/profile/profile.component.d.ts +7 -2
- package/esm2020/base-components/components/loading-bar/loading-bar.component.mjs +30 -6
- package/esm2020/base-components/components/model-form/model-form.component.mjs +4 -1
- package/esm2020/base-components/components/refence-input/refence-input.component.mjs +2 -2
- package/esm2020/base-prototype/pages/profile/profile.component.mjs +17 -6
- package/esm2020/shared/services/user.service.mjs +15 -1
- package/fesm2015/lenne.tech-ng-base-base-components.mjs +30 -6
- package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -1
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs +16 -5
- package/fesm2015/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
- package/fesm2015/lenne.tech-ng-base-shared.mjs +14 -0
- package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-components.mjs +29 -5
- package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs +16 -5
- package/fesm2020/lenne.tech-ng-base-base-prototype.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-shared.mjs +14 -0
- package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/services/user.service.d.ts +7 -0
|
@@ -371,13 +371,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImpor
|
|
|
371
371
|
}] } });
|
|
372
372
|
|
|
373
373
|
class LoadingBarComponent {
|
|
374
|
+
constructor(ngZone, changeDetectorRef, loaderService) {
|
|
375
|
+
this.ngZone = ngZone;
|
|
376
|
+
this.changeDetectorRef = changeDetectorRef;
|
|
377
|
+
this.loaderService = loaderService;
|
|
378
|
+
this.manuallyLoading = false;
|
|
379
|
+
this.loading = false;
|
|
380
|
+
this.subscription = new Subscription();
|
|
381
|
+
}
|
|
382
|
+
ngOnInit() {
|
|
383
|
+
this.ngZone.runOutsideAngular(() => {
|
|
384
|
+
this.subscription.add(this.loaderService.isLoading.subscribe((value) => {
|
|
385
|
+
this.loading = value;
|
|
386
|
+
this.changeDetectorRef.detectChanges();
|
|
387
|
+
}));
|
|
388
|
+
});
|
|
389
|
+
}
|
|
390
|
+
ngOnDestroy() {
|
|
391
|
+
this.subscription.unsubscribe();
|
|
392
|
+
}
|
|
374
393
|
}
|
|
375
|
-
LoadingBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoadingBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
376
|
-
LoadingBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: LoadingBarComponent, selector: "base-loading-bar", ngImport: i0, template: "<div class=\"slider\">\n <div class=\"line\"></div>\n <div class=\"subline inc\"></div>\n <div class=\"subline dec\"></div>\n</div>\n", styles: [":host{--base-loading-bar-color: #f28c18;--base-loading-bar-height: 5px;--base-loading-bar-z-index: 999999999}.slider{position:fixed;left:0;right:0;height:var(--base-loading-bar-height);overflow-x:hidden;z-index:var(--base-loading-bar-z-index);background-color:#fff}.line{position:absolute;opacity:.6;background:var(--base-loading-bar-color);width:150%;height:var(--base-loading-bar-height)}.subline{position:absolute;background:var(--base-loading-bar-color);height:var(--base-loading-bar-height)}.inc{animation:increase 2s infinite}.dec{animation:decrease 2s .5s infinite}@keyframes increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}\n"] });
|
|
394
|
+
LoadingBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoadingBarComponent, deps: [{ token: i0.NgZone }, { token: i0.ChangeDetectorRef }, { token: i1$1.LoaderService }], target: i0.ɵɵFactoryTarget.Component });
|
|
395
|
+
LoadingBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.3", type: LoadingBarComponent, selector: "base-loading-bar", inputs: { manuallyLoading: "manuallyLoading" }, ngImport: i0, template: "<div class=\"slider\" *ngIf=\"loading || manuallyLoading\">\n <div class=\"line\"></div>\n <div class=\"subline inc\"></div>\n <div class=\"subline dec\"></div>\n</div>\n", styles: [":host{--base-loading-bar-color: #f28c18;--base-loading-bar-height: 5px;--base-loading-bar-z-index: 999999999}.slider{position:fixed;left:0;right:0;height:var(--base-loading-bar-height);overflow-x:hidden;z-index:var(--base-loading-bar-z-index);background-color:#fff}.line{position:absolute;opacity:.6;background:var(--base-loading-bar-color);width:150%;height:var(--base-loading-bar-height)}.subline{position:absolute;background:var(--base-loading-bar-color);height:var(--base-loading-bar-height)}.inc{animation:increase 2s infinite}.dec{animation:decrease 2s .5s infinite}@keyframes increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
377
396
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.3", ngImport: i0, type: LoadingBarComponent, decorators: [{
|
|
378
397
|
type: Component,
|
|
379
|
-
args: [{ selector: 'base-loading-bar', template: "<div class=\"slider\">\n <div class=\"line\"></div>\n <div class=\"subline inc\"></div>\n <div class=\"subline dec\"></div>\n</div>\n", styles: [":host{--base-loading-bar-color: #f28c18;--base-loading-bar-height: 5px;--base-loading-bar-z-index: 999999999}.slider{position:fixed;left:0;right:0;height:var(--base-loading-bar-height);overflow-x:hidden;z-index:var(--base-loading-bar-z-index);background-color:#fff}.line{position:absolute;opacity:.6;background:var(--base-loading-bar-color);width:150%;height:var(--base-loading-bar-height)}.subline{position:absolute;background:var(--base-loading-bar-color);height:var(--base-loading-bar-height)}.inc{animation:increase 2s infinite}.dec{animation:decrease 2s .5s infinite}@keyframes increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}\n"] }]
|
|
380
|
-
}] }
|
|
398
|
+
args: [{ selector: 'base-loading-bar', template: "<div class=\"slider\" *ngIf=\"loading || manuallyLoading\">\n <div class=\"line\"></div>\n <div class=\"subline inc\"></div>\n <div class=\"subline dec\"></div>\n</div>\n", styles: [":host{--base-loading-bar-color: #f28c18;--base-loading-bar-height: 5px;--base-loading-bar-z-index: 999999999}.slider{position:fixed;left:0;right:0;height:var(--base-loading-bar-height);overflow-x:hidden;z-index:var(--base-loading-bar-z-index);background-color:#fff}.line{position:absolute;opacity:.6;background:var(--base-loading-bar-color);width:150%;height:var(--base-loading-bar-height)}.subline{position:absolute;background:var(--base-loading-bar-color);height:var(--base-loading-bar-height)}.inc{animation:increase 2s infinite}.dec{animation:decrease 2s .5s infinite}@keyframes increase{0%{left:-5%;width:5%}to{left:130%;width:100%}}@keyframes decrease{0%{left:-80%;width:80%}to{left:110%;width:10%}}\n"] }]
|
|
399
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ChangeDetectorRef }, { type: i1$1.LoaderService }]; }, propDecorators: { manuallyLoading: [{
|
|
400
|
+
type: Input
|
|
401
|
+
}] } });
|
|
381
402
|
|
|
382
403
|
class SkeletonLoaderComponent {
|
|
383
404
|
constructor() {
|
|
@@ -667,7 +688,7 @@ class RefenceInputComponent {
|
|
|
667
688
|
filterOptions() {
|
|
668
689
|
return this.objects
|
|
669
690
|
? this.objects.filter((e) => (!this.currentValue || e[this.textField]?.includes(this.currentValue)) &&
|
|
670
|
-
!this.control
|
|
691
|
+
!this.control?.value?.includes(e?.value))
|
|
671
692
|
: [];
|
|
672
693
|
}
|
|
673
694
|
/**
|
|
@@ -852,6 +873,9 @@ class ModelFormComponent {
|
|
|
852
873
|
}
|
|
853
874
|
}
|
|
854
875
|
}
|
|
876
|
+
/**
|
|
877
|
+
* It takes a key as an argument, and returns an array of keys from the sub-object
|
|
878
|
+
*/
|
|
855
879
|
getKeysFromSubObject(key) {
|
|
856
880
|
return Object.keys(this.fields[key]);
|
|
857
881
|
}
|