@c8y/ngx-components 1023.14.210 → 1023.14.214

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.
@@ -1,13 +1,13 @@
1
- import * as i2 from '@angular/common';
1
+ import * as i3 from '@angular/common';
2
2
  import { CommonModule as CommonModule$1 } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
4
  import { inject, input, signal, computed, Component } from '@angular/core';
5
- import * as i3 from '@angular/forms';
5
+ import * as i2 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
7
  import { InventoryService } from '@c8y/client';
8
- import { gettext } from '@c8y/ngx-components/gettext';
9
8
  import * as i1 from '@c8y/ngx-components';
10
- import { AppStateService, AlertService, DatePipe, CommonModule, CoreModule, FormsModule as FormsModule$1 } from '@c8y/ngx-components';
9
+ import { AppStateService, AlertService, DatePipe, ContextRouteService, CommonModule, CoreModule, FormsModule as FormsModule$1 } from '@c8y/ngx-components';
10
+ import { gettext } from '@c8y/ngx-components/gettext';
11
11
 
12
12
  class AssetNotesWidgetComponent {
13
13
  constructor() {
@@ -15,6 +15,7 @@ class AssetNotesWidgetComponent {
15
15
  this.appState = inject(AppStateService);
16
16
  this.alertService = inject(AlertService);
17
17
  this.datePipe = inject(DatePipe);
18
+ this.contextRoute = inject(ContextRouteService);
18
19
  this.config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
19
20
  this.notes = signal(null, ...(ngDevMode ? [{ debugName: "notes" }] : []));
20
21
  this.editable = signal(false, ...(ngDevMode ? [{ debugName: "editable" }] : []));
@@ -32,6 +33,10 @@ class AssetNotesWidgetComponent {
32
33
  this.editable.set(!this.editable());
33
34
  }
34
35
  async save() {
36
+ const id = this.deviceId();
37
+ if (!id) {
38
+ return;
39
+ }
35
40
  try {
36
41
  const updatedNotes = {
37
42
  ...this.notes(),
@@ -39,7 +44,7 @@ class AssetNotesWidgetComponent {
39
44
  lastUpdated: new Date().toISOString()
40
45
  };
41
46
  await this.inventory.update({
42
- id: this.config().device.id,
47
+ id,
43
48
  [this.FRAGMENT]: updatedNotes
44
49
  });
45
50
  this.notes.set(updatedNotes);
@@ -51,20 +56,37 @@ class AssetNotesWidgetComponent {
51
56
  }
52
57
  }
53
58
  async loadNotes() {
59
+ const id = this.deviceId();
60
+ if (!id) {
61
+ // No device resolved — stay read-only (Edit is hidden while loading) instead of
62
+ // presenting an editable empty state.
63
+ return;
64
+ }
54
65
  try {
55
- const device = await this.inventory.detail(this.config().device.id);
66
+ const device = await this.inventory.detail(id);
56
67
  this.notes.set(device.data[this.FRAGMENT] || { htmlContent: '' });
57
68
  }
58
69
  catch (error) {
70
+ // Leave the widget read-only on failure: a transient error must not let the user save
71
+ // over notes that are still on the device.
59
72
  this.alertService.addServerFailure(error);
60
73
  }
61
74
  }
75
+ /**
76
+ * Id of the device whose notes are shown. Prefers the widget's own `config.device`, and
77
+ * falls back to the dashboard context device — pre-migration (AngularJS) Asset Notes
78
+ * dashboards saved no `config.device` and relied on the surrounding dashboard context.
79
+ */
80
+ deviceId() {
81
+ const id = this.config()?.device?.id ?? this.contextRoute.activatedContextData?.contextData?.id;
82
+ return id == null ? undefined : `${id}`;
83
+ }
62
84
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AssetNotesWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
63
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: AssetNotesWidgetComponent, isStandalone: true, selector: "c8y-asset-notes", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"fit-h d-flex flex-wrap a-i-stretch\">\n <i\n class=\"c8y-icon c8y-icon-duocolor asset-notes-icon\"\n [c8yIcon]=\"'c8y-notification'\"\n ></i>\n\n @if (!editable()) {\n <div class=\"asset-notes-content\">\n <c8y-loading *ngIf=\"isLoading()\"></c8y-loading>\n <div class=\"text-break-word asset-notes-body\">\n @if (notes()?.htmlContent && !isLoading()) {\n <span\n class=\"markdown-content d-inline-block\"\n [innerHTML]=\"notes()?.htmlContent | markdownToHtml | async\"\n ></span>\n } @else if (!notes()?.htmlContent) {\n <span>\n {{ 'No notes yet.' | translate }}\n </span>\n }\n\n <button\n class=\"btn btn-link btn-sm\"\n title=\"{{ 'Edit' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"pencil\"></i>\n {{ 'Edit' | translate }}\n </button>\n </div>\n </div>\n <div class=\"asset-notes-footer m-t-8\">\n <small class=\"text-muted\">\n <em\n *ngIf=\"notes()?.lastUpdated\"\n ngNonBindable\n translate\n [translateParams]=\"ngNonBindableTranslate()\"\n >\n {{ lastUpdated }} by {{ user }}\n </em>\n </small>\n </div>\n } @else {\n <div class=\"fit-h flex-grow\">\n <div class=\"d-flex a-i-stretch fit-h\">\n <textarea\n class=\"form-control fit-h text-monospace\"\n [attr.aria-label]=\"'Notes' | translate\"\n rows=\"5\"\n [(ngModel)]=\"notes().htmlContent\"\n c8y-code-editor\n ></textarea>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Save' | translate }}\"\n type=\"button\"\n (click)=\"save()\"\n >\n <i c8yIcon=\"check\"></i>\n </button>\n </div>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Cancel' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i1.C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1.LoadingComponent, selector: "c8y-loading", inputs: ["layout", "progress", "message"] }, { kind: "ngmodule", type: CommonModule$1 }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: FormsModule$1 }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.MarkdownToHtmlPipe, name: "markdownToHtml" }] }); }
85
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: AssetNotesWidgetComponent, isStandalone: true, selector: "c8y-asset-notes", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"fit-h d-flex flex-wrap a-i-stretch\">\n <i\n class=\"c8y-icon c8y-icon-duocolor asset-notes-icon\"\n [c8yIcon]=\"'c8y-notification'\"\n ></i>\n\n @if (!editable()) {\n <div class=\"asset-notes-content\">\n @if (isLoading()) {\n <c8y-loading></c8y-loading>\n }\n <div class=\"text-break-word asset-notes-body\">\n @if (notes()?.htmlContent && !isLoading()) {\n <span\n class=\"markdown-content d-inline-block\"\n [innerHTML]=\"notes()?.htmlContent | markdownToHtml | async\"\n ></span>\n } @else if (!notes()?.htmlContent) {\n <span>\n {{ 'No notes yet.' | translate }}\n </span>\n }\n\n @if (!isLoading()) {\n <button\n class=\"btn btn-link btn-sm\"\n title=\"{{ 'Edit' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"pencil\"></i>\n {{ 'Edit' | translate }}\n </button>\n }\n </div>\n </div>\n <div class=\"asset-notes-footer m-t-8\">\n <small class=\"text-muted\">\n @if (notes()?.lastUpdated) {\n <em\n ngNonBindable\n translate\n [translateParams]=\"ngNonBindableTranslate()\"\n >\n {{ lastUpdated }} by {{ user }}\n </em>\n }\n </small>\n </div>\n } @else {\n <div class=\"fit-h flex-grow\">\n <div class=\"d-flex a-i-stretch fit-h\">\n <textarea\n class=\"form-control fit-h text-monospace\"\n [attr.aria-label]=\"'Notes' | translate\"\n rows=\"5\"\n [(ngModel)]=\"notes().htmlContent\"\n c8y-code-editor\n ></textarea>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Save' | translate }}\"\n type=\"button\"\n (click)=\"save()\"\n >\n <i c8yIcon=\"check\"></i>\n </button>\n </div>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Cancel' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i1.C8yTranslateDirective, selector: "[translate],[ngx-translate]" }, { kind: "component", type: i1.LoadingComponent, selector: "c8y-loading", inputs: ["layout", "progress", "message"] }, { kind: "ngmodule", type: CommonModule$1 }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: FormsModule$1 }, { kind: "pipe", type: i1.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.MarkdownToHtmlPipe, name: "markdownToHtml" }] }); }
64
86
  }
65
87
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AssetNotesWidgetComponent, decorators: [{
66
88
  type: Component,
67
- args: [{ selector: 'c8y-asset-notes', standalone: true, imports: [CommonModule, CommonModule$1, CoreModule, FormsModule, FormsModule$1, DatePipe], template: "<div class=\"fit-h d-flex flex-wrap a-i-stretch\">\n <i\n class=\"c8y-icon c8y-icon-duocolor asset-notes-icon\"\n [c8yIcon]=\"'c8y-notification'\"\n ></i>\n\n @if (!editable()) {\n <div class=\"asset-notes-content\">\n <c8y-loading *ngIf=\"isLoading()\"></c8y-loading>\n <div class=\"text-break-word asset-notes-body\">\n @if (notes()?.htmlContent && !isLoading()) {\n <span\n class=\"markdown-content d-inline-block\"\n [innerHTML]=\"notes()?.htmlContent | markdownToHtml | async\"\n ></span>\n } @else if (!notes()?.htmlContent) {\n <span>\n {{ 'No notes yet.' | translate }}\n </span>\n }\n\n <button\n class=\"btn btn-link btn-sm\"\n title=\"{{ 'Edit' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"pencil\"></i>\n {{ 'Edit' | translate }}\n </button>\n </div>\n </div>\n <div class=\"asset-notes-footer m-t-8\">\n <small class=\"text-muted\">\n <em\n *ngIf=\"notes()?.lastUpdated\"\n ngNonBindable\n translate\n [translateParams]=\"ngNonBindableTranslate()\"\n >\n {{ lastUpdated }} by {{ user }}\n </em>\n </small>\n </div>\n } @else {\n <div class=\"fit-h flex-grow\">\n <div class=\"d-flex a-i-stretch fit-h\">\n <textarea\n class=\"form-control fit-h text-monospace\"\n [attr.aria-label]=\"'Notes' | translate\"\n rows=\"5\"\n [(ngModel)]=\"notes().htmlContent\"\n c8y-code-editor\n ></textarea>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Save' | translate }}\"\n type=\"button\"\n (click)=\"save()\"\n >\n <i c8yIcon=\"check\"></i>\n </button>\n </div>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Cancel' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n" }]
89
+ args: [{ selector: 'c8y-asset-notes', standalone: true, imports: [CommonModule, CommonModule$1, CoreModule, FormsModule, FormsModule$1, DatePipe], template: "<div class=\"fit-h d-flex flex-wrap a-i-stretch\">\n <i\n class=\"c8y-icon c8y-icon-duocolor asset-notes-icon\"\n [c8yIcon]=\"'c8y-notification'\"\n ></i>\n\n @if (!editable()) {\n <div class=\"asset-notes-content\">\n @if (isLoading()) {\n <c8y-loading></c8y-loading>\n }\n <div class=\"text-break-word asset-notes-body\">\n @if (notes()?.htmlContent && !isLoading()) {\n <span\n class=\"markdown-content d-inline-block\"\n [innerHTML]=\"notes()?.htmlContent | markdownToHtml | async\"\n ></span>\n } @else if (!notes()?.htmlContent) {\n <span>\n {{ 'No notes yet.' | translate }}\n </span>\n }\n\n @if (!isLoading()) {\n <button\n class=\"btn btn-link btn-sm\"\n title=\"{{ 'Edit' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"pencil\"></i>\n {{ 'Edit' | translate }}\n </button>\n }\n </div>\n </div>\n <div class=\"asset-notes-footer m-t-8\">\n <small class=\"text-muted\">\n @if (notes()?.lastUpdated) {\n <em\n ngNonBindable\n translate\n [translateParams]=\"ngNonBindableTranslate()\"\n >\n {{ lastUpdated }} by {{ user }}\n </em>\n }\n </small>\n </div>\n } @else {\n <div class=\"fit-h flex-grow\">\n <div class=\"d-flex a-i-stretch fit-h\">\n <textarea\n class=\"form-control fit-h text-monospace\"\n [attr.aria-label]=\"'Notes' | translate\"\n rows=\"5\"\n [(ngModel)]=\"notes().htmlContent\"\n c8y-code-editor\n ></textarea>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Save' | translate }}\"\n type=\"button\"\n (click)=\"save()\"\n >\n <i c8yIcon=\"check\"></i>\n </button>\n </div>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Cancel' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n" }]
68
90
  }], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
69
91
 
70
92
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"c8y-ngx-components-widgets-implementations-asset-notes.mjs","sources":["../../widgets/implementations/asset-notes/asset-notes-widget.component.ts","../../widgets/implementations/asset-notes/asset-notes-widget.component.html","../../widgets/implementations/asset-notes/c8y-ngx-components-widgets-implementations-asset-notes.ts"],"sourcesContent":["import { CommonModule as NgCommonModule } from '@angular/common';\nimport { Component, computed, inject, input, InputSignal, OnInit, signal } from '@angular/core';\nimport { FormsModule as NgFormsModule } from '@angular/forms';\nimport { IManagedObject, InventoryService } from '@c8y/client';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n AlertService,\n AppStateService,\n CommonModule,\n CoreModule,\n DatePipe,\n FormsModule\n} from '@c8y/ngx-components';\n\ninterface AssetNotes {\n user: string;\n lastUpdated: string;\n htmlContent: string;\n}\n\nexport type AssetNotesConfig = { device: Partial<IManagedObject> };\n\n@Component({\n selector: 'c8y-asset-notes',\n templateUrl: './asset-notes-widget.component.html',\n standalone: true,\n imports: [CommonModule, NgCommonModule, CoreModule, NgFormsModule, FormsModule, DatePipe]\n})\nexport class AssetNotesWidgetComponent implements OnInit {\n private inventory = inject(InventoryService);\n private appState = inject(AppStateService);\n private alertService = inject(AlertService);\n private datePipe = inject(DatePipe);\n\n config: InputSignal<AssetNotesConfig> = input();\n\n notes = signal<AssetNotes | null>(null);\n editable = signal(false);\n isLoading = computed(() => this.notes()?.htmlContent === undefined);\n\n private readonly FRAGMENT = 'c8y_ComponentConfig!assetNotes';\n ngNonBindableTranslate = computed(() => ({\n lastUpdated: this.datePipe.transform(this.notes()?.lastUpdated),\n user: this.notes()?.user\n }));\n\n async ngOnInit() {\n await this.loadNotes();\n }\n\n toggleEdit() {\n this.editable.set(!this.editable());\n }\n\n async save() {\n try {\n const updatedNotes = {\n ...this.notes(),\n user: this.appState.currentUser.value.id,\n lastUpdated: new Date().toISOString()\n };\n\n await this.inventory.update({\n id: this.config().device.id,\n [this.FRAGMENT]: updatedNotes\n });\n\n this.notes.set(updatedNotes);\n this.editable.set(false);\n this.alertService.success(gettext('Notes saved.'));\n } catch (error) {\n this.alertService.addServerFailure(error);\n }\n }\n\n private async loadNotes() {\n try {\n const device = await this.inventory.detail(this.config().device.id);\n this.notes.set(device.data[this.FRAGMENT] || { htmlContent: '' });\n } catch (error) {\n this.alertService.addServerFailure(error);\n }\n }\n}\n","<div class=\"fit-h d-flex flex-wrap a-i-stretch\">\n <i\n class=\"c8y-icon c8y-icon-duocolor asset-notes-icon\"\n [c8yIcon]=\"'c8y-notification'\"\n ></i>\n\n @if (!editable()) {\n <div class=\"asset-notes-content\">\n <c8y-loading *ngIf=\"isLoading()\"></c8y-loading>\n <div class=\"text-break-word asset-notes-body\">\n @if (notes()?.htmlContent && !isLoading()) {\n <span\n class=\"markdown-content d-inline-block\"\n [innerHTML]=\"notes()?.htmlContent | markdownToHtml | async\"\n ></span>\n } @else if (!notes()?.htmlContent) {\n <span>\n {{ 'No notes yet.' | translate }}\n </span>\n }\n\n <button\n class=\"btn btn-link btn-sm\"\n title=\"{{ 'Edit' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"pencil\"></i>\n {{ 'Edit' | translate }}\n </button>\n </div>\n </div>\n <div class=\"asset-notes-footer m-t-8\">\n <small class=\"text-muted\">\n <em\n *ngIf=\"notes()?.lastUpdated\"\n ngNonBindable\n translate\n [translateParams]=\"ngNonBindableTranslate()\"\n >\n {{ lastUpdated }} by {{ user }}\n </em>\n </small>\n </div>\n } @else {\n <div class=\"fit-h flex-grow\">\n <div class=\"d-flex a-i-stretch fit-h\">\n <textarea\n class=\"form-control fit-h text-monospace\"\n [attr.aria-label]=\"'Notes' | translate\"\n rows=\"5\"\n [(ngModel)]=\"notes().htmlContent\"\n c8y-code-editor\n ></textarea>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Save' | translate }}\"\n type=\"button\"\n (click)=\"save()\"\n >\n <i c8yIcon=\"check\"></i>\n </button>\n </div>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Cancel' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["NgCommonModule","NgFormsModule","FormsModule"],"mappings":";;;;;;;;;;;MA4Ba,yBAAyB,CAAA;AANtC,IAAA,WAAA,GAAA;AAOU,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;AACpC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,eAAe,CAAC;AAClC,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,YAAY,CAAC;AACnC,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;QAEnC,IAAA,CAAA,MAAM,GAAkC,KA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AAA,EAAA,IAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAA,EAAA,CAAA,kBAAA,EAAA,IAAA,EAAA,gBAAA,EAAA,CAAA,EAAA,CAAA,CAAA;;4FAEnE,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBANrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,UAAA,EAEf,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,EAAEF,cAAc,EAAE,UAAU,EAAEC,WAAa,EAAEC,aAAW,EAAE,QAAQ,CAAC,EAAA,QAAA,EAAA,syEAAA,EAAA;;;AE1B3F;;AAEG;;;;"}
1
+ {"version":3,"file":"c8y-ngx-components-widgets-implementations-asset-notes.mjs","sources":["../../widgets/implementations/asset-notes/asset-notes-widget.component.ts","../../widgets/implementations/asset-notes/asset-notes-widget.component.html","../../widgets/implementations/asset-notes/c8y-ngx-components-widgets-implementations-asset-notes.ts"],"sourcesContent":["import { CommonModule as NgCommonModule } from '@angular/common';\nimport { Component, computed, inject, input, InputSignal, OnInit, signal } from '@angular/core';\nimport { FormsModule as NgFormsModule } from '@angular/forms';\nimport { IManagedObject, InventoryService } from '@c8y/client';\nimport {\n AlertService,\n AppStateService,\n CommonModule,\n ContextRouteService,\n CoreModule,\n DatePipe,\n FormsModule\n} from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\ninterface AssetNotes {\n user: string;\n lastUpdated: string;\n htmlContent: string;\n}\n\nexport type AssetNotesConfig = { device: Partial<IManagedObject> };\n\n@Component({\n selector: 'c8y-asset-notes',\n templateUrl: './asset-notes-widget.component.html',\n standalone: true,\n imports: [CommonModule, NgCommonModule, CoreModule, NgFormsModule, FormsModule, DatePipe]\n})\nexport class AssetNotesWidgetComponent implements OnInit {\n private inventory = inject(InventoryService);\n private appState = inject(AppStateService);\n private alertService = inject(AlertService);\n private datePipe = inject(DatePipe);\n private contextRoute = inject(ContextRouteService);\n\n config: InputSignal<AssetNotesConfig> = input();\n\n notes = signal<AssetNotes | null>(null);\n editable = signal(false);\n isLoading = computed(() => this.notes()?.htmlContent === undefined);\n\n private readonly FRAGMENT = 'c8y_ComponentConfig!assetNotes';\n ngNonBindableTranslate = computed(() => ({\n lastUpdated: this.datePipe.transform(this.notes()?.lastUpdated),\n user: this.notes()?.user\n }));\n\n async ngOnInit() {\n await this.loadNotes();\n }\n\n toggleEdit() {\n this.editable.set(!this.editable());\n }\n\n async save() {\n const id = this.deviceId();\n if (!id) {\n return;\n }\n try {\n const updatedNotes = {\n ...this.notes(),\n user: this.appState.currentUser.value.id,\n lastUpdated: new Date().toISOString()\n };\n\n await this.inventory.update({\n id,\n [this.FRAGMENT]: updatedNotes\n });\n\n this.notes.set(updatedNotes);\n this.editable.set(false);\n this.alertService.success(gettext('Notes saved.'));\n } catch (error) {\n this.alertService.addServerFailure(error);\n }\n }\n\n private async loadNotes() {\n const id = this.deviceId();\n if (!id) {\n // No device resolved — stay read-only (Edit is hidden while loading) instead of\n // presenting an editable empty state.\n return;\n }\n try {\n const device = await this.inventory.detail(id);\n this.notes.set(device.data[this.FRAGMENT] || { htmlContent: '' });\n } catch (error) {\n // Leave the widget read-only on failure: a transient error must not let the user save\n // over notes that are still on the device.\n this.alertService.addServerFailure(error);\n }\n }\n\n /**\n * Id of the device whose notes are shown. Prefers the widget's own `config.device`, and\n * falls back to the dashboard context device — pre-migration (AngularJS) Asset Notes\n * dashboards saved no `config.device` and relied on the surrounding dashboard context.\n */\n private deviceId(): string | undefined {\n const id = this.config()?.device?.id ?? this.contextRoute.activatedContextData?.contextData?.id;\n return id == null ? undefined : `${id}`;\n }\n}\n","<div class=\"fit-h d-flex flex-wrap a-i-stretch\">\n <i\n class=\"c8y-icon c8y-icon-duocolor asset-notes-icon\"\n [c8yIcon]=\"'c8y-notification'\"\n ></i>\n\n @if (!editable()) {\n <div class=\"asset-notes-content\">\n @if (isLoading()) {\n <c8y-loading></c8y-loading>\n }\n <div class=\"text-break-word asset-notes-body\">\n @if (notes()?.htmlContent && !isLoading()) {\n <span\n class=\"markdown-content d-inline-block\"\n [innerHTML]=\"notes()?.htmlContent | markdownToHtml | async\"\n ></span>\n } @else if (!notes()?.htmlContent) {\n <span>\n {{ 'No notes yet.' | translate }}\n </span>\n }\n\n @if (!isLoading()) {\n <button\n class=\"btn btn-link btn-sm\"\n title=\"{{ 'Edit' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"pencil\"></i>\n {{ 'Edit' | translate }}\n </button>\n }\n </div>\n </div>\n <div class=\"asset-notes-footer m-t-8\">\n <small class=\"text-muted\">\n @if (notes()?.lastUpdated) {\n <em\n ngNonBindable\n translate\n [translateParams]=\"ngNonBindableTranslate()\"\n >\n {{ lastUpdated }} by {{ user }}\n </em>\n }\n </small>\n </div>\n } @else {\n <div class=\"fit-h flex-grow\">\n <div class=\"d-flex a-i-stretch fit-h\">\n <textarea\n class=\"form-control fit-h text-monospace\"\n [attr.aria-label]=\"'Notes' | translate\"\n rows=\"5\"\n [(ngModel)]=\"notes().htmlContent\"\n c8y-code-editor\n ></textarea>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Save' | translate }}\"\n type=\"button\"\n (click)=\"save()\"\n >\n <i c8yIcon=\"check\"></i>\n </button>\n </div>\n <div class=\"input-group-btn a-s-center\">\n <button\n class=\"btn btn-dot\"\n title=\"{{ 'Cancel' | translate }}\"\n type=\"button\"\n (click)=\"toggleEdit()\"\n >\n <i c8yIcon=\"times\"></i>\n </button>\n </div>\n </div>\n </div>\n }\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["NgCommonModule","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terInterval = Interval | {
85
85
  };
86
86
  declare const INTERVALS: Interval[];
87
87
  declare const INTERVAL_TITLES: Record<AlarmFilterInterval['id'], string>;
88
+ /** Opt-in interval entry covering epoch → now; offered only to widgets that support lifetime queries. */
89
+ declare const LIFETIME_INTERVAL: Interval;
90
+ /**
91
+ * Resolves the entries offered by the interval picker.
92
+ *
93
+ * @param supportsLifetime - Whether the widget supports lifetime queries, see
94
+ * `GlobalContextSettings.supportsLifetime`.
95
+ * @returns The standard intervals, prepended with {@link LIFETIME_INTERVAL} when opted in.
96
+ */
97
+ declare function intervalOptionsFor(supportsLifetime?: boolean): Interval[];
88
98
 
89
99
  interface DateTimeContext {
90
100
  dateFrom: Date | string;
@@ -164,6 +174,8 @@ interface GlobalContextSettings {
164
174
  showAutoRefresh: boolean;
165
175
  showRefresh: boolean;
166
176
  showRefreshInterval: boolean;
177
+ /** Offers the lifetime ("No date filter", epoch → now) entry in the interval picker. */
178
+ supportsLifetime?: boolean;
167
179
  }
168
180
  /** Base interface for all global context events */
169
181
  interface GlobalContextEventBase<Type extends string, Payload> {
@@ -1046,8 +1058,18 @@ interface LegacyWidgetConfig {
1046
1058
  /** Generic nested configuration */
1047
1059
  config?: Record<string, unknown>;
1048
1060
  }
1061
+ /** Options for {@link WidgetConfigMigrationService.migrateWidgetConfig}. */
1062
+ interface MigrateWidgetConfigOptions {
1063
+ /**
1064
+ * Applied when a config carries no time information, replacing the generic
1065
+ * "last hour" fallback — for widgets whose AngularJS predecessor showed full history.
1066
+ */
1067
+ legacyTimeContextDefaults?: Partial<GlobalContextState>;
1068
+ }
1049
1069
  declare class WidgetConfigMigrationService {
1050
1070
  private dateTimeContextPickerService;
1071
+ /** Legacy fields carrying a time range; a subset of the keys extractRelevantSettings reads. */
1072
+ private static readonly LEGACY_TIME_FIELDS;
1051
1073
  constructor(dateTimeContextPickerService: DateTimeContextPickerService);
1052
1074
  /**
1053
1075
  * Transforms legacy widget configurations into the standardized GlobalContextState format.
@@ -1070,6 +1092,7 @@ declare class WidgetConfigMigrationService {
1070
1092
  *
1071
1093
  * @param config - Widget configuration object that may contain legacy or new format properties.
1072
1094
  * Can be any object type, but should contain widget configuration fields.
1095
+ * @param options - Widget-specific migration overrides, see {@link MigrateWidgetConfigOptions}.
1073
1096
  * @returns Configuration with all required GlobalContextState properties, either migrated from
1074
1097
  * legacy format or preserved if already valid. Returns input unchanged if null/undefined.
1075
1098
  *
@@ -1095,7 +1118,13 @@ declare class WidgetConfigMigrationService {
1095
1118
  * // }
1096
1119
  * ```
1097
1120
  */
1098
- migrateWidgetConfig<T extends object = object>(config: T): Partial<GlobalContextState>;
1121
+ migrateWidgetConfig<T extends object = object>(config: T, options?: MigrateWidgetConfigOptions): Partial<GlobalContextState>;
1122
+ /**
1123
+ * True when a config carries no time information at all. Legacy fields are read from
1124
+ * the same merged root/`config`/`mapConfig` levels as the migration itself, so the
1125
+ * defaults can never shadow dates stored on a nested level.
1126
+ */
1127
+ private hasNoTimeContextFields;
1099
1128
  /**
1100
1129
  * Creates a flattened configuration by excluding nested configuration objects.
1101
1130
  *
@@ -2514,13 +2543,16 @@ declare class GlobalContextInlineComponent implements OnInit, AfterViewInit, OnD
2514
2543
  showAutoRefresh?: boolean;
2515
2544
  showRefresh?: boolean;
2516
2545
  showRefreshInterval?: boolean;
2546
+ supportsLifetime?: boolean;
2517
2547
  }>;
2548
+ readonly intervalOptions: _angular_core.Signal<Interval[]>;
2518
2549
  readonly dashboardControlSettings: _angular_core.Signal<{
2519
2550
  showTimeContext?: boolean;
2520
2551
  showAggregation?: boolean;
2521
2552
  showAutoRefresh?: boolean;
2522
2553
  showRefresh?: boolean;
2523
2554
  showRefreshInterval?: boolean;
2555
+ supportsLifetime?: boolean;
2524
2556
  }>;
2525
2557
  readonly controlLinkStatus: _angular_core.Signal<Partial<Record<"dateTimeContext" | "aggregation" | "isAutoRefreshEnabled", boolean>>>;
2526
2558
  readonly disabledAggregations: _angular_core.Signal<Partial<Record<aggregationType, boolean>>>;
@@ -2752,6 +2784,8 @@ declare class GlobalContextLinkControlsComponent implements OnInit {
2752
2784
  declare class DateTimeContextPickerComponent implements OnInit, ControlValueAccessor {
2753
2785
  disabled: boolean;
2754
2786
  shouldDisableInterval: Record<string, boolean>;
2787
+ /** Options offered in the interval dropdown; resolved by the host, defaults to the standard list. */
2788
+ intervalOptions: Interval[];
2755
2789
  config: DateTimeContextPickerConfig;
2756
2790
  dropdown?: BsDropdownDirective;
2757
2791
  private readonly service;
@@ -2808,7 +2842,7 @@ declare class DateTimeContextPickerComponent implements OnInit, ControlValueAcce
2808
2842
  private normalizeTimestamp;
2809
2843
  private closeDropdown;
2810
2844
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateTimeContextPickerComponent, never>;
2811
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimeContextPickerComponent, "c8y-date-time-context-picker", never, { "disabled": { "alias": "disabled"; "required": false; }; "shouldDisableInterval": { "alias": "shouldDisableInterval"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
2845
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateTimeContextPickerComponent, "c8y-date-time-context-picker", never, { "disabled": { "alias": "disabled"; "required": false; }; "shouldDisableInterval": { "alias": "shouldDisableInterval"; "required": false; }; "intervalOptions": { "alias": "intervalOptions"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
2812
2846
  }
2813
2847
 
2814
2848
  declare class TimeRangeDisplayComponent {
@@ -3046,6 +3080,7 @@ declare class LiveModeConfigurationControlsComponent {
3046
3080
  private readonly currentContext;
3047
3081
  set settings(value: Partial<GlobalContextSettings> | null);
3048
3082
  get settings(): Partial<GlobalContextSettings>;
3083
+ readonly intervalOptions: _angular_core.Signal<Interval[]>;
3049
3084
  set context(value: GlobalContextState | null);
3050
3085
  readonly contextChange: _angular_core.OutputEmitterRef<Partial<GlobalContextState>>;
3051
3086
  form: ReturnType<typeof this.createForm>;
@@ -3675,6 +3710,8 @@ type PresetDefinition = {
3675
3710
  [GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD]: ContextFeature[];
3676
3711
  [GLOBAL_CONTEXT_DISPLAY_MODE.CONFIG]: ContextFeature[];
3677
3712
  [GLOBAL_CONTEXT_DISPLAY_MODE.VIEW_AND_CONFIG]: ContextFeature[];
3713
+ /** Offers the lifetime ("No date filter", epoch → now) entry in the interval picker. */
3714
+ supportsLifetime?: boolean;
3678
3715
  };
3679
3716
  /** Control presets for different widget types (mode constraints applied by applyModeConstraints) */
3680
3717
  declare const CONTROL_PRESETS: Record<PresetName, PresetDefinition>;
@@ -3940,6 +3977,6 @@ declare class DateTimeContextUtil {
3940
3977
  }>;
3941
3978
  }
3942
3979
 
3943
- export { AGGREGATIONS, AGGREGATION_ICONS, AGGREGATION_ICON_TYPE, AGGREGATION_LABELS, AGGREGATION_LIMITS, AGGREGATION_TEXTS, AGGREGATION_VALUES, AGGREGATION_VALUES_ARR, AggregationDisplayComponent, AggregationPickerComponent, AggregationPickerService, AggregationValidationService, AutoRefreshControlComponent, CONTEXT_FEATURE, CONTROL_PRESETS, ConfigContextSelectorComponent, ConfigModeControls, ConfigModeControls as ConfigModeControlsComponent, ConfigurationCollapseComponent, ConfigurationControlsComponent, ContextControlsComponent, DEFAULT_WIDGET_TEMPLATE, DateContextQueryParamNames, DateTimeContextPickerComponent, DateTimeContextPickerService, DateTimeContextUtil, GLOBAL_CONTEXT_DEFAULTS, GLOBAL_CONTEXT_DISPLAY_MODE, GLOBAL_CONTEXT_EVENTS, GLOBAL_CONTEXT_SOURCE, GlobalContextComponent, GlobalContextConfigComponent, GlobalContextConnectorComponent, GlobalContextEventService, GlobalContextFormService, GlobalContextInlineComponent, GlobalContextLinkControlsComponent, GlobalContextModule, GlobalContextNavigationService, GlobalContextQueryService, GlobalContextService, GlobalContextUtilsService, GlobalContextValidationService, GlobalContextWidgetConfigComponent, GlobalContextWidgetWrapperComponent, HistoryModeConfigurationControlsComponent, INTERVALS, INTERVAL_TITLES, IntervalPickerComponent, LINK_BTNS_CONFIG, LinkButtonsComponent, LiveModeConfigurationControlsComponent, LocalControlsComponent, PRESET_NAME, PreviewControlsComponent, REFRESH_OPTION, ROUTE_PATHS, RealtimeControlComponent, TIME_DURATION, TIME_INTERVAL, TIME_SPAN_MS, TIMING, TimeRangeDisplayComponent, UI_PRIORITIES, WIDGET_DISPLAY_MODE, WIDGET_FEATURE_MAP, WidgetConfigMigrationService, WidgetControlService, applyModeConstraints, buildAggregationExtensions, buildBaselineControls, buildWidgetControlsFromPresets, controlsToSettings, createAutoRefreshHandlers, createResult, defineWidgetControls, getSupportedModes, guards, isAggregationLinked, isAggregationUnlinked, isAutoRefreshDisabled, isAutoRefreshEnabled, isConfig, isDashboard, isDateTimeContextLinked, isDateTimeContextUnlinked, isHistory, isLive, isViewAndConfig, mergePartialControls, resolveWidgetControlsInput, setAutoRefreshControlsVisibility, setAutoRefreshLinks, updateBothSettings };
3944
- export type { Aggregation, AggregationCalculationResult, AggregationIconType, AggregationOption, AggregationOptionStatus, AggregationState, AlarmFilterInterval, ContextConfig, ContextFeature, ControlConfigsMap, DateContextParams, DateTimeContext, DateTimeContextPickerConfig, DisplayMode, GlobalContextDisplayMode, GlobalContextEvent, GlobalContextEventBase, GlobalContextEventRegistry, GlobalContextEventType, GlobalContextEventUnion, GlobalContextInstance, GlobalContextKeys, GlobalContextSettings, GlobalContextSource, GlobalContextState, GuardState, InputDateContextQueryParams, Interval, LegacyWidgetConfig, LinkStatesMap, LinkToggleEvent, OutputDateContextQueryParams, ParameterValidationStatus, PartialWidgetControls, PresetDefinition, PresetName, RefreshOption, RoutePath, TimeInterval, WidgetControlHandler, WidgetControlSettings, WidgetControls, WidgetControlsPresetConfig, WidgetDisplayMode, WidgetFeature, WidgetPresetName, WidgetPresetSelection, WidgetSettingsResult, WidgetState, WidgetStateHandlerResult };
3980
+ export { AGGREGATIONS, AGGREGATION_ICONS, AGGREGATION_ICON_TYPE, AGGREGATION_LABELS, AGGREGATION_LIMITS, AGGREGATION_TEXTS, AGGREGATION_VALUES, AGGREGATION_VALUES_ARR, AggregationDisplayComponent, AggregationPickerComponent, AggregationPickerService, AggregationValidationService, AutoRefreshControlComponent, CONTEXT_FEATURE, CONTROL_PRESETS, ConfigContextSelectorComponent, ConfigModeControls, ConfigModeControls as ConfigModeControlsComponent, ConfigurationCollapseComponent, ConfigurationControlsComponent, ContextControlsComponent, DEFAULT_WIDGET_TEMPLATE, DateContextQueryParamNames, DateTimeContextPickerComponent, DateTimeContextPickerService, DateTimeContextUtil, GLOBAL_CONTEXT_DEFAULTS, GLOBAL_CONTEXT_DISPLAY_MODE, GLOBAL_CONTEXT_EVENTS, GLOBAL_CONTEXT_SOURCE, GlobalContextComponent, GlobalContextConfigComponent, GlobalContextConnectorComponent, GlobalContextEventService, GlobalContextFormService, GlobalContextInlineComponent, GlobalContextLinkControlsComponent, GlobalContextModule, GlobalContextNavigationService, GlobalContextQueryService, GlobalContextService, GlobalContextUtilsService, GlobalContextValidationService, GlobalContextWidgetConfigComponent, GlobalContextWidgetWrapperComponent, HistoryModeConfigurationControlsComponent, INTERVALS, INTERVAL_TITLES, IntervalPickerComponent, LIFETIME_INTERVAL, LINK_BTNS_CONFIG, LinkButtonsComponent, LiveModeConfigurationControlsComponent, LocalControlsComponent, PRESET_NAME, PreviewControlsComponent, REFRESH_OPTION, ROUTE_PATHS, RealtimeControlComponent, TIME_DURATION, TIME_INTERVAL, TIME_SPAN_MS, TIMING, TimeRangeDisplayComponent, UI_PRIORITIES, WIDGET_DISPLAY_MODE, WIDGET_FEATURE_MAP, WidgetConfigMigrationService, WidgetControlService, applyModeConstraints, buildAggregationExtensions, buildBaselineControls, buildWidgetControlsFromPresets, controlsToSettings, createAutoRefreshHandlers, createResult, defineWidgetControls, getSupportedModes, guards, intervalOptionsFor, isAggregationLinked, isAggregationUnlinked, isAutoRefreshDisabled, isAutoRefreshEnabled, isConfig, isDashboard, isDateTimeContextLinked, isDateTimeContextUnlinked, isHistory, isLive, isViewAndConfig, mergePartialControls, resolveWidgetControlsInput, setAutoRefreshControlsVisibility, setAutoRefreshLinks, updateBothSettings };
3981
+ export type { Aggregation, AggregationCalculationResult, AggregationIconType, AggregationOption, AggregationOptionStatus, AggregationState, AlarmFilterInterval, ContextConfig, ContextFeature, ControlConfigsMap, DateContextParams, DateTimeContext, DateTimeContextPickerConfig, DisplayMode, GlobalContextDisplayMode, GlobalContextEvent, GlobalContextEventBase, GlobalContextEventRegistry, GlobalContextEventType, GlobalContextEventUnion, GlobalContextInstance, GlobalContextKeys, GlobalContextSettings, GlobalContextSource, GlobalContextState, GuardState, InputDateContextQueryParams, Interval, LegacyWidgetConfig, LinkStatesMap, LinkToggleEvent, MigrateWidgetConfigOptions, OutputDateContextQueryParams, ParameterValidationStatus, PartialWidgetControls, PresetDefinition, PresetName, RefreshOption, RoutePath, TimeInterval, WidgetControlHandler, WidgetControlSettings, WidgetControls, WidgetControlsPresetConfig, WidgetDisplayMode, WidgetFeature, WidgetPresetName, WidgetPresetSelection, WidgetSettingsResult, WidgetState, WidgetStateHandlerResult };
3945
3982
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sources":["../../global-context/models/auto-refresh.model.ts","../../global-context/models/control-flow.model.ts","../../global-context/models/interval-picker.model.ts","../../global-context/models/date-time-context-picker.model.ts","../../global-context/models/global-context.model.ts","../../global-context/models/global-context-defaults.ts","../../global-context/models/aggregation.model.ts","../../global-context/models/context-config.model.ts","../../global-context/models/constants.ts","../../global-context/services/state/global-context.service.ts","../../global-context/services/state/global-context-form.service.ts","../../global-context/services/state/global-context-event.service.ts","../../global-context/services/domain/widget-control.service.ts","../../global-context/services/domain/date-time-context-picker.service.ts","../../global-context/services/domain/widget-config-migration.service.ts","../../global-context/services/domain/global-context-validation.service.ts","../../global-context/services/domain/aggregation-picker.service.ts","../../global-context/services/domain/aggregation-validation.service.ts","../../global-context/services/infrastructure/global-context-utils.service.ts","../../global-context/services/infrastructure/global-context-navigation.service.ts","../../global-context/services/infrastructure/global-context-query.service.ts","../../global-context/features/configuration/configuration-collapse/configuration-collapse.component.ts","../../global-context/core/global-context.component.ts","../../global-context/core/global-context-inline.component.ts","../../global-context/core/global-context-config.component.ts","../../global-context/core/global-context-widget-config.component.ts","../../global-context/core/widget-inline/inline-context.models.ts","../../global-context/core/widget-inline/inline-link-controls.component.ts","../../global-context/features/time-context/time-range-picker/date-time-context-picker.component.ts","../../global-context/features/time-context/time-range-display/time-range-display.component.ts","../../global-context/features/time-context/interval-picker/interval-picker.component.ts","../../global-context/features/aggregation/aggregation-picker/aggregation-picker.component.ts","../../global-context/features/aggregation/aggregation-display/aggregation-display.component.ts","../../global-context/features/refresh/auto-refresh/auto-refresh-control.component.ts","../../global-context/features/refresh/realtime-control/realtime-control.component.ts","../../global-context/features/configuration/config-context-selector/config-context-selector.component.ts","../../global-context/features/configuration/configuration-controls/configuration-controls.component.ts","../../global-context/features/configuration/live-mode-configuration-controls/live-mode-configuration-controls.component.ts","../../global-context/features/configuration/history-mode-configuration-controls/history-mode-configuration-controls.component.ts","../../global-context/shared/context-controls/context-controls.component.ts","../../global-context/shared/preview-controls/preview-controls.component.ts","../../global-context/integration/widget-controls/widget-controls-factory.ts","../../global-context/integration/widget-controls/guards.ts","../../global-context/integration/widget-controls/update-helpers.ts","../../global-context/integration/widget-controls/default-widget-template.ts","../../global-context/integration/widget-controls/widget-controls-presets.ts","../../global-context/integration/widget-wrapper/global-context-widget-wrapper.component.ts","../../global-context/integration/presets/control-presets.ts","../../global-context/integration/config-mode-controls/config-mode-controls.component.ts","../../global-context/integration/global-context-connector/global-context-connector.component.ts","../../global-context/integration/link-buttons/link-buttons.component.ts","../../global-context/integration/local-controls/local-controls.component.ts","../../global-context/global-context.module.ts","../../global-context/integration/widget-controls/widget-controls-presets.helpers.ts","../../global-context/utils/date-time-context.util.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;AAKM;;ACFN;;AAEG;AACH;AACG;;;;;;;;;;AAaA;;AAyBH;;AAEG;;AAED;;AAKD;AAED;;AAEG;AACG;AAON;;AAEG;;;;;;;;;AAYE;;AC5EL;;;;;;;AAQA;;;;;;;;;AAUM;AAEA;AACJ;;;;AAKI;;;;;AAQN;AA6BA;;;AChEE;AACA;;AAED;;;;AAKA;;ACLD;;;;;;;;AASA;AACE;AACA;AACA;AACD;AAEK;AAEN;;AAEG;;;AAGD;AACA;;;AAGA;AACD;AAED;;AAEG;;AAED;AACA;AACA;AACA;;;AACD;;;AAIC;AACA;;;AACA;AACG;;AAEA;;AAEH;AACG;;AAEA;;AAEH;AACG;AACE;AACF;;AAEH;;;AAGD;AAED;;;;;;;AAOC;AAED;;;;;AAKC;AAED;;;;;;;AAOG;;AAED;AACE;AACA;;;;AAIF;;;AAGA;AACD;AAED;AACM;AACN;AACM;;;AAIN;AACE;AACA;AACA;AACA;AACA;AACA;AACD;AAED;AACE;AACA;AACA;;AAGF;AACE;AACA;;;AAIF;;;AAGG;AACG;AACJ;AACA;;AAEA;AACA;AACA;;AAGF;;;;AAIG;AACG;AAIJ;;;AAKF;;;;AAKM;;;AAOJ;;;;AAIA;;;AAGA;;;AAGG;;AAEJ;AAED;;;AAGG;;;AAGD;;;;;;;;;AASD;AAED;;;AAGG;;;;;;;;;AASD;AACD;AAED;;;;;AAMM;;AAGJ;AACA;AACD;;AClOD;;;AAGG;AACH;;;;;;;;;;;;;;;;;ACJM;AACJ;;;AAIF;AAOA;;;;;AAMA;;;;;;AAOM;AAGN;AAOA;AAYA;;;;;;AAOA;AAOA;;;;;;AAOA;;;AAGG;AACG;AACN;;;AAGG;AACG;AACH;;;;;AAMF;;ACxFD;;AAEG;;AAED;;AAED;;ACND;;AAEG;AACH;;;;;;;;AAS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AIA;;;;;;;AAOG;AACH;AAIA;;;;;;;;;AASG;AACH;AAIA;;;;;;;;;AASG;AACH;AAIA;AA8BA;AAIA;;;AAGG;AACH;AA8BA;;;AAGG;AACH;;;AAaD;;AC9SK;AAEN;AACA;;;;;;;;;;;;AAaM;AAEN;AACA;;;;;;;;;AAUM;AAEA;AACJ;AACA;AACA;;AAGF;AACA;AAqGA;;;;;;AAMG;AACH;AAmBA;;;;;;;;;AASG;AACH;AAsBA;;AAEG;AACH;;AC1KA;AAuDE;AACA;AACA;AAEA;AACA;;;;AAEmF;AAEnF;;AAMA;AACA;AACA;AACA;;AAGA;AAIA;;AA8BA;AAWA;;AAgCA;AAeA;AAYA;;AAWA;AAUA;;;AAiBD;;ACvOD;;;;;;AAgCE;AACA;AACA;AACA;AACA;;AAEA;;;;AAEmF;AACnF;AACA;AAEA;;AAcA;;;;AAS8E;AAK9E;;AAkBA;;AAcA;AAOA;AA0CA;AAuBA;;;AAUD;;ACzLD;;;;;;AAMC;AAkCD;;;;AAwCE;AACA;AACA;AACA;AAEA;AAEA;AAWA;AAwBA;AAWA;AAWA;;;AAGD;;ACvKD;AAuCE;AACA;AACA;AACA;AACA;;;;AAEmF;AACnF;;;AACD;;AChDD;;;;AAMmC;;;;;ACQnC;;;;;AAKG;AACH;AAiFA;;;;;AAKG;AACH;AA2CA;;;;;;;AAOG;AACH;AAsCA;;;;;AAKG;AACH;;;AAKC;;AChND;;;AAGG;AACH;AACE;;;AAGG;;AAkBH;;AAEG;AACH;AAKA;;;;;;AAMG;AACH;AAgBA;;;;AAIG;AACH;AAYA;;;;AAIG;AACH;AAIA;;AAEG;;AASH;;AAEG;;AASH;;;AAGG;AACH;AA0BA;;AAEG;;AAoBH;;;;AAIG;AACH;AAuBA;;;AAGG;;AASH;;AAEG;;AAiBH;;;;AAIG;AACH;AACkB;AAA2C;AAa7D;;AAEG;AACH;AACqB;AAA2C;;;AAuBjE;;;"}
1
+ {"version":3,"file":"index.d.ts","sources":["../../global-context/models/auto-refresh.model.ts","../../global-context/models/control-flow.model.ts","../../global-context/models/interval-picker.model.ts","../../global-context/models/date-time-context-picker.model.ts","../../global-context/models/global-context.model.ts","../../global-context/models/global-context-defaults.ts","../../global-context/models/aggregation.model.ts","../../global-context/models/context-config.model.ts","../../global-context/models/constants.ts","../../global-context/services/state/global-context.service.ts","../../global-context/services/state/global-context-form.service.ts","../../global-context/services/state/global-context-event.service.ts","../../global-context/services/domain/widget-control.service.ts","../../global-context/services/domain/date-time-context-picker.service.ts","../../global-context/services/domain/widget-config-migration.service.ts","../../global-context/services/domain/global-context-validation.service.ts","../../global-context/services/domain/aggregation-picker.service.ts","../../global-context/services/domain/aggregation-validation.service.ts","../../global-context/services/infrastructure/global-context-utils.service.ts","../../global-context/services/infrastructure/global-context-navigation.service.ts","../../global-context/services/infrastructure/global-context-query.service.ts","../../global-context/features/configuration/configuration-collapse/configuration-collapse.component.ts","../../global-context/core/global-context.component.ts","../../global-context/core/global-context-inline.component.ts","../../global-context/core/global-context-config.component.ts","../../global-context/core/global-context-widget-config.component.ts","../../global-context/core/widget-inline/inline-context.models.ts","../../global-context/core/widget-inline/inline-link-controls.component.ts","../../global-context/features/time-context/time-range-picker/date-time-context-picker.component.ts","../../global-context/features/time-context/time-range-display/time-range-display.component.ts","../../global-context/features/time-context/interval-picker/interval-picker.component.ts","../../global-context/features/aggregation/aggregation-picker/aggregation-picker.component.ts","../../global-context/features/aggregation/aggregation-display/aggregation-display.component.ts","../../global-context/features/refresh/auto-refresh/auto-refresh-control.component.ts","../../global-context/features/refresh/realtime-control/realtime-control.component.ts","../../global-context/features/configuration/config-context-selector/config-context-selector.component.ts","../../global-context/features/configuration/configuration-controls/configuration-controls.component.ts","../../global-context/features/configuration/live-mode-configuration-controls/live-mode-configuration-controls.component.ts","../../global-context/features/configuration/history-mode-configuration-controls/history-mode-configuration-controls.component.ts","../../global-context/shared/context-controls/context-controls.component.ts","../../global-context/shared/preview-controls/preview-controls.component.ts","../../global-context/integration/widget-controls/widget-controls-factory.ts","../../global-context/integration/widget-controls/guards.ts","../../global-context/integration/widget-controls/update-helpers.ts","../../global-context/integration/widget-controls/default-widget-template.ts","../../global-context/integration/widget-controls/widget-controls-presets.ts","../../global-context/integration/widget-wrapper/global-context-widget-wrapper.component.ts","../../global-context/integration/presets/control-presets.ts","../../global-context/integration/config-mode-controls/config-mode-controls.component.ts","../../global-context/integration/global-context-connector/global-context-connector.component.ts","../../global-context/integration/link-buttons/link-buttons.component.ts","../../global-context/integration/local-controls/local-controls.component.ts","../../global-context/global-context.module.ts","../../global-context/integration/widget-controls/widget-controls-presets.helpers.ts","../../global-context/utils/date-time-context.util.ts"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;AAKM;;ACFN;;AAEG;AACH;AACG;;;;;;;;;;AAaA;;AAyBH;;AAEG;;AAED;;AAKD;AAED;;AAEG;AACG;AAON;;AAEG;;;;;;;;;AAYE;;AC5EL;;;;;;;AAQA;;;;;;;;;AAUM;AAEA;AACJ;;;;AAKI;;;;;AAQN;AA6BA;AAUA;AACA;AAKA;;;;;;AAMG;AACH;;;ACvFE;AACA;;AAED;;;;AAKA;;ACLD;;;;;;;;AASA;AACE;AACA;AACA;AACD;AAEK;AAEN;;AAEG;;;AAGD;AACA;;;AAGA;AACD;AAED;;AAEG;;AAED;AACA;AACA;AACA;;;AACD;;;AAIC;AACA;;;AACA;AACG;;AAEA;;AAEH;AACG;;AAEA;;AAEH;AACG;AACE;AACF;;AAEH;;;AAGD;AAED;;;;;;;;;AASC;AAED;;;;;AAKC;AAED;;;;;;;AAOG;;AAED;AACE;AACA;;;;AAIF;;;AAGA;AACD;AAED;AACM;AACN;AACM;;;AAIN;AACE;AACA;AACA;AACA;AACA;AACA;AACD;AAED;AACE;AACA;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A;AAWA;AAwBA;AAWA;AAWA;;;AAGD;;ACvKD;AAuCE;AACA;AACA;AACA;AACA;;;;AAEmF;AACnF;;;AACD;;AChDD;;;;AAMmC;;;;;ACQnC;;;;;AAKG;AACH;AAiFA;;;;;AAKG;AACH;AA2CA;;;;;;;AAOG;AACH;AAsCA;;;;;AAKG;AACH;;;AAKC;;AChND;;;AAGG;AACH;AACE;;;AAGG;;AAkBH;;AAEG;AACH;AAKA;;;;;;AAMG;AACH;AAgBA;;;;AAIG;AACH;AAYA;;;;AAIG;AACH;AAIA;;AAEG;;AASH;;AAEG;;AASH;;;AAGG;AACH;AA0BA;;AAEG;;AAoBH;;;;AAIG;AACH;AAuBA;;;AAGG;;AASH;;AAEG;;AAiBH;;;;AAIG;AACH;AACkB;AAA2C;AAa7D;;AAEG;AACH;AACqB;AAA2C;;;AAuBjE;;;"}
package/index.d.ts CHANGED
@@ -16571,6 +16571,8 @@ type PresetDefinition = {
16571
16571
  [GLOBAL_CONTEXT_DISPLAY_MODE.DASHBOARD]: ContextFeature[];
16572
16572
  [GLOBAL_CONTEXT_DISPLAY_MODE.CONFIG]: ContextFeature[];
16573
16573
  [GLOBAL_CONTEXT_DISPLAY_MODE.VIEW_AND_CONFIG]: ContextFeature[];
16574
+ /** Offers the lifetime ("No date filter", epoch → now) entry in the interval picker. */
16575
+ supportsLifetime?: boolean;
16574
16576
  };
16575
16577
 
16576
16578
  /**