@hestia-earth/ui-components 0.32.39 → 0.32.41
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.
|
@@ -33,11 +33,11 @@ export declare class ShellComponent {
|
|
|
33
33
|
className?: string;
|
|
34
34
|
activeClassName?: string;
|
|
35
35
|
}[]>;
|
|
36
|
-
protected clickedButton: WritableSignal<string | null>;
|
|
37
|
-
protected expanded: WritableSignal<boolean>;
|
|
38
|
-
protected menuRef: WritableSignal<TemplateRef<any>>;
|
|
39
|
-
activeButtonId: import("@angular/core").Signal<string>;
|
|
40
|
-
activeMenuId: import("@angular/core").Signal<string>;
|
|
36
|
+
protected readonly clickedButton: WritableSignal<string | null>;
|
|
37
|
+
protected readonly expanded: WritableSignal<boolean>;
|
|
38
|
+
protected readonly menuRef: WritableSignal<TemplateRef<any>>;
|
|
39
|
+
protected readonly activeButtonId: import("@angular/core").Signal<string>;
|
|
40
|
+
protected readonly activeMenuId: import("@angular/core").Signal<string>;
|
|
41
41
|
protected topMenuButtons: import("@angular/core").Signal<{
|
|
42
42
|
isActive: boolean;
|
|
43
43
|
id: string;
|
|
@@ -490,11 +490,13 @@ class HESvgIconComponent {
|
|
|
490
490
|
return `${this.size()}px`;
|
|
491
491
|
}
|
|
492
492
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: HESvgIconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
493
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.4", type: HESvgIconComponent, isStandalone: true, selector: "he-svg-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, svgClass: { classPropertyName: "svgClass", publicName: "svgClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.width": "this._width", "style.height": "this._height" } }, ngImport: i0, template: "<svg-icon [name]=\"iconName()\" [svgClass]=\"svgClass()\" [attr.animation]=\"animation()\" />\n", styles: ["@keyframes spinner{to{transform:rotate(360deg)}}:host{display:inline-block;color:inherit;vertical-align:text-top}svg-icon{display:inline-block;color:inherit;width:inherit;height:inherit}svg-icon>svg{color:inherit;width:inherit;height:inherit}svg-icon[animation=spin]>svg{animation:spinner 2s linear infinite}\n"], dependencies: [{ kind: "component", type: SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "svgClass", "class", "viewBox", "svgAriaLabel", "onSVGLoaded", "svgStyle"] }] }); }
|
|
493
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.1.4", type: HESvgIconComponent, isStandalone: true, selector: "he-svg-icon", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, animation: { classPropertyName: "animation", publicName: "animation", isSignal: true, isRequired: false, transformFunction: null }, svgClass: { classPropertyName: "svgClass", publicName: "svgClass", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.icon-size": "size()", "style.width": "this._width", "style.height": "this._height" } }, ngImport: i0, template: "<svg-icon [name]=\"iconName()\" [svgClass]=\"svgClass()\" [attr.animation]=\"animation()\" />\n", styles: ["@keyframes spinner{to{transform:rotate(360deg)}}:host{display:inline-block;color:inherit;vertical-align:text-top}svg-icon{display:inline-block;color:inherit;width:inherit;height:inherit}svg-icon>svg{color:inherit;width:inherit;height:inherit}svg-icon[animation=spin]>svg{animation:spinner 2s linear infinite}\n"], dependencies: [{ kind: "component", type: SvgIconComponent, selector: "svg-icon", inputs: ["src", "name", "stretch", "applyClass", "svgClass", "class", "viewBox", "svgAriaLabel", "onSVGLoaded", "svgStyle"] }] }); }
|
|
494
494
|
}
|
|
495
495
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.4", ngImport: i0, type: HESvgIconComponent, decorators: [{
|
|
496
496
|
type: Component$1,
|
|
497
|
-
args: [{ selector: 'he-svg-icon', imports: [SvgIconComponent],
|
|
497
|
+
args: [{ selector: 'he-svg-icon', imports: [SvgIconComponent], host: {
|
|
498
|
+
'[attr.icon-size]': 'size()'
|
|
499
|
+
}, template: "<svg-icon [name]=\"iconName()\" [svgClass]=\"svgClass()\" [attr.animation]=\"animation()\" />\n", styles: ["@keyframes spinner{to{transform:rotate(360deg)}}:host{display:inline-block;color:inherit;vertical-align:text-top}svg-icon{display:inline-block;color:inherit;width:inherit;height:inherit}svg-icon>svg{color:inherit;width:inherit;height:inherit}svg-icon[animation=spin]>svg{animation:spinner 2s linear infinite}\n"] }]
|
|
498
500
|
}], propDecorators: { _width: [{
|
|
499
501
|
type: HostBinding,
|
|
500
502
|
args: ['style.width']
|
|
@@ -2939,13 +2941,11 @@ class MobileShellComponent {
|
|
|
2939
2941
|
this.activeButtonId = computed(() => {
|
|
2940
2942
|
return this.clickedButton() || this._defaultActiveButtonId();
|
|
2941
2943
|
});
|
|
2942
|
-
this.activeMenuId = computed(() =>
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
}
|
|
2948
|
-
});
|
|
2944
|
+
this.activeMenuId = computed(() => this.expanded() && this.menuRef()
|
|
2945
|
+
? this._shelfButtons()
|
|
2946
|
+
.findIndex(button => button.menuRef === this.menuRef())
|
|
2947
|
+
?.toString()
|
|
2948
|
+
: undefined);
|
|
2949
2949
|
}
|
|
2950
2950
|
set menuButtons(value) {
|
|
2951
2951
|
this._shelfButtons.set(value);
|
|
@@ -3117,13 +3117,11 @@ class ShellComponent {
|
|
|
3117
3117
|
this.activeButtonId = computed(() => {
|
|
3118
3118
|
return this.clickedButton() || this._defaultActiveButtonId();
|
|
3119
3119
|
});
|
|
3120
|
-
this.activeMenuId = computed(() =>
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
}
|
|
3126
|
-
});
|
|
3120
|
+
this.activeMenuId = computed(() => this.expanded() && this.menuRef()
|
|
3121
|
+
? this._shelfButtons()
|
|
3122
|
+
.findIndex(button => button.menuRef === this.menuRef())
|
|
3123
|
+
?.toString()
|
|
3124
|
+
: undefined);
|
|
3127
3125
|
this.topMenuButtons = computed(() => {
|
|
3128
3126
|
return this.buttons().filter(button => !button.position || button.position === 'top');
|
|
3129
3127
|
});
|
|
@@ -12782,10 +12780,7 @@ class SelectOptionGroupComponent {
|
|
|
12782
12780
|
return this.expanded;
|
|
12783
12781
|
}
|
|
12784
12782
|
toggleSelectAll() {
|
|
12785
|
-
|
|
12786
|
-
return;
|
|
12787
|
-
}
|
|
12788
|
-
return this.isAllSelected ? this.unselectAll() : this.selectAll();
|
|
12783
|
+
return this.disabled ? null : this.isAllSelected ? this.unselectAll() : this.selectAll();
|
|
12789
12784
|
}
|
|
12790
12785
|
selectAll() {
|
|
12791
12786
|
if (!this._parent.isMultiple()) {
|
|
@@ -13297,10 +13292,11 @@ class SitesManagementChartComponent {
|
|
|
13297
13292
|
this.selectedTermType = signal(undefined);
|
|
13298
13293
|
this.selectedManagement = computed(() => this.managementPerTermType()?.[this.selectedTermType()?.termType]?.[this.selectedTermType()?.blankNodesGroup] ??
|
|
13299
13294
|
[]);
|
|
13295
|
+
this.selectedManagementTerms = computed(() => unique(this.selectedManagement().map(v => v.term)));
|
|
13300
13296
|
this.dates = computed(() => this.selectedManagement()
|
|
13301
13297
|
.flatMap(({ startDate, endDate }) => [formatDate(startDate, true), formatDate(endDate, false)])
|
|
13302
13298
|
.filter(Boolean));
|
|
13303
|
-
this.chartColors = computed(() => this.
|
|
13299
|
+
this.chartColors = computed(() => Object.fromEntries(this.selectedManagementTerms().map((term, index) => [term.name, getColor(index)])));
|
|
13304
13300
|
// compute list of all dates used on the chart, sorted ascending.
|
|
13305
13301
|
// need to add dates even when there are no data, otherwise the chart will stack wrongly
|
|
13306
13302
|
// @ee https://github.com/chartjs/Chart.js/issues/5405
|