@acorex-platform/module-dashboard-management-client 0.0.57 → 0.0.58

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 (26) hide show
  1. package/fesm2022/{acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-CdZ2jDXz.mjs → acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-C5DXldyF.mjs} +45 -26
  2. package/fesm2022/acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-C5DXldyF.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-dashboard-management-client-bar-chart-widget.component-Domj78lq.mjs → acorex-platform-module-dashboard-management-client-bar-chart-widget.component-PcG74lR6.mjs} +3 -3
  4. package/fesm2022/{acorex-platform-module-dashboard-management-client-bar-chart-widget.component-Domj78lq.mjs.map → acorex-platform-module-dashboard-management-client-bar-chart-widget.component-PcG74lR6.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-card-widget.component-cBoP551S.mjs → acorex-platform-module-dashboard-management-client-chart-card-widget.component-CNwlxjog.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-card-widget.component-cBoP551S.mjs.map → acorex-platform-module-dashboard-management-client-chart-card-widget.component-CNwlxjog.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-B6HXu6Z2.mjs → acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-BSs8ZurE.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-B6HXu6Z2.mjs.map → acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-BSs8ZurE.mjs.map} +1 -1
  9. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-widget-data.util-wm_NIFra.mjs → acorex-platform-module-dashboard-management-client-chart-widget-data.util-C3x9eufS.mjs} +2 -2
  10. package/fesm2022/{acorex-platform-module-dashboard-management-client-chart-widget-data.util-wm_NIFra.mjs.map → acorex-platform-module-dashboard-management-client-chart-widget-data.util-C3x9eufS.mjs.map} +1 -1
  11. package/fesm2022/{acorex-platform-module-dashboard-management-client-donut-chart-widget.component-CimxD1qS.mjs → acorex-platform-module-dashboard-management-client-donut-chart-widget.component-B5Jmshla.mjs} +3 -3
  12. package/fesm2022/{acorex-platform-module-dashboard-management-client-donut-chart-widget.component-CimxD1qS.mjs.map → acorex-platform-module-dashboard-management-client-donut-chart-widget.component-B5Jmshla.mjs.map} +1 -1
  13. package/fesm2022/{acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-Bk8cKqbj.mjs → acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-DvpbXFmP.mjs} +3 -3
  14. package/fesm2022/{acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-Bk8cKqbj.mjs.map → acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-DvpbXFmP.mjs.map} +1 -1
  15. package/fesm2022/{acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-hPdwIgKj.mjs → acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-B2Q7Etok.mjs} +3 -3
  16. package/fesm2022/{acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-hPdwIgKj.mjs.map → acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-B2Q7Etok.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-D3BHWQEn.mjs → acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-DZoHJMQE.mjs} +3 -3
  18. package/fesm2022/{acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-D3BHWQEn.mjs.map → acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-DZoHJMQE.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-module-dashboard-management-client-index-BWCfAI1f.mjs → acorex-platform-module-dashboard-management-client-index-lPxGa-2n.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-module-dashboard-management-client-index-BWCfAI1f.mjs.map → acorex-platform-module-dashboard-management-client-index-lPxGa-2n.mjs.map} +1 -1
  21. package/fesm2022/{acorex-platform-module-dashboard-management-client-line-chart-widget.component-DblTSNpm.mjs → acorex-platform-module-dashboard-management-client-line-chart-widget.component-DQfL71SA.mjs} +3 -3
  22. package/fesm2022/{acorex-platform-module-dashboard-management-client-line-chart-widget.component-DblTSNpm.mjs.map → acorex-platform-module-dashboard-management-client-line-chart-widget.component-DQfL71SA.mjs.map} +1 -1
  23. package/fesm2022/acorex-platform-module-dashboard-management-client.mjs +1 -1
  24. package/package.json +1 -1
  25. package/types/acorex-platform-module-dashboard-management-client.d.ts +2 -0
  26. package/fesm2022/acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-CdZ2jDXz.mjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { AXPSessionService, AXP_PERMISSION_DEFINITION_PROVIDER } from '@acorex-platform/framework-client/auth';
2
2
  import { AXPSettingsService, AXP_PROTECTED_ROUTE_GUARDS, AXP_HOME_PAGES, AXP_HOME_PAGE_DEFAULT_KEY, AXP_MENU_PROVIDER } from '@acorex-platform/framework-client/common';
3
- import { applyFilterArray, AXPDataGenerator, AXPDeviceService, provideLazyProvider } from '@acorex-platform/framework-client/core';
3
+ import { applyFilterArray, AXPDialogOpener, AXPDataGenerator, AXPDeviceService, provideLazyProvider } from '@acorex-platform/framework-client/core';
4
4
  import { AXPWidgetPropertyViewerComponent, AXPStateMessageComponent, AXP_PAGE_COMPONENT_PROVIDER, AXPThemeLayoutBlockComponent } from '@acorex-platform/framework-client/layout/components';
5
5
  import { AXPEntityService, cloneLayoutArrays, ensureLayoutSection, ensureLayoutPropertyView, resolveEntityPluginDetailPageOrder, ensureListActions, actionExists, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_STORAGE_MIDDLEWARE } from '@acorex-platform/framework-client/layout/entity';
6
6
  import * as i3$2 from '@acorex-platform/framework-client/layout/widget-core';
@@ -1285,7 +1285,7 @@ const AXPBarChartWidget = {
1285
1285
  ],
1286
1286
  components: {
1287
1287
  view: {
1288
- component: () => import('./acorex-platform-module-dashboard-management-client-bar-chart-widget.component-Domj78lq.mjs').then((c) => c.AXPBarChartWidgetViewComponent),
1288
+ component: () => import('./acorex-platform-module-dashboard-management-client-bar-chart-widget.component-PcG74lR6.mjs').then((c) => c.AXPBarChartWidgetViewComponent),
1289
1289
  },
1290
1290
  },
1291
1291
  meta: {
@@ -1356,7 +1356,7 @@ const AXPChartCardWidget = {
1356
1356
  ],
1357
1357
  components: {
1358
1358
  view: {
1359
- component: () => import('./acorex-platform-module-dashboard-management-client-chart-card-widget.component-cBoP551S.mjs').then((c) => c.AXPChartCardWidgetViewComponent),
1359
+ component: () => import('./acorex-platform-module-dashboard-management-client-chart-card-widget.component-CNwlxjog.mjs').then((c) => c.AXPChartCardWidgetViewComponent),
1360
1360
  },
1361
1361
  },
1362
1362
  meta: {
@@ -1399,10 +1399,10 @@ const AXMChartConfiguratorWidget = {
1399
1399
  ],
1400
1400
  components: {
1401
1401
  edit: {
1402
- component: () => import('./acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-B6HXu6Z2.mjs').then((c) => c.AXMChartConfiguratorWidgetEditComponent),
1402
+ component: () => import('./acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-BSs8ZurE.mjs').then((c) => c.AXMChartConfiguratorWidgetEditComponent),
1403
1403
  },
1404
1404
  designer: {
1405
- component: () => import('./acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-B6HXu6Z2.mjs').then((c) => c.AXMChartConfiguratorWidgetEditComponent),
1405
+ component: () => import('./acorex-platform-module-dashboard-management-client-chart-configurator-widget-edit.component-BSs8ZurE.mjs').then((c) => c.AXMChartConfiguratorWidgetEditComponent),
1406
1406
  },
1407
1407
  column: {
1408
1408
  component: () => import('./acorex-platform-module-dashboard-management-client-chart-configurator-widget-column.component-DxNKy3bB.mjs').then((c) => c.AXMChartConfiguratorWidgetColumnComponent),
@@ -1635,7 +1635,7 @@ const AXPDonutChartWidget = {
1635
1635
  ],
1636
1636
  components: {
1637
1637
  view: {
1638
- component: () => import('./acorex-platform-module-dashboard-management-client-donut-chart-widget.component-CimxD1qS.mjs').then((c) => c.AXPDonutChartWidgetViewComponent),
1638
+ component: () => import('./acorex-platform-module-dashboard-management-client-donut-chart-widget.component-B5Jmshla.mjs').then((c) => c.AXPDonutChartWidgetViewComponent),
1639
1639
  },
1640
1640
  },
1641
1641
  meta: {
@@ -1678,7 +1678,7 @@ const AXPFunnelChartWidget = {
1678
1678
  ],
1679
1679
  components: {
1680
1680
  view: {
1681
- component: () => import('./acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-Bk8cKqbj.mjs').then((c) => c.AXPFunnelChartWidgetViewComponent),
1681
+ component: () => import('./acorex-platform-module-dashboard-management-client-funnel-chart-widget.component-DvpbXFmP.mjs').then((c) => c.AXPFunnelChartWidgetViewComponent),
1682
1682
  },
1683
1683
  },
1684
1684
  meta: {
@@ -1908,7 +1908,7 @@ const AXPGaugeChartWidget = {
1908
1908
  ],
1909
1909
  components: {
1910
1910
  view: {
1911
- component: () => import('./acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-hPdwIgKj.mjs').then((c) => c.AXPGaugeChartWidgetViewComponent),
1911
+ component: () => import('./acorex-platform-module-dashboard-management-client-gauge-chart-widget.component-B2Q7Etok.mjs').then((c) => c.AXPGaugeChartWidgetViewComponent),
1912
1912
  },
1913
1913
  },
1914
1914
  meta: {
@@ -1984,7 +1984,7 @@ const AXPHeatmapChartWidget = {
1984
1984
  ],
1985
1985
  components: {
1986
1986
  view: {
1987
- component: () => import('./acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-D3BHWQEn.mjs').then((c) => c.AXPHeatmapChartWidgetViewComponent),
1987
+ component: () => import('./acorex-platform-module-dashboard-management-client-heatmap-chart-widget.component-DZoHJMQE.mjs').then((c) => c.AXPHeatmapChartWidgetViewComponent),
1988
1988
  },
1989
1989
  },
1990
1990
  meta: {
@@ -2361,7 +2361,7 @@ const AXPLineChartWidget = {
2361
2361
  ],
2362
2362
  components: {
2363
2363
  view: {
2364
- component: () => import('./acorex-platform-module-dashboard-management-client-line-chart-widget.component-DblTSNpm.mjs').then((c) => c.AXPLineChartWidgetViewComponent),
2364
+ component: () => import('./acorex-platform-module-dashboard-management-client-line-chart-widget.component-DQfL71SA.mjs').then((c) => c.AXPLineChartWidgetViewComponent),
2365
2365
  },
2366
2366
  },
2367
2367
  meta: {
@@ -4487,6 +4487,7 @@ class AXPShortcutWidgetViewComponent extends AXPDashboardWidgetComponent {
4487
4487
  constructor() {
4488
4488
  super();
4489
4489
  this.popupService = inject(AXPopupService);
4490
+ this.dialogOpener = inject(AXPDialogOpener);
4490
4491
  this.commandService = inject(AXPCommandService);
4491
4492
  this.page = inject(AXPPageLayoutBase, { optional: true });
4492
4493
  this.searchConfig = inject(AXP_GLOBAL_SEARCH_CONFIG_TOKEN);
@@ -4627,13 +4628,19 @@ class AXPShortcutWidgetViewComponent extends AXPDashboardWidgetComponent {
4627
4628
  }
4628
4629
  this.commandPromptInFlight = true;
4629
4630
  try {
4630
- const component = await this.searchConfig.window();
4631
- const popup = await this.popupService.open(component, {
4632
- title: 'Choose command...',
4633
- size: 'fit',
4634
- closeOnBackdropClick: true,
4635
- header: false,
4631
+ const popup = await this.dialogOpener.openPopup({
4632
+ load: () => this.searchConfig.window(),
4633
+ data: { prompt: 'shortcut-command' },
4634
+ show: (component) => this.popupService.open(component, {
4635
+ title: 'Choose command...',
4636
+ size: 'fit',
4637
+ closeOnBackdropClick: true,
4638
+ header: false,
4639
+ }),
4636
4640
  });
4641
+ if (!popup) {
4642
+ return;
4643
+ }
4637
4644
  if (popup.data) {
4638
4645
  const result = popup.data;
4639
4646
  if (result && result.command) {
@@ -5216,6 +5223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
5216
5223
  class AXMDashboardPopupService {
5217
5224
  constructor() {
5218
5225
  this.popupService = inject(AXPopupService);
5226
+ this.dialogOpener = inject(AXPDialogOpener);
5219
5227
  this.translateService = inject(AXTranslationService);
5220
5228
  this.layoutBuilder = inject(AXPLayoutBuilderService);
5221
5229
  this.entityService = inject(AXPEntityService);
@@ -5321,14 +5329,25 @@ class AXMDashboardPopupService {
5321
5329
  return result;
5322
5330
  }
5323
5331
  async handlePopupConfiguration(widget) {
5324
- const result = await this.popupService.open(AXMConfigurationPopup, {
5325
- header: true,
5326
- size: 'md',
5327
- draggable: true,
5328
- hasBackdrop: true,
5329
- title: await this.translateService.translateAsync('@dashboard:widget-configuration'),
5330
- data: { widget },
5332
+ let title = '';
5333
+ const result = await this.dialogOpener.openPopup({
5334
+ load: () => Promise.resolve(AXMConfigurationPopup),
5335
+ data: { widgetName: widget.name ?? widget.type },
5336
+ prepare: async () => {
5337
+ title = await this.translateService.translateAsync('@dashboard:widget-configuration');
5338
+ },
5339
+ show: (component) => this.popupService.open(component, {
5340
+ header: true,
5341
+ size: 'md',
5342
+ draggable: true,
5343
+ hasBackdrop: true,
5344
+ title,
5345
+ data: { widget },
5346
+ }),
5331
5347
  });
5348
+ if (!result) {
5349
+ return;
5350
+ }
5332
5351
  if (!result.data) {
5333
5352
  return;
5334
5353
  }
@@ -7287,7 +7306,7 @@ class AXMDashboardManagementModule {
7287
7306
  useValue: dashboardScopeMiddleware,
7288
7307
  multi: true,
7289
7308
  },
7290
- provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-dashboard-management-client-index-BWCfAI1f.mjs').then((m) => m.AXMDashboardLayoutPageComponentProvider)),
7309
+ provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-dashboard-management-client-index-lPxGa-2n.mjs').then((m) => m.AXMDashboardLayoutPageComponentProvider)),
7291
7310
  provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => Promise.resolve().then(function () { return entityDashboardPageComponent_provider; }).then((m) => m.AXMEntityDashboardPageComponentProvider)),
7292
7311
  ], imports: [AXPWidgetCoreModule] }); }
7293
7312
  }
@@ -7338,7 +7357,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
7338
7357
  useValue: dashboardScopeMiddleware,
7339
7358
  multi: true,
7340
7359
  },
7341
- provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-dashboard-management-client-index-BWCfAI1f.mjs').then((m) => m.AXMDashboardLayoutPageComponentProvider)),
7360
+ provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => import('./acorex-platform-module-dashboard-management-client-index-lPxGa-2n.mjs').then((m) => m.AXMDashboardLayoutPageComponentProvider)),
7342
7361
  provideLazyProvider(AXP_PAGE_COMPONENT_PROVIDER, () => Promise.resolve().then(function () { return entityDashboardPageComponent_provider; }).then((m) => m.AXMEntityDashboardPageComponentProvider)),
7343
7362
  ],
7344
7363
  }]
@@ -7881,4 +7900,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
7881
7900
  */
7882
7901
 
7883
7902
  export { AXP_DASHBOARD_SHARED_SUB_UTILITY_NOTES as $, AXP_CHART_CONFIGURATOR_DEFAULT_TYPE as A, AXPDonutChartWidget as B, AXPFunnelChartWidget as C, DASHBOARD_LAYOUT_ENTITY_MODE as D, AXPGaugeChartWidget as E, AXPHeatmapChartWidget as F, AXPKpiDetailsWidget as G, AXPKpiDetailsWidgetViewComponent as H, AXPKpiProgressWidget as I, AXPKpiProgressWidgetViewComponent as J, AXPKpiSegmentedWidget as K, AXPKpiSegmentedWidgetViewComponent as L, AXPKpiStatCardWidget as M, AXPKpiStatCardWidgetViewComponent as N, AXPLineChartWidget as O, AXPShortcutWidget as P, AXPShortcutWidgetViewComponent as Q, AXPStickyNoteWidget as R, AXPStickyNoteWidgetViewComponent as S, AXP_CHART_FUNNEL_DIMENSIONS as T, AXP_CHART_GAUGE_DIMENSIONS as U, AXP_CHART_SQUARE_DIMENSIONS as V, AXP_CHART_WIDE_DIMENSIONS as W, AXP_DASHBOARD_SHARED_SUB_CHART_CARTESIAN as X, AXP_DASHBOARD_SHARED_SUB_CHART_KPI as Y, AXP_DASHBOARD_SHARED_SUB_CHART_RADIAL as Z, AXP_DASHBOARD_SHARED_SUB_CHART_SPECIALIZED as _, chartTypeUsesAxisLabels as a, AXP_DASHBOARD_SHARED_SUB_UTILITY_SHORTCUT as a0, AXP_DASHBOARD_SHARED_SUB_UTILITY_TIME as a1, AXP_DASHBOARD_SHARED_SUB_UTILITY_WEATHER as a2, AXP_KPI_DETAILS_DIMENSIONS as a3, DASHBOARD_WIDGET_GRID_HEIGHT_OPTION as a4, DASHBOARD_WIDGET_GRID_WIDTH_OPTION as a5, AXP_KPI_PROGRESS_SEGMENTED_DIMENSIONS as a6, AXP_KPI_STANDARD_DIMENSIONS as a7, AXP_KPI_STAT_CARD_DIMENSIONS as a8, AXP_UTILITY_CLOCK_CALENDAR_DIMENSIONS as a9, isStickyNoteEmpty as aA, layoutFromDimensions as aB, loadKpiQueryResult as aC, normalizeKpiPercent as aD, readChartTabQuery as aE, readDashboardEntityContext as aF, readDashboardGridSizeToken as aG, resolveDashboardLayoutNode as aH, resolveDashboardMetaDimensionsForBreakpoint as aI, resolveDashboardMetaLayoutNode as aJ, resolveKpiIconToneTheme as aK, resolveKpiIconToneValueColor as aL, resolveKpiProgressBarTone as aM, resolveKpiSegmentPaletteColor as aN, resolveKpiText as aO, resolveStickyNoteBackgroundColor as aP, resolveStickyNoteLayoutVariant as aQ, resolveStickyNoteMutedTextColor as aR, resolveStickyNoteText as aS, resolveStickyNoteTextColor as aT, resolveTimeZoneCode as aU, shouldShowStickyNoteEmptyHint as aV, stripHtmlToPlainText as aW, withDashboardGridSizeOptions as aX, AXP_UTILITY_COMPACT_SQUARE_DIMENSIONS as aa, AXP_UTILITY_SHORTCUT_DIMENSIONS as ab, AXP_UTILITY_WEATHER_DIMENSIONS as ac, AXP_WIDGETS_CHART_CATEGORY as ad, AXP_WIDGETS_UTILITY_CATEGORY as ae, STICKY_NOTE_COLOR_PRESETS as af, STICKY_NOTE_DEFAULT_BACKGROUND as ag, areChartCardTabsConfigured as ah, buildDashboardChartCardWidget as ai, buildDashboardChartWidget as aj, buildDashboardChartWidgetWithQuery as ak, buildDashboardClockCalendar as al, buildDashboardKpiStatCard as am, buildDashboardKpiTile as an, buildDashboardShortcut as ao, buildDashboardStickyNote as ap, buildDashboardWeatherWidget as aq, buildDashboardWidgetsContext as ar, chartResultTypeForWidget as as, defineDashboardWidgetDimensions as at, enrichDashboardLayoutNode as au, formatDashboardGridSizeToken as av, formatKpiValue as aw, formatUtcOffsetLabel as ax, getIanaTimeZoneOffsetMinutes as ay, hasKpiQueryConfigured as az, AXMDashboardStore as b, chartTypeUsesColorRules as c, AXMDashboardGridLayoutSectionComponent as d, AXPDashboardWidgetComponent as e, resolveChartQueryTabs as f, AXPChartQueryTabsComponent as g, asChartTabWidgetNode as h, isChartTabConfigured as i, readChartTabTitle as j, fetchChartQueryResult as k, applyChartColorRulesFromOptions as l, AXMAddDashboardPopup as m, AXMChartConfiguratorWidget as n, optionsAfterChartTypeSwitch as o, AXMConfigurationPopup as p, AXMDashboardHomeComponent as q, readStashedChartAppearance as r, AXMDashboardManagementModule as s, AXMDashboardPopupService as t, AXMDashboardWidgetWrapperComponent as u, AXPBarChartWidget as v, AXPChartCardWidget as w, AXPClockCalendarWidget as x, AXPClockCalendarWidgetViewComponent as y, AXPDASHBOARD_ENTITY_CONTEXT_KEY as z };
7884
- //# sourceMappingURL=acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-CdZ2jDXz.mjs.map
7903
+ //# sourceMappingURL=acorex-platform-module-dashboard-management-client-acorex-platform-module-dashboard-management-client-C5DXldyF.mjs.map