@c8y/ngx-components 1022.8.0 → 1022.9.6

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 (71) hide show
  1. package/alarms/index.d.ts +1 -0
  2. package/alarms/index.d.ts.map +1 -1
  3. package/context-dashboard/context-dashboard.component.d.ts +1 -3
  4. package/context-dashboard/context-dashboard.component.d.ts.map +1 -1
  5. package/core/core.module.d.ts.map +1 -1
  6. package/core/index.d.ts +1 -0
  7. package/core/index.d.ts.map +1 -1
  8. package/core/preview-feature/feature-cache.service.d.ts +3 -1
  9. package/core/preview-feature/feature-cache.service.d.ts.map +1 -1
  10. package/core/preview-feature/preview-feature-button.component.d.ts +3 -2
  11. package/core/preview-feature/preview-feature-button.component.d.ts.map +1 -1
  12. package/core/preview-feature/preview-feature-query-param.factory.d.ts +24 -0
  13. package/core/preview-feature/preview-feature-query-param.factory.d.ts.map +1 -0
  14. package/core/preview-feature/preview-feature-show-notification.service.d.ts +4 -1
  15. package/core/preview-feature/preview-feature-show-notification.service.d.ts.map +1 -1
  16. package/core/preview-feature/preview-feature.component.d.ts +2 -0
  17. package/core/preview-feature/preview-feature.component.d.ts.map +1 -1
  18. package/core/preview-feature/preview-feature.model.d.ts +1 -1
  19. package/core/preview-feature/preview-feature.model.d.ts.map +1 -1
  20. package/core/preview-feature/preview-feature.providers.d.ts.map +1 -1
  21. package/core/query-param-handler/index.d.ts +5 -0
  22. package/core/query-param-handler/index.d.ts.map +1 -0
  23. package/core/query-param-handler/query-param-bottom-drawer.service.d.ts +48 -0
  24. package/core/query-param-handler/query-param-bottom-drawer.service.d.ts.map +1 -0
  25. package/core/query-param-handler/query-param-handler.service.d.ts +31 -0
  26. package/core/query-param-handler/query-param-handler.service.d.ts.map +1 -0
  27. package/core/query-param-handler/query-param-modal-handler.service.d.ts +79 -0
  28. package/core/query-param-handler/query-param-modal-handler.service.d.ts.map +1 -0
  29. package/datapoint-explorer/view/datapoint-explorer.component.d.ts +3 -2
  30. package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
  31. package/datapoint-explorer/view/datapoint-explorer.service.d.ts +2 -0
  32. package/datapoint-explorer/view/datapoint-explorer.service.d.ts.map +1 -1
  33. package/datapoint-explorer/view/send-as-widget-to-dashboard-modal/send-as-widget-to-dashboard-modal.component.d.ts +24 -0
  34. package/datapoint-explorer/view/send-as-widget-to-dashboard-modal/send-as-widget-to-dashboard-modal.component.d.ts.map +1 -0
  35. package/datapoint-explorer/view/send-as-widget-to-report-modal/send-as-widget-to-report-modal.component.d.ts +1 -1
  36. package/echart/charts.component.d.ts.map +1 -1
  37. package/echart/services/y-axis.service.d.ts.map +1 -1
  38. package/fesm2022/c8y-ngx-components-alarms.mjs +1 -1
  39. package/fesm2022/c8y-ngx-components-context-dashboard.mjs +4 -20
  40. package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
  41. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +121 -39
  42. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  43. package/fesm2022/c8y-ngx-components-echart.mjs +9 -6
  44. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  45. package/fesm2022/c8y-ngx-components-sensor-phone.mjs +331 -8
  46. package/fesm2022/c8y-ngx-components-sensor-phone.mjs.map +1 -1
  47. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +25 -17
  48. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  49. package/fesm2022/c8y-ngx-components.mjs +415 -99
  50. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  51. package/locales/de.po +29 -3
  52. package/locales/es.po +29 -3
  53. package/locales/fr.po +29 -3
  54. package/locales/ja_JP.po +28 -3
  55. package/locales/ko.po +29 -3
  56. package/locales/locales.pot +17 -3
  57. package/locales/nl.po +29 -3
  58. package/locales/pl.po +29 -3
  59. package/locales/pt_BR.po +29 -3
  60. package/locales/zh_CN.po +29 -3
  61. package/locales/zh_TW.po +29 -3
  62. package/package.json +1 -1
  63. package/sensor-phone/sensor-phone.module.d.ts.map +1 -1
  64. package/widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.d.ts.map +1 -1
  65. package/fesm2022/c8y-ngx-components-query-param-modal-handler.mjs +0 -115
  66. package/fesm2022/c8y-ngx-components-query-param-modal-handler.mjs.map +0 -1
  67. package/query-param-modal-handler/c8y-ngx-components-query-param-modal-handler.d.ts.map +0 -1
  68. package/query-param-modal-handler/index.d.ts +0 -2
  69. package/query-param-modal-handler/index.d.ts.map +0 -1
  70. package/query-param-modal-handler/query-param-modal-handler.service.d.ts +0 -77
  71. package/query-param-modal-handler/query-param-modal-handler.service.d.ts.map +0 -1
@@ -6,13 +6,11 @@ import * as i1 from '@angular/router';
6
6
  import { ActivatedRoute, RouterModule } from '@angular/router';
7
7
  import { of, Subject, from, combineLatest, map as map$1, timer, BehaviorSubject, tap as tap$1, withLatestFrom, mergeMap as mergeMap$1, shareReplay as shareReplay$1, merge, scan, debounceTime, isObservable, iif } from 'rxjs';
8
8
  import { __decorate, __metadata } from 'tslib';
9
- import * as i7 from '@c8y/ngx-components/query-param-modal-handler';
10
- import { SensorPhoneModalComponent, SHOW_CONNECT_SMARTPHONE } from '@c8y/ngx-components/sensor-phone/sensor-phone-modal';
11
9
  import * as i2$1 from '@ngx-translate/core';
12
10
  import { assign, pick, cloneDeep, some, keys, keyBy, has, set, reduce, forEach, get, isEqual, clone, omit, sortBy, escapeRegExp, findIndex, kebabCase, every } from 'lodash-es';
13
- import { tap, map, catchError, throwIfEmpty, filter, mergeMap, toArray, first, take, distinctUntilChanged, takeUntil, shareReplay, switchMap } from 'rxjs/operators';
14
11
  import * as i1$1 from '@c8y/client';
15
12
  import { QueriesUtil, InventoryService } from '@c8y/client';
13
+ import { tap, map, catchError, throwIfEmpty, filter, mergeMap, toArray, first, take, distinctUntilChanged, takeUntil, shareReplay, switchMap } from 'rxjs/operators';
16
14
  import * as i6 from '@angular/forms';
17
15
  import { Validators, NgForm, ControlContainer, FormsModule } from '@angular/forms';
18
16
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
@@ -2582,7 +2580,7 @@ class ContextDashboardComponent {
2582
2580
  get disabled() {
2583
2581
  return !this.hasPermissionToEditDashboard || !this.dashboardDetails?.isCollapsed;
2584
2582
  }
2585
- constructor(route, router, contextDashboardService, alert, renderer, moduleConfig, widgetService, bottomDrawerService, gainsightService, actionBarService, translateService, modal, editModeService, queryParamHandler) {
2583
+ constructor(route, router, contextDashboardService, alert, renderer, moduleConfig, widgetService, bottomDrawerService, gainsightService, actionBarService, translateService, modal, editModeService) {
2586
2584
  this.route = route;
2587
2585
  this.router = router;
2588
2586
  this.contextDashboardService = contextDashboardService;
@@ -2596,7 +2594,6 @@ class ContextDashboardComponent {
2596
2594
  this.translateService = translateService;
2597
2595
  this.modal = modal;
2598
2596
  this.editModeService = editModeService;
2599
- this.queryParamHandler = queryParamHandler;
2600
2597
  this.childrenClasses = '';
2601
2598
  this.setTitle = false;
2602
2599
  this.defaultWidgets = [];
@@ -2620,19 +2617,6 @@ class ContextDashboardComponent {
2620
2617
  this.destroy$ = new Subject();
2621
2618
  }
2622
2619
  ngOnInit() {
2623
- this.queryParamHandler
2624
- .handleQueryParamModal({
2625
- queryParam: SHOW_CONNECT_SMARTPHONE,
2626
- component: SensorPhoneModalComponent,
2627
- modalConfig: {
2628
- backdrop: 'static',
2629
- ariaDescribedby: 'modal-body',
2630
- ariaLabelledBy: 'modal-title',
2631
- class: 'lg'
2632
- }
2633
- })
2634
- .pipe(takeUntil(this.destroy$))
2635
- .subscribe();
2636
2620
  if (!this.name) {
2637
2621
  this.loadContextDashboard();
2638
2622
  return;
@@ -3199,7 +3183,7 @@ class ContextDashboardComponent {
3199
3183
  ? str
3200
3184
  : this.gainsightService.hashGroupName(str);
3201
3185
  }
3202
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ContextDashboardComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: ContextDashboardService }, { token: i2.AlertService }, { token: i0.Renderer2 }, { token: CONTEXT_DASHBOARD_CONFIG }, { token: WidgetService }, { token: i2.BottomDrawerService }, { token: i2.GainsightService }, { token: i2.ActionBarService }, { token: i2$1.TranslateService }, { token: i2.ModalService }, { token: DashboardEditModeService }, { token: i7.QueryParamModalHandlerService }], target: i0.ɵɵFactoryTarget.Component }); }
3186
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ContextDashboardComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: ContextDashboardService }, { token: i2.AlertService }, { token: i0.Renderer2 }, { token: CONTEXT_DASHBOARD_CONFIG }, { token: WidgetService }, { token: i2.BottomDrawerService }, { token: i2.GainsightService }, { token: i2.ActionBarService }, { token: i2$1.TranslateService }, { token: i2.ModalService }, { token: DashboardEditModeService }], target: i0.ɵɵFactoryTarget.Component }); }
3203
3187
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.14", type: ContextDashboardComponent, isStandalone: false, selector: "c8y-context-dashboard", inputs: { name: "name", childrenClasses: "childrenClasses", context: "context", setTitle: "setTitle", defaultWidgets: "defaultWidgets", _canCopy: ["canCopy", "_canCopy"], canDelete: "canDelete", isLoading: "isLoading", breadcrumbSettings: "breadcrumbSettings", showContextHelpButton: "showContextHelpButton", translateWidgetTitle: "translateWidgetTitle", hideAvailability: "hideAvailability" }, host: { listeners: { "window:beforeunload": "beforeUnloadHandler($event)" }, properties: { "class": "this.class" }, styleAttribute: "\n display: block;\n ", classAttribute: "dashboard c8y-grid-dashboard" }, viewQueries: [{ propertyName: "dashboardDetails", first: true, predicate: DashboardDetailComponent, descendants: true, static: true }, { propertyName: "widgetsDashboard", first: true, predicate: WidgetsDashboardComponent, descendants: true, static: true }], ngImport: i0, template: "<c8y-title *ngIf=\"title\">\n {{ title }}\n</c8y-title>\n\n<c8y-action-bar-item\n [placement]=\"'right'\"\n [priority]=\"10000\"\n *ngIf=\"dashboard?.deviceType && dashboard.deviceTypeValue\"\n>\n <button\n class=\"btn-clean btn-link\"\n popoverTitle=\"{{ 'Dashboard template' | translate }}\"\n [attr.aria-label]=\"'Help' | translate\"\n [popover]=\"dashboardTypePopoverRef\"\n placement=\"bottom\"\n triggers=\"focus\"\n container=\"body\"\n type=\"button\"\n >\n <span class=\"tag tag--info text-12\">\n <span class=\"dashboard-template-marker\"></span>\n {{ dashboardTypeLabel | translate: { dashboardType: dashboard.deviceTypeValue } }}\n </span>\n </button>\n <ng-template #dashboardTypePopoverRef>\n <div\n [innerHTML]=\"dashboardTypePopover | translate: { dashboardType: dashboard.deviceTypeValue }\"\n ></div>\n </ng-template>\n</c8y-action-bar-item>\n\n<c8y-action-bar-item\n [placement]=\"'right'\"\n [priority]=\"-1\"\n *ngIf=\"defaultWidgets.length > 0\"\n>\n <button\n class=\"btn btn-link\"\n title=\"{{ 'Reset widgets' | translate }}\"\n type=\"button\"\n px-event=\"Reset dashboard\"\n (click)=\"restore()\"\n [disabled]=\"disabled || (widgetsDashboard?.editMode$ | async)\"\n data-cy=\"context-dashboard--button-reset-dashboard\"\n >\n <i\n class=\"m-r-4\"\n c8yIcon=\"reset\"\n ></i>\n <span class=\"visible-xs-inline hidden-sm visible-md-inline visible-lg-inline\">\n {{ 'Reset widgets' | translate }}\n </span>\n </button>\n</c8y-action-bar-item>\n\n<c8y-help\n src=\"/docs/cockpit/working-with-dashboards/#working-with-dashboards\"\n *ngIf=\"showContextHelpButton\"\n></c8y-help>\n\n<c8y-dashboard-detail\n class=\"d-contents\"\n [isReport]=\"isReport\"\n [dashboard]=\"dashboard\"\n [mo]=\"mo\"\n [context]=\"context\"\n [deviceType]=\"context?.type\"\n [hideAvailability]=\"hideAvailability\"\n [isNamedDashboard]=\"isNamedDashboard\"\n (dashboardSaved)=\"reloadDashboard($event)\"\n (previewChanged)=\"dashboardPreview($event)\"\n></c8y-dashboard-detail>\n\n<c8y-widgets-dashboard\n [context]=\"context\"\n [contextDashboard]=\"dashboard\"\n [widgets]=\"widgets\"\n [isCopyDisabled]=\"isCopyDisabled\"\n [settings]=\"{\n isLoading: isLoading,\n isDisabled: disabled,\n canDelete: canDelete && !!dashboard,\n translateWidgetTitle: dashboard?.translateWidgetTitle ?? translateWidgetTitle,\n allowFullscreen: moduleConfig.allowFullscreen,\n title: setTitle ? dashboard?.name || title : undefined,\n widgetMargin: dashboard?.widgetMargin,\n canCopy: canCopy && !!dashboard,\n defaultWidth: dashboard?.columns >= 24 ? 8 : 4,\n columns: dashboard?.columns || 12\n }\"\n [breadcrumb]=\"breadcrumbSettings\"\n [editModeButtons]=\"{\n undoButtonDisabled: editModeService.undoButtonDisabled,\n changeToUndoName: editModeService.changeToUndoName,\n redoButtonDisabled: !editModeService.redoStackLastItem,\n changeToRedoName: editModeService.redoStackLastItem?.name\n }\"\n (onChangeDashboard)=\"positionOrWidgetDimensionChange($event)\"\n (onAddWidget)=\"addWidget()\"\n (onEditWidget)=\"editWidget($event)\"\n (onDeleteWidget)=\"deleteWidget($event)\"\n (onSaveDashboard)=\"saveWidgetsToDashboard()\"\n (onCancelDashboard)=\"cancelEditMode()\"\n (revertChange)=\"revertChange($event)\"\n (onChangeStart)=\"addDashboardClassToBody()\"\n (onChangeEnd)=\"removeDashboardClassFromBody()\"\n (onEditDashboard)=\"dashboardDetails.show(true)\"\n (onCopyDashboard)=\"copyDashboard()\"\n (onDeleteDashboard)=\"deleteDashboard()\"\n></c8y-widgets-dashboard>\n", dependencies: [{ kind: "component", type: i2.ActionBarItemComponent, selector: "c8y-action-bar-item", inputs: ["placement", "priority", "itemClass", "injector", "groupId", "inGroupPriority"] }, { kind: "directive", type: i2.IconDirective, selector: "[c8yIcon]", inputs: ["c8yIcon"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.TitleComponent, selector: "c8y-title", inputs: ["pageTitleUpdate"] }, { kind: "component", type: i2.WidgetsDashboardComponent, selector: "c8y-widgets-dashboard", inputs: ["widgets", "context", "contextDashboard", "settings", "isCopyDisabled", "breadcrumb", "editModeButtons"], outputs: ["onAddWidget", "onEditWidget", "onDeleteWidget", "onChangeDashboard", "onResize", "onEditDashboard", "onCopyDashboard", "onDeleteDashboard", "onChangeStart", "onChangeEnd", "onSaveDashboard", "onCancelDashboard", "revertChange"] }, { kind: "component", type: i2.HelpComponent, selector: "c8y-help", inputs: ["src", "isCollapsed", "priority", "icon"] }, { kind: "directive", type: i2$2.PopoverDirective, selector: "[popover]", inputs: ["adaptivePosition", "boundariesElement", "popover", "popoverContext", "popoverTitle", "placement", "outsideClick", "triggers", "container", "containerClass", "isOpen", "delay"], outputs: ["onShown", "onHidden"], exportAs: ["bs-popover"] }, { kind: "component", type: DashboardDetailComponent, selector: "c8y-dashboard-detail", inputs: ["isReport", "deviceType", "context", "mo", "dashboard", "isNamedDashboard", "hideAvailability"], outputs: ["dashboardSaved", "previewChanged"] }, { kind: "pipe", type: i2.C8yTranslatePipe, name: "translate" }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }] }); }
3204
3188
  }
3205
3189
  __decorate([
@@ -3219,7 +3203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
3219
3203
  }], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: ContextDashboardService }, { type: i2.AlertService }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
3220
3204
  type: Inject,
3221
3205
  args: [CONTEXT_DASHBOARD_CONFIG]
3222
- }] }, { type: WidgetService }, { type: i2.BottomDrawerService }, { type: i2.GainsightService }, { type: i2.ActionBarService }, { type: i2$1.TranslateService }, { type: i2.ModalService }, { type: DashboardEditModeService }, { type: i7.QueryParamModalHandlerService }], propDecorators: { name: [{
3206
+ }] }, { type: WidgetService }, { type: i2.BottomDrawerService }, { type: i2.GainsightService }, { type: i2.ActionBarService }, { type: i2$1.TranslateService }, { type: i2.ModalService }, { type: DashboardEditModeService }], propDecorators: { name: [{
3223
3207
  type: Input
3224
3208
  }], childrenClasses: [{
3225
3209
  type: Input