@osovitny/anatoly 2.14.34 → 2.14.37
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/assets/styles/styles.scss +7 -2
- package/esm2020/lib/ui/components/nodata/nodata.component.mjs +15 -4
- package/esm2020/lib/ui/forms/components/urlslug/urlslug.component.mjs +11 -11
- package/fesm2015/osovitny-anatoly.mjs +23 -13
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +23 -13
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/nodata/nodata.component.d.ts +5 -1
- package/package.json +1 -1
|
@@ -3176,17 +3176,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3176
3176
|
*/
|
|
3177
3177
|
class NodataComponent {
|
|
3178
3178
|
constructor() {
|
|
3179
|
+
//Inputs
|
|
3180
|
+
this.loading = false;
|
|
3181
|
+
this.loaded = false;
|
|
3182
|
+
this.datafound = false;
|
|
3179
3183
|
this.icon = 'fas fa-cubes fa-w-16 fa-9x';
|
|
3180
3184
|
this.heading = 'No data found';
|
|
3181
3185
|
this.headingClass = 'text-uppercase text-primary';
|
|
3182
3186
|
}
|
|
3183
3187
|
}
|
|
3184
3188
|
NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3185
|
-
NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class
|
|
3189
|
+
NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { loading: "loading", loaded: "loaded", datafound: "datafound", icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='loaded && !datafound'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3186
3190
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
|
|
3187
3191
|
type: Component,
|
|
3188
|
-
args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class
|
|
3189
|
-
}], propDecorators: {
|
|
3192
|
+
args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='loaded && !datafound'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
|
|
3193
|
+
}], ctorParameters: function () { return []; }, propDecorators: { loading: [{
|
|
3194
|
+
type: Input
|
|
3195
|
+
}], loaded: [{
|
|
3196
|
+
type: Input
|
|
3197
|
+
}], datafound: [{
|
|
3198
|
+
type: Input
|
|
3199
|
+
}], icon: [{
|
|
3190
3200
|
type: Input
|
|
3191
3201
|
}], heading: [{
|
|
3192
3202
|
type: Input
|
|
@@ -3905,18 +3915,18 @@ class UrlSlugComponent extends BaseEditComponent {
|
|
|
3905
3915
|
let event = { urlSlug: slugedText };
|
|
3906
3916
|
this.generating.emit(event);
|
|
3907
3917
|
this.setFormValue(this.controlName, event.urlSlug);
|
|
3908
|
-
this.hrefGo = `${event.urlSlug}`;
|
|
3909
3918
|
}
|
|
3910
3919
|
startWatching() {
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
+
this.subs.sink = this.formGroup.get(this.watchedControlName).valueChanges.subscribe(value => {
|
|
3921
|
+
if (this.firstValue) {
|
|
3922
|
+
this.firstValue = false;
|
|
3923
|
+
return;
|
|
3924
|
+
}
|
|
3925
|
+
this.generateUrlSlug(value);
|
|
3926
|
+
});
|
|
3927
|
+
this.subs.sink = this.formGroup.get(this.controlName).valueChanges.subscribe(value => {
|
|
3928
|
+
this.hrefGo = value;
|
|
3929
|
+
});
|
|
3920
3930
|
}
|
|
3921
3931
|
//Events
|
|
3922
3932
|
onUrlSlugChange() {
|