@veloceapps/sdk 8.0.0-78 → 8.0.0-79

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. package/README.md +0 -1
  2. package/esm2020/core/modules/configuration/services/configuration-runtime.service.mjs +5 -5
  3. package/esm2020/core/modules/configuration/services/configuration.service.mjs +3 -3
  4. package/esm2020/core/modules/configuration/services/runtime-context.service.mjs +6 -6
  5. package/esm2020/src/flow-routing.module.mjs +1 -18
  6. package/esm2020/src/pages/product/product.component.mjs +2 -3
  7. package/esm2020/src/pages/remote/remote.component.mjs +5 -6
  8. package/fesm2015/veloceapps-sdk-core.mjs +16 -15
  9. package/fesm2015/veloceapps-sdk-core.mjs.map +1 -1
  10. package/fesm2015/veloceapps-sdk.mjs +8 -160
  11. package/fesm2015/veloceapps-sdk.mjs.map +1 -1
  12. package/fesm2020/veloceapps-sdk-core.mjs +9 -9
  13. package/fesm2020/veloceapps-sdk-core.mjs.map +1 -1
  14. package/fesm2020/veloceapps-sdk.mjs +6 -161
  15. package/fesm2020/veloceapps-sdk.mjs.map +1 -1
  16. package/package.json +1 -9
  17. package/src/flow-routing.module.d.ts +6 -7
  18. package/esm2020/runtime/components/component-preview/component-preview.component.mjs +0 -125
  19. package/esm2020/runtime/components/index.mjs +0 -5
  20. package/esm2020/runtime/components/section-renderer/section-renderer.component.mjs +0 -67
  21. package/esm2020/runtime/components/ui-runtime/runtime.component.mjs +0 -440
  22. package/esm2020/runtime/components/ui-runtime-preview/runtime-preview.component.mjs +0 -108
  23. package/esm2020/runtime/execution/components/children-placeholder/children-placeholder.component.mjs +0 -60
  24. package/esm2020/runtime/execution/components/context-provider/context-provider.component.mjs +0 -39
  25. package/esm2020/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.mjs +0 -67
  26. package/esm2020/runtime/execution/components/federated/federated.component.mjs +0 -74
  27. package/esm2020/runtime/execution/components/velo-attribute/velo-attribute.component.mjs +0 -60
  28. package/esm2020/runtime/execution/components/velo-multiselect/velo-multiselect.component.mjs +0 -130
  29. package/esm2020/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.mjs +0 -72
  30. package/esm2020/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.mjs +0 -97
  31. package/esm2020/runtime/execution/components/velo-port-radio/velo-port-radio.component.mjs +0 -142
  32. package/esm2020/runtime/execution/components/velo-type/velo-type.component.mjs +0 -119
  33. package/esm2020/runtime/execution/directives/section-script.directive.mjs +0 -247
  34. package/esm2020/runtime/execution/directives/sf-query.directive.mjs +0 -35
  35. package/esm2020/runtime/execution/directives/velo-attribute.directive.mjs +0 -88
  36. package/esm2020/runtime/execution/directives/velo-port.directive.mjs +0 -376
  37. package/esm2020/runtime/execution/directives/vl-approval.directive.mjs +0 -23
  38. package/esm2020/runtime/execution/directives/vl-document-attachments.directive.mjs +0 -36
  39. package/esm2020/runtime/execution/directives/vl-document-templates.directive.mjs +0 -60
  40. package/esm2020/runtime/execution/directives/vl-quote.directive.mjs +0 -42
  41. package/esm2020/runtime/execution/directives/vl-ramp.directive.mjs +0 -55
  42. package/esm2020/runtime/execution/runtime-execution.module.mjs +0 -133
  43. package/esm2020/runtime/execution/utils/federated.util.mjs +0 -32
  44. package/esm2020/runtime/index.mjs +0 -5
  45. package/esm2020/runtime/runtime.module.mjs +0 -74
  46. package/esm2020/runtime/services/cart.service.mjs +0 -29
  47. package/esm2020/runtime/services/collapsible-state.service.mjs +0 -34
  48. package/esm2020/runtime/services/configuration.service.mjs +0 -119
  49. package/esm2020/runtime/services/current-state.service.mjs +0 -17
  50. package/esm2020/runtime/services/form-scope.service.mjs +0 -30
  51. package/esm2020/runtime/services/index.mjs +0 -4
  52. package/esm2020/runtime/services/product-model-cache.service.mjs +0 -31
  53. package/esm2020/runtime/services/runtime-context.service.mjs +0 -60
  54. package/esm2020/runtime/services/runtime-form.service.mjs +0 -219
  55. package/esm2020/runtime/services/runtime.service.mjs +0 -115
  56. package/esm2020/runtime/services/section-helper.service.mjs +0 -27
  57. package/esm2020/runtime/services/section-scope.service.mjs +0 -36
  58. package/esm2020/runtime/services/section-store.service.mjs +0 -22
  59. package/esm2020/runtime/services/section.service.mjs +0 -117
  60. package/esm2020/runtime/types/bound-data.types.mjs +0 -7
  61. package/esm2020/runtime/types/index.mjs +0 -3
  62. package/esm2020/runtime/types/quote-states.types.mjs +0 -2
  63. package/esm2020/runtime/types/runtime.types.mjs +0 -2
  64. package/esm2020/runtime/types/script-registry.types.mjs +0 -51
  65. package/esm2020/runtime/utils/line-item.util.mjs +0 -270
  66. package/esm2020/runtime/utils/section.utils.mjs +0 -26
  67. package/esm2020/runtime/utils/sections-binder.helper.mjs +0 -105
  68. package/esm2020/runtime/veloceapps-sdk-runtime.mjs +0 -5
  69. package/esm2020/src/pages/legacy-product/legacy-product.component.mjs +0 -137
  70. package/esm2020/src/pages/legacy-product/legacy-product.module.mjs +0 -19
  71. package/fesm2015/veloceapps-sdk-runtime.mjs +0 -3770
  72. package/fesm2015/veloceapps-sdk-runtime.mjs.map +0 -1
  73. package/fesm2020/veloceapps-sdk-runtime.mjs +0 -3767
  74. package/fesm2020/veloceapps-sdk-runtime.mjs.map +0 -1
  75. package/runtime/README.md +0 -5
  76. package/runtime/components/component-preview/component-preview.component.d.ts +0 -27
  77. package/runtime/components/index.d.ts +0 -4
  78. package/runtime/components/section-renderer/section-renderer.component.d.ts +0 -25
  79. package/runtime/components/ui-runtime/runtime.component.d.ts +0 -53
  80. package/runtime/components/ui-runtime-preview/runtime-preview.component.d.ts +0 -27
  81. package/runtime/execution/components/children-placeholder/children-placeholder.component.d.ts +0 -30
  82. package/runtime/execution/components/context-provider/context-provider.component.d.ts +0 -14
  83. package/runtime/execution/components/execution-section-renderer/execution-section-renderer.component.d.ts +0 -25
  84. package/runtime/execution/components/federated/federated.component.d.ts +0 -36
  85. package/runtime/execution/components/velo-attribute/velo-attribute.component.d.ts +0 -19
  86. package/runtime/execution/components/velo-multiselect/velo-multiselect.component.d.ts +0 -35
  87. package/runtime/execution/components/velo-port-checkbox/velo-port-checkbox.component.d.ts +0 -22
  88. package/runtime/execution/components/velo-port-dropdown/velo-port-dropdown.component.d.ts +0 -22
  89. package/runtime/execution/components/velo-port-radio/velo-port-radio.component.d.ts +0 -28
  90. package/runtime/execution/components/velo-type/velo-type.component.d.ts +0 -31
  91. package/runtime/execution/directives/section-script.directive.d.ts +0 -59
  92. package/runtime/execution/directives/sf-query.directive.d.ts +0 -15
  93. package/runtime/execution/directives/velo-attribute.directive.d.ts +0 -26
  94. package/runtime/execution/directives/velo-port.directive.d.ts +0 -74
  95. package/runtime/execution/directives/vl-approval.directive.d.ts +0 -10
  96. package/runtime/execution/directives/vl-document-attachments.directive.d.ts +0 -15
  97. package/runtime/execution/directives/vl-document-templates.directive.d.ts +0 -33
  98. package/runtime/execution/directives/vl-quote.directive.d.ts +0 -14
  99. package/runtime/execution/directives/vl-ramp.directive.d.ts +0 -15
  100. package/runtime/execution/runtime-execution.module.d.ts +0 -25
  101. package/runtime/execution/utils/federated.util.d.ts +0 -6
  102. package/runtime/index.d.ts +0 -4
  103. package/runtime/runtime.module.d.ts +0 -16
  104. package/runtime/services/cart.service.d.ts +0 -15
  105. package/runtime/services/collapsible-state.service.d.ts +0 -15
  106. package/runtime/services/configuration.service.d.ts +0 -20
  107. package/runtime/services/current-state.service.d.ts +0 -8
  108. package/runtime/services/form-scope.service.d.ts +0 -20
  109. package/runtime/services/index.d.ts +0 -3
  110. package/runtime/services/product-model-cache.service.d.ts +0 -14
  111. package/runtime/services/runtime-context.service.d.ts +0 -16
  112. package/runtime/services/runtime-form.service.d.ts +0 -24
  113. package/runtime/services/runtime.service.d.ts +0 -44
  114. package/runtime/services/section-helper.service.d.ts +0 -8
  115. package/runtime/services/section-scope.service.d.ts +0 -14
  116. package/runtime/services/section-store.service.d.ts +0 -11
  117. package/runtime/services/section.service.d.ts +0 -30
  118. package/runtime/types/bound-data.types.d.ts +0 -13
  119. package/runtime/types/index.d.ts +0 -2
  120. package/runtime/types/quote-states.types.d.ts +0 -6
  121. package/runtime/types/runtime.types.d.ts +0 -19
  122. package/runtime/types/script-registry.types.d.ts +0 -13
  123. package/runtime/utils/line-item.util.d.ts +0 -34
  124. package/runtime/utils/section.utils.d.ts +0 -2
  125. package/runtime/utils/sections-binder.helper.d.ts +0 -16
  126. package/src/pages/legacy-product/legacy-product.component.d.ts +0 -37
  127. package/src/pages/legacy-product/legacy-product.module.d.ts +0 -9
@@ -1,6 +1,6 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Injectable, InjectionToken, NgModule, inject, Directive, Input, LOCALE_ID, Pipe } from '@angular/core';
3
- import { UUID, ConfigurationContextMode, ConfigurationContext, DEFAULT_CURRENCY_ISO_CODE, DEFAULT_CURRENCY_SYMBOL, validateDateFormat, DEFAULT_DATE_FORMAT, DEFAULT_DECIMALS_COUNT, getSupportedDateFormats, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_THOUSANDS_SEPARATOR, DEFAULT_ACTION_CODE_LABELS, parseJsonSafely, ConfigurationMode, ConfigurationTranslatorUtils, getUIDefinitionProperties, ChargeGroupUtils, RuntimeModel, isLegacyUIDefinition, SalesforceIdUtils, EntityUtil, formatNumber } from '@veloceapps/core';
3
+ import { UUID, ConfigurationContextMode, ConfigurationContext, DEFAULT_CURRENCY_ISO_CODE, DEFAULT_CURRENCY_SYMBOL, validateDateFormat, DEFAULT_DATE_FORMAT, DEFAULT_DECIMALS_COUNT, getSupportedDateFormats, DEFAULT_DECIMAL_SEPARATOR, DEFAULT_THOUSANDS_SEPARATOR, DEFAULT_ACTION_CODE_LABELS, parseJsonSafely, ConfigurationMode, ConfigurationTranslatorUtils, ChargeGroupUtils, RuntimeModel, isNotLegacyUIDefinition, SalesforceIdUtils, EntityUtil, formatNumber } from '@veloceapps/core';
4
4
  import * as i1 from '@veloceapps/api';
5
5
  import { PriceApiService, ContextApiService, ProductModelApiService, ConfigurationApiService } from '@veloceapps/api';
6
6
  import { BehaviorSubject, zip, noop, combineLatest, map as map$2, tap as tap$1, throwError, shareReplay as shareReplay$1, of, switchMap as switchMap$1, catchError as catchError$1, Subject, take as take$1, distinctUntilChanged } from 'rxjs';
@@ -877,7 +877,7 @@ class ConfigurationService {
877
877
  }
878
878
  getUIDefinitionProperties() {
879
879
  return {
880
- ...getUIDefinitionProperties(this.getRuntimeContext().uiDefinitionContainer),
880
+ ...(this.getRuntimeContext().uiDefinitionContainer?.source.properties ?? {}),
881
881
  ...(this.runtimeService.uiDefinitionProperties ?? {}),
882
882
  };
883
883
  }
@@ -1345,7 +1345,7 @@ class RuntimeContextService {
1345
1345
  const uiDefinitionContainer = this.getUIDefinitionContainer(runtimeData);
1346
1346
  const runtimeModel = RuntimeModel.create(runtimeData.types, runtimeData.products);
1347
1347
  const { productName, properties } = Array.from(runtimeModel.components.values()).find(c => c.productId === productId) ?? {};
1348
- const uiDefinitionProperties = getUIDefinitionProperties(uiDefinitionContainer);
1348
+ const uiDefinitionProperties = uiDefinitionContainer?.source.properties;
1349
1349
  return {
1350
1350
  modelId: runtimeData.modelId,
1351
1351
  uiDefinitionContainer: uiDefinitionContainer,
@@ -1355,14 +1355,14 @@ class RuntimeContextService {
1355
1355
  productType: properties?.['displayName'] || productName,
1356
1356
  offeringId: offeringId,
1357
1357
  properties: {
1358
- PricingEnabled: uiDefinitionProperties.pricingEnabled ? 'true' : 'false',
1359
- PriceListId: uiDefinitionProperties.priceList,
1358
+ PricingEnabled: uiDefinitionProperties?.pricingEnabled ? 'true' : 'false',
1359
+ PriceListId: uiDefinitionProperties?.priceList,
1360
1360
  },
1361
1361
  };
1362
1362
  }));
1363
1363
  }
1364
1364
  getUIDefinitionContainer(runtimeData) {
1365
- const containers = runtimeData.uiDefinitions.filter(container => !isLegacyUIDefinition(container.source));
1365
+ const containers = runtimeData.uiDefinitions.filter(container => isNotLegacyUIDefinition(container.source));
1366
1366
  return containers.find(container => container.source.primary) ?? containers[0];
1367
1367
  }
1368
1368
  }
@@ -1387,7 +1387,7 @@ class ConfigurationRuntimeService {
1387
1387
  this.uiDefinitionProperties = {};
1388
1388
  }
1389
1389
  initTestMode(uiDefinitionContainer) {
1390
- this.uiDefinitionProperties = getUIDefinitionProperties(uiDefinitionContainer);
1390
+ this.uiDefinitionProperties = uiDefinitionContainer.source.properties ?? {};
1391
1391
  const uiDefinitionExternals = uiDefinitionContainer.source.externals ?? {};
1392
1392
  return combineLatest([
1393
1393
  this.apiService.getRuntimeDataByModelId(uiDefinitionContainer.modelId),
@@ -1417,7 +1417,7 @@ class ConfigurationRuntimeService {
1417
1417
  this.initializationProps = props;
1418
1418
  const context = this.contextService.resolve();
1419
1419
  return this.runtimeContextService.getRuntimeContext(props.productId, props.offeringId).pipe(tap(runtimeContext => {
1420
- this.uiDefinitionProperties = getUIDefinitionProperties(runtimeContext.uiDefinitionContainer);
1420
+ this.uiDefinitionProperties = runtimeContext.uiDefinitionContainer?.source.properties ?? {};
1421
1421
  const { PriceListId } = context.properties ?? {};
1422
1422
  const mergeContext = {
1423
1423
  ...runtimeContext,
@@ -1445,7 +1445,7 @@ class ConfigurationRuntimeService {
1445
1445
  return;
1446
1446
  }
1447
1447
  this._runtimeContext.uiDefinitionContainer = uiDefinitionContainer;
1448
- this.uiDefinitionProperties = getUIDefinitionProperties(uiDefinitionContainer);
1448
+ this.uiDefinitionProperties = uiDefinitionContainer.source.properties ?? {};
1449
1449
  }
1450
1450
  id15to18(propertyName, source) {
1451
1451
  if (!source) {