@c8y/ngx-components 1023.50.2 → 1023.53.0

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.
Files changed (43) hide show
  1. package/asset-properties/index.d.ts +246 -27
  2. package/asset-properties/index.d.ts.map +1 -1
  3. package/datapoint-explorer/view/index.d.ts +8 -0
  4. package/datapoint-explorer/view/index.d.ts.map +1 -1
  5. package/datapoint-selector/index.d.ts +14 -1
  6. package/datapoint-selector/index.d.ts.map +1 -1
  7. package/echart/index.d.ts +2 -0
  8. package/echart/index.d.ts.map +1 -1
  9. package/echart/models/index.d.ts +1 -0
  10. package/echart/models/index.d.ts.map +1 -1
  11. package/fesm2022/c8y-ngx-components-asset-properties.mjs +640 -119
  12. package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
  13. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +33 -4
  14. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  15. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +24 -7
  16. package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
  17. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  18. package/fesm2022/c8y-ngx-components-echart.mjs +32 -10
  19. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  20. package/fesm2022/c8y-ngx-components-global-context.mjs +7 -2
  21. package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
  22. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +35 -5
  23. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  24. package/fesm2022/c8y-ngx-components.mjs +1338 -1211
  25. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  26. package/global-context/index.d.ts +1 -0
  27. package/global-context/index.d.ts.map +1 -1
  28. package/index.d.ts +1324 -1327
  29. package/index.d.ts.map +1 -1
  30. package/locales/de.po +15 -3
  31. package/locales/es.po +15 -3
  32. package/locales/fr.po +15 -3
  33. package/locales/ja_JP.po +15 -3
  34. package/locales/ko.po +15 -3
  35. package/locales/locales.pot +27 -3
  36. package/locales/nl.po +15 -3
  37. package/locales/pl.po +15 -3
  38. package/locales/pt_BR.po +15 -3
  39. package/locales/zh_CN.po +15 -3
  40. package/locales/zh_TW.po +15 -3
  41. package/package.json +1 -1
  42. package/widgets/implementations/datapoints-graph/index.d.ts +8 -0
  43. package/widgets/implementations/datapoints-graph/index.d.ts.map +1 -1
@@ -1,13 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injector, Type, TemplateRef, ElementRef, ViewContainerRef, OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, InjectionToken } from '@angular/core';
3
3
  import * as _c8y_client from '@c8y/client';
4
- import { IManagedObject, IAlarm, IEvent } from '@c8y/client';
5
- import { Observable } from 'rxjs';
4
+ import { IManagedObject, IAlarm, IEvent, Paging } from '@c8y/client';
5
+ import { Observable, BehaviorSubject } from 'rxjs';
6
6
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
7
7
  import { CdkTree } from '@angular/cdk/tree';
8
8
  import { DataSource } from '@angular/cdk/collections';
9
9
  import { BottomDrawerRef, GenericHookType, GenericHookOptions, ExtensionPointForPlugins, PluginsResolveService } from '@c8y/ngx-components';
10
10
  import { Router } from '@angular/router';
11
+ import { ControlValueAccessor } from '@angular/forms';
12
+ import { AssetSelectionChangeEvent } from '@c8y/ngx-components/assets-navigator';
11
13
 
12
14
  interface ComputedPropertyContextMap {
13
15
  device: {
@@ -94,9 +96,10 @@ type AssetPropertyListConfig = {
94
96
  * The mode of the asset property list describing how the properties are selected.
95
97
  * - `single` - only one property can be selected at a time
96
98
  * - `multi` - multiple properties can be selected at a time
99
+ * - `plus` - multiple properties can be selected using add/remove buttons
97
100
  * - `none` - no properties can be selected
98
101
  */
99
- selectMode?: 'single' | 'multi' | 'none';
102
+ selectMode?: 'single' | 'multi' | 'plus' | 'none';
100
103
  /**
101
104
  * The mode of the asset property list describing how the properties are expanded.
102
105
  * - `expandedByDefault` - all properties are expanded by default and collapse button is shown
@@ -141,7 +144,6 @@ type AssetPropertyListConfig = {
141
144
  allowDragAndDrop?: boolean;
142
145
  /**
143
146
  * Tabs to hide in the custom properties drawer.
144
- * At most one tab can be hidden at a time.
145
147
  */
146
148
  hiddenTabs?: HiddenTabs;
147
149
  };
@@ -215,14 +217,9 @@ interface NestedPropertyFields extends BaseProperty {
215
217
  }
216
218
  type AssetPropertyType = BaseProperty | NestedPropertyFields;
217
219
  type HiddenTabs = {
218
- regular: true;
219
- computed?: false;
220
- } | {
221
- computed: true;
222
- regular?: false;
223
- } | {
224
- regular?: false;
225
- computed?: false;
220
+ regular?: boolean;
221
+ computed?: boolean;
222
+ asset?: boolean;
226
223
  };
227
224
  type AssetPropertyTab = keyof Required<HiddenTabs>;
228
225
 
@@ -537,13 +534,13 @@ declare class AssetPropertyListComponent implements OnInit, OnChanges, OnDestroy
537
534
  * @param selected True if the node is selected.
538
535
  * @param node The node to select.
539
536
  */
540
- onSelectSingle(selected: boolean, node: AssetPropertyFlatNode): void;
537
+ onSelectSingle(selected: boolean, node: AssetPropertyFlatNode, emit?: boolean): void;
541
538
  /**
542
539
  * Handles multi-selection mode.
543
540
  * @param selected True if the node is selected.
544
541
  * @param node The node to select.
545
542
  */
546
- onSelectMulti(selected: boolean, node: AssetPropertyFlatNode): void;
543
+ onSelectMulti(selected: boolean, node: AssetPropertyFlatNode, emit?: boolean): void;
547
544
  /**
548
545
  * Initiates a filter operation.
549
546
  */
@@ -653,6 +650,7 @@ declare class AssetPropertyListComponent implements OnInit, OnChanges, OnDestroy
653
650
 
654
651
  /**
655
652
  * Represents a drawer component for selecting asset properties.
653
+ * This is a thin wrapper around AssetPropertySelectorComponent that handles drawer-specific logic.
656
654
  */
657
655
  declare class AssetPropertySelectorDrawerComponent {
658
656
  /**
@@ -662,7 +660,7 @@ declare class AssetPropertySelectorDrawerComponent {
662
660
  /**
663
661
  * Managed object representing the asset.
664
662
  */
665
- asset: IManagedObject;
663
+ contextAsset: IManagedObject;
666
664
  /**
667
665
  * Configuration for the asset property list.
668
666
  */
@@ -672,17 +670,25 @@ declare class AssetPropertySelectorDrawerComponent {
672
670
  */
673
671
  extraProperties: AssetPropertyType[];
674
672
  /**
675
- * Emits the selected properties when saved.
673
+ * List of selected properties.
676
674
  */
677
- savePropertySelection: EventEmitter<AssetPropertyType[]>;
675
+ selectedProperties: AssetPropertyType[];
678
676
  /**
679
- * Emits an event when the selection is canceled.
677
+ * Flag to allow changing the context (asset) within the drawer.
680
678
  */
681
- cancelPropertySelection: EventEmitter<void>;
679
+ allowChangingContext: boolean;
682
680
  /**
683
- * List of selected properties.
681
+ * Flag to hide the selection
682
+ * */
683
+ hideSelection: boolean;
684
+ /**
685
+ * Flag to allow selecting properties from multiple assets (if context change is allowed).
684
686
  */
685
- selectedProperties: AssetPropertyType[];
687
+ allowPropertiesFromMultipleAssets: boolean;
688
+ /**
689
+ * Flag to enable search functionality for asset properties.
690
+ */
691
+ allowSearch: boolean;
686
692
  /**
687
693
  * Reference to the bottom drawer.
688
694
  */
@@ -699,11 +705,12 @@ declare class AssetPropertySelectorDrawerComponent {
699
705
  * Internal cancel handler.
700
706
  */
701
707
  private _cancel;
708
+ ngOnInit(): void;
702
709
  /**
703
- * Updates the selected properties.
704
- * @param properties The selected properties.
710
+ * Handles selection changes from the selector component.
711
+ * @param selection The selected properties.
705
712
  */
706
- onSelectedProperties(properties: AssetPropertyType[]): void;
713
+ selectionChange(selection: AssetPropertyType[]): void;
707
714
  /**
708
715
  * Saves the selected properties and closes the drawer.
709
716
  */
@@ -714,11 +721,11 @@ declare class AssetPropertySelectorDrawerComponent {
714
721
  onCancel(): void;
715
722
  /**
716
723
  * Checks if the select button should be disabled.
717
- * @returns True if all selected properties are inactive.
724
+ * @returns True if no active properties are selected.
718
725
  */
719
726
  selectIsDisabled(): boolean;
720
727
  static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertySelectorDrawerComponent, never>;
721
- static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertySelectorDrawerComponent, "c8y-asset-property-selector-drawer-component", never, { "title": { "alias": "title"; "required": false; }; }, { "savePropertySelection": "savePropertySelection"; "cancelPropertySelection": "cancelPropertySelection"; }, never, never, true, never>;
728
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertySelectorDrawerComponent, "c8y-asset-property-selector-drawer-component", never, { "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
722
729
  }
723
730
 
724
731
  declare const HOOK_COMPUTED_PROPERTY: InjectionToken<ComputedPropertyDefinition[]>;
@@ -742,6 +749,218 @@ declare class ComputedPropertiesService extends ExtensionPointForPlugins<Compute
742
749
  static ɵprov: i0.ɵɵInjectableDeclaration<ComputedPropertiesService>;
743
750
  }
744
751
 
745
- export { AssetPropertiesService, AssetPropertyActionDirective, AssetPropertyListComponent, AssetPropertySelectorDrawerComponent, ComputedPropertiesService, CustomPropertiesDrawerService, HOOK_COMPUTED_PROPERTY, RESULT_TYPES, defaultAssetProperties, defaultAssetPropertyListConfig, hookComputedProperty };
752
+ /**
753
+ * Represents a reusable component for displaying and managing library properties (regular and computed).
754
+ * This component handles the search, tabs, and property list display logic.
755
+ */
756
+ declare class AssetPropertyTabsComponent implements OnInit, OnChanges, OnDestroy {
757
+ /**
758
+ * The asset context for loading properties.
759
+ */
760
+ asset: IManagedObject;
761
+ /**
762
+ * Configuration for the asset property list.
763
+ */
764
+ config: AssetPropertyListConfig;
765
+ /**
766
+ * Currently selected properties to be highlighted in the list.
767
+ */
768
+ selectedProperties: AssetPropertyType[];
769
+ /**
770
+ * Controls which tabs are hidden.
771
+ */
772
+ hiddenTabs: HiddenTabs;
773
+ /**
774
+ * The name of the tabs outlet.
775
+ */
776
+ tabsOutletName: string;
777
+ /**
778
+ * Whether to show the search input.
779
+ */
780
+ showSearch: boolean;
781
+ /**
782
+ * Emits when the selected properties change.
783
+ */
784
+ selectedPropertiesChange: EventEmitter<AssetPropertyType[]>;
785
+ tabNames: Record<AssetPropertyTab, string>;
786
+ paging: Paging<IManagedObject>;
787
+ inputText: string;
788
+ selectedTab: AssetPropertyTab;
789
+ assetProperties: AssetPropertyType[];
790
+ regularProperties: AssetPropertyType[];
791
+ computedProperties: AssetPropertyType[];
792
+ displayedProperties: AssetPropertyType[];
793
+ assetCount: number;
794
+ regularCount: number;
795
+ computedCount: number;
796
+ allComputedProperties: AssetPropertyType[];
797
+ get showAsset(): boolean;
798
+ get showRegular(): boolean;
799
+ get showComputed(): boolean;
800
+ get showTabBar(): boolean;
801
+ private searchSubject$;
802
+ private destroy$;
803
+ private readonly assetPropertiesService;
804
+ private readonly computedPropertiesService;
805
+ private selectedAssetProperties;
806
+ private selectedRegularProperties;
807
+ private selectedComputedProperties;
808
+ ngOnInit(): Promise<void>;
809
+ ngOnChanges(changes: SimpleChanges): Promise<void>;
810
+ ngOnDestroy(): void;
811
+ /**
812
+ * Updates the selected properties.
813
+ * @param properties The selected properties.
814
+ */
815
+ onSelectedProperties(properties: AssetPropertyType[]): void;
816
+ onTabChange(tabName: keyof typeof this.tabNames): void;
817
+ onSearch(): void;
818
+ clearSearch(): void;
819
+ loadMore(): Promise<void>;
820
+ private loadComputedProperties;
821
+ private loadAssetProperties;
822
+ private updateProperties;
823
+ private updateDisplayedProperties;
824
+ /**
825
+ * Updates the config to show only the current tab's selected properties.
826
+ */
827
+ private updateConfigWithCurrentTabSelections;
828
+ /**
829
+ * Categorizes incoming selectedProperties by matching them against loaded properties.
830
+ */
831
+ private categorizeSelectedProperties;
832
+ /**
833
+ * Categorizes and flattens hierarchical properties.
834
+ * @param properties The properties to categorize.
835
+ * @returns The flattened list of properties.
836
+ */
837
+ private categorizeAndFlattenHierarchicalProperties;
838
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertyTabsComponent, never>;
839
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertyTabsComponent, "c8y-asset-property-tabs", never, { "asset": { "alias": "asset"; "required": false; }; "config": { "alias": "config"; "required": false; }; "selectedProperties": { "alias": "selectedProperties"; "required": false; }; "hiddenTabs": { "alias": "hiddenTabs"; "required": false; }; "tabsOutletName": { "alias": "tabsOutletName"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; }, { "selectedPropertiesChange": "selectedPropertiesChange"; }, never, never, true, never>;
840
+ }
841
+
842
+ /**
843
+ * Represents a component for selecting asset properties.
844
+ * This component handles all selection logic and can be used standalone or within drawer/modal wrappers.
845
+ */
846
+ declare class AssetPropertySelectorComponent implements OnInit, ControlValueAccessor {
847
+ /**
848
+ * Managed object representing the initial/context asset.
849
+ */
850
+ contextAsset: IManagedObject;
851
+ /**
852
+ * Configuration for the asset property list.
853
+ */
854
+ config: AssetPropertyListConfig;
855
+ /**
856
+ * Extra properties to be displayed in the list.
857
+ */
858
+ extraProperties: AssetPropertyType[];
859
+ /**
860
+ * Flag to allow changing the context (asset) within the selector.
861
+ */
862
+ allowChangingContext: boolean;
863
+ /**
864
+ * Flag to allow properties from multiple assets to be selected at once.
865
+ */
866
+ allowPropertiesFromMultipleAssets: boolean;
867
+ /**
868
+ * Flag to hide the selection panel.
869
+ */
870
+ hideSelection: boolean;
871
+ /**
872
+ * Flag to allow search in asset selector.
873
+ */
874
+ allowSearch: boolean;
875
+ /**
876
+ * List of selected properties.
877
+ */
878
+ selectedProperties: AssetPropertyType[];
879
+ /**
880
+ * Current asset selection as observable.
881
+ */
882
+ assetSelection: BehaviorSubject<IManagedObject>;
883
+ hiddenTabs: HiddenTabs;
884
+ private touched;
885
+ private onChange;
886
+ private onTouched;
887
+ private modalService;
888
+ private computedPropertiesService;
889
+ private assetPropertiesService;
890
+ ngOnInit(): void;
891
+ /**
892
+ * ControlValueAccessor implementation - write value from form model.
893
+ */
894
+ writeValue(obj: AssetPropertyType[]): void;
895
+ /**
896
+ * ControlValueAccessor implementation - register onChange callback.
897
+ */
898
+ registerOnChange(fn: (properties: AssetPropertyType[]) => void): void;
899
+ /**
900
+ * ControlValueAccessor implementation - register onTouched callback.
901
+ */
902
+ registerOnTouched(fn: () => void): void;
903
+ /**
904
+ * Updates the selected properties.
905
+ * @param properties The selected properties.
906
+ */
907
+ onSelectedProperties(properties: AssetPropertyType[]): Promise<void>;
908
+ /**
909
+ * Handles asset selection changes.
910
+ * @param evt Asset selection change event.
911
+ */
912
+ selectionChanged(evt: AssetSelectionChangeEvent): void;
913
+ /**
914
+ * Removes a property from the selection.
915
+ * @param property The property to remove.
916
+ */
917
+ propertyRemoved(property: AssetPropertyType): void;
918
+ /**
919
+ * Edits (reconfigures) a computed property.
920
+ * @param property The property to edit.
921
+ */
922
+ editProperty(property: AssetPropertyType): Promise<void>;
923
+ /**
924
+ * Selects an asset and updates the selection.
925
+ * @param asset The asset to select.
926
+ */
927
+ private selectAsset;
928
+ /**
929
+ * Clears all selected properties.
930
+ */
931
+ private clearSelection;
932
+ /**
933
+ * Emits the current selection to the form model.
934
+ */
935
+ private emitCurrentSelection;
936
+ /**
937
+ * Marks the control as touched.
938
+ */
939
+ private markAsTouched;
940
+ /**
941
+ * Handles configuration for newly added computed properties.
942
+ * @param properties The selected properties.
943
+ * @returns The properties with configured ones included.
944
+ */
945
+ private handleComputedPropertiesConfiguration;
946
+ /**
947
+ * Displays the configuration modal for multiple computed properties and updates their configurations.
948
+ * @param properties Properties to configure.
949
+ * @param definitions Computed property definitions including config components.
950
+ * @returns Promise resolving to array of configurations.
951
+ */
952
+ private configureMultipleProperties;
953
+ /**
954
+ * Displays the configuration modal for a single computed property and updates its configuration.
955
+ * @param property Property to configure.
956
+ * @param definition Computed property definition including config component.
957
+ * @returns true if the property was configured, false if cancelled.
958
+ */
959
+ private configureProperty;
960
+ static ɵfac: i0.ɵɵFactoryDeclaration<AssetPropertySelectorComponent, never>;
961
+ static ɵcmp: i0.ɵɵComponentDeclaration<AssetPropertySelectorComponent, "c8y-asset-property-selector", never, { "contextAsset": { "alias": "contextAsset"; "required": false; }; "config": { "alias": "config"; "required": false; }; "extraProperties": { "alias": "extraProperties"; "required": false; }; "allowChangingContext": { "alias": "allowChangingContext"; "required": false; }; "allowPropertiesFromMultipleAssets": { "alias": "allowPropertiesFromMultipleAssets"; "required": false; }; "hideSelection": { "alias": "hideSelection"; "required": false; }; "allowSearch": { "alias": "allowSearch"; "required": false; }; }, {}, never, never, true, never>;
962
+ }
963
+
964
+ export { AssetPropertiesService, AssetPropertyActionDirective, AssetPropertyListComponent, AssetPropertySelectorComponent, AssetPropertySelectorDrawerComponent, AssetPropertyTabsComponent, ComputedPropertiesService, CustomPropertiesDrawerService, HOOK_COMPUTED_PROPERTY, RESULT_TYPES, defaultAssetProperties, defaultAssetPropertyListConfig, hookComputedProperty };
746
965
  export type { AssetPropertyListConfig, AssetPropertyTab, AssetPropertyType, BaseProperty, C8yJsonSchema, C8yJsonSchemaProperty, C8yPropertyType, ComputedPropertyComponent, ComputedPropertyContextType, ComputedPropertyContextValue, ComputedPropertyDefinition, HiddenTabs, NestedPropertyFields, ValueCallbackMetadata };
747
966
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../asset-properties/asset-properties.model.ts","../../asset-properties/asset-properties.service.ts","../../asset-properties/custom-properties-drawer.service.ts","../../asset-properties/asset-property-list/tree-data-source.ts","../../asset-properties/asset-property-list/asset-property-action.directive.ts","../../asset-properties/asset-property-list/asset-property-list.component.ts","../../asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.ts","../../asset-properties/computed-properties.service.ts"],"sourcesContent":[null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;AAKA;AACE;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACD;AAEK;AACJ;;;;AAIG;AACH;AACA;;;;;AAKG;AACH;;AAGI;AACA;AAGN;;;;;;AAaI;;;;;AAME;;;;AAUE;;;;;AAMD;AAGD;AACJ;;;AAGG;;AAEH;;AAEG;;;AAIC;AACJ;;AAEG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;AACG;AAeN;;AAEG;;AAkEH;;;;;AAKG;AACH;AAkBA;;;;;AAKG;AACG;AAaN;;;AAGG;;;AAsDH;AAIA;;;;AAIG;AACH;AAOA;;;;AAIG;AACH;AAIA;;;;AAIG;AACH;AAWA;;;;AAIG;AACH;AAQA;;;AAGG;AACH;AAaA;;;AAGG;AACH;AAiBA;;;;AAIG;;AAmBH;;;;AAIG;;AAwBH;;AAEG;AACH;AAIA;;AAEG;AACH;AAKA;AAwBA;;AAEG;AACH;AAUA;;;;AAIG;AACH;AAOA;;;;AAIG;AACH;AAWA;;AAEG;AACH;AAaA;;AAEG;AACH;AASA;;AAEG;AACH;AASA;;;;AAIG;;AAgDH;AAwBA;;AAEG;;AAQH;;;;AAIG;AACH;AAcA;;;;;AAKG;AACH;AAWA;;AAEG;AACH;AAeA;;AAEG;AACH;AAmDA;;AAEG;AACH;AAgCA;;AAEG;AACH;AAoCA;;;AAGG;AACH;AAqBA;;AAEG;AACH;AAiBA;;;;AAIG;AACH;AAsBA;;;AAGG;AACH;AAuDA;;;;AAIG;AACH;;;AAOD;;AC9iCD;;AAEG;AACH;AAUE;;AAEG;AACM;AACT;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;AACO;AACV;;AAEG;AACO;AACV;;AAEG;;AAEH;;AAEG;AACH;AACA;;AAEG;AACH;AAIA;;AAEG;;AAEH;;AAEG;;AAEH;;;AAGG;AACH;AAIA;;AAEG;AACH;AAKA;;AAEG;AACH;AAKA;;;AAGG;AACH;;;AAGD;;ACrED;AAIA;AAOA;AAQI;;;AAOF;;;;AAIG;AACH;;;;AA0CA;AAoBA;;;AAOD;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../asset-properties/asset-properties.model.ts","../../asset-properties/asset-properties.service.ts","../../asset-properties/custom-properties-drawer.service.ts","../../asset-properties/asset-property-list/tree-data-source.ts","../../asset-properties/asset-property-list/asset-property-action.directive.ts","../../asset-properties/asset-property-list/asset-property-list.component.ts","../../asset-properties/asset-property-selector-drawer/asset-property-selector-drawer.component.ts","../../asset-properties/computed-properties.service.ts","../../asset-properties/asset-property-tabs/asset-property-tabs.component.ts","../../asset-properties/asset-property-selector/asset-property-selector.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AACE;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACD;AAEK;AACJ;;;;AAIG;AACH;AACA;;;;;AAKG;AACH;;AAGI;AACA;AAGN;;;;;;AAaI;;;;;AAME;;;;AAUE;;;;;AAMD;AAGD;AACJ;;;AAGG;;AAEH;;AAEG;;;AAIC;AACJ;;AAEG;AACH;AACA;;;AAGG;;AAEH;;;;;;AAMG;;AAEH;;;;;AAKG;AACH;AACA;;;AAGG;;AAEH;;AAEG;;AAEH;;;AAGG;;AAEH;;;;AAIG;AACH;AACA;;AAEG;;AAEH;;;;;AAKG;AACH;AACA;;AAEG;;AAEH;;AAEG;;;AAIL;AAaA;AAwnBA;;;;;;;;;;;;;;;;;AAKM;AAeN;;;;;;;;;;;;;;;;AAiBE;;;;;AAKA;;AAAmD;AACnD;AACD;;AAGC;AACA;AACD;;;;;;;;;;;;AAaC;AACD;AAEK;;;;AAIL;;AAIK;;;;;AAEA;;AC71BN;;AAEG;AACH;AAIE;;;;;;AAuBA;;;;;;AAMG;AACG;AA6BN;;;;AAIG;;AAiBH;;;;AAIG;;AAcH;;;;AAIG;;AAKH;;;;AAIG;;AAKH;;;;AAIG;;AAOH;;;;AAIG;AACH;AAiBA;;;;AAIG;AACH;;;;AAIC;AAwBD;;;;AAIG;AACH;AAOA;;;;;AAKG;AACG;AAcN;;;;;AAKG;;AAaH;;;;AAIG;AACG;;;;;AA2CN;AAYA;AAoCA;AAIA;AAqCA;AASA;;;AAYD;;AC/YD;;AAEG;AACH;;AAMQ;;AAEiC;;;AAiBxC;;;;;;;;;ACvBA;AAED;;;AAOE;AAIA;AAIA;AAIA;AAGD;;ACjCD;AAMW;A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A;;AAEG;AACH;AAEA;;AAEG;AACH;AACA;;AAEG;AACH;AAIA;;AAEG;;AAEH;;AAEG;;AAGH;AAIA;;;AAGG;AACH;AAIA;;AAEG;AACH;AAKA;;AAEG;AACH;AAKA;;;AAGG;AACH;;;AAKD;;ACtFD;AAIA;AAOA;AAQI;;;AAOF;;;;AAIG;AACH;;;;AA0CA;AAoBA;;;AAOD;;AChGD;;;AAGG;AACH;AAkBE;;AAEG;;AAEH;;AAEG;;AAUH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;AACM;AACT;;AAEG;AACM;AAET;;AAEG;AACO;AAEV;AAKA;AACA;;;;;;AAMA;AACA;AACA;;;;;;;;AAsBA;AACA;;;;;;;AAwDA;;;AAGG;AACH;;;AA2BA;;;;;AAsGA;AAWA;;AAEG;AACH;AAcA;;AAEG;AACH;AAkDA;;;;AAIG;AACH;;;AAOD;;ACnYD;;;AAGG;AACH;AA2BE;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;;AAEH;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AACT;;AAEG;AACM;AAET;;AAEG;;AAEH;;AAEG;AACH;;;;;;;;AAWA;AAUA;;AAEG;AACH;AAIA;;AAEG;;AAKH;;AAEG;AACH;AAIA;;;AAGG;;AAWH;;;AAGG;AACH;AASA;;;AAGG;AACH;AAMA;;;AAGG;;AAaH;;;AAGG;AACH;AAOA;;AAEG;AACH;AAKA;;AAEG;AACH;AAMA;;AAEG;AACH;AAOA;;;;AAIG;;AAoFH;;;;;AAKG;AACH;AAmBA;;;;;AAKG;;;;AAaJ;;;"}
@@ -177,6 +177,7 @@ declare class DatapointExplorerComponent {
177
177
  private readonly chartHelpersService;
178
178
  private readonly gainsightService;
179
179
  private readonly datapointSyncService;
180
+ private readonly measurementService;
180
181
  constructor();
181
182
  ngOnInit(): void;
182
183
  onTimeContextChange(timeProps: TimeContextProps): void;
@@ -194,6 +195,13 @@ declare class DatapointExplorerComponent {
194
195
  createNewReportWithWidget(): Promise<void>;
195
196
  sendAsWidgetToReport(): Promise<void>;
196
197
  sendAsWidgetToDashboard(): Promise<void>;
198
+ /**
199
+ * DEPRECATED: to be removed when there is another way to identify time series migration.
200
+ * This method checks if the tenant is migrated to time series by making a call to measurement detail endpoint.
201
+ * If the endpoint returns 405, it means the tenant is migrated. This is a workaround for now until we have a
202
+ * better way to identify time series migration.
203
+ */
204
+ private detectTimeSeriesMigration;
197
205
  private isActualDate;
198
206
  private isAlarm;
199
207
  private isEvent;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../datapoint-explorer/view/configuration/name-generator.service.ts","../../../datapoint-explorer/view/configuration/workspace-configuration.model.ts","../../../datapoint-explorer/view/datapoint-explorer.model.ts","../../../datapoint-explorer/view/configuration/workspace-configuration.service.ts","../../../datapoint-explorer/view/datapoint-explorer.component.ts","../../../datapoint-explorer/view/datapoint-explorer.service.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;AAGA;AAIE;;;AAOD;;;;;;ACRA;;;;;;;;ACGA;;AAGC;AACA;AACA;AACA;AAGA;AACD;;;;AAKC;;AAEE;;;AAIF;AACD;;;;AAMC;;AAEE;;AAGF;;AAEE;;AAEF;AACD;AAED;AAsBA;;;;;;;;;;;;;;;;;AAkBA;;;;AC1EA;AAIE;AACA;;AAGA;;;AAYA;;AAEG;AACH;;;;;;AAyCA;;;;AAIG;AACH;AAYA;;;;;;AAMG;AACH;AAOA;;;;;AAKG;;;AAiBH;;AAeA;AAcA;;AAEG;AACH;AAcA;;AAEG;AACH;;;AAiCD;;ACpJD;;AA4BE;;;;;AAKA;;;AAGA;;;;AAIA;AACA;AACA;AACA;AACA;;;AAGE;;AAEA;;AAEF;;;AAMA;AAEA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA;AA8CA;;;;;AAgHwD;AAA2B;AAuCnF;AAMA;AAMA;AASA;AAIA;AAQM;AAuBA;AA8BA;AAmCN;AAOA;AAIA;AAIA;AAIA;AAUA;AAsBA;AAWA;AAUA;;;AA2BD;;AC1iBD;AAIE;AACA;AACA;AACA;AACA;AACA;AACA;;AAWM;AAUA;;;;AAUN;;;;;;AAMG;AACH;AAKA;;;;;;;AAOG;AACH;AAQA;AAWA;AAiBA;;;AAGG;AACH;AAMM;;;;AAuBP;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../../datapoint-explorer/view/configuration/name-generator.service.ts","../../../datapoint-explorer/view/configuration/workspace-configuration.model.ts","../../../datapoint-explorer/view/datapoint-explorer.model.ts","../../../datapoint-explorer/view/configuration/workspace-configuration.service.ts","../../../datapoint-explorer/view/datapoint-explorer.component.ts","../../../datapoint-explorer/view/datapoint-explorer.service.ts"],"sourcesContent":[null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;AAGA;AAIE;;;AAOD;;;;;;ACRA;;;;;;;;ACGA;;AAGC;AACA;AACA;AACA;AAGA;AACD;;;;AAKC;;AAEE;;;AAIF;AACD;;;;AAMC;;AAEE;;AAGF;;AAEE;;AAEF;AACD;AAED;AAsBA;;;;;;;;;;;;;;;;;AAkBA;;;;AC1EA;AAIE;AACA;;AAGA;;;AAYA;;AAEG;AACH;;;;;;AAyCA;;;;AAIG;AACH;AAYA;;;;;;AAMG;AACH;AAOA;;;;;AAKG;;;AAiBH;;AAeA;AAcA;;AAEG;AACH;AAcA;;AAEG;AACH;;;AAiCD;;ACpJD;;AA4BE;;;;;AAKA;;;AAGA;;;;AAIA;AACA;AACA;AACA;AACA;;;AAGE;;AAEA;;AAEF;;;AAOA;AAEA;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA;AA0DA;;;;;AAgHwD;AAA2B;AAuCnF;AAMA;AAMA;AASA;AAIA;AAQM;AAuBA;AA8BA;AAmCN;;;;;AAKG;;AAgBH;AAOA;AAIA;AAIA;AAIA;AAUA;AAsBA;AAWA;AAUA;;;AA4BD;;AC9kBD;AAIE;AACA;AACA;AACA;AACA;AACA;AACA;;AAWM;AAUA;;;;AAUN;;;;;;AAMG;AACH;AAKA;;;;;;;AAOG;AACH;AAQA;AAWA;AAiBA;;;AAGG;AACH;AAMM;;;;AAuBP;;;"}
@@ -58,6 +58,15 @@ declare const CHART_RENDER_TYPES: readonly [{
58
58
  }, {
59
59
  readonly val: "area";
60
60
  readonly text: "Minimum and maximum";
61
+ }, {
62
+ readonly val: "avg";
63
+ readonly text: "Average";
64
+ }, {
65
+ readonly val: "count";
66
+ readonly text: "Count";
67
+ }, {
68
+ readonly val: "sum";
69
+ readonly text: "Sum";
61
70
  }];
62
71
  type ChartRenderTypes = (typeof CHART_RENDER_TYPES)[number]['val'];
63
72
 
@@ -94,6 +103,7 @@ interface DatapointAction {
94
103
  icon: SupportedIconsSuggestions;
95
104
  }
96
105
  interface DatapointAttributesFormConfig {
106
+ showAdvancedChartOptions: boolean;
97
107
  showTarget: boolean;
98
108
  showRange: boolean;
99
109
  showYellowRange: boolean;
@@ -410,6 +420,7 @@ declare class DatapointAttributesFormComponent implements ControlValueAccessor,
410
420
  showRedRange: boolean;
411
421
  showChart: boolean;
412
422
  showFormIfTemplateWasSelected: boolean;
423
+ showAdvancedChartOptions: boolean;
413
424
  /** Displays all errors even if the form was not touched yet. */
414
425
  showErrorsImmediately: boolean;
415
426
  formGroup: FormGroup;
@@ -422,6 +433,7 @@ declare class DatapointAttributesFormComponent implements ControlValueAccessor,
422
433
  CHART_RENDER_TYPES: Array<(typeof CHART_RENDER_TYPES)[number]>;
423
434
  CHART_LINE_TYPES: Array<(typeof CHART_LINE_TYPES)[number]>;
424
435
  AXIS_TYPES: Array<(typeof AXIS_TYPES)[number]>;
436
+ DEFAULT_RENDER_TYPES: ChartRenderTypes[];
425
437
  customValidationErrorMessages: {
426
438
  [formField: string]: {
427
439
  [validationError: string]: string;
@@ -432,6 +444,7 @@ declare class DatapointAttributesFormComponent implements ControlValueAccessor,
432
444
  showChartForm: boolean;
433
445
  constructor(formValidations: DatapointAttributesFormValidationService);
434
446
  ngOnInit(): void;
447
+ ngOnChanges(changes: SimpleChanges): void;
435
448
  ngAfterViewInit(): void;
436
449
  validate(_control: AbstractControl): ValidationErrors;
437
450
  writeValue(obj: any): void;
@@ -445,7 +458,7 @@ declare class DatapointAttributesFormComponent implements ControlValueAccessor,
445
458
  private filterLineTypes;
446
459
  private filterAxisTypes;
447
460
  static ɵfac: i0.ɵɵFactoryDeclaration<DatapointAttributesFormComponent, never>;
448
- static ɵcmp: i0.ɵɵComponentDeclaration<DatapointAttributesFormComponent, "c8y-datapoint-attributes-form", never, { "selectableChartRenderTypes": { "alias": "selectableChartRenderTypes"; "required": false; }; "selectableChartLineTypes": { "alias": "selectableChartLineTypes"; "required": false; }; "selectableAxisTypes": { "alias": "selectableAxisTypes"; "required": false; }; "showTarget": { "alias": "showTarget"; "required": false; }; "showRange": { "alias": "showRange"; "required": false; }; "showYellowRange": { "alias": "showYellowRange"; "required": false; }; "showRedRange": { "alias": "showRedRange"; "required": false; }; "showChart": { "alias": "showChart"; "required": false; }; "showFormIfTemplateWasSelected": { "alias": "showFormIfTemplateWasSelected"; "required": false; }; "showErrorsImmediately": { "alias": "showErrorsImmediately"; "required": false; }; }, {}, never, never, true, never>;
461
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatapointAttributesFormComponent, "c8y-datapoint-attributes-form", never, { "selectableChartRenderTypes": { "alias": "selectableChartRenderTypes"; "required": false; }; "selectableChartLineTypes": { "alias": "selectableChartLineTypes"; "required": false; }; "selectableAxisTypes": { "alias": "selectableAxisTypes"; "required": false; }; "showTarget": { "alias": "showTarget"; "required": false; }; "showRange": { "alias": "showRange"; "required": false; }; "showYellowRange": { "alias": "showYellowRange"; "required": false; }; "showRedRange": { "alias": "showRedRange"; "required": false; }; "showChart": { "alias": "showChart"; "required": false; }; "showFormIfTemplateWasSelected": { "alias": "showFormIfTemplateWasSelected"; "required": false; }; "showAdvancedChartOptions": { "alias": "showAdvancedChartOptions"; "required": false; }; "showErrorsImmediately": { "alias": "showErrorsImmediately"; "required": false; }; }, {}, never, never, true, never>;
449
462
  }
450
463
 
451
464
  declare class DatapointSelectorModule {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../datapoint-selector/datapoint-attributes-form/datapoint-attributes.model.ts","../../datapoint-selector/datapoint-selection.model.ts","../../datapoint-selector/datapoint-library.service.ts","../../datapoint-selector/datapoint-selector.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.component.ts","../../datapoint-selector/datapoint-selector-list-item/datapoint-selector-list-item.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.model.ts","../../datapoint-selector/datapoint-selector.service.ts","../../datapoint-selector/datapoint-selection-list/datapoint-selection-list.component.ts","../../datapoint-selector/datapoint-template-popover/datapoint-template-popover.component.ts","../../datapoint-selector/pipes/includes-datapoint.pipe.ts","../../datapoint-selector/pipes/datapoint-label.pipe.ts","../../datapoint-selector/pipes/filter-datapoints.pipe.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.ts","../../datapoint-selector/datapoint-selector.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;AAMM;AAEN;;;;;;;;;;;;;;;;;;;AASM;AAEN;;;;;;;;;;AAMM;;AClBN;;;;AAKE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAEK;AACJ;AACD;;;AAIC;;AAED;;;;;;;;;;;AAYA;AAEK;;ACxCN;AAII;AACA;AACA;AACA;;AAHQ;;AAoBJ;AAUA;AAQA;AA4CA;AAwBN;;;;AAIG;AACG;AA+BU;;;;;AA4CA;AAsBhB;;;AA0BgB;;;AAqBjB;;ACpPD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uC;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../datapoint-selector/datapoint-attributes-form/datapoint-attributes.model.ts","../../datapoint-selector/datapoint-selection.model.ts","../../datapoint-selector/datapoint-library.service.ts","../../datapoint-selector/datapoint-selector.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.component.ts","../../datapoint-selector/datapoint-selector-list-item/datapoint-selector-list-item.component.ts","../../datapoint-selector/datapoint-selector-modal/datapoint-selector-modal.model.ts","../../datapoint-selector/datapoint-selector.service.ts","../../datapoint-selector/datapoint-selection-list/datapoint-selection-list.component.ts","../../datapoint-selector/datapoint-template-popover/datapoint-template-popover.component.ts","../../datapoint-selector/pipes/includes-datapoint.pipe.ts","../../datapoint-selector/pipes/datapoint-label.pipe.ts","../../datapoint-selector/pipes/filter-datapoints.pipe.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form-validation.service.ts","../../datapoint-selector/datapoint-attributes-form/datapoint-attributes-form.component.ts","../../datapoint-selector/datapoint-selector.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAEA;;;;;;;;;;AAMM;AAEN;;;;;;;;;;;;;;;;;;;AASM;AAEN;;;;;;;;;;;;;;;;;;;AASM;;ACrBN;;;;AAKE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAEK;AACJ;AACD;;;AAIC;;AAED;;;;;;;;;;;;AAaA;AAEK;;ACzCN;AAII;AACA;AACA;AACA;;AAHQ;;AAoBJ;AAUA;AAQA;AA4CA;AAwBN;;;;AAIG;AACG;AA+BU;;;;;AA4CA;AAsBhB;;;AA0BgB;;;AAqBjB;;ACpPD;AAgEc;;AAlCH;AACA;AACT;AACS;AACA;AACA;AACA;AACA;AACA;AACA;AACT;AACA;;;;;;;;AAIgC;AAEhC;AACA;AACA;AACA;AACA;;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
50
50
  refreshInterval?: number;
51
51
  numberOfDecimalPlaces?: number;
52
+ showAdvancedChartOptions?: boolean;
52
53
  retrievalError?: object;
53
54
  };
54
55
  type GraphDisplayOptions = {
@@ -265,6 +266,7 @@ declare class ChartsComponent implements OnChanges, OnInit, OnDestroy {
265
266
  updateAggregatedSliderDatapoint: EventEmitter<SelectedDatapoint>;
266
267
  chart: ElementRef;
267
268
  CHART_VIEW_CONTEXT: typeof CHART_VIEW_CONTEXT;
269
+ readonly AGGREGATION_INTERVAL_MAP: Record<aggregationType, string>;
268
270
  private configChangedSubject;
269
271
  private readonly measurementService;
270
272
  private readonly echartsOptionsService;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../echart/models/datapoints-graph-widget.model.ts","../../echart/models/chart.model.ts","../../echart/models/svg-icons.model.ts","../../echart/charts.component.ts","../../echart/services/chart-alarms.service.ts","../../echart/services/chart-events.service.ts","../../echart/services/chart-helpers.service.ts","../../echart/chart-alerts/chart-alerts.component.ts","../../echart/select-aggregated-datapoint/select-aggregated-datapoint.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBM;;;;AAKA;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;AAOA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;;;;;;AAUI;;;;;;;;;;AAUJ;;;AAII;;AAEJ;AACA;;AAGI;;;AAIN;;AAEG;;AAGG;AAIN;AACE;AACA;AACD;AAED;AACM;;AAEL;AAED;;;;AAIM;;;;;;;AAQL;AAED;;;;;AAUE;;;;;AAGD;;AAGC;;AAEA;;AAEE;;AAEF;;;AACD;;;;;;;AAQC;AACA;AACD;AAEK;AACA;AAEA;AAEA;AAEN;;;;AAKA;;;;;;;;;;;;;AAcM;AACA;AAEA;;;;AAKA;;;;;;;;;;;AAYL;AAED;;;;;;;;AAUE;AACA;AACD;;AC/MD;;;;;;AAMG;AACH;AACE;;;;AAIA;;;AACD;;;AAIA;;;AAIA;AAEK;AACA;AACJ;AACE;AACD;AACF;;AAGC;AACA;AACD;AAED;AACE;AACA;AACA;AACD;;AC3CD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAED;;;;;;;;;;;ACwDA;AA4BE;;AAEA;;;;;;;;AAQA;;;;;;AAMK;AACK;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEV;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAgDA;;;;;AA2IuB;;;AAA4B;AAiDnD;AAOA;AAIA;AAwBA;AA6BA;AAWA;;;;AAIG;AACH;AAcA;;;;;AAKG;AACH;AAgCA;AAeA;AA0BA;;AA8DA;;;AAiNA;AA0DA;AA0CA;AAkBA;AAWA;AAYA;;;AA6BD;;ACj9BD;AAEc;AAAQ;AAEpB;;;;;AAKG;AACG;;;AAqCP;;AC/CD;AAEc;AAAQ;AAEpB;;;;;AAKG;AACG;;;AAuBP;;AChCD;AAEE;;;;AAIG;;;;;;;;;;;AAcH;AAcA;;;AAGD;;AC9BD;;AAQmC;AAEjC;;;;AAQD;;ACVD;;AAqBW;AACC;AAEV;;AAGA;;;AAiBA;;;AAgBD;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../echart/models/datapoints-graph-widget.model.ts","../../echart/models/chart.model.ts","../../echart/models/svg-icons.model.ts","../../echart/charts.component.ts","../../echart/services/chart-alarms.service.ts","../../echart/services/chart-events.service.ts","../../echart/services/chart-helpers.service.ts","../../echart/chart-alerts/chart-alerts.component.ts","../../echart/select-aggregated-datapoint/select-aggregated-datapoint.component.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;;;AAmBM;;;;AAKA;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;AAOA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;;;;;;;AAWI;;;;;;;;;;AAUJ;;;AAII;;AAEJ;AACA;;AAGI;;;AAIN;;AAEG;;AAGG;AAIN;AACE;AACA;AACD;AAED;AACM;;AAEL;AAED;;;;AAIM;;;;;;;AAQL;AAED;;;;;AAUE;;;;;AAGD;;AAGC;;AAEA;;AAEE;;AAEF;;;AACD;;;;;;;AAQC;AACA;AACD;AAEK;AACA;AAEA;AAEA;AAEN;;;;AAKA;;;;;;;;;;;;;AAcM;AACA;AAEA;;;;AAKA;;;;;;;;;;;AAYL;AAED;;;;;;;;AAUE;AACA;AACD;;AChND;;;;;;AAMG;AACH;AACE;;;;AAIA;;;AACD;;;AAIA;;;AAIA;AAEK;AACA;AACJ;AACE;AACD;AACF;;AAGC;AACA;AACD;AAED;AACE;AACA;AACA;AACD;;AC3CD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAED;;;;;;;;;;;ACwDA;AA4BE;;AAEA;;;;;;;;AAQA;;;;;;AAMK;AACK;AAGA;AACA;AACA;AACA;AACA;AACA;;AAEV;;;AAQA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;AAgDA;;;;;AA2IuB;;;AAA4B;AAiDnD;AAOA;AAIA;AAwBA;AA6BA;AAWA;;;;AAIG;AACH;AAcA;;;;;AAKG;AACH;AAgCA;AAeA;AA0BA;;AA8DA;;;AAiNA;AAiEA;AAsDA;AAkBA;AAWA;AAYA;;;AA6BD;;ACz+BD;AAEc;AAAQ;AAEpB;;;;;AAKG;AACG;;;AAqCP;;AC/CD;AAEc;AAAQ;AAEpB;;;;;AAKG;AACG;;;AAuBP;;AChCD;AAEE;;;;AAIG;;;;;;;;;;;AAcH;AAcA;;;AAGD;;AC9BD;;AAQmC;AAEjC;;;;AAQD;;ACVD;;AAqBW;AACC;AAEV;;AAGA;;;AAiBA;;;AAgBD;;;"}
@@ -42,6 +42,7 @@ type DatapointsGraphWidgetConfig = {
42
42
  displayMode?: GlobalContextDisplayMode;
43
43
  refreshInterval?: number;
44
44
  numberOfDecimalPlaces?: number;
45
+ showAdvancedChartOptions?: boolean;
45
46
  retrievalError?: object;
46
47
  };
47
48
  type GraphDisplayOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../../echart/models/datapoints-graph-widget.model.ts","../../../echart/models/chart.model.ts","../../../echart/models/svg-icons.model.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;;;;;AAmBM;;;;AAKA;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;AAOA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;;;;;;AAUI;;;;;;;;;;AAUJ;;;AAII;;AAEJ;AACA;;AAGI;;;AAIN;;AAEG;;AAGG;AAIN;AACE;AACA;AACD;AAED;AACM;;AAEL;AAED;;;;AAIM;;;;;;;AAQL;AAED;;;;;AAUE;;;;;AAGD;;AAGC;;AAEA;;AAEE;;AAEF;;;AACD;;;;;;;AAQC;AACA;AACD;AAEK;AACA;AAEA;AAEA;AAEN;;;;AAKA;;;;;;;;;;;;;AAcM;AACA;AAEA;;;;AAKA;;;;;;;;;;;AAYL;AAED;;;;;;;;AAUE;AACA;AACD;;AC/MD;;;;;;AAMG;AACH;AACE;;;;AAIA;;;AACD;;;AAIA;;;AAIA;AAEK;AACA;AACJ;AACE;AACD;AACF;;AAGC;AACA;AACD;AAED;AACE;AACA;AACA;AACD;;AC3CD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAED;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../../echart/models/datapoints-graph-widget.model.ts","../../../echart/models/chart.model.ts","../../../echart/models/svg-icons.model.ts"],"sourcesContent":[null,null,null],"names":[],"mappings":";;;;;;;;AAmBM;;;;AAKA;AACJ;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;;;;;;;AAOA;;AAEA;AACA;AACA;AACA;;;AAGA;;;;;;;;;;AAWI;;;;;;;;;;AAUJ;;;AAII;;AAEJ;AACA;;AAGI;;;AAIN;;AAEG;;AAGG;AAIN;AACE;AACA;AACD;AAED;AACM;;AAEL;AAED;;;;AAIM;;;;;;;AAQL;AAED;;;;;AAUE;;;;;AAGD;;AAGC;;AAEA;;AAEE;;AAEF;;;AACD;;;;;;;AAQC;AACA;AACD;AAEK;AACA;AAEA;AAEA;AAEN;;;;AAKA;;;;;;;;;;;;;AAcM;AACA;AAEA;;;;AAKA;;;;;;;;;;;AAYL;AAED;;;;;;;;AAUE;AACA;AACD;;AChND;;;;;;AAMG;AACH;AACE;;;;AAIA;;;AACD;;;AAIA;;;AAIA;AAEK;AACA;AACJ;AACE;AACD;AACF;;AAGC;AACA;AACD;AAED;AACE;AACA;AACA;AACD;;AC3CD;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACD;AAED;;;;;;;;;;;;"}