@veloceapps/sdk 8.0.0-98 → 8.0.0-99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. package/cms/cms.actions.d.ts +4 -0
  2. package/cms/types/integration.types.d.ts +1 -0
  3. package/cms/vendor-map.d.ts +4 -2
  4. package/esm2020/cms/cms.actions.mjs +11 -1
  5. package/esm2020/cms/modules/runtime/services/compilation.service.mjs +5 -1
  6. package/esm2020/cms/types/integration.types.mjs +1 -1
  7. package/esm2020/cms/vendor-map.mjs +5 -3
  8. package/esm2020/src/components/doc-gen/doc-gen.component.mjs +25 -21
  9. package/esm2020/src/components/flow-header/flow-header.component.mjs +119 -0
  10. package/esm2020/src/components/flow-header/flow-header.module.mjs +19 -0
  11. package/esm2020/src/components/flow-header/index.mjs +2 -0
  12. package/esm2020/src/components/guided-selling/guided-selling.component.mjs +24 -21
  13. package/esm2020/src/configure-primeng.mjs +33 -0
  14. package/esm2020/src/flow.component.mjs +4 -4
  15. package/esm2020/src/flow.module.mjs +7 -5
  16. package/esm2020/src/services/flow-dialog.service.mjs +5 -1
  17. package/esm2020/src/services/flow-router.service.mjs +15 -1
  18. package/esm2020/src/services/flow.service.mjs +18 -5
  19. package/esm2020/src/services/index.mjs +3 -1
  20. package/esm2020/src/types/flow-customization.types.mjs +1 -1
  21. package/fesm2015/veloceapps-sdk-cms.mjs +18 -3
  22. package/fesm2015/veloceapps-sdk-cms.mjs.map +1 -1
  23. package/fesm2015/veloceapps-sdk.mjs +455 -1059
  24. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  25. package/fesm2020/veloceapps-sdk-cms.mjs +18 -3
  26. package/fesm2020/veloceapps-sdk-cms.mjs.map +1 -1
  27. package/fesm2020/veloceapps-sdk.mjs +455 -1059
  28. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  29. package/package.json +1 -1
  30. package/src/components/flow-header/flow-header.component.d.ts +28 -0
  31. package/src/components/flow-header/flow-header.module.d.ts +9 -0
  32. package/src/components/flow-header/index.d.ts +1 -0
  33. package/src/configure-primeng.d.ts +1 -0
  34. package/src/flow.module.d.ts +2 -2
  35. package/src/services/flow-dialog.service.d.ts +1 -0
  36. package/src/services/flow-router.service.d.ts +1 -0
  37. package/src/services/flow.service.d.ts +3 -1
  38. package/src/services/index.d.ts +2 -0
  39. package/src/types/flow-customization.types.d.ts +1 -1
  40. package/esm2020/src/components/header/cart-overlay/cart-preview.component.mjs +0 -119
  41. package/esm2020/src/components/header/cart-overlay/cart-preview.module.mjs +0 -47
  42. package/esm2020/src/components/header/header.component.mjs +0 -355
  43. package/esm2020/src/components/header/header.module.mjs +0 -52
  44. package/esm2020/src/components/header/header.types.mjs +0 -2
  45. package/esm2020/src/components/header/metrics/index.mjs +0 -2
  46. package/esm2020/src/components/header/metrics/metrics.component.mjs +0 -255
  47. package/esm2020/src/components/header/metrics/metrics.definitions.mjs +0 -2
  48. package/esm2020/src/components/header/metrics/metrics.module.mjs +0 -69
  49. package/src/components/header/cart-overlay/cart-preview.component.d.ts +0 -36
  50. package/src/components/header/cart-overlay/cart-preview.module.d.ts +0 -14
  51. package/src/components/header/header.component.d.ts +0 -70
  52. package/src/components/header/header.module.d.ts +0 -16
  53. package/src/components/header/header.types.d.ts +0 -20
  54. package/src/components/header/metrics/index.d.ts +0 -1
  55. package/src/components/header/metrics/metrics.component.d.ts +0 -67
  56. package/src/components/header/metrics/metrics.definitions.d.ts +0 -1
  57. package/src/components/header/metrics/metrics.module.d.ts +0 -18
@@ -4,12 +4,12 @@ import { InjectionToken, Component, ChangeDetectionStrategy, Inject, Injector, I
4
4
  import * as rxjs from 'rxjs';
5
5
  import { BehaviorSubject, Subject, filter, map, distinctUntilChanged, of, tap, switchMap, startWith, ReplaySubject, noop, take, Observable, takeUntil, combineLatest, catchError } from 'rxjs';
6
6
  import * as i3 from '@veloceapps/components';
7
- import { ToastType, LetDirectiveModule, LoaderModule, ToastService } from '@veloceapps/components';
7
+ import { ToastType, LetDirectiveModule, LoaderModule, ToastService, HiddenTextTooltipModule, ErrorTooltipModule } from '@veloceapps/components';
8
8
  import * as i4 from '@veloceapps/sdk/core';
9
- import { ConfigurationService, ConfigurationState, QuoteDraftService, FlowConfigurationService, LineItemWorker, ProductImagesService, ContextService, RuntimeSettingsService, ActionCodePipe, DatePipe, NumberPipe, PricePipe, lineItemUtils, generateLineItem, getAttributeValue, SdkPipesModule, SdkCoreModule, UI_DEFINITION_VERSION } from '@veloceapps/sdk/core';
9
+ import { ConfigurationService, ConfigurationState, QuoteDraftService, FlowConfigurationService, LineItemWorker, ProductImagesService, ContextService, RuntimeSettingsService, MetricsCalculationService, ActionCodePipe, DatePipe, NumberPipe, PricePipe, lineItemUtils, generateLineItem, getAttributeValue, SdkPipesModule, SdkCoreModule, UI_DEFINITION_VERSION } from '@veloceapps/sdk/core';
10
10
  import lodash, { cloneDeep, compact, isArray, pull, merge, omit, flatten, kebabCase, set } from 'lodash';
11
11
  import { applyPatch } from 'rfc6902';
12
- import { getCollectionUniqueName, UUID, isDefined, Operator, Predicate, parseJsonSafely, CoreModule } from '@veloceapps/core';
12
+ import { getCollectionUniqueName, UUID, isDefined, Operator, Predicate, parseJsonSafely, ConfigurationContextMode, CoreModule } from '@veloceapps/core';
13
13
  import * as i5 from '@angular/common';
14
14
  import { CommonModule, DOCUMENT } from '@angular/common';
15
15
  import * as i2 from 'ngx-drag-drop';
@@ -28,6 +28,7 @@ var FlowAction;
28
28
  (function (FlowAction) {
29
29
  FlowAction.FLOW_CONFIGURE_PRODUCT = '[FLOW]_CONFIGURE_PRODUCT';
30
30
  FlowAction.FLOW_NAVIGATE_BACK = '[FLOW]_NAVIGATE_BACK';
31
+ FlowAction.FLOW_NAVIGATE_TO = '[FLOW]_NAVIGATE_TO';
31
32
  FlowAction.FLOW_NAVIGATE_TO_CATALOG = '[FLOW]_NAVIGATE_TO_CATALOG';
32
33
  FlowAction.FLOW_NAVIGATE_TO_SHOPPING_CART = '[FLOW]_NAVIGATE_TO_SHOPPING_CART';
33
34
  FlowAction.FLOW_APPLY_PRODUCT_CONFIGURATION = '[FLOW]_APPLY_PRODUCT_CONFIGURATION';
@@ -39,6 +40,7 @@ var FlowAction;
39
40
  FlowAction.OPEN_GUIDED_SELLING = '[FLOW]_OPEN_GUIDED_SELLING';
40
41
  FlowAction.SUBMIT_GUIDED_SELLING = '[FLOW]_SUBMIT_GUIDED_SELLING';
41
42
  FlowAction.CLOSE_GUIDED_SELLING = '[FLOW]_CLOSE_GUIDED_SELLING';
43
+ FlowAction.OPEN_DIALOG = '[FLOW]_OPEN_DIALOG';
42
44
  FlowAction.ConfigureProductAction = ({ lineItemId, productId, }) => ({
43
45
  type: FlowAction.FLOW_CONFIGURE_PRODUCT,
44
46
  payload: { lineItemId, productId },
@@ -46,6 +48,10 @@ var FlowAction;
46
48
  FlowAction.NavigateBackAction = () => ({
47
49
  type: FlowAction.FLOW_NAVIGATE_BACK,
48
50
  });
51
+ FlowAction.NavigateToAction = (path, productId, lineItemId) => ({
52
+ type: FlowAction.FLOW_NAVIGATE_TO,
53
+ payload: { path, productId, lineItemId },
54
+ });
49
55
  FlowAction.NavigateToCatalogAction = () => ({
50
56
  type: FlowAction.FLOW_NAVIGATE_TO_CATALOG,
51
57
  });
@@ -83,6 +89,10 @@ var FlowAction;
83
89
  type: FlowAction.SUBMIT_GUIDED_SELLING,
84
90
  payload,
85
91
  });
92
+ FlowAction.OpenDialog = (dialog) => ({
93
+ type: FlowAction.OPEN_DIALOG,
94
+ payload: { dialog },
95
+ });
86
96
  })(FlowAction || (FlowAction = {}));
87
97
  /**
88
98
  * @deprecated
@@ -1619,6 +1629,7 @@ const VELOCE_LIBS = {
1619
1629
  Operator,
1620
1630
  Predicate,
1621
1631
  parseJsonSafely,
1632
+ ConfigurationContextMode,
1622
1633
  },
1623
1634
  '@veloceapps/components': {
1624
1635
  ToastService,
@@ -1648,6 +1659,7 @@ const VELOCE_LIBS = {
1648
1659
  ProductImagesService,
1649
1660
  ContextService,
1650
1661
  RuntimeSettingsService,
1662
+ MetricsCalculationService,
1651
1663
  ActionCodePipe,
1652
1664
  DatePipe,
1653
1665
  NumberPipe,
@@ -2496,6 +2508,9 @@ class CompilationService {
2496
2508
  CustomTemplateDirectiveModule,
2497
2509
  FederatedModule,
2498
2510
  SdkPipesModule,
2511
+ LetDirectiveModule,
2512
+ HiddenTextTooltipModule,
2513
+ ErrorTooltipModule,
2499
2514
  ],
2500
2515
  declarations: Object.values(components),
2501
2516
  jit: true,