@veloceapps/sdk 7.0.2-6 → 7.0.2-60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. package/cms/cms.actions.d.ts +30 -1
  2. package/cms/cms.default.d.ts +2 -2
  3. package/cms/components/element-children/element-children.component.d.ts +3 -1
  4. package/cms/components/element-tools-panel/element-tools-panel.component.d.ts +14 -0
  5. package/cms/components/preview/preview.component.d.ts +6 -5
  6. package/cms/components/preview/preview.module.d.ts +2 -1
  7. package/cms/components/preview/preview.types.d.ts +4 -0
  8. package/cms/definitions/index.d.ts +1 -0
  9. package/cms/definitions/ui-builder.definitions.d.ts +6 -0
  10. package/cms/index.d.ts +2 -0
  11. package/cms/injection-tokens.d.ts +2 -4
  12. package/cms/modules/migrations/services/migrations.service.d.ts +1 -1
  13. package/cms/modules/migrations/types/migrations.types.d.ts +1 -1
  14. package/cms/modules/runtime/index.d.ts +1 -0
  15. package/cms/modules/runtime/services/compilation.service.d.ts +3 -2
  16. package/cms/modules/runtime/services/runtime-editor.service.d.ts +6 -4
  17. package/cms/modules/runtime/services/runtime.service.d.ts +6 -2
  18. package/cms/modules/runtime/types/runtime.actions.d.ts +5 -2
  19. package/cms/plugins/element-hover.plugin.d.ts +33 -0
  20. package/cms/plugins/page.plugin.d.ts +15 -0
  21. package/cms/plugins/script.plugin.d.ts +0 -3
  22. package/cms/types/common.types.d.ts +11 -1
  23. package/cms/types/index.d.ts +2 -0
  24. package/cms/types/layouts.types.d.ts +30 -2
  25. package/cms/types/pages.types.d.ts +1 -0
  26. package/cms/utils/element.utils.d.ts +1 -1
  27. package/cms/utils/elements-resolver.d.ts +6 -2
  28. package/cms/utils/index.d.ts +1 -0
  29. package/cms/utils/script.utils.d.ts +2 -0
  30. package/cms/utils/ui-builder-layout.utils.d.ts +4 -0
  31. package/cms/vendor-map.d.ts +12 -8
  32. package/core/core.module.d.ts +2 -0
  33. package/core/directives/directives.module.d.ts +7 -0
  34. package/core/directives/index.d.ts +2 -0
  35. package/core/directives/primeng-calendar.directive.d.ts +14 -0
  36. package/core/index.d.ts +2 -0
  37. package/core/modules/configuration/helpers.d.ts +2 -2
  38. package/core/modules/configuration/services/configuration-runtime.service.d.ts +2 -2
  39. package/core/modules/configuration/services/configuration.service.d.ts +3 -3
  40. package/core/pipes/date.pipe.d.ts +12 -0
  41. package/core/pipes/index.d.ts +4 -0
  42. package/core/pipes/number.pipe.d.ts +10 -0
  43. package/core/pipes/pipes.module.d.ts +9 -0
  44. package/core/pipes/price.pipe.d.ts +10 -0
  45. package/core/services/index.d.ts +1 -0
  46. package/core/services/runtime-settings.service.d.ts +21 -0
  47. package/core/types/formatting-settings.types.d.ts +11 -0
  48. package/core/types/index.d.ts +1 -0
  49. package/core/types/runtime.types.d.ts +1 -2
  50. package/core/types/ui-definition.types.d.ts +0 -40
  51. package/core/utils/line-item.utils.d.ts +6 -3
  52. package/core/utils/line-item.worker.d.ts +2 -2
  53. package/core/utils/ui-definition.utils.d.ts +1 -1
  54. package/esm2020/cms/cms.actions.mjs +42 -2
  55. package/esm2020/cms/cms.default.mjs +1 -1
  56. package/esm2020/cms/cms.elements.mjs +16 -4
  57. package/esm2020/cms/cms.layouts.mjs +73 -13
  58. package/esm2020/cms/components/element-children/element-children.component.mjs +11 -6
  59. package/esm2020/cms/components/element-drop-handle/element-drop-handle.component.mjs +2 -2
  60. package/esm2020/cms/components/element-tools-panel/element-tools-panel.component.mjs +35 -0
  61. package/esm2020/cms/components/preview/preview.component.mjs +18 -16
  62. package/esm2020/cms/components/preview/preview.module.mjs +22 -4
  63. package/esm2020/cms/components/preview/preview.types.mjs +1 -1
  64. package/esm2020/cms/definitions/index.mjs +2 -0
  65. package/esm2020/cms/definitions/ui-builder.definitions.mjs +18 -0
  66. package/esm2020/cms/index.mjs +3 -1
  67. package/esm2020/cms/injection-tokens.mjs +1 -2
  68. package/esm2020/cms/modules/migrations/migrations.mjs +10 -3
  69. package/esm2020/cms/modules/migrations/services/migrations.service.mjs +1 -1
  70. package/esm2020/cms/modules/migrations/types/migrations.types.mjs +1 -1
  71. package/esm2020/cms/modules/runtime/index.mjs +2 -1
  72. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +5 -3
  73. package/esm2020/cms/modules/runtime/services/runtime-editor.service.mjs +5 -3
  74. package/esm2020/cms/modules/runtime/services/runtime.service.mjs +41 -6
  75. package/esm2020/cms/modules/runtime/types/runtime.actions.mjs +1 -1
  76. package/esm2020/cms/plugins/element-hover.plugin.mjs +121 -0
  77. package/esm2020/cms/plugins/page.plugin.mjs +37 -0
  78. package/esm2020/cms/plugins/region.plugin.mjs +3 -2
  79. package/esm2020/cms/plugins/script.plugin.mjs +6 -40
  80. package/esm2020/cms/services/integration.state.mjs +3 -6
  81. package/esm2020/cms/services/io-provider.service.mjs +7 -5
  82. package/esm2020/cms/types/common.types.mjs +1 -1
  83. package/esm2020/cms/types/index.mjs +3 -1
  84. package/esm2020/cms/types/layouts.types.mjs +70 -1
  85. package/esm2020/cms/types/pages.types.mjs +2 -0
  86. package/esm2020/cms/utils/element.utils.mjs +1 -1
  87. package/esm2020/cms/utils/elements-resolver.mjs +22 -8
  88. package/esm2020/cms/utils/index.mjs +2 -1
  89. package/esm2020/cms/utils/script.utils.mjs +42 -0
  90. package/esm2020/cms/utils/ui-builder-layout.utils.mjs +46 -0
  91. package/esm2020/cms/vendor-map.mjs +5 -3
  92. package/esm2020/core/core.module.mjs +33 -4
  93. package/esm2020/core/directives/directives.module.mjs +16 -0
  94. package/esm2020/core/directives/index.mjs +3 -0
  95. package/esm2020/core/directives/primeng-calendar.directive.mjs +41 -0
  96. package/esm2020/core/index.mjs +3 -1
  97. package/esm2020/core/modules/configuration/configuration.module.mjs +2 -2
  98. package/esm2020/core/modules/configuration/helpers.mjs +3 -6
  99. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +3 -2
  100. package/esm2020/core/modules/configuration/services/configuration.service.mjs +6 -5
  101. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -12
  102. package/esm2020/core/pipes/date.pipe.mjs +38 -0
  103. package/esm2020/core/pipes/index.mjs +5 -0
  104. package/esm2020/core/pipes/number.pipe.mjs +27 -0
  105. package/esm2020/core/pipes/pipes.module.mjs +18 -0
  106. package/esm2020/core/pipes/price.pipe.mjs +30 -0
  107. package/esm2020/core/services/index.mjs +2 -1
  108. package/esm2020/core/services/runtime-settings.service.mjs +88 -0
  109. package/esm2020/core/types/formatting-settings.types.mjs +3 -0
  110. package/esm2020/core/types/index.mjs +2 -1
  111. package/esm2020/core/types/runtime.types.mjs +1 -1
  112. package/esm2020/core/types/ui-definition.types.mjs +1 -1
  113. package/esm2020/core/utils/line-item.utils.mjs +19 -9
  114. package/esm2020/core/utils/line-item.worker.mjs +5 -5
  115. package/esm2020/core/utils/ui-definition.utils.mjs +1 -1
  116. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +2 -2
  117. package/esm2020/runtime/services/runtime-context.service.mjs +8 -5
  118. package/esm2020/runtime/services/runtime.service.mjs +1 -1
  119. package/esm2020/runtime/types/runtime.types.mjs +1 -1
  120. package/esm2020/src/components/dialog/dialog.component.mjs +3 -3
  121. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +2 -2
  122. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +5 -6
  123. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +7 -4
  124. package/esm2020/src/components/header/header.component.mjs +49 -41
  125. package/esm2020/src/components/header/header.module.mjs +7 -3
  126. package/esm2020/src/components/header/metrics/metrics.component.mjs +35 -7
  127. package/esm2020/src/components/header/metrics/metrics.module.mjs +7 -3
  128. package/esm2020/src/flow-routing.module.mjs +1 -1
  129. package/esm2020/src/guards/context.guard.mjs +11 -8
  130. package/esm2020/src/pages/assets/assets.component.mjs +2 -2
  131. package/esm2020/src/pages/catalog/catalog.component.mjs +3 -3
  132. package/esm2020/src/pages/product/product.component.mjs +2 -2
  133. package/esm2020/src/pages/remote/remote.component.mjs +1 -1
  134. package/esm2020/src/pages/shopping-cart/shopping-cart.component.mjs +3 -3
  135. package/esm2020/src/services/flow-dialog.service.mjs +15 -15
  136. package/esm2020/src/types/flow-customization.types.mjs +1 -1
  137. package/fesm2015/veloceapps-sdk-cms.mjs +774 -356
  138. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  139. package/fesm2015/veloceapps-sdk-core.mjs +300 -36
  140. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  141. package/fesm2015/veloceapps-sdk-runtime.mjs +7 -4
  142. package/fesm2015/veloceapps-sdk-runtime.mjs.map +1 -1
  143. package/fesm2015/veloceapps-sdk.mjs +141 -94
  144. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  145. package/fesm2020/veloceapps-sdk-cms.mjs +857 -358
  146. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  147. package/fesm2020/veloceapps-sdk-core.mjs +293 -36
  148. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  149. package/fesm2020/veloceapps-sdk-runtime.mjs +7 -4
  150. package/fesm2020/veloceapps-sdk-runtime.mjs.map +1 -1
  151. package/fesm2020/veloceapps-sdk.mjs +139 -92
  152. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  153. package/package.json +1 -1
  154. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +3 -3
  155. package/runtime/services/runtime.service.d.ts +2 -2
  156. package/runtime/types/runtime.types.d.ts +2 -2
  157. package/src/components/doc-gen/doc-gen.component.d.ts +2 -1
  158. package/src/components/header/cart-overlay/cart-preview.component.d.ts +1 -1
  159. package/src/components/header/cart-overlay/cart-preview.module.d.ts +1 -1
  160. package/src/components/header/header.component.d.ts +2 -3
  161. package/src/components/header/header.module.d.ts +2 -1
  162. package/src/components/header/metrics/metrics.component.d.ts +10 -2
  163. package/src/components/header/metrics/metrics.module.d.ts +2 -1
  164. package/src/guards/context.guard.d.ts +3 -2
  165. package/src/pages/assets/assets.component.d.ts +2 -1
  166. package/src/pages/catalog/catalog.component.d.ts +2 -1
  167. package/src/pages/product/product.component.d.ts +2 -1
  168. package/src/pages/remote/remote.component.d.ts +2 -1
  169. package/src/pages/shopping-cart/shopping-cart.component.d.ts +2 -1
  170. package/src/types/flow-customization.types.d.ts +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloceapps/sdk",
3
- "version": "7.0.2-6",
3
+ "version": "7.0.2-60",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/animations": "~15.2.0",
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { ConfigurationApiService } from '@veloceapps/api';
3
- import { LineItem, UIDefinition } from '@veloceapps/core';
3
+ import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
4
4
  import { ContextService } from '@veloceapps/sdk/core';
5
5
  import { ProductModelCacheService } from '../../services/product-model-cache.service';
6
6
  import { RuntimeService } from '../../services/runtime.service';
@@ -11,7 +11,7 @@ export declare class RuntimePreviewComponent implements OnInit, OnDestroy {
11
11
  private configurationApiService;
12
12
  private contextService;
13
13
  modelId?: string;
14
- set uiDefinition(value: UIDefinition);
14
+ set uiDefinition(value: LegacyUIDefinition);
15
15
  private _uiDefinition?;
16
16
  private initialisedUiDefinition?;
17
17
  private productModelContainer?;
@@ -19,7 +19,7 @@ export declare class RuntimePreviewComponent implements OnInit, OnDestroy {
19
19
  constructor(runtimeService: RuntimeService, modelCacheService: ProductModelCacheService, configurationApiService: ConfigurationApiService, contextService: ContextService);
20
20
  ngOnInit(): void;
21
21
  ngOnDestroy(): void;
22
- initDefinition(uiDefinition: UIDefinition): void;
22
+ initDefinition(uiDefinition: LegacyUIDefinition): void;
23
23
  onSolutionUpdated(lineItem: LineItem): void;
24
24
  private launchRuntime;
25
25
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimePreviewComponent, never>;
@@ -1,5 +1,5 @@
1
1
  import { HttpErrorResponse } from '@angular/common/http';
2
- import { LineItem, UIDefinition } from '@veloceapps/core';
2
+ import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
3
3
  import { ContextService } from '@veloceapps/sdk/core';
4
4
  import { MessageService } from 'primeng/api';
5
5
  import { LegacyRuntimeContext } from '../types';
@@ -36,7 +36,7 @@ export declare class RuntimeService {
36
36
  setRuntimeContext(runtimeContext: LegacyRuntimeContext): void;
37
37
  getRuntimeContext(): LegacyRuntimeContext | undefined;
38
38
  solutionProcessed(lineItem: LineItem): void;
39
- refreshUI(uiDefinition: UIDefinition): void;
39
+ refreshUI(uiDefinition: LegacyUIDefinition): void;
40
40
  private updateRuntimeContext;
41
41
  private setRuntimeStep;
42
42
  static ɵfac: i0.ɵɵFactoryDeclaration<RuntimeService, never>;
@@ -1,4 +1,4 @@
1
- import { LineItem, UIDefinition } from '@veloceapps/core';
1
+ import { LegacyUIDefinition, LineItem } from '@veloceapps/core';
2
2
  import { RuntimeContext } from '@veloceapps/sdk/core';
3
3
  import { Dictionary } from 'lodash';
4
4
  export interface SolutionReadyAware {
@@ -15,5 +15,5 @@ export interface UpdateData {
15
15
  options?: Dictionary<any>;
16
16
  }
17
17
  export interface LegacyRuntimeContext extends Omit<RuntimeContext, 'uiDefinition'> {
18
- uiDefinition?: UIDefinition;
18
+ uiDefinition?: LegacyUIDefinition;
19
19
  }
@@ -1,7 +1,8 @@
1
1
  import { OnDestroy } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject, Observable } from 'rxjs';
6
7
  import { FlowDocGenService } from '../../services/doc-gen.service';
7
8
  import * as i0 from "@angular/core";
@@ -13,7 +13,7 @@ export declare class CartPreviewComponent implements OnChanges, AfterViewInit, O
13
13
  private quoteDraftService;
14
14
  overlayPanel: OverlayPanel;
15
15
  products: HeaderProduct[];
16
- readonly productRowHeight = 97;
16
+ readonly productRowHeight = 65;
17
17
  form: FormGroup<{}>;
18
18
  lockedProductId$: Observable<string | null>;
19
19
  isEditMode$: Observable<boolean>;
@@ -9,6 +9,6 @@ import * as i7 from "primeng/inputnumber";
9
9
  import * as i8 from "primeng/virtualscroller";
10
10
  export declare class CartPreviewModule {
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<CartPreviewModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<CartPreviewModule, [typeof i1.CartPreviewComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.ButtonModule, typeof i5.OverlayPanelModule, typeof i6.LetDirectiveModule, typeof i7.InputNumberModule, typeof i8.VirtualScrollerModule], [typeof i1.CartPreviewComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CartPreviewModule, [typeof i1.CartPreviewComponent], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.ButtonModule, typeof i5.OverlayPanelModule, typeof i6.LetDirectiveModule, typeof i7.InputNumberModule, typeof i8.VirtualScrollerModule, typeof i6.QuantityControlModule], [typeof i1.CartPreviewComponent]>;
13
13
  static ɵinj: i0.ɵɵInjectorDeclaration<CartPreviewModule>;
14
14
  }
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { QuoteApiService, SalesforceApiService, ShoppingCartSettingsApiService } from '@veloceapps/api';
2
+ import { QuoteApiService, SalesforceApiService } from '@veloceapps/api';
3
3
  import { ContextProperties, LineItem, PriceList } from '@veloceapps/core';
4
4
  import { IntegrationState } from '@veloceapps/sdk/cms';
5
5
  import { ContextService, FlowConfigurationService, QuoteDraftService } from '@veloceapps/sdk/core';
@@ -19,7 +19,6 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
19
19
  private routerService;
20
20
  private dialogService;
21
21
  private integrationState;
22
- private shoppingCartSettingsApiService;
23
22
  objectName$: Observable<string>;
24
23
  contextProperties$: Observable<ContextProperties>;
25
24
  activePriceList$: Observable<PriceList | null>;
@@ -39,7 +38,7 @@ export declare class FlowHeaderComponent implements OnInit, OnDestroy {
39
38
  assetPriceLists$: BehaviorSubject<PriceList[]>;
40
39
  private mode$;
41
40
  private destroyed$;
42
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService, integrationState: IntegrationState, shoppingCartSettingsApiService: ShoppingCartSettingsApiService);
41
+ constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, quoteApiService: QuoteApiService, sfApiService: SalesforceApiService, flowConfiguration: FlowConfigurationService, routerService: FlowRouterService, dialogService: FlowDialogService, integrationState: IntegrationState);
43
42
  ngOnInit(): void;
44
43
  ngOnDestroy(): void;
45
44
  get isAccountMode(): boolean;
@@ -8,8 +8,9 @@ import * as i6 from "primeng/button";
8
8
  import * as i7 from "./cart-overlay/cart-preview.module";
9
9
  import * as i8 from "primeng/splitbutton";
10
10
  import * as i9 from "./metrics/metrics.module";
11
+ import * as i10 from "@veloceapps/sdk/core";
11
12
  export declare class FlowHeaderModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<FlowHeaderModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<FlowHeaderModule, [typeof i1.FlowHeaderComponent], [typeof i2.CommonModule, typeof i3.OverlayPanelModule, typeof i4.LetDirectiveModule, typeof i5.TooltipModule, typeof i6.ButtonModule, typeof i7.CartPreviewModule, typeof i8.SplitButtonModule, typeof i9.MetricsModule], [typeof i1.FlowHeaderComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FlowHeaderModule, [typeof i1.FlowHeaderComponent], [typeof i2.CommonModule, typeof i3.OverlayPanelModule, typeof i4.LetDirectiveModule, typeof i5.TooltipModule, typeof i6.ButtonModule, typeof i7.CartPreviewModule, typeof i8.SplitButtonModule, typeof i9.MetricsModule, typeof i10.SdkPipesModule], [typeof i1.FlowHeaderComponent]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<FlowHeaderModule>;
15
16
  }
@@ -2,7 +2,7 @@ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
2
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
3
3
  import { FormControl } from '@angular/forms';
4
4
  import { ShoppingCartSettingsApiService } from '@veloceapps/api';
5
- import { ContextService, FlowConfigurationService, MetricsCalculationService, QuoteDraftService } from '@veloceapps/sdk/core';
5
+ import { ContextService, FlowConfigurationService, MetricsCalculationService, QuoteDraftService, RuntimeSettingsService } from '@veloceapps/sdk/core';
6
6
  import { OverlayPanel } from 'primeng/overlaypanel';
7
7
  import { Metric } from '../../../types';
8
8
  import * as i0 from "@angular/core";
@@ -13,6 +13,7 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
13
13
  private metricsCalculationService;
14
14
  private flowConfiguration;
15
15
  private shoppingCartSettingsApiService;
16
+ private runtimeSettings;
16
17
  overlayPanel: OverlayPanel;
17
18
  emptyStateMetrics: {
18
19
  name: string;
@@ -23,8 +24,10 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
23
24
  metrics: Metric[];
24
25
  filteredMetrics: Metric[];
25
26
  editingMetric: Metric | undefined;
27
+ currencySymbol: string;
26
28
  sidebarVisible: boolean;
27
29
  searchControl: FormControl;
30
+ isFocused: boolean;
28
31
  nameControl: FormControl;
29
32
  private activeMetricRules;
30
33
  private activeMetricRuleNames;
@@ -32,9 +35,10 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
32
35
  private metricKeys;
33
36
  private lastSavedMetrics;
34
37
  private destroyed$;
35
- constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, cdr: ChangeDetectorRef, metricsCalculationService: MetricsCalculationService, flowConfiguration: FlowConfigurationService, shoppingCartSettingsApiService: ShoppingCartSettingsApiService);
38
+ constructor(contextService: ContextService, quoteDraftService: QuoteDraftService, cdr: ChangeDetectorRef, metricsCalculationService: MetricsCalculationService, flowConfiguration: FlowConfigurationService, shoppingCartSettingsApiService: ShoppingCartSettingsApiService, runtimeSettings: RuntimeSettingsService);
36
39
  ngOnInit(): void;
37
40
  ngOnDestroy(): void;
41
+ toggleOverlay(event: MouseEvent, overlay: OverlayPanel, target: HTMLElement): void;
38
42
  openSidebar(): void;
39
43
  closeSidebar(): void;
40
44
  getMetricValue(key: string): number;
@@ -42,7 +46,11 @@ export declare class MetricsComponent implements OnInit, OnDestroy {
42
46
  changeMetricOrder(event: CdkDragDrop<string[]>): void;
43
47
  editMetric(metric: Metric): void;
44
48
  saveMetric(): void;
49
+ cancelMetric(): void;
45
50
  resetToDefault(): void;
51
+ onFocus(): void;
52
+ onBlur(): void;
53
+ clearSearch(event: MouseEvent): void;
46
54
  private collectMetricKeys;
47
55
  private setMetrics;
48
56
  private collectAvailableMetrics;
@@ -10,8 +10,9 @@ import * as i8 from "primeng/inputtext";
10
10
  import * as i9 from "primeng/checkbox";
11
11
  import * as i10 from "@veloceapps/components";
12
12
  import * as i11 from "primeng/virtualscroller";
13
+ import * as i12 from "@veloceapps/sdk/core";
13
14
  export declare class MetricsModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<MetricsModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<MetricsModule, [typeof i1.MetricsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DragDropModule, typeof i5.ButtonModule, typeof i6.OverlayPanelModule, typeof i7.SidebarModule, typeof i8.InputTextModule, typeof i9.CheckboxModule, typeof i10.LetDirectiveModule, typeof i11.VirtualScrollerModule, typeof i10.ErrorTooltipModule, typeof i10.HiddenTextTooltipModule], [typeof i1.MetricsComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MetricsModule, [typeof i1.MetricsComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DragDropModule, typeof i5.ButtonModule, typeof i6.OverlayPanelModule, typeof i7.SidebarModule, typeof i8.InputTextModule, typeof i9.CheckboxModule, typeof i10.LetDirectiveModule, typeof i11.VirtualScrollerModule, typeof i10.ErrorTooltipModule, typeof i10.HiddenTextTooltipModule, typeof i12.SdkPipesModule], [typeof i1.MetricsComponent]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<MetricsModule>;
17
18
  }
@@ -1,5 +1,5 @@
1
1
  import { ActivatedRouteSnapshot, CanActivate, CanActivateChild, Router } from '@angular/router';
2
- import { ContextService } from '@veloceapps/sdk/core';
2
+ import { ContextService, RuntimeSettingsService } from '@veloceapps/sdk/core';
3
3
  import { Observable } from 'rxjs';
4
4
  import { FlowRouterService } from '../services/flow-router.service';
5
5
  import * as i0 from "@angular/core";
@@ -7,7 +7,8 @@ export declare class ContextGuard implements CanActivate, CanActivateChild {
7
7
  private router;
8
8
  private routerService;
9
9
  private contextService;
10
- constructor(router: Router, routerService: FlowRouterService, contextService: ContextService);
10
+ private runtimeSettingsService;
11
+ constructor(router: Router, routerService: FlowRouterService, contextService: ContextService, runtimeSettingsService: RuntimeSettingsService);
11
12
  checkActivation(route: ActivatedRouteSnapshot): Observable<boolean>;
12
13
  canActivate(route: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
13
14
  canActivateChild(childRoute: ActivatedRouteSnapshot): Observable<boolean> | Promise<boolean> | boolean;
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject } from 'rxjs';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject } from 'rxjs';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
@@ -1,5 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
2
+ import { UIDefinition } from '@veloceapps/core';
3
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
3
4
  import { MessageService } from 'primeng/api';
4
5
  import { BehaviorSubject } from 'rxjs';
5
6
  import { FlowCustomization } from '../../types/flow-customization.types';
@@ -1,8 +1,9 @@
1
1
  import { Location } from '@angular/common';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import { QuoteApiService } from '@veloceapps/api';
4
+ import { UIDefinition } from '@veloceapps/core';
4
5
  import { IntegrationState } from '@veloceapps/sdk/cms';
5
- import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService, UIDefinition } from '@veloceapps/sdk/core';
6
+ import { ConfigurationRuntimeService, ConfigurationService, ContextService, QuoteDraftService } from '@veloceapps/sdk/core';
6
7
  import { MessageService } from 'primeng/api';
7
8
  import { BehaviorSubject } from 'rxjs';
8
9
  import * as i0 from "@angular/core";
@@ -1,7 +1,8 @@
1
1
  import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
2
2
  import { UITemplatesApiService } from '@veloceapps/api';
3
3
  import { ToastService } from '@veloceapps/components';
4
- import { ContextService, UIDefinition } from '@veloceapps/sdk/core';
4
+ import { UIDefinition } from '@veloceapps/core';
5
+ import { ContextService } from '@veloceapps/sdk/core';
5
6
  import { BehaviorSubject } from 'rxjs';
6
7
  import { FlowCustomization } from '../../types';
7
8
  import * as i0 from "@angular/core";
@@ -1,6 +1,5 @@
1
1
  import { InjectionToken } from '@angular/core';
2
- import { TemplateComponentWithAttachments, UIDefinition as LegacyUIDefinition } from '@veloceapps/core';
3
- import { UIDefinition } from '@veloceapps/sdk/core';
2
+ import { LegacyUIDefinition, TemplateComponentWithAttachments, UIDefinition } from '@veloceapps/core';
4
3
  import { Observable } from 'rxjs';
5
4
  export declare const FLOW_CUSTOMIZATION: InjectionToken<FlowCustomization>;
6
5
  export interface FlowCustomization {