@c8y/ngx-components 1023.62.2 → 1023.63.1

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.
@@ -309,9 +309,10 @@ declare class AssetPropertiesService {
309
309
  * Checks if two properties match for selection purposes.
310
310
  * @param property1 First property to compare.
311
311
  * @param property2 Second property to compare.
312
+ * @param omitProperties Optional list of property keys to omit from comparison (e.g., ['instanceId','configuredAssetId']).
312
313
  * @returns True if properties match.
313
314
  */
314
- propertiesMatch(property1: AssetPropertyType, property2: AssetPropertyType): boolean;
315
+ propertiesMatch(property1: AssetPropertyType, property2: AssetPropertyType, omitProperties?: (keyof AssetPropertyType)[]): boolean;
315
316
  /**
316
317
  * Retrieves custom properties from the properties library, optionally filtered by search text.
317
318
  * @param searchText Optional search text to filter properties.
@@ -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","../../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;;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;;;AAwDA;;;AAGG;AACH;;;AA2BA;;;;;AAsGA;AAWA;;AAEG;AACH;AAcA;;AAEG;AACH;AAkDA;;;;AAIG;AACH;AAQA;;;AASD;;AClaD;;;AAGG;AACH;AA4BE;;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;;;"}
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;;;;;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GA;;;AAMA;AACA;AACA;;;;;;;;AAsBA;AACA;;;;;;;AAwDA;;;AAGG;AACH;;;AAgCA;;;;;AAsGA;AAWA;;AAEG;AACH;AAcA;;AAEG;AACH;AAkDA;;;;AAIG;AACH;AAQA;;;AASD;;ACvaD;;;AAGG;AACH;AA4BE;;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;;AAcH;;;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;;;"}
@@ -9,7 +9,7 @@ import { OptionsService, OperationRealtimeService, ManagedObjectRealtimeService,
9
9
  import * as i3 from '@c8y/ngx-components/operations/operations-timeline';
10
10
  import * as rxjs from 'rxjs';
11
11
  import { Observable, BehaviorSubject } from 'rxjs';
12
- import { OperationService, IResult, IOperation, IManagedObject, IResultList } from '@c8y/client';
12
+ import { OperationService, InventoryService, IResult, IOperation, IManagedObject, IResultList } from '@c8y/client';
13
13
 
14
14
  declare function rootScopeCommandTemplateFactory($injector: Injector): any;
15
15
  declare class CommandTemplatesComponent {
@@ -63,14 +63,29 @@ interface Command {
63
63
  command: string;
64
64
  category: string;
65
65
  }
66
+ interface DeviceShellTemplate {
67
+ name: string;
68
+ text: string;
69
+ category?: string;
70
+ syntax?: string;
71
+ deviceType?: string;
72
+ }
66
73
 
67
74
  declare class DeviceShellService {
68
75
  private optionsService;
69
76
  private operationService;
70
- constructor(optionsService: OptionsService, operationService: OperationService);
77
+ private inventoryService;
78
+ private readonly MO_TYPE;
79
+ constructor(optionsService: OptionsService, operationService: OperationService, inventoryService: InventoryService);
71
80
  getDeliveryTypes(): DeliveryType[];
72
81
  canSendCommandsViaSMS(): Promise<boolean>;
73
82
  createCommandOperation(deviceId: string, command: Command, deliveryType: CommandDeliveryType): Promise<IResult<IOperation>>;
83
+ getCommandTemplatesForDeviceType(deviceTypes: string[]): Promise<DeviceShellTemplate[]>;
84
+ private getStaticCommandTemplates;
85
+ private getCommandTemplatesForDeviceTypeInMemory;
86
+ private getDynamicCommandTemplates;
87
+ private extractCommandTemplatesFromData;
88
+ private getExtendedTemplates;
74
89
  static ɵfac: i0.ɵɵFactoryDeclaration<DeviceShellService, never>;
75
90
  static ɵprov: i0.ɵɵInjectableDeclaration<DeviceShellService>;
76
91
  }
@@ -118,5 +133,5 @@ declare class DeviceShellModule {
118
133
  }
119
134
 
120
135
  export { CommandDeliveryType, CommandTemplates, CommandTemplatesComponent, CommandTemplatesModule, DeviceShellComponent, DeviceShellGuard, DeviceShellModule, DeviceShellService, DeviceShellSharedModule, ShellModule, rootScopeCommandTemplateFactory };
121
- export type { Command, DeliveryType };
136
+ export type { Command, DeliveryType, DeviceShellTemplate };
122
137
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../device-shell/command-templates/command-templates.component.ts","../../device-shell/command-templates/command-templates.directive.ts","../../device-shell/command-templates/command-templates.module.ts","../../device-shell/device-shell.guard.ts","../../device-shell/shared/device-shell-shared.module.ts","../../device-shell/shared/device-shell.model.ts","../../device-shell/shared/device-shell.service.ts","../../device-shell/shell/shell.component.ts","../../device-shell/shell/shell.module.ts","../../device-shell/device-shell.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AAIA;AAkBqB;AAFnB;AAEmB;;;AACpB;;ACzBD;AAGE;AAGA;AAEY;;;AAGb;;ACVD;;;;AAIsC;;ACLtC;AAEE;;;;AAOD;;ACTD;;;;AAGuC;;ACNvC;AACE;AACA;AACD;;;;AAKA;;;;;;;;AASA;;ACXD;AAGI;AACA;AADQ;;AAgBJ;AAIN;;;AAeD;;ACpBD;AAsCW;AACA;AACP;AACA;AACA;AACA;AACA;;AAzBF;AACA;;AAAsE;;AAItE;AACA;AACA;AACA;AAMA;;;AAcM;;AAgDN;AAOM;AAgBN;;;AAID;;AC1ID;;;;AAW2B;;ACJ3B;;;;AAIiC;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../device-shell/command-templates/command-templates.component.ts","../../device-shell/command-templates/command-templates.directive.ts","../../device-shell/command-templates/command-templates.module.ts","../../device-shell/device-shell.guard.ts","../../device-shell/shared/device-shell-shared.module.ts","../../device-shell/shared/device-shell.model.ts","../../device-shell/shared/device-shell.service.ts","../../device-shell/shell/shell.component.ts","../../device-shell/shell/shell.module.ts","../../device-shell/device-shell.module.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AAIA;AAkBqB;AAFnB;AAEmB;;;AACpB;;ACzBD;AAGE;AAGA;AAEY;;;AAGb;;ACVD;;;;AAIsC;;ACLtC;AAEE;;;;AAOD;;ACTD;;;;AAGuC;;ACNvC;AACE;AACA;AACD;;;;AAKA;;;;;;;;AASA;;;;;;;AAQA;;ACRD;AAII;AACA;AACA;AAJF;;;AAmBM;AAIN;;;AAmCA;;AAgCA;AAYA;;;AAOD;;ACxGD;AAsCW;AACA;AACP;AACA;AACA;AACA;AACA;;AAzBF;AACA;;AAAsE;;AAItE;AACA;AACA;AACA;AAMA;;;AAcM;;AAgDN;AAOM;AAgBN;;;AAID;;AC1ID;;;;AAW2B;;ACJ3B;;;;AAIiC;;;"}
@@ -934,11 +934,12 @@ class AssetPropertiesService {
934
934
  * Checks if two properties match for selection purposes.
935
935
  * @param property1 First property to compare.
936
936
  * @param property2 Second property to compare.
937
+ * @param omitProperties Optional list of property keys to omit from comparison (e.g., ['instanceId','configuredAssetId']).
937
938
  * @returns True if properties match.
938
939
  */
939
- propertiesMatch(property1, property2) {
940
+ propertiesMatch(property1, property2, omitProperties = []) {
940
941
  if (property1.name === property2.name) {
941
- const propertiesToOmit = ['active'];
942
+ const propertiesToOmit = ['active', ...omitProperties];
942
943
  const areEqual = isEqual(omit(property1, propertiesToOmit), omit(property2, propertiesToOmit));
943
944
  return areEqual;
944
945
  }
@@ -2078,6 +2079,10 @@ class AssetPropertyListComponent {
2078
2079
  * @param node The node to select.
2079
2080
  */
2080
2081
  onSelectSingle(selected, node, emit = true) {
2082
+ const matchingNode = this.allNodesComplete.find(n => n === node);
2083
+ if (matchingNode && matchingNode.property.active === selected) {
2084
+ return;
2085
+ }
2081
2086
  this.allNodesComplete.forEach(n => {
2082
2087
  n.property.active = false;
2083
2088
  });
@@ -2282,7 +2287,11 @@ class AssetPropertyListComponent {
2282
2287
  if (this.config.selectMode === 'single') {
2283
2288
  selectedPropertiesToApply = this.config.selectedProperties.slice(0, 1);
2284
2289
  // For single mode, find the matching node and only call onSelectSingle once
2285
- const nodeToSelect = this.dataSource.data.find(node => selectedPropertiesToApply.some(configProperty => this.assetPropertiesService.propertiesMatch(node.property, configProperty)));
2290
+ const nodeToSelect = this.dataSource.data.find(node => selectedPropertiesToApply.some(configProperty => this.assetPropertiesService.propertiesMatch(node.property, configProperty, [
2291
+ 'instanceId',
2292
+ 'configuredAssetId',
2293
+ 'config'
2294
+ ])));
2286
2295
  if (nodeToSelect) {
2287
2296
  this.onSelectSingle(true, nodeToSelect, false);
2288
2297
  }
@@ -2772,6 +2781,11 @@ class AssetPropertyTabsComponent {
2772
2781
  * @param properties The selected properties.
2773
2782
  */
2774
2783
  onSelectedProperties(properties) {
2784
+ if (this.config.selectMode === 'single') {
2785
+ this.selectedAssetProperties = [];
2786
+ this.selectedRegularProperties = [];
2787
+ this.selectedComputedProperties = [];
2788
+ }
2775
2789
  // Update the selected properties for the current tab
2776
2790
  if (this.selectedTab === 'asset') {
2777
2791
  this.selectedAssetProperties = cloneDeep(properties);
@@ -3169,7 +3183,7 @@ class AssetPropertySelectorComponent {
3169
3183
  /**
3170
3184
  * Flag to hide the selection panel.
3171
3185
  */
3172
- this.hideSelection = true;
3186
+ this.hideSelection = false;
3173
3187
  /**
3174
3188
  * Flag to allow search in asset selector.
3175
3189
  */
@@ -3219,6 +3233,9 @@ class AssetPropertySelectorComponent {
3219
3233
  */
3220
3234
  async onSelectedProperties(properties) {
3221
3235
  this.markAsTouched();
3236
+ if (this.config.selectMode === 'single') {
3237
+ this.selectedProperties = [];
3238
+ }
3222
3239
  // Handle computed properties configuration
3223
3240
  const configuredProperties = await this.handleComputedPropertiesConfiguration(properties);
3224
3241
  this.selectedProperties = cloneDeep(configuredProperties);
@@ -3468,7 +3485,7 @@ class AssetPropertySelectorDrawerComponent {
3468
3485
  /**
3469
3486
  * Flag to hide the selection
3470
3487
  * */
3471
- this.hideSelection = true;
3488
+ this.hideSelection = false;
3472
3489
  /**
3473
3490
  * Flag to allow selecting properties from multiple assets (if context change is allowed).
3474
3491
  */