@hestia-earth/ui-components 0.41.6 → 0.41.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hestia-earth/ui-components",
3
- "version": "0.41.6",
3
+ "version": "0.41.7",
4
4
  "description": "HESTIA reusable components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,10 +14,11 @@ import { Selection } from 'd3-selection';
14
14
  import { HttpClient, HttpHeaders } from '@angular/common/http';
15
15
  import { propertyValueType } from '@hestia-earth/utils/dist/term';
16
16
  import * as _hestia_earth_engine_models from '@hestia-earth/engine-models';
17
- import { IModel, IOrchestratorConfig, IOrchestratorModelConfig, allowedType } from '@hestia-earth/engine-models';
17
+ import { IModel, IOrchestratorModelConfig, IOrchestratorConfig, allowedType } from '@hestia-earth/engine-models';
18
18
  import { DataState, File, SupportedExtensions } from '@hestia-earth/api';
19
19
  import * as _hestia_earth_ui_components from '@hestia-earth/ui-components';
20
20
  import { DeltaDisplayType } from '@hestia-earth/utils/dist/delta';
21
+ import { PlacementArray } from '@ng-bootstrap/ng-bootstrap';
21
22
  import { AnimationEvent } from '@angular/animations';
22
23
  import { IsActiveMatchOptions } from '@angular/router';
23
24
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
@@ -1165,8 +1166,10 @@ declare class ClipboardComponent {
1165
1166
  protected readonly value: _angular_core.InputSignal<string>;
1166
1167
  protected readonly disabled: _angular_core.InputSignal<boolean>;
1167
1168
  protected readonly hideText: _angular_core.InputSignal<boolean>;
1169
+ protected readonly hideIcon: _angular_core.InputSignal<boolean>;
1168
1170
  protected readonly size: _angular_core.InputSignal<_hestia_earth_ui_components.svgIconSizes>;
1169
1171
  protected readonly clipboardClass: _angular_core.InputSignal<string>;
1172
+ protected readonly tooltipPlacement: _angular_core.InputSignal<PlacementArray>;
1170
1173
  protected readonly defaultIcon = "clipboard";
1171
1174
  private readonly _value;
1172
1175
  onCopy(event: ClipboardEvent): void;
@@ -1174,7 +1177,7 @@ declare class ClipboardComponent {
1174
1177
  private copy;
1175
1178
  clipboard(): Promise<void>;
1176
1179
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClipboardComponent, never>;
1177
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClipboardComponent, "he-clipboard", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hideText": { "alias": "hideText"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "clipboardClass": { "alias": "clipboardClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1180
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ClipboardComponent, "he-clipboard", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hideText": { "alias": "hideText"; "required": false; "isSignal": true; }; "hideIcon": { "alias": "hideIcon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "clipboardClass": { "alias": "clipboardClass"; "required": false; "isSignal": true; }; "tooltipPlacement": { "alias": "tooltipPlacement"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1178
1181
  }
1179
1182
 
1180
1183
  declare enum CollapsibleBoxStyle {
@@ -1569,7 +1572,7 @@ declare class PopoverComponent {
1569
1572
  protected readonly message: _angular_core.InputSignal<string>;
1570
1573
  protected readonly content: _angular_core.InputSignal<TemplateRef<ContentContext>>;
1571
1574
  protected readonly data: _angular_core.InputSignal<any>;
1572
- protected readonly position: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
1575
+ protected readonly position: _angular_core.InputSignal<"top" | "bottom" | "left" | "right">;
1573
1576
  protected onClick($event: any): void;
1574
1577
  readonly active: _angular_core.WritableSignal<boolean>;
1575
1578
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<PopoverComponent, never>;
@@ -2398,26 +2401,11 @@ declare class CyclesResultComponent {
2398
2401
  declare const HE_CALCULATIONS_BASE_URL: InjectionToken<string>;
2399
2402
  declare const engineGitBaseUrl: () => string;
2400
2403
  declare const engineGitUrl: () => string;
2401
- declare const models: {
2402
- path: string;
2403
- docPath: string;
2404
- guidePath: string;
2405
- model: string;
2406
- term?: string;
2407
- methodTier?: EmissionMethodTier;
2408
- modelKey?: string;
2409
- dependencies?: string[];
2410
- }[];
2411
- declare const findModels: (termId: string) => {
2412
- path: string;
2413
- docPath: string;
2414
- guidePath: string;
2415
- model: string;
2416
- term?: string;
2417
- methodTier?: EmissionMethodTier;
2418
- modelKey?: string;
2419
- dependencies?: string[];
2420
- }[];
2404
+ declare const models: IModel[];
2405
+ declare const findModels: (termId: string) => IModel[];
2406
+ declare const findOrchestratorModel: <T extends IOrchestratorModelConfig | IModel>(config: {
2407
+ models: (T | T[])[];
2408
+ }, model: Partial<T>) => T | (T extends readonly (infer InnerArr)[] ? InnerArr : T);
2421
2409
  declare const findMatchingModel: (model: Partial<IModel>) => IModel;
2422
2410
  declare const modelParams: (node: Partial<blankNodesType>, includeTerm?: boolean, key?: string) => {
2423
2411
  [x: string]: string;
@@ -2435,16 +2423,7 @@ declare const findNodeModel: (node: Partial<blankNodesType>, key?: string) => IM
2435
2423
  * @param models Optional - list of models from `model-links.json` to default when orchestrator does not contain config.
2436
2424
  * @returns List of models from orchestrator or models if set.
2437
2425
  */
2438
- declare const findConfigModels: (config: IOrchestratorConfig, termId: string, modelKey: string) => {
2439
- path: string;
2440
- docPath: string;
2441
- guidePath: string;
2442
- model: string;
2443
- term?: string;
2444
- methodTier?: EmissionMethodTier;
2445
- modelKey?: string;
2446
- dependencies?: string[];
2447
- }[] | IOrchestratorModelConfig[];
2426
+ declare const findConfigModels: (config: IOrchestratorConfig, termId: string, modelKey: string) => IModel[] | IOrchestratorModelConfig[];
2448
2427
  interface ICalculationsModelsParams {
2449
2428
  termType?: SchemaType;
2450
2429
  productTermId?: string;
@@ -2459,7 +2438,6 @@ interface ICalculationsModel {
2459
2438
  model: string;
2460
2439
  key: string;
2461
2440
  }
2462
- declare const findOrchestratorModel: ({ models }: IOrchestratorConfig, model: Partial<IOrchestratorModelConfig>) => IOrchestratorModelConfig;
2463
2441
  declare class HeEngineService {
2464
2442
  private readonly _calculationsBaseUrl;
2465
2443
  protected readonly http: HttpClient;
@@ -4698,7 +4676,7 @@ declare class SchemaInfoComponent {
4698
4676
  protected readonly type: _angular_core.InputSignal<SchemaType>;
4699
4677
  protected readonly field: _angular_core.InputSignal<string>;
4700
4678
  protected readonly content: _angular_core.InputSignal<string>;
4701
- protected readonly placement: _angular_core.InputSignal<"top" | "left" | "right" | "bottom">;
4679
+ protected readonly placement: _angular_core.InputSignal<"top" | "bottom" | "left" | "right">;
4702
4680
  protected readonly triggers: _angular_core.InputSignal<"click" | "hover">;
4703
4681
  protected readonly container: _angular_core.InputSignal<"-" | "body">;
4704
4682
  protected readonly iconName: _angular_core.InputSignal<svgIconNames>;